.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 720px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e8e3ef;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(30, 20, 50, 0.08);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.search-bar.expanded {
    box-shadow: 0 18px 44px rgba(30, 20, 50, 0.16);
    transform: translateY(1px);
}

.search-field {
    position: relative;
    flex: 1;
    min-height: 56px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.search-field:hover {
    background: #f6f3fa;
}

.search-field.active {
    background: #f7f2fd;
    box-shadow: inset 0 0 0 1px rgba(106, 70, 145, 0.16);
}

.search-field.divider {
    flex: 0 0 auto;
    min-height: auto;
    padding: 0 2px;
    color: #d2cada;
    background: transparent;
    cursor: default;
}

.search-field small {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #241f31;
}

.search-field input {
    width: 100%;
    border: none;
    background: transparent;
    color: #4a4457;
    font-family: inherit;
    font-size: 0.96rem;
    outline: none;
    cursor: pointer;
}

.search-field input::placeholder {
    color: #9a92a7;
}

.search-btn-active {
    flex: 0 0 auto;
    min-width: 118px;
    height: 46px;
    border: none;
    border-radius: 999px;
    padding: 0 22px;
    background: #6A4691;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(106, 70, 145, 0.28);
    transition: transform 0.18s ease, background 0.18s ease;
}

.search-btn-active:hover {
    background: #5d3e80;
    transform: translateY(-1px);
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;
    display: none;
    background: rgba(20, 16, 28, 0.08);
    backdrop-filter: blur(2px);
}

.search-overlay.active {
    display: block;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    display: none;
    background: #fff;
    border: 1px solid #ede7f5;
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(25, 18, 38, 0.16);
}

.search-dropdown.open {
    display: block;
    animation: searchDropIn 0.18s ease;
}

@keyframes searchDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.location-dropdown {
    min-width: 380px;
    padding: 14px 0;
}

.location-dropdown-title {
    padding: 0 20px 10px;
    color: #8f879c;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.location-suggestion {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.16s ease;
}

.location-suggestion:hover {
    background: #f8f5fc;
}

.location-suggestion-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f4eefb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.location-suggestion-text strong {
    display: block;
    margin-bottom: 2px;
    color: #251f31;
    font-size: 0.95rem;
}

.location-suggestion-text span {
    color: #8e869c;
    font-size: 0.82rem;
}

.date-dropdown {
    min-width: 640px;
    padding: 20px 22px 18px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-header span {
    color: #3c344b;
    font-size: 1.04rem;
    font-weight: 700;
    text-transform: lowercase;
}

.calendar-nav {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd5e8;
    border-radius: 50%;
    background: #fff;
    color: #433a55;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.calendar-nav:hover {
    background: #f7f3fc;
    border-color: #cdbde4;
}

.calendars-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.calendar-month-title {
    margin-bottom: 12px;
    text-align: center;
    color: #2b2438;
    font-size: 1rem;
    font-weight: 700;
}

.calendar-days-header,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-days-header {
    margin-bottom: 8px;
    color: #9a91a9;
    font-size: 0.76rem;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #322a42;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease;
}

.calendar-day:hover:not(.empty):not(.past) {
    background: #f2ebfb;
}

.calendar-day.empty,
.calendar-day.past {
    color: #d1c8de;
    cursor: default;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 1px #c8b7e0;
}

.calendar-day.selected,
.calendar-day.range-start,
.calendar-day.range-end {
    background: #6A4691;
    color: #fff;
    font-weight: 700;
}

.calendar-day.in-range {
    background: #f2ebfb;
    border-radius: 14px;
}

.date-clear-btn {
    margin-top: 16px;
    border: none;
    background: transparent;
    color: #6A4691;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.guests-dropdown {
    min-width: 360px;
    padding: 22px;
}

.guests-slider-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.guests-slider-label {
    display: block;
    color: #2d2639;
    font-size: 1rem;
    font-weight: 700;
}

.guests-slider-sub {
    margin-top: 4px;
    color: #8e869c;
    font-size: 0.84rem;
    line-height: 1.45;
}

.guests-slider-value {
    color: #6A4691;
    font-size: 0.96rem;
    font-weight: 700;
    white-space: nowrap;
}

.guests-range {
    width: 100%;
    accent-color: #6A4691;
}

.guests-slider-limits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 10px;
    color: #9a91a9;
    font-size: 0.78rem;
    font-weight: 600;
}

.guests-slider-limits span:nth-child(2),
.guests-slider-limits span:nth-child(3) {
    text-align: center;
}

.guests-slider-limits span:last-child {
    text-align: right;
}

@media (max-width: 900px) {
    .search-bar {
        max-width: none;
    }

    .date-dropdown {
        min-width: 92vw;
    }
}

@media (max-width: 768px) {
    .search-bar {
        flex-wrap: wrap;
        border-radius: 28px;
    }

    .search-field {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }

    .search-field.divider {
        display: none;
    }

    .search-btn-active {
        width: 100%;
        margin-top: 4px;
    }

    .location-dropdown,
    .guests-dropdown,
    .date-dropdown {
        min-width: min(92vw, 560px);
    }

    .calendars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
