*,
*::before,
*::after {
    box-sizing: border-box;
}

.search-menu {
    position: fixed;
    top: 0;
    left: -20rem;
    width: 20rem;
    max-width: 100%;
    height: 100%;
    padding-top: 4rem;
    background-color: var(--searchMenuBgColor);
    transition: left 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.search-menu.open {
    left: 0;
    pointer-events: auto;
    box-shadow: var(--searchMenuBoxShadow);
}

.search-menu .close-btn {
    position: absolute;
    top: 0rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--searchMenuColor);
}

.search-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 1.5rem;
}

.search-form {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.search-input {
    max-width: 100%;
    flex: 1;
    padding: 0.3rem 0.5rem;
    border: var(--searchMenuBorder);
    background: #fff;
    border-right: none;
    border-radius: 0.25rem 0 0 0.25rem;
    font-size: 1rem;
    color: #000;
    outline: none;
}

.search-input::placeholder {
    color: #aaa;
    font-weight: normal;
}

.search-btn {
    padding: 0 0.5rem;
    border: var(--searchMenuBorder);
    border-left: none;
    border-radius: 0 0.25rem 0.25rem 0;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.search-btn .search-icon {
    width: 20px;
    height: auto;
}

.search-btn .search-icon svg {
    stroke: #000;
}

#autocomplete_suggestions {
    top: calc(100% + 4px);   /* just below search bar */
    background: #fff;
    color: #000;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 260px;
    width: 100%;
    overflow-y: auto;
}

/* Individual suggestion item */
#autocomplete_suggestions div {
    padding: 10px 14px;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #fff;
}

/* Last item cleanup */
#autocomplete_suggestions div:last-child {
    border-bottom: none;
}

/* Hover effect */
#autocomplete_suggestions div:hover {
    background-color: #eee;
}
