/**
 * Advanced Search - Airbnb Style Horizontal Strip
 * Modern, clean search interface with availability checking
 * Brand Colors: #2c91ce (blue), #ffbe5f (orange)
 */

/* ========================================
   HORIZONTAL SEARCH STRIP CONTAINER
   ======================================== */
.airbnb-search-strip-container {
    position: relative;
    z-index: 100;
    margin: -50px auto 30px;
    padding: 0 20px;
    max-width: 1200px;
}

.airbnb-search-strip {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 8px 8px 24px;
    transition: all 0.3s ease;
}

.airbnb-search-strip:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ========================================
   SEARCH STRIP SECTIONS
   ======================================== */
.search-strip-section {
    flex: 1;
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    border-radius: 50px;
    transition: background 0.2s ease;
    min-width: 0;
}

.search-strip-section:hover {
    background: #f7f7f7;
}

.search-strip-section.active {
    background: #f7f7f7;
    box-shadow: 0 0 0 2px #2c91ce;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.section-value {
    font-size: 14px;
    color: #717171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-value.has-value {
    color: #222;
    font-weight: 500;
}

/* Divider between sections */
.search-strip-divider {
    width: 1px;
    height: 32px;
    background: #dddddd;
    flex-shrink: 0;
}

/* ========================================
   SEARCH BUTTON
   ======================================== */
.search-strip-button {
    background: linear-gradient(135deg, #2c91ce 0%, #2077ba 100%);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-strip-button:hover {
    background: linear-gradient(135deg, #2077ba 0%, #1a6ba0 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(44, 145, 206, 0.4);
}

.search-strip-button i {
    font-size: 16px;
}

/* ========================================
   DROPDOWN PANELS
   ======================================== */
.search-dropdown {
    position: absolute;
    top: 80px;
    left: 20px;
    min-width: 320px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    padding: 20px;
    z-index: 1100;
    display: none;
    animation: dropdownSlide 0.2s ease;
}

.search-dropdown.show {
    display: block;
}

/* Position dropdowns based on which section triggered them */
#location-dropdown {
    left: 20px;
}

#dates-dropdown {
    left: 50%;
    transform: translateX(-50%);
}

#guests-dropdown {
    left: auto;
    right: 100px;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========================================
   REGION TABS (Mainland/Islands)
   ======================================== */
.region-tabs {
    display: flex;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.region-tab {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #dddddd;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.region-tab:hover {
    border-color: #222;
    background: #f7f7f7;
}

.region-tab.active {
    background: linear-gradient(135deg, #2c91ce 0%, #2077ba 100%);
    border-color: #2c91ce;
    color: white;
}

.region-tab i {
    font-size: 16px;
}

/* ========================================
   DROPDOWN FIELDS (Selects)
   ======================================== */
.dropdown-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-field label {
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.dropdown-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ebebeb;
    border-radius: 12px;
    font-size: 15px;
    color: #222;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease;
}

.dropdown-select:hover {
    border-color: #b0b0b0;
}

.dropdown-select:focus {
    outline: none;
    border-color: #2c91ce;
}

/* ========================================
   DATE INPUTS
   ======================================== */
.dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-field label {
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.date-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ebebeb;
    border-radius: 12px;
    font-size: 15px;
    color: #222;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.date-input:hover {
    border-color: #b0b0b0;
}

.date-input:focus {
    outline: none;
    border-color: #2c91ce;
}

/* ========================================
   GUEST COUNTER
   ======================================== */
.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #ebebeb;
}

.guest-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.guest-row:first-child {
    padding-top: 0;
}

.guest-info {
    flex: 1;
}

.guest-type {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.guest-desc {
    font-size: 13px;
    color: #717171;
    margin-top: 2px;
}

.guest-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #b0b0b0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #717171;
}

.counter-btn:hover:not(:disabled) {
    border-color: #222;
    color: #222;
}

.counter-btn:disabled {
    border-color: #ebebeb;
    color: #ebebeb;
    cursor: not-allowed;
}

.counter-btn i {
    font-size: 12px;
}

.counter-input {
    width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    border: none;
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
}

.counter-input::-webkit-outer-spin-button,
.counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================================
   LEGACY SUPPORT - Keep old classes working
   ======================================== */
.airbnb-search-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.airbnb-search-wrapper {
    background: white;
    border-radius: 40px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.airbnb-search-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.airbnb-search-wrapper.expanded {
    border-radius: 32px;
    flex-direction: column;
}

/* ========================================
   SEARCH FIELDS
   ======================================== */
.airbnb-search-field {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
    min-width: 0;
}

.airbnb-search-field:hover {
    background: #f7f7f7;
}

.airbnb-search-field:first-child {
    border-radius: 40px 0 0 40px;
}

.airbnb-search-field.active {
    background: #ffffff;
    box-shadow: 0 0 0 2px #2c91ce;
    border-radius: 32px;
    z-index: 1;
}

.airbnb-search-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.airbnb-search-field-value {
    font-size: 14px;
    color: #717171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airbnb-search-field-value.has-value {
    color: #222;
    font-weight: 500;
}

/* Divider between fields */
.airbnb-search-divider {
    width: 1px;
    background: #dddddd;
    margin: 12px 0;
}

/* ========================================
   SEARCH BUTTON
   ======================================== */
.airbnb-search-button {
    background: linear-gradient(135deg, #2c91ce 0%, #2077ba 100%);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.airbnb-search-button:hover {
    background: linear-gradient(135deg, #2077ba 0%, #1a6ba0 100%);
    transform: scale(1.04);
}

.airbnb-search-button i {
    font-size: 18px;
}

.airbnb-search-button.expanded {
    border-radius: 24px;
    width: auto;
    padding: 0 24px;
    gap: 8px;
}

.airbnb-search-button.expanded span {
    display: inline;
}

/* ========================================
   DROPDOWN PANELS
   ======================================== */
.airbnb-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 24px;
    z-index: 1000;
    display: none;
    animation: dropdownFadeIn 0.2s ease;
}

.airbnb-dropdown-panel.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   LOCATION SELECTOR
   ======================================== */
.airbnb-location-panel {
    max-width: 500px;
}

.airbnb-location-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 16px;
}

.airbnb-location-tab {
    padding: 10px 20px;
    border: 2px solid #dddddd;
    border-radius: 24px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    transition: all 0.2s ease;
}

.airbnb-location-tab:hover {
    border-color: #222;
}

.airbnb-location-tab.active {
    background: #222;
    border-color: #222;
    color: white;
}

.airbnb-location-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.airbnb-location-option {
    padding: 16px;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.airbnb-location-option:hover {
    border-color: #222;
    background: #f7f7f7;
}

.airbnb-location-option.selected {
    border-color: #2c91ce;
    background: rgba(44, 145, 206, 0.05);
}

.airbnb-location-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c91ce 0%, #2077ba 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.airbnb-location-option-text {
    flex: 1;
}

.airbnb-location-option-name {
    font-weight: 600;
    color: #222;
    font-size: 15px;
}

.airbnb-location-option-count {
    font-size: 13px;
    color: #717171;
}

/* ========================================
   DATE PICKER
   ======================================== */
.airbnb-date-panel {
    max-width: 700px;
}

.airbnb-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.airbnb-date-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.airbnb-date-calendars {
    display: flex;
    gap: 32px;
}

.airbnb-calendar {
    flex: 1;
}

.airbnb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.airbnb-calendar-month {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.airbnb-calendar-nav {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.airbnb-calendar-nav:hover {
    background: #f7f7f7;
}

.airbnb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.airbnb-calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    padding: 8px 0;
}

.airbnb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #222;
}

.airbnb-calendar-day:hover:not(.disabled):not(.selected) {
    background: #f7f7f7;
}

.airbnb-calendar-day.disabled {
    color: #dddddd;
    cursor: not-allowed;
}

.airbnb-calendar-day.selected {
    background: #222;
    color: white;
}

.airbnb-calendar-day.in-range {
    background: #f7f7f7;
    border-radius: 0;
}

.airbnb-calendar-day.range-start {
    border-radius: 50% 0 0 50%;
}

.airbnb-calendar-day.range-end {
    border-radius: 0 50% 50% 0;
}

/* ========================================
   GUESTS SELECTOR
   ======================================== */
.airbnb-guests-panel {
    max-width: 400px;
}

.airbnb-guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ebebeb;
}

.airbnb-guest-row:last-child {
    border-bottom: none;
}

.airbnb-guest-info {
    flex: 1;
}

.airbnb-guest-type {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.airbnb-guest-desc {
    font-size: 14px;
    color: #717171;
}

.airbnb-guest-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}

.airbnb-guest-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #b0b0b0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #717171;
}

.airbnb-guest-btn:hover:not(:disabled) {
    border-color: #222;
    color: #222;
}

.airbnb-guest-btn:disabled {
    border-color: #ebebeb;
    color: #ebebeb;
    cursor: not-allowed;
}

.airbnb-guest-count {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    min-width: 24px;
    text-align: center;
}

/* ========================================
   EXPANDED MOBILE VIEW
   ======================================== */
.airbnb-search-expanded {
    display: none;
    background: white;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    padding: 24px;
    margin-top: 12px;
}

.airbnb-search-expanded.show {
    display: block;
}

.airbnb-expanded-section {
    margin-bottom: 24px;
}

.airbnb-expanded-section:last-child {
    margin-bottom: 0;
}

.airbnb-expanded-label {
    font-size: 12px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.airbnb-expanded-select {
    width: 100%;
    padding: 16px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    font-size: 16px;
    color: #222;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23717171' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.airbnb-expanded-select:focus {
    outline: none;
    border-color: #2c91ce;
}

.airbnb-date-inputs {
    display: flex;
    gap: 12px;
}

.airbnb-date-input-wrapper {
    flex: 1;
}

.airbnb-date-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    font-size: 16px;
    color: #222;
}

.airbnb-date-input:focus {
    outline: none;
    border-color: #2c91ce;
}

.airbnb-guest-inputs {
    display: flex;
    gap: 12px;
}

.airbnb-guest-input-wrapper {
    flex: 1;
}

.airbnb-guest-input-label {
    font-size: 13px;
    color: #717171;
    margin-bottom: 6px;
}

.airbnb-guest-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #dddddd;
    border-radius: 12px;
    font-size: 16px;
    color: #222;
    text-align: center;
}

.airbnb-guest-input:focus {
    outline: none;
    border-color: #2c91ce;
}

/* ========================================
   SEARCH SUBMIT BUTTON (EXPANDED)
   ======================================== */
.airbnb-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #2c91ce 0%, #2077ba 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.airbnb-submit-btn:hover {
    background: linear-gradient(135deg, #2077ba 0%, #1a6ba0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 145, 206, 0.4);
}

.airbnb-submit-btn i {
    font-size: 18px;
}

/* ========================================
   LOADING STATE
   ======================================== */
.airbnb-search-loading {
    position: relative;
}

.airbnb-search-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airbnb-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #ebebeb;
    border-top-color: #2c91ce;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   AVAILABILITY INDICATORS ON CARDS
   ======================================== */
.availability-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
}

.availability-badge.available {
    background: #2c91ce;
    color: #fff;
}

.availability-badge.unavailable {
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.availability-badge.checking {
    background: rgba(255, 190, 95, 0.9);
    color: #222;
}

.availability-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.availability-price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.availability-price-period {
    font-size: 12px;
    color: #717171;
}

.property-card-unavailable {
    opacity: 0.6;
    filter: grayscale(30%);
}

.property-card-unavailable .modern-property-image {
    filter: grayscale(40%);
}

/* ========================================
   SEARCH RESULTS HEADER
   ======================================== */
.search-results-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.search-results-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-results-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.search-results-dates {
    font-size: 14px;
    color: #717171;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results-dates i {
    color: #2c91ce;
}

.search-results-stats {
    display: flex;
    gap: 20px;
}

.search-stat {
    text-align: center;
    padding: 8px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.search-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c91ce;
}

.search-stat-label {
    font-size: 12px;
    color: #717171;
    text-transform: uppercase;
}

.search-stat.unavailable .search-stat-number {
    color: #717171;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .airbnb-search-wrapper {
        border-radius: 16px;
        flex-direction: column;
        padding: 16px;
    }
    
    .airbnb-search-field {
        padding: 12px 16px;
        border-radius: 12px !important;
        border: 1px solid #ebebeb;
        margin-bottom: 8px;
    }
    
    .airbnb-search-field:last-of-type {
        margin-bottom: 0;
    }
    
    .airbnb-search-divider {
        display: none;
    }
    
    .airbnb-search-button {
        width: 100%;
        border-radius: 12px;
        margin: 12px 0 0 0;
        height: 52px;
    }
    
    .airbnb-search-button span {
        display: inline;
    }
    
    .airbnb-dropdown-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 24px 24px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .airbnb-date-calendars {
        flex-direction: column;
    }
    
    .airbnb-location-options {
        grid-template-columns: 1fr;
    }
    
    .search-results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-results-stats {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   HERO SECTION INTEGRATION
   ======================================== */
.listing-hero-search {
    position: relative;
    z-index: 100;
    margin-top: -60px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .listing-hero-search {
        margin-top: -40px;
    }
}

/* ========================================
   HORIZONTAL SEARCH STRIP - MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 992px) {
    .airbnb-search-strip-container {
        margin: -40px auto 25px;
        padding: 0 15px;
    }
    
    .airbnb-search-strip {
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 16px;
        gap: 8px;
    }
    
    .search-strip-section {
        flex: 1 1 calc(50% - 8px);
        min-width: calc(50% - 8px);
        padding: 12px 16px;
        border: 1px solid #ebebeb;
        border-radius: 12px;
        background: #f9f9f9;
    }
    
    .search-strip-section:hover {
        background: #f0f0f0;
    }
    
    .search-strip-divider {
        display: none;
    }
    
    .search-strip-button {
        flex: 1 1 100%;
        margin-top: 8px;
        padding: 16px 24px;
        border-radius: 12px;
    }
    
    .search-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0 !important;
        right: 0 !important;
        min-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 75vh;
        overflow-y: auto;
        padding: 24px 20px;
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .airbnb-search-strip-container {
        margin: -30px auto 20px;
        padding: 0 10px;
    }
    
    .airbnb-search-strip {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }
    
    .search-strip-section {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 14px 16px;
    }
    
    .section-label {
        font-size: 10px;
    }
    
    .section-value {
        font-size: 13px;
    }
    
    .search-strip-button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .region-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .region-tab {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .dates-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .dropdown-select,
    .date-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .guest-row {
        padding: 14px 0;
    }
    
    .guest-type {
        font-size: 14px;
    }
    
    .guest-desc {
        font-size: 12px;
    }
    
    .counter-btn {
        width: 32px;
        height: 32px;
    }
    
    .counter-input {
        font-size: 15px;
        width: 36px;
    }
}

/* ========================================
   SEARCH STRIP - OVERLAY FOR DROPDOWNS
   ======================================== */
.search-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: none;
}

.search-dropdown-overlay.show {
    display: block;
}

/* Ensure dropdowns are ABOVE the overlay */
.search-dropdown {
    z-index: 1100 !important;
}

/* ========================================
   LOADING STATE FOR SEARCH BUTTON
   ======================================== */
.search-strip-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.search-strip-button.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   DROPDOWN CLOSE BUTTON & APPLY BUTTON
   ======================================== */
.dropdown-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f7f7f7;
    border-radius: 50%;
    cursor: pointer;
    display: flex; /* Always visible */
    align-items: center;
    justify-content: center;
    color: #717171;
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 10;
}

.dropdown-close-btn:hover {
    background: #ebebeb;
    color: #222;
}

.dropdown-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
    display: flex; /* Always visible */
    justify-content: flex-end;
}

.dropdown-apply-btn {
    background: linear-gradient(135deg, #2c91ce 0%, #2077ba 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-apply-btn:hover {
    background: linear-gradient(135deg, #2077ba 0%, #1a6ba0 100%);
    transform: scale(1.02);
}

/* Optional label styling */
.optional-label {
    font-weight: 400;
    font-size: 10px;
    color: #999;
    text-transform: lowercase;
}

/* Dropdown content needs padding for close button */
.dropdown-content {
    position: relative;
    padding-top: 40px;
}

/* Mobile: Larger apply button */
@media (max-width: 992px) {
    .dropdown-apply-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}
