/* ===================================================================
   RESPONSIVE.CSS — Mobile-first overrides for Hero + Booking Form
   Breakpoints: 1199px | 991px | 767px | 575px | 479px
   =================================================================== */

/* ──────────────────────────────────────────
   1. LARGE TABLETS (≤ 1199px)
────────────────────────────────────────── */
@media (max-width: 1199px) {

    /* Hero */
    .hero-section-inline > .container {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    /* Booking bar wrapper — allow natural full width */
    .booking-bar-wrapper {
        max-width: 100%;
    }

    /* Fields wrap into rows */
    .booking-fields {
        flex-wrap: wrap;
        gap: 14px;
    }

    .field-group.active {
        flex-wrap: wrap;
        gap: 14px;
    }

    .form-field {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 180px;
    }

    /* Hide divider */
    .field-divider {
        display: none;
    }

    /* Search button full-width in its row */
    .search-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ──────────────────────────────────────────
   2. TABLETS (≤ 991px)
────────────────────────────────────────── */
@media (max-width: 991px) {

    /* Hero */
    .hero-section-inline > .container {
        padding-top: 44px;
        padding-bottom: 50px;
    }

    .hero-content-center {
        margin-bottom: 36px;
    }

    .hero-title {
        font-size: 38px;
        line-height: 1.25;
    }

    .hero-subtitle-main {
        font-size: 17px;
        letter-spacing: 0.5px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 9px 20px;
    }

    /* Booking bar */
    .booking-bar {
        padding: 22px 20px;
        border-radius: 14px;
    }

    /* Trip type tabs — 2 per row (5 tabs → 3+2) */
    .trip-type-selector {
        flex-wrap: wrap;
        gap: 10px;
    }

    .trip-radio {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 0;
    }

    .trip-radio-label {
        padding: 11px 14px;
        font-size: 13px;
        gap: 6px;
    }

    /* Form fields — 2 columns */
    .booking-fields {
        gap: 12px;
    }

    .field-group.active {
        gap: 12px;
    }

    .form-field {
        flex: 1 1 calc(50% - 6px);
    }

    /* Airport dropdown fits full width */
    #fields-airport > .form-field:first-child {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .airport-conditional-fields {
        flex-wrap: wrap;
        gap: 12px;
    }

    .airport-conditional-fields .form-field {
        flex: 1 1 calc(50% - 6px);
    }
}

/* ──────────────────────────────────────────
   3. MOBILE (≤ 767px)
────────────────────────────────────────── */
@media (max-width: 767px) {

    /* Hero section — tighter vertical space */
    .hero-section-inline > .container {
        padding-top: 36px;
        padding-bottom: 36px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-content-center {
        margin-bottom: 28px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
        margin-bottom: 18px;
        /* Prevent badge from overflowing on narrow screens */
        max-width: 90%;
        text-align: center;
        white-space: normal;
        line-height: 1.4;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .hero-subtitle-main {
        font-size: 15px;
        letter-spacing: 0.3px;
    }

    /* Booking bar — flush to container edges */
    .booking-bar-wrapper {
        padding: 0;
    }

    .booking-bar {
        padding: 18px 16px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    /* Trip type tabs — scrollable horizontal row (no wrapping) */
    .trip-type-selector {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 14px;
        margin-bottom: 16px;
        /* Hide scrollbar visually but keep scroll behaviour */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .trip-type-selector::-webkit-scrollbar {
        display: none;
    }

    .trip-radio {
        flex: 0 0 auto;       /* Don't shrink — scroll instead */
        min-width: max-content;
    }

    .trip-radio-label {
        padding: 9px 14px;
        font-size: 13px;
        gap: 6px;
        white-space: nowrap;
        border-radius: 8px;
    }

    .trip-radio-label i {
        font-size: 14px;
    }

    /* Always show tab text — tabs scroll horizontally so no space issue */
    .trip-radio-label span {
        display: inline !important;
        font-size: 12px;
        font-weight: 600;
    }

    /* Form fields — full width stack */
    .booking-fields {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .field-group {
        width: 100%;
    }

    .field-group.active {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
    }

    .form-field {
        flex: unset !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .form-field label {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
        border-radius: 8px;
    }

    .input-wrapper select {
        padding: 12px 40px 12px 42px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Search button — full width, bigger tap target */
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        margin-top: 4px;
    }

    /* Airport fields */
    #fields-airport > .form-field:first-child {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .airport-conditional-fields {
        flex-direction: column;
        gap: 10px;
    }

    .airport-conditional-fields .form-field {
        flex: 1 1 100%;
    }
}

/* ──────────────────────────────────────────
   4. SMALL MOBILE (≤ 575px)
────────────────────────────────────────── */
@media (max-width: 575px) {

    .hero-section-inline > .container {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 7px 14px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle-main {
        font-size: 14px;
    }

    .booking-bar {
        padding: 14px 12px;
        border-radius: 10px;
    }

    /* Keep trip type tabs scrollable at small size */
    .trip-radio-label {
        padding: 8px 12px;
        font-size: 12px;
    }

    .input-wrapper input,
    .input-wrapper select {
        font-size: 13px;
    }

    .search-btn {
        font-size: 14px;
        padding: 13px 18px;
    }
}

/* ──────────────────────────────────────────
   5. EXTRA SMALL (≤ 390px) — Very small phones
────────────────────────────────────────── */
@media (max-width: 390px) {

    .hero-title {
        font-size: 22px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .hero-subtitle-main {
        font-size: 13px;
    }

    .trip-radio-label {
        padding: 7px 10px;
        font-size: 11px;
    }

    .booking-bar {
        padding: 12px 10px;
    }

    .search-btn {
        padding: 12px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
}
