/* =====================================================
   MOBILE-ONLY STYLES FOR HOTEL SEARCH
   Matches exact design from mockup
   ===================================================== */

:root {
    --mobile-dark-bg: #1B232E;
    --mobile-accent-gold: #D4A853;
    --mobile-light-bg: #E8ECEE;
    --mobile-text-white: #FFFFFF;
    --mobile-text-dark: #1B232E;
    --mobile-text-muted: #7F8C8D;
    --mobile-divider: #D5DCE1;
    --mobile-border-dark: #3B4A5A;
}

/* =====================================================
   HIDE DESKTOP FORM ON MOBILE
   ===================================================== */
@media (max-width: 767.98px) {
    
    /* Hide the entire desktop search card */
    .pt-3.pt-lg-5.bg-white .card.shadow-sm {
        display: none !important;
    }
    
    /* Hide hero title */
    .pt-3.pt-lg-5.bg-white h1.mb-4.mt-md-5.display-5 {
        display: none !important;
    }
    
    /* Hide desktop banner image */
    .pt-3.pt-lg-5.bg-white .col-lg-6:last-child:not(:first-child) {
        display: none !important;
    }
    
    /* Container reset */
    .pt-3.pt-lg-5.bg-white {
        padding: 0 !important;
        background: transparent !important;
    }
    
    .pt-3.pt-lg-5.bg-white > .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    /* Full width column */
    .pt-3.pt-lg-5.bg-white .col-lg-6.position-relative.mb-4.mb-md-0 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Hide extra sections */
    section.pb-0.pb-xl-5.animate-on-scroll,
    section.bg-light.animate-on-scroll {
        display: none !important;
    }
}

/* =====================================================
   MOBILE SEARCH FORM - NEW STRUCTURE
   ===================================================== */
@media (max-width: 767.98px) {
    
    /* Show mobile form */
    .mobile-hotel-search {
        display: block !important;
    }
    
    /* Top Dark Section */
    .mobile-top-section {
        background: var(--mobile-dark-bg);
        display: flex;
        width: 100%;
    }
    
    /* Location Box */
    .mobile-location-box {
        flex: 1;
        padding: 25px 20px;
        cursor: pointer;
        position: relative;
    }
    
    .mobile-location-box::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20px;
        bottom: 20px;
        width: 1px;
        background: var(--mobile-border-dark);
    }
    
    .mobile-location-box .mobile-label {
        color: var(--mobile-text-white);
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }
    
    .mobile-location-box .mobile-value {
        color: var(--mobile-accent-gold);
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    /* Date Box */
    .mobile-date-box {
        flex: 1;
        padding: 25px 20px;
        cursor: pointer;
        text-align: right;
    }
    
    .mobile-date-box .mobile-label {
        color: var(--mobile-text-white);
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 5px;
    }
    
    .mobile-date-box .mobile-value {
        color: var(--mobile-accent-gold);
        font-size: 13px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    /* Bottom Light Section */
    .mobile-bottom-section {
        background: var(--mobile-light-bg);
        padding: 0;
    }
    
    /* Guests Row */
    .mobile-guests-row {
        display: flex;
        width: 100%;
    }
    
    /* Adults Box */
    .mobile-adults-box {
        flex: 1;
        padding: 20px;
        text-align: center;
        position: relative;
    }
    
    .mobile-adults-box::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15px;
        bottom: 15px;
        width: 1px;
        background: var(--mobile-divider);
    }
    
    .mobile-adults-box .mobile-label,
    .mobile-kids-box .mobile-label {
        color: var(--mobile-text-muted);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    /* Kids Box */
    .mobile-kids-box {
        flex: 1;
        padding: 20px;
        text-align: center;
    }
    
    /* Counter Component */
    .mobile-counter {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .mobile-counter-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid var(--mobile-border-dark);
        background: transparent;
        color: var(--mobile-text-dark);
        font-size: 20px;
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1;
        padding: 0;
    }
    
    .mobile-counter-btn:hover,
    .mobile-counter-btn:active {
        background: var(--mobile-text-dark);
        color: var(--mobile-text-white);
    }
    
    .mobile-counter-value {
        font-size: 32px;
        font-weight: 400;
        color: var(--mobile-text-dark);
        min-width: 35px;
        text-align: center;
        font-family: 'Poppins', sans-serif;
    }
    
    /* Search Button */
    .mobile-search-btn-wrapper {
        padding: 15px 20px 25px 20px;
    }
    
    .mobile-search-btn {
        background: var(--mobile-accent-gold) !important;
        border: none !important;
        border-radius: 8px !important;
        color: var(--mobile-text-dark) !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        padding: 18px 20px !important;
        width: 100% !important;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    
    .mobile-search-btn:hover {
        background: #C49A47 !important;
    }
}

/* =====================================================
   LOCATION MODAL
   ===================================================== */
@media (max-width: 767.98px) {
    
    .mobile-location-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px;
    }
    
    .mobile-location-modal.active {
        display: flex;
    }
    
    .mobile-modal-content {
        background: white;
        width: 90%;
        max-width: 400px;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .mobile-modal-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--mobile-text-dark);
    }
    
    .mobile-modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--mobile-text-muted);
        padding: 0;
        line-height: 1;
    }
    
    .mobile-modal-input {
        width: 100%;
        padding: 15px;
        border: 2px solid var(--mobile-divider);
        border-radius: 8px;
        font-size: 16px;
        outline: none;
        transition: border-color 0.2s ease;
    }
    
    .mobile-modal-input:focus {
        border-color: var(--mobile-accent-gold);
    }
    
    .mobile-autocomplete-results {
        max-height: 250px;
        overflow-y: auto;
        margin-top: 10px;
    }
    
    .mobile-autocomplete-item {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid var(--mobile-divider);
        font-size: 14px;
        color: var(--mobile-text-dark);
        transition: background 0.2s ease;
    }
    
    .mobile-autocomplete-item:last-child {
        border-bottom: none;
    }
    
    .mobile-autocomplete-item:hover {
        background: var(--mobile-light-bg);
    }
}

/* =====================================================
   DATE MODAL
   ===================================================== */
@media (max-width: 767.98px) {
    
    .mobile-date-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        align-items: flex-start;
        justify-content: center;
        padding-top: 50px;
    }
    
    .mobile-date-modal.active {
        display: flex;
    }
    
    .mobile-date-content {
        background: white;
        width: 90%;
        max-width: 400px;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-date-row {
        display: flex;
        gap: 15px;
        margin-top: 15px;
    }
    
    .mobile-date-field {
        flex: 1;
    }
    
    .mobile-date-field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--mobile-text-muted);
        text-transform: uppercase;
        margin-bottom: 8px;
    }
    
    .mobile-date-field input {
        width: 100%;
        padding: 12px;
        border: 2px solid var(--mobile-divider);
        border-radius: 8px;
        font-size: 14px;
        outline: none;
    }
    
    .mobile-date-field input:focus {
        border-color: var(--mobile-accent-gold);
    }
    
    .mobile-date-confirm {
        margin-top: 20px;
        background: var(--mobile-accent-gold);
        border: none;
        border-radius: 8px;
        color: var(--mobile-text-dark);
        font-size: 16px;
        font-weight: 700;
        padding: 15px;
        width: 100%;
        cursor: pointer;
    }
    
    .mobile-date-confirm:hover {
        background: #C49A47;
    }
}

/* =====================================================
   KIDS AGES SECTION
   ===================================================== */
@media (max-width: 767.98px) {
    
    .mobile-kids-ages {
        background: #FFFFFF;
        padding: 0;
        display: none;
    }
    
    .mobile-kids-ages.active {
        display: block;
    }
    
    .mobile-kid-row {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 20px;
        border-bottom: 1px solid var(--mobile-divider);
    }
    
    .mobile-kid-row:last-child {
        border-bottom: none;
    }
    
    .mobile-kid-info {
        text-align: left;
        flex-shrink: 0;
    }
    
    .mobile-kid-info .age-label {
        font-size: 12px;
        color: var(--mobile-text-muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }
    
    .mobile-kid-info .kid-name {
        font-size: 20px;
        font-weight: 600;
        color: var(--mobile-text-dark);
    }
    
    .mobile-kid-counter {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px;
        flex-shrink: 0;
    }
    
    .mobile-kid-counter .mobile-counter-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 50%;
        border: 2px solid var(--mobile-border-dark);
        background: transparent;
        color: var(--mobile-text-dark);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .mobile-kid-counter .mobile-counter-value {
        font-size: 28px;
        min-width: 30px;
        text-align: center;
        font-weight: 400;
        color: var(--mobile-text-dark);
    }
}

/* =====================================================
   DESKTOP - HIDE MOBILE ELEMENTS
   ===================================================== */
@media (min-width: 768px) {
    .mobile-hotel-search,
    .mobile-location-modal,
    .mobile-date-modal,
    .mobile-flight-search,
    .mobile-flight-modal {
        display: none !important;
    }
}

/* =====================================================
   FLIGHT SEARCH - MOBILE DESIGN
   ===================================================== */

/* Hide mobile flight search on desktop */
.mobile-flight-search {
    display: none;
}

.mobile-flight-modal {
    display: none;
}

@media (max-width: 767.98px) {
    
    /* Hide desktop flight form and image */
    section.pt-0.pt-lg-5.mt-2 .card.shadow,
    section.pt-0.pt-lg-5.mt-2 .col-lg-10 > img.rounded-3,
    section.pt-0.pt-lg-5.mt-2 .position-lg-middle {
        display: none !important;
    }
    
    section.pt-0.pt-lg-5.mt-2 {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    section.pt-0.pt-lg-5.mt-2 > .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    section.pt-0.pt-lg-5.mt-2 .row {
        margin: 0 !important;
    }
    
    section.pt-0.pt-lg-5.mt-2 .col-lg-10 {
        padding: 0 !important;
    }
    
    /* Hide flatpickr visible date inputs at top */
    .mobile-flight-search .flatpickr-input:not([type="hidden"]),
    .mobile-flight-search input.flatpickr-input,
    .mobile-flight-search .flatpickr-mobile {
        display: none !important;
    }
    
    /* Show mobile flight form */
    .mobile-flight-search {
        display: block !important;
    }
    
    /* ===== TABS SECTION ===== */
    .mobile-flight-tabs {
        background: var(--mobile-dark-bg);
        display: flex;
        justify-content: space-between;
        padding: 15px 20px;
        gap: 10px;
    }
    
    .mobile-flight-tab {
        color: var(--mobile-text-white);
        font-size: 14px;
        font-weight: 500;
        padding: 8px 0;
        cursor: pointer;
        position: relative;
        opacity: 0.7;
        flex: 1;
        text-align: center;
    }
    
    .mobile-flight-tab.active {
        opacity: 1;
    }
    
    .mobile-flight-tab.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--mobile-accent-gold);
    }
    
    /* ===== FROM/TO SECTION ===== */
    .mobile-flight-from-to {
        background: var(--mobile-dark-bg);
        display: flex;
        position: relative;
    }
    
    .mobile-flight-from,
    .mobile-flight-to {
        flex: 1;
        padding: 25px 20px;
        cursor: pointer;
    }
    
    .mobile-flight-from {
        border-right: 1px solid var(--mobile-border-dark);
    }
    
    .mobile-flight-to {
        text-align: right;
    }
    
    .mobile-flight-label {
        color: var(--mobile-text-white);
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .mobile-flight-code {
        color: var(--mobile-text-white);
        font-size: 16px;
        font-weight: 300;
        letter-spacing: 4px;
        margin-bottom: 8px;
    }
    
    .mobile-flight-name {
        color: var(--mobile-accent-gold);
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    /* ===== DEPARTURE DATE SECTION ===== */
    .mobile-flight-date {
        background: var(--mobile-light-bg);
        padding: 25px 20px;
        text-align: center;
        cursor: pointer;
    }
    
    .mobile-flight-date-label {
        color: var(--mobile-text-muted);
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }
    
    .mobile-flight-date-value {
        color: var(--mobile-text-dark);
        font-size: 28px;
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    .mobile-flight-date-month {
        color: var(--mobile-text-muted);
        font-size: 14px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    
    /* ===== RETURN DATE SECTION (for round trip) ===== */
    .mobile-flight-return-date {
        background: var(--mobile-light-bg);
        padding: 25px 20px;
        text-align: center;
        cursor: pointer;
        border-top: 1px solid var(--mobile-divider);
        display: none;
    }
    
    .mobile-flight-return-date.active {
        display: block;
    }
    
    /* ===== PASSENGERS SECTION ===== */
    .mobile-flight-passengers {
        background: #FFFFFF;
    }
    
    .mobile-flight-passenger-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--mobile-divider);
    }
    
    .mobile-flight-passenger-row:last-child {
        border-bottom: none;
    }
    
    .mobile-flight-passenger-info {
        text-align: left;
    }
    
    .mobile-flight-passenger-type {
        font-size: 18px;
        font-weight: 600;
        color: var(--mobile-text-dark);
        margin-bottom: 2px;
    }
    
    .mobile-flight-passenger-age {
        font-size: 13px;
        color: var(--mobile-text-muted);
    }
    
    .mobile-flight-passenger-counter {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-flight-passenger-counter .mobile-counter-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid var(--mobile-border-dark);
        background: transparent;
        color: var(--mobile-text-dark);
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    
    .mobile-flight-passenger-counter .mobile-counter-value {
        font-size: 28px;
        font-weight: 400;
        color: var(--mobile-text-dark);
        min-width: 30px;
        text-align: center;
    }
    
    /* ===== SEARCH BUTTON ===== */
    .mobile-flight-search-btn-wrapper {
        padding: 20px;
        background: #FFFFFF;
    }
    
    .mobile-flight-search-btn {
        background: var(--mobile-light-bg) !important;
        border: none !important;
        border-radius: 8px !important;
        color: var(--mobile-text-dark) !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        padding: 18px 20px !important;
        width: 100% !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .mobile-flight-search-btn:hover {
        background: #DDE1E4 !important;
    }
    
    .mobile-flight-search-btn i {
        font-size: 16px;
    }
}

/* =====================================================
   FLIGHT MODALS - HIDDEN BY DEFAULT
   ===================================================== */
.mobile-flight-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
}

.mobile-flight-modal.active {
    display: flex !important;
}

@media (max-width: 767.98px) {
    
    .mobile-flight-modal-content {
        background: white;
        width: 90%;
        max-width: 400px;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mobile-flight-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .mobile-flight-modal-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--mobile-text-dark);
    }
    
    .mobile-flight-modal-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--mobile-text-muted);
        padding: 0;
        line-height: 1;
    }
    
    .mobile-flight-modal-input {
        width: 100%;
        padding: 15px;
        border: 2px solid var(--mobile-divider);
        border-radius: 8px;
        font-size: 16px;
        outline: none;
    }
    
    .mobile-flight-modal-input:focus {
        border-color: var(--mobile-accent-gold);
    }
    
    .mobile-flight-autocomplete-results {
        max-height: 250px;
        overflow-y: auto;
        margin-top: 10px;
    }
    
    .mobile-flight-autocomplete-item {
        padding: 12px 15px;
        cursor: pointer;
        border-bottom: 1px solid var(--mobile-divider);
        font-size: 14px;
        color: var(--mobile-text-dark);
    }
    
    .mobile-flight-autocomplete-item:hover {
        background: var(--mobile-light-bg);
    }
    
    .mobile-flight-autocomplete-item .airport-code {
        font-weight: 700;
        margin-right: 8px;
    }
}
@media (min-width: 768px) {
    .mobile-hotel-search,
    .mobile-location-modal,
    .mobile-date-modal {
        display: none !important;
    }
}
