/* ================================================== */
/* 9. SEARCH HERO SECTION                             */
/* ================================================== */

#hero {
    /* Standard Hero Styles inherited or defined elsewhere if needed, 
       but we ensure no yellow override here */
    padding-top: 4rem;
    padding-bottom: 6rem;
    align-items: center;
}


.hero-title {
    color: #333;
    font-size: 36px;
    font-weight: 400;
    /* Normal weight */
    text-align: left;
    margin-top: -35px;
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 100%;
    width: 100%;
}

.hero-title .text-highlight {
    color: #000080;
    font-weight: 700;
    /* Bold highlight */
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 22px;
        margin-bottom: 2rem;
        text-align: left;
        padding: 0 1rem;
        line-height: 30px;
        /* Restored mobile padding */
    }

    .hero-title br {
        display: none;
    }
}

/* Tabs */
.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

.search-tab {
    background: #fff;
    border: 1px solid #000080;
    padding: 8px 20px;
    color: #000080;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50px;
    /* Pill shape */
}

.search-tab.active {
    background-color: #000080;
    color: #fff;
    border-color: #000080;
}

/* Hover only on non-active tabs */
.search-tab:not(.active):hover {
    background-color: rgba(0, 0, 128, 0.05);
}

/* Form Card */
.search-form-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    /* Increased 16px roughly to meet request */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
}

/* Default state for mobile trigger/header */
.mobile-hero-trigger {
    display: none;
}

.mobile-form-header {
    display: none;
}

.search-inputs-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* DESKTOP GRID SYSTEM - THE ULTIMATE FIX */
@media (min-width: 961px) {
    .search-inputs-row {
        display: grid;
        /* 
           Grid Template:
           1. Location: 2 parts
           2. Date: 1.5 parts (STRICTLY FIXED)
           3. Travelers: 1.5 parts
           4. Button: Auto
        */
        grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr) auto;
        gap: 1rem;
        align-items: stretch;
        /* Ensure all inputs are same height */
    }

    /* Reset Flex properties for Grid Children to avoid conflicts */
    .location-group,
    .date-group,
    .travelers-group {
        flex: unset !important;
        width: 100% !important;
        /* Fill the grid cell */
        min-width: 0 !important;
    }

    .search-btn {
        width: auto !important;
        height: 100% !important;
        /* Match input height */
    }
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0;
    position: relative;
    background-color: #fff;
    height: 56px;
}

.input-group:focus-within {
    border-color: #000080;
    box-shadow: 0 0 0 1px #000080;
}

.input-wrapper {
    display: flex;
    align-items: center;
    padding: 0 12px;
    flex: 1;
    height: 100%;
    cursor: pointer;
    position: relative;
    /* For floating label positioning */
}

/* Standard Input (Fallbacks) */
.input-wrapper input:not(.floating-input) {
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    width: 100%;
    background: transparent;
    cursor: inherit;
    font-weight: normal;
}

.input-wrapper.input-disabled {
    opacity: 0.5;
    pointer-events: none;
    background-color: #f9f9f9;
}

.input-wrapper .icon {
    color: #777;
    margin-right: 8px;
    font-size: 20px;
}

/* ============================ */
/* FLOATING LABEL STYLES        */
/* ============================ */
.floating-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding-top: 20px;
    /* Space for label when moved up */
    padding-bottom: 2px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: text;
}

.floating-input::placeholder {
    color: transparent;
    /* Hidden by default */
    transition: color 0.1s;
}

.floating-input:focus::placeholder {
    color: #aaa;
    /* Visible on focus */
}

.floating-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #555;
    pointer-events: none;
    transition: all 0.2s ease;
    line-height: 1;
}

/* Active State: Focus OR Has Value */
.floating-input:focus~.floating-label,
.floating-input:not(:placeholder-shown)~.floating-label {
    top: 8px;

    /* Adjust position to top */
    transform: none;
    font-size: 0.75rem;
    /* Smaller */
    color: #000080;
    /* Active color */
}

/* Specific Groups */
.location-group {
    flex: 2 0 0%;
    /* Rigid flex */
    min-width: 0;
    /* Allow shrink below content if needed to respect flex, though grid handles it */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
}

.swap-locations {
    background: none;
    border: none;
    cursor: pointer;
    color: #000080;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-group {
    flex: 1.5 0 0%;
    /* Rigid flex: force identical size regardless of child */
    min-width: 0;
    /* overflow: hidden; REMOVED to show calendar */
}

/* ======================== */
/* MODE: ONE WAY - FULL WIDTH */
/* ======================== */
/* Since parent .date-group is now RIGID, we just fill it */
#one-way-dates {
    display: flex;
    width: 100%;
    height: 100%;
}

#one-way-dates .input-wrapper {
    width: 100% !important;
    flex: 1 !important;
    max-width: none !important;
}

@media (max-width: 960px) {
    #one-way-dates .input-wrapper:first-child {
        border-bottom: none !important;
    }
}

.date-wrapper {
    flex-direction: row;
    position: relative;
}

.date-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.date-label {
    font-size: 0.7rem;
    color: #777;
    line-height: 1.2;
}

.date-text-group input {
    font-size: 0.9rem;
    padding: 0;
    font-weight: 500;
}

/* Simple divider logic if needed */
.divider {
    width: 1px;
    height: 60%;
    background-color: #ddd;
    margin: 0;
}

/* Travelers Group */
.travelers-group {
    flex: 1.5 0 0%;
    /* Rigid Flex */
    min-width: 0;
    position: relative;
}

.travelers-trigger {
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
}

.travelers-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Travelers Dropdown */
.travelers-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 320px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 2100;
    /* Higher than mobile overlay on mobile, but this is desktop rule block... 
                      Need to be careful. Actually this is desktop block. 
                      Let's leave it 100, and override in media query */
    z-index: 100;
    display: none;
    /* hidden by default */
    cursor: default;
}

.travelers-dropdown.show {
    display: block;
}

.dropdown-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.dropdown-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.dropdown-header p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #777;
}

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

.type-info strong {
    display: block;
    font-size: 1rem;
    color: #333;
}

.type-info span {
    font-size: 0.85rem;
    color: #777;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #000080;
    background: #fff;
    color: #000080;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.counter-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.counter-btn:not(:disabled):hover {
    background-color: #000080;
    color: #fff;
}

.count {
    font-size: 1rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.dropdown-footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.apply-btn {
    background-color: #000080;
    color: #fff;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

/* Search Button */
.search-button {
    background-color: #000080;
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 56px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: auto;
}

.search-button:hover {
    background-color: #000066;
}

/* ============================ */
/* CALENDAR STYLES (NEW)        */
/* ============================ */
.calendar-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    /* Centered */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 200;
    width: 700px;
    /* Adjust for two months */
    display: none;
}

.calendar-dropdown.show {
    display: block;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    /* More space below header */
    padding: 0;
    position: relative;
    /* For absolute positioning of arrows */
    min-height: 40px;
}

.calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    position: absolute;
    /* Take out of flow */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.calendar-nav.prev {
    left: -8px;
}

.calendar-nav.next {
    right: -8px;
}

.calendar-nav:hover {
    background-color: #f5f5f5;
}

.titles-wrapper {
    display: flex;
    width: 100%;
    gap: 32px;
    /* Match calendar grid gap exactly */
    padding: 0;
}

.month-title {
    font-size: 1rem;
    font-weight: 700;
    /* Bold titles */
    color: #000;
    text-align: center;
    flex: 1;
    /* Take equal space matching calendar-month */
}

.calendars-wrapper {
    display: flex;
    gap: 32px;
}

.calendar-month {
    flex: 1;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 16px;
    /* More space */
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 12px;
    /* Increased spacing as requested */
}

.calendar-days div {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    /* Slight round by default */
    font-size: 0.95rem;
    /* Slightly larger */
    position: relative;
    user-select: none;
    color: #333;
    font-weight: 500;
}

.calendar-days div.empty {
    cursor: default;
}

.calendar-days div:not(.empty):hover {
    background-color: #f0f0f0;
    border-radius: 8px;
    /* Hover rect effect matching design */
}

.calendar-days div.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: none !important;
}

/* Range Styles - CUSTOM IMAGE DESIGN */

/* General Selected/Range Base */
.calendar-days div.selected,
.calendar-days div.in-range,
.calendar-days div.in-range-hover {
    background-color: #E6E6FA;
    /* Light Lavender */
    color: #000080;
    /* Dark Blue */
    font-weight: 700;
    border-radius: 0;
}

/* START DATE: DARK Blue Background, White Text */
.calendar-days div.range-start {
    background-color: #000080 !important;
    color: #fff !important;
    border-top-left-radius: 8px;
    /* Always round start side */
    border-bottom-left-radius: 8px;
    z-index: 2;
}

/* END DATE: DARK Blue Background, White Text */
.calendar-days div.range-end,
.calendar-days div.range-end-hover {
    background-color: #000080 !important;
    color: #fff !important;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 3;
}

/* ROW WRAPPING LOGIC: Round edges at start/end of rows (Sun/Sat) */
/* Saturday (7n) - End of row -> Round Right */
.calendar-days div:nth-child(7n) {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Sunday (7n+1) - Start of row -> Round Left */
.calendar-days div:nth-child(7n+1) {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

/* Single Day Selection (Start == End or No End) */
.calendar-days div.rounded-single {
    border-radius: 8px !important;
}

.calendar-days div.range-start.range-end {
    border-radius: 8px;
    /* Full round */
    background-color: #000080 !important;
}

/* Fix overlapping borders/margin */
.calendar-days div {
    margin: 2px 0;
    /* Add slight vertical gap between rows */
    height: 36px;
    /* slightly smaller height to match compact look */
    position: relative;
    /* Ensure z-index works */
}

/* Tooltip for Day Count */
.day-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4a4a5e;
    /* Dark Grey/Purple tone from image */
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: normal;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.day-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #4a4a5e transparent transparent transparent;
}



/* Media Queries */
@media (max-width: 960px) {

    /* HIDE FORM BY DEFAULT ON MOBILE */
    .search-form-card {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* viewport height */
        /* Fallback for browsers that don't support dynamic viewport units */
        height: 100dvh;
        z-index: 2000;
        border-radius: 0;
        overflow-y: auto;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        padding: 0 16px 80px 16px;
        /* Bottom padding for scroll */
        margin: 0;
    }

    .search-form-card.is-mobile-open {
        display: block;
        animation: slideInLeft 0.3s ease-out forwards;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
        }

        to {
            transform: translateX(0);
        }
    }

    @keyframes slideOutLeft {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-100%);
        }
    }

    .slide-out-animation {
        animation: slideOutLeft 0.3s ease-out forwards !important;
    }

    /* MOBILE TRIGGER STYLE */
    .mobile-hero-trigger {
        display: flex;
        align-items: center;
        background-color: #fff;
        border-radius: 10px;
        /* Pill shape */
        padding: 16px 24px;

        /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
        border: 1px #0A00B4 solid;
        cursor: pointer;
        margin: 0 15px;
        width: auto;
        max-width: none;
        transition: transform 0.2s;
    }

    .mobile-hero-trigger:active {
        transform: scale(0.98);
    }

    .mobile-hero-trigger .icon {
        color: #000080;
        margin-right: 12px;
        font-size: 24px;
    }

    .mobile-hero-trigger .text {
        font-size: 1.1rem;
        color: #555;
        font-weight: 500;
    }

    /* MOBILE FORM HEADER */
    .mobile-form-header {
        display: flex;
        align-items: center;
        padding: 16px 0;
        margin-bottom: 24px;
        border-bottom: 1px solid #f0f0f0;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
        width: 100%;
        /* Negative margins to span full width if parent has padding */
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        width: auto;
        /* Let negative margins handle width */
    }

    .mobile-form-header .back-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: -8px;
        /* Align icon visually */
        display: flex;
        align-items: center;
        color: #333;
    }

    .mobile-form-header h3 {
        flex: 1;
        margin: 0;
        font-size: 1.25rem;
        color: #000;
        font-weight: 700;
        margin-left: 12px;
    }

    /* Adjust content inside the modal */
    .search-tabs {
        justify-content: space-between;
        /* Spread tabs */
        margin-bottom: 24px;
    }

    .search-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
        flex: 1;
        text-align: center;
    }

    .search-inputs-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* GENERAL MOBILE GROUP STYLING */
    .location-group,
    .date-group,
    .travelers-group {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: auto;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        background: #fff;
        overflow: hidden;
        /* clean corners */
    }

    /* Reset child wrapper borders/sizes */
    .input-wrapper {
        width: 100% !important;
        height: 68px !important;
        border: none !important;
        padding: 0 16px !important;
        /* Standard padding */
    }

    /* RIGHT ALIGN ICONS ON MOBILE: Calendar and Person */
    .input-wrapper .icon {
        order: 2;
        margin-right: 0;
        margin-left: auto;
        /* Push to right */
    }

    .floating-content,
    .date-text-group,
    .travelers-text {
        order: 1;
        flex: 1;
        /* Take remaining space */
    }

    /* LOCATION GROUP SPECIFICS */
    .location-group {
        position: relative;
        overflow: visible;
        /* For swap button */
        gap: 0;
    }

    .location-group .input-wrapper:first-child {
        border-bottom: none;
        /* We use pseudo-element for custom length */
    }

    /* Short divider for Origin */
    .location-group .input-wrapper:first-child::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 88%;
        /* Stop before swap button */
        height: 1px;
        background-color: #eee;
    }

    /* Swap Button absolute on the right */
    .swap-locations {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        background-color: transparent;
        border: none;
        width: auto;
        height: auto;
        box-shadow: none;
        color: #000080;
        padding: 0;
    }

    .swap-locations .material-symbols-outlined {
        font-size: 24px;
        background-color: #fff;
        padding: 4px 0;
    }

    /* DATE GROUP SPECIFICS */
    .date-group .divider {
        display: none;
    }

    /* Divider for Date Start */
    .date-group .input-wrapper:first-child {
        border-bottom: 1px solid #eee !important;
    }

    /* TRAVELERS GROUP SPECIFICS */
    .travelers-group .travelers-trigger {
        width: 100%;
        height: 60px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .travelers-trigger .icon {
        order: 2;
        margin-right: 0;
        margin-left: auto;
    }

    .travelers-trigger .travelers-text {
        order: 1;
        text-align: left;
    }

    /* Search Button */
    .search-button {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        border-radius: 8px;
    }

    .calendar-dropdown {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0;
        position: fixed;
        top: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        /* Fix double scroll */
        z-index: 2200;
        /* Highest priority */
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        display: none;
        /* flexible logic handles block */
    }

    .calendar-dropdown.show {
        display: flex;
        flex-direction: column;
    }

    /* Top Bar with Back / Title / Reset */
    .calendar-header {
        display: none !important;
        /* Hide original desktop header */
    }

    /* CALENDAR Top Bar */
    .calendar-mobile-top-bar {
        display: flex;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* TRAVELERS Top Bar (Exact Duplicate) */
    .travelers-mobile-top-bar {
        display: flex;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #f0f0f0;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Calendar Title */
    .calendar-mobile-top-bar h3 {
        margin: 0;
        margin-left: 12px;
        font-size: 1.25rem;
        font-weight: 700;
        color: #000;
        flex: 1;
        text-align: left;
    }

    /* Travelers Title */
    .travelers-mobile-top-bar h3 {
        margin: 0;
        margin-left: 12px;
        font-size: 1.25rem;
        font-weight: 700;
        color: #000;
        flex: 1 !important;
        /* FORCE expansion */
        text-align: left;
    }

    /* Calendar Back Button */
    .calendar-mobile-top-bar button:first-child {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: -8px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
    }

    /* Travelers Back Button */
    .travelers-mobile-top-bar button:first-child {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: -8px;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
    }

    /* Calendar Reset Button */
    .calendar-mobile-top-bar button:last-child {
        margin-left: auto;
        font-weight: 600;
        color: #000080;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0.95rem;
        padding: 8px;
    }

    /* Travelers Reset Button */
    .travelers-mobile-top-bar button:last-child {
        margin-left: auto !important;
        /* FORCE right alignment */
        font-weight: 600;
        color: #000080;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0.95rem;
        padding: 8px;
    }

    /* Calendar Icons */
    .calendar-mobile-top-bar .material-symbols-outlined {
        font-size: 24px;
        color: #000;
    }

    /* Travelers Icons */
    .travelers-mobile-top-bar .material-symbols-outlined {
        font-size: 24px;
        color: #000;
    }

    /* Weekdays Sticky Bar */
    .calendar-mobile-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        padding: 12px 16px;
        /* Match grid padding */
        text-align: center;
        font-weight: 500;
        font-size: 0.9rem;
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
        flex-shrink: 0;
    }

    /* Individual Month Header (Mobile Only) */
    .mobile-month-title {
        display: block;
        text-align: center;
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 16px;
        color: #000;
    }

    /* Hide internal grid header */
    .calendar-grid-header {
        display: none;
    }

    .titles-wrapper {
        display: none;
    }

    .calendar-month {
        padding: 24px 16px;
    }



    .calendars-wrapper {
        flex-direction: column;
        gap: 0;
        padding-bottom: 80px;
        flex: 1;
        overflow-y: auto;
        /* This is the only place it should scroll */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
    }

    .titles-wrapper {
        justify-content: space-between;
        padding: 0 10px;
        margin-bottom: 16px;
    }

    /* Close Button for Calendar */
    /* Confirm Button */
    .calendar-close-mobile {
        display: block;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        background-color: #FFD700;
        /* Yellow */
        color: #000;
        border: none;
        padding: 16px;
        border-radius: 8px;
        font-size: 1.4rem;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        z-index: 2300;
    }

    /* Input Spacing Increase */
    /* Input Spacing Increase */
    .floating-input {
        padding-top: 26px;
        /* Move input text down */
        padding-bottom: 10px;
    }

    .floating-input:focus~.floating-label,
    .floating-input:not(:placeholder-shown)~.floating-label {
        top: 10px;
        /* Move label down from top edge */
    }

    .calendar-dropdown {
        width: 100%;
        left: 0;
        transform: none;
        padding: 0;
        position: fixed;
        top: 0;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        /* Fix double scroll */
        z-index: 2200;
        /* Highest priority */
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        display: none;
        /* flexible logic handles block */
        overflow-x: hidden;
    }

    /* ... skipped lines ... */

    .travelers-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100dvh;
        z-index: 2200;
        box-shadow: none;
        border-radius: 0;
        display: none;
        flex-direction: column;
        padding: 0;
        padding-bottom: 90px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Fix for shared header inside zero-padding container */
    .travelers-dropdown .mobile-form-header,
    .travelers-dropdown .calendar-mobile-top-bar {
        margin: 0;
        width: 100%;
    }

    .travelers-dropdown.show {
        display: flex;
        /* Need flex for top bar + content */
        animation: slideInLeft 0.3s ease-out forwards;
    }

    /* COUNTER BUTTONS - Force Round */
    .counter-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        /* Prevent squish */
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .counter-btn:not(:disabled):hover {
        background-color: #000080;
        color: #fff;
        border-radius: 50% !important;
    }

    /* Content adjustments */
    .travelers-dropdown .dropdown-header {
        display: block;
        padding: 24px 16px;
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }

    .travelers-dropdown .dropdown-header h4 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #000;
        margin: 0 0 4px 0;
    }

    .travelers-dropdown .dropdown-header p {
        font-size: 0.9rem;
        color: #333;
        margin: 0;
    }

    .travelers-dropdown .traveler-type {
        padding: 16px 16px;
        border-bottom: 1px solid #f9f9f9;
        margin: 0;
    }



    .travelers-dropdown .dropdown-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        padding: 16px;
        z-index: 2210;
        display: flex;
        justify-content: flex-end;
        /* Align right */
        margin: 0;
    }

    /* Hide the 'Clear' button in footer since we have it in top bar? 
       Or keep it? Usually mobile has top 'Reset'. Hide footer clear. */
    .dropdown-footer .clear-btn {
        display: none;
    }

    /* Mobile Confirm Button (Apply) - SMALL LEFT */
    .dropdown-footer .apply-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: static;
        /* Reset fixed */
        width: auto;
        min-width: 100px;
        height: 48px;
        background-color: #FFD700;
        color: #000;
        font-weight: 700;
        padding: 0 24px;
        border-radius: 8px;
        font-size: 1rem;
        margin: 0;
        box-shadow: none;
        border: none;
    }


    /* Fixed Search Button Mobile */
    .search-button {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: calc(100% - 32px);
        /* Full width minus margins */
        z-index: 2100;
        /* Above everything */
        margin: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .calendar-dropdown.show {
        display: flex;
        flex-direction: column;
        animation: slideInLeft 0.3s ease-out forwards;
    }

}

/* Hide scrollbar for Chrome, Safari and Opera */
.calendars-wrapper::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.calendars-wrapper {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide mobile calendar elements on Desktop (min-width: 961px) */
@media (min-width: 961px) {

    .calendar-close-mobile,
    .calendar-mobile-top-bar,
    .calendar-mobile-weekdays,
    .mobile-month-title,
    .travelers-mobile-top-bar {
        display: none !important;
    }
}

/* ======================== */


/* ======================== */
/* NEW DATE LAYOUT LOGIC    */
/* ======================== */
/* ======================== */
/* NEW DATE LAYOUT LOGIC    */
/* ======================== */
.date-input-container {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

#one-way-dates .input-wrapper {
    width: 100%;
}

@media (max-width: 960px) {

    /* Stack Date Group */
    .date-group {
        flex-direction: column;
        height: auto !important;
        border: 1px solid #ccc;
        /* Outer border */
        border-radius: 8px;
        /* Rounded corners for the container */
        background-color: #fff;
        overflow: hidden;
        /* Ensure children don't overflow corners */
        padding: 0;
    }

    #round-trip-dates {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    /* Wrapper Styles */
    #round-trip-dates .input-wrapper,
    #one-way-dates .input-wrapper {
        width: 100% !important;
        height: 56px;
        padding: 0 16px;
        flex: 0 0 auto !important;
        /* Fixed height */
        display: flex;
        flex-direction: row;
        /* Keep row */
        align-items: center;
    }

    /* Start Date Specifics */
    #start-date-wrapper {
        border-bottom: 1px solid #ddd;
        /* Separator line */
    }

    /* End Date Specifics */
    #end-date-wrapper {
        border-top: none;
    }

    /* Move Icon to Right */
    .date-group .input-wrapper .icon {
        order: 2;
        /* Move to end */
        margin-right: 0;
        margin-left: auto;
        /* Push to right */
        color: #777;
    }

    .date-group .input-wrapper .floating-content {
        order: 1;
        /* Keep content first */
        flex: 1;
    }



    /* Hide the old vertical divider */
    .date-group .divider {
        display: none;
    }

    /* Ensure Date Group doesn't have default border since we add it manually or rely on input-group default? 
       Actually input-group has a border. We might want to remove it or adjust it. 
       .input-group already has border: 1px solid #ccc. 
       If we flex-direction column the .date-group, that border surrounds both. 
       So we just need the internal separator.
    */
    .date-group {
        border: 1px solid #ccc;
        /* Ensure it matches */
    }
}