/* =========================================================
   JustFly Replica - Shared Stylesheet
   Used by: index.html, flight-results.html, booking.html
   ========================================================= */

:root {
    --navy-900: #101c36;
    --navy-800: #16213f;
    --navy-700: #1b2a4e;
    --navy-600: #223564;
    --blue-600: #2f5fe3;
    --blue-700: #2450c9;
    --orange-600: #e8562a;
    --orange-700: #cf4a21;
    --yellow-400: #f6c945;
    --green-600: #1a9c5a;
    --green-50: #e8f8ef;
    --gray-50: #f7f8fa;
    --gray-100: #f0f1f4;
    --gray-200: #e4e6ea;
    --gray-300: #d4d7dd;
    --gray-500: #8a8f98;
    --gray-600: #6b7280;
    --gray-700: #4b5160;
    --gray-900: #1f2430;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.1);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
    cursor: pointer;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Top accent bar ---------- */
.top-bar {
    height: 4px;
    background: var(--navy-900);
}

/* ---------- Header ---------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    position: relative;
    z-index: 40;
}
.site-header.on-hero {
    position: relative;
}
.logo {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.logo span {
    color: var(--yellow-400);
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.header-nav a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}
.header-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}
.currency-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.flag-emoji {
    font-size: 16px;
}
.signin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
}
.signin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Hero (index page) ---------- */
.hero {
    position: relative;
    background:
        linear-gradient(
            120deg,
            rgba(16, 28, 54, 0.92) 10%,
            rgba(16, 28, 54, 0.45) 55%,
            rgba(16, 28, 54, 0.15) 100%
        ),
        url("https://images.pexels.com/photos/1174732/pexels-photo-1174732.jpeg?auto=compress&cs=tinysrgb&w=1600")
            center/cover no-repeat;
    padding-bottom: 70px;
    color: #fff;
}
.hero-inner {
    padding: 10px 32px 0;
}
.hero-title {
    font-size: 34px;
    font-weight: 800;
    margin: 28px 0 6px;
    letter-spacing: -0.5px;
}
.hero-sub {
    font-size: 15px;
    color: #e7ecf7;
    margin: 0 0 26px;
}
.hero-sub b {
    color: #fff;
}

/* ---------- Product Tabs (Flights / Hotels / Cars / Helicopter...) ---------- */
.product-tabs {
    display: flex;
    gap: 4px;
    max-width: 1216px;
    margin: 0 32px;
    background: transparent;
}
.product-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 12px 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    top: 1px;
}
.product-tab svg {
    width: 17px;
    height: 17px;
}
.product-tab.active {
    background: #fff;
    color: var(--navy-900);
}
.product-tab .badge {
    background: var(--yellow-400);
    color: #4a3200;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 2px;
}

/* ---------- Search Card ---------- */
.search-card {
    background: #fff;
    border-radius: 0 14px 14px 14px;
    box-shadow: var(--shadow-lg);
    padding: 22px 24px 24px;
    margin: 0 32px;
}
.trip-row {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-bottom: 16px;
}
.trip-type {
    display: flex;
    gap: 22px;
}
.trip-type button {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 600;
    padding: 8px 0;
}
.trip-type button.active {
    color: var(--gray-900);
    border-bottom: 2px solid var(--navy-900);
}
.cabin-select {
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-fields {
    display: flex;
    align-items: stretch;
    gap: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: visible;
    padding: 4px;
}
.field {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-right: 1px solid var(--gray-200);
}
.field:last-of-type {
    border-right: none;
}
.field .icon {
    color: var(--gray-500);
    flex-shrink: 0;
}
.field-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.field-content label {
    font-size: 11px;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 2px;
}
.field-content input {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    background: transparent;
    width: 100%;
}
.field-content input::placeholder {
    color: var(--gray-500);
    font-weight: 500;
}
.field .clear-x {
    position: absolute;
    right: 10px;
    top: 12px;
    color: var(--gray-500);
    font-size: 14px;
    cursor: pointer;
}
.swap-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    flex-shrink: 0;
}
.search-btn {
    background: var(--blue-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.search-btn:hover {
    background: var(--blue-700);
}

/* ---------- Promo banner ---------- */
.promo-banner {
    background: var(--navy-900);
    color: #fff;
    border-radius: 16px;
    margin: 70px 32px 0;
    padding: 46px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.promo-text .eyebrow {
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--gray-300);
    margin-bottom: 10px;
}
.promo-text h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.25;
}
.promo-text h2 .accent {
    color: var(--yellow-400);
}
.promo-text p {
    color: #d7dbe6;
    font-size: 14px;
    margin: 0 0 22px;
    max-width: 420px;
}
.btn-outline-white {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}
.btn-outline-white:hover {
    background: #fff;
    color: var(--navy-900);
}
.promo-img {
    width: 460px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.promo-img img {
    height: 230px;
    width: 100%;
    object-fit: cover;
}

/* ---------- Section generic ---------- */
.section {
    padding: 60px 32px;
}
.section-head h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
}
.section-head p {
    color: var(--gray-600);
    font-size: 15px;
    margin: 0 0 30px;
}

/* ---------- Trending destinations ---------- */
.trend-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 16px;
}
.trend-item-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 220px;
}
.trend-route {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14.5px;
}
.trend-dates {
    color: var(--gray-600);
    font-size: 13px;
    margin-left: 20px;
}
.price-pill {
    align-self: flex-start;
    border: 1.5px solid var(--orange-600);
    color: var(--orange-600);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 20px;
}
.price-pill b {
    font-weight: 800;
}
.trend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}
.trend-card {
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
}
.trend-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-arrow {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--gray-200);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--gray-600);
}
.fine-print {
    color: var(--gray-500);
    font-size: 12.5px;
    margin-top: 18px;
}

/* ---------- Why book cards ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.why-card {
    background: var(--gray-100);
    border-radius: 14px;
    padding: 28px;
}
.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: #fff;
}
.why-card h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 10px;
}
.why-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Helicopter Charter tab content ---------- */
.heli-hero-note {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #fff;
    font-size: 13px;
    margin-top: 14px;
    opacity: 0.9;
}
.heli-section {
    padding: 56px 32px;
    background: var(--gray-50);
}
.heli-locations {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 10px;
}
.heli-loc-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.heli-loc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.heli-loc-img {
    height: 150px;
    overflow: hidden;
}
.heli-loc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heli-loc-body {
    padding: 14px 16px 18px;
}
.heli-loc-body h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}
.heli-loc-body span {
    font-size: 12.5px;
    color: var(--gray-600);
}

.heli-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 10px;
}
.heli-pkg-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.heli-pkg-img {
    height: 180px;
    position: relative;
}
.heli-pkg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.heli-pkg-price-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--navy-900);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}
.heli-pkg-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.heli-pkg-body h4 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
}
.heli-pkg-body p {
    margin: 0;
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.5;
    flex: 1;
}
.heli-pkg-meta {
    display: flex;
    gap: 14px;
    font-size: 12.5px;
    color: var(--gray-700);
}
.heli-pkg-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-heli-select {
    background: var(--orange-600);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}
.btn-heli-select:hover {
    background: var(--orange-700);
}

.heli-form-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 22px 24px;
    margin: 0 32px;
}
.heli-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr auto;
    gap: 10px;
    align-items: stretch;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 4px;
}
.heli-form-grid .field {
    border-right: 1px solid var(--gray-200);
}
.heli-form-grid .field:last-of-type {
    border-right: none;
}

.heli-fleet {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.heli-fleet-card {
    text-align: center;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 26px 18px;
}
.heli-fleet-card .ic {
    font-size: 32px;
    margin-bottom: 12px;
}
.heli-fleet-card h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}
.heli-fleet-card p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
}

.heli-form-grid .field-content {
    position: relative;
    min-width: 0;
}

.heli-airport-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.heli-airport-results.hidden {
    display: none !important;
}

.heli-airport-results .airport-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 15px;
    border: 0;
    border-bottom: 1px solid var(--gray-100);
    background: #fff;
    color: var(--gray-900);
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.heli-airport-results .airport-option:last-child {
    border-bottom: 0;
}

.heli-airport-results .airport-option:hover {
    background: var(--gray-50);
}

.heli-airport-results .airport-option strong {
    min-width: 48px;
    color: var(--blue-600);
    font-weight: 700;
}

.heli-airport-results .airport-option span {
    color: var(--gray-700);
}

.heli-airport-results .airport-empty {
    padding: 14px 15px;
    color: var(--gray-600);
    font-size: 13px;
}

/* ---------- Newsletter ---------- */
.newsletter {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 36px 60px;
    gap: 30px;
    flex-wrap: wrap;
}
.newsletter-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
.newsletter-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}
.newsletter-left h3 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 4px;
}
.newsletter-left p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.newsletter-input-row {
    display: flex;
    gap: 10px;
}
.newsletter-input-row input {
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 14px;
    width: 300px;
    outline: none;
}
.btn-signup {
    background: #29b6d8;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 700;
    font-size: 14px;
}
.newsletter-links {
    font-size: 12px;
    color: var(--gray-600);
    display: flex;
    gap: 16px;
}
.newsletter-links a {
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0c1324;
    color: #fff;
    padding: 50px 60px 26px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo {
    font-size: 24px;
    font-weight: 800;
}
.social-icons {
    display: flex;
    gap: 14px;
}
.social-icons a {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 34px 0;
}
.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: #aeb4c4;
    margin-bottom: 10px;
}
.footer-col a:hover {
    color: #fff;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12.5px;
    color: #9aa0b0;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-links {
    display: flex;
    gap: 22px;
}

/* =========================================================
   RESULTS PAGE
   ========================================================= */
.results-header {
    background: var(--navy-900);
    padding: 16px 32px;
}
.results-header .site-header {
    padding: 0 0 14px;
}
.results-search-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--navy-900);
}
.rs-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: none;
    border: none;
}
.rs-pill svg {
    width: 14px;
    height: 14px;
}
.rs-fields {
    flex: 1;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.rs-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-right: 1px solid var(--gray-200);
    flex: 1;
    position: relative;
}
.rs-field:last-child {
    border-right: none;
    flex: 0 0 auto;
}
.rs-field label {
    display: block;
    font-size: 10.5px;
    color: var(--gray-500);
    font-weight: 700;
}
.rs-field .val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gray-900);
}
.rs-field .icon {
    color: var(--gray-500);
}
.rs-swap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gray-600);
}
.rs-search-btn {
    background: var(--blue-600);
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
}

.results-body {
    display: flex;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 32px 70px;
    align-items: flex-start;
}
.results-sidebar {
    width: 270px;
    flex-shrink: 0;
}
.fare-alert-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--gray-300);
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}
.filter-status {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 18px;
}
.filter-status.searching {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-block {
    border-top: 1px solid var(--gray-200);
    padding: 18px 0;
}
.filter-block:first-of-type {
    border-top: none;
}
.filter-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
}
.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13.5px;
}
.filter-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-800);
    cursor: pointer;
}
.filter-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
}
.filter-row .fprice {
    color: var(--gray-600);
}
.show-more {
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
}
.airline-logo-sm {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.switch {
    position: relative;
    width: 38px;
    height: 22px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-el {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--gray-300);
    border-radius: 999px;
    transition: 0.2s;
}
.slider-el:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}
.switch input:checked + .slider-el {
    background: var(--navy-600);
}
.switch input:checked + .slider-el:before {
    transform: translateX(16px);
}
.range-slider {
    width: 100%;
    margin: 14px 0 6px;
}
.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-600);
}
.tabs-sub {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.tabs-sub button {
    flex: 1;
    background: var(--gray-100);
    border: none;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
}
.tabs-sub button.active {
    background: var(--navy-900);
    color: #fff;
}

.results-main {
    flex: 1;
    min-width: 0;
}
.agent-strip {
    background: #eaf0fd;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.agent-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.agent-left strong {
    font-size: 14.5px;
    display: block;
}
.agent-left span {
    font-size: 13px;
    color: var(--gray-600);
}
.agent-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy-900);
    font-size: 14.5px;
}
.agent-close {
    color: var(--gray-500);
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
}

.date-strip {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}
.date-cell {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-700);
}
.date-cell:last-child {
    border-right: none;
}
.date-cell .d {
    font-weight: 700;
    margin-bottom: 4px;
}
.date-cell .p {
    font-weight: 700;
}
.date-cell.cheap .p {
    color: var(--green-600);
}
.date-cell.active {
    background: var(--gray-50);
    border-bottom: 3px solid var(--navy-900);
}

.sort-tabs {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}
.sort-tab {
    flex: 1;
    text-align: center;
    padding: 14px;
    border-right: 1px solid var(--gray-200);
    background: #fff;
}
.sort-tab:last-child {
    border-right: none;
}
.sort-tab.active {
    background: var(--gray-50);
    box-shadow: inset 0 -3px 0 var(--navy-900);
}
.sort-tab .lbl {
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
.sort-tab .amt {
    font-size: 16px;
    font-weight: 800;
    margin-top: 2px;
}

.flight-card {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 16px;
    background: #fff;
    overflow: hidden;
}
.flight-card.highlight {
    border-color: var(--blue-600);
}
.flight-card-top {
    display: flex;
    align-items: stretch;
}
.flight-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 22px;
}
.airline-logo {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}
.flight-times {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}
.flight-times .time {
    font-size: 14px;
    font-weight: 800;
}
.flight-times .sup {
    font-size: 11px;
    vertical-align: super;
    color: var(--blue-600);
}
.route-line {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
}
.route-dots {
    width: 100%;
    height: 1px;
    background: var(--gray-300);
    position: relative;
    margin: 4px 0;
}
.route-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray-500);
    position: absolute;
    top: -2px;
}
.route-stops-label {
    font-size: 11.5px;
    color: var(--gray-600);
}
.flight-route-code {
    font-size: 12px;
    color: var(--gray-500);
}
.flight-meta {
    min-width: 150px;
}
.flight-meta .airport {
    font-size: 13px;
    font-weight: 600;
}
.flight-meta .airline-name {
    font-size: 12.5px;
    color: var(--gray-600);
}
.flight-duration {
    min-width: 140px;
    text-align: right;
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.flight-price-box {
    width: 230px;
    flex-shrink: 0;
    border-left: 1px solid var(--gray-200);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    background: #fff;
}
.flight-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--blue-600);
}
.flight-price sup {
    font-size: 12px;
}
.taxes-note {
    font-size: 11.5px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}
.affirm {
    font-size: 11.5px;
    color: var(--blue-600);
}
.btn-ghost-blue {
    width: 100%;
    background: #eaf0fd;
    color: var(--navy-700);
    border: none;
    padding: 9px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.btn-select {
    width: 100%;
    background: var(--orange-600);
    color: #fff;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
}
.btn-select:hover {
    background: var(--orange-700);
}
.flight-card-bottom {
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
}
.flight-details-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-700);
    font-size: 13.5px;
    font-weight: 600;
    background: none;
    border: none;
}
.included-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--green-50);
    color: var(--green-600);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}
.left-badge {
    background: #fdeeea;
    color: var(--orange-600);
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.flight-segments {
    padding: 4px 22px 18px;
}
.segment {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--gray-200);
    align-items: center;
}
.segment:last-of-type {
    border-bottom: none;
}
.segment .seg-airline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}
.segment .seg-airline img {
    width: 26px;
    height: 26px;
    border-radius: 5px;
}
.segment .seg-airline .name {
    font-size: 13.5px;
    font-weight: 700;
}
.segment .seg-airline .flt {
    font-size: 12px;
    color: var(--gray-600);
}
.segment .seg-time {
    min-width: 230px;
    font-size: 13px;
}
.segment .seg-time .t1 {
    font-weight: 700;
}
.segment .seg-cabin {
    margin-left: auto;
    text-align: right;
    font-size: 12.5px;
    color: var(--gray-700);
}
.layover-note {
    font-size: 12.5px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 6px 176px;
}
.trip-total {
    font-size: 13px;
    color: var(--gray-700);
    padding-top: 10px;
}

.promo-strip {
    background: var(--green-50);
    border: 1px solid #bfe8cf;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.promo-strip-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--gray-800);
}
.promo-strip a {
    color: var(--green-600);
    font-weight: 700;
    text-decoration: underline;
}
.bundle-strip {
    background: var(--navy-900);
    color: #fff;
    border-radius: 10px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
}
.bundle-strip-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bundle-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--yellow-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.bundle-strip strong {
    font-size: 14.5px;
}
.bundle-strip p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #cbd2e5;
}
.btn-bundle {
    background: var(--yellow-400);
    color: #4a3200;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
}

/* ---- Loading overlay ---- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 28, 54, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.loading-overlay.hidden {
    display: none;
}
.loading-card {
    background: #fff;
    border-radius: 16px;
    padding: 34px 30px;
    width: 420px;
    max-width: 90vw;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.loading-card h3 {
    margin: 0 0 20px;
    font-size: 19px;
    font-weight: 800;
}
.loading-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.loading-route .ap {
    flex: 1;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
}
.loading-route .plane-ic {
    color: var(--navy-700);
}
.loading-bar-track {
    height: 7px;
    width: 100%;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}
.loading-bar-fill {
    height: 100%;
    width: 30%;
    background: var(--blue-600);
    border-radius: 999px;
    animation: loadbar 2.2s ease-in-out infinite;
}
@keyframes loadbar {
    0% {
        width: 5%;
        margin-left: 0;
    }
    50% {
        width: 70%;
        margin-left: 10%;
    }
    100% {
        width: 5%;
        margin-left: 95%;
    }
}
.loading-sub {
    font-size: 12.5px;
    color: var(--gray-500);
}
.status-toast {
    position: fixed;
    left: 0;
    bottom: 0;
    background: #333;
    color: #fff;
    font-size: 12.5px;
    padding: 8px 14px;
    z-index: 210;
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 28, 54, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
    z-index: 150;
    overflow-y: auto;
}
.modal-overlay.hidden {
    display: none;
}
.modal-box {
    background: #fff;
    border-radius: 8px;
    width: 900px;
    max-width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-head h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-600);
    cursor: pointer;
}
.modal-depart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px 0;
}
.depart-chip {
    background: var(--navy-900);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}
.modal-flight-summary {
    padding: 14px 26px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mfs-left {
    font-size: 22px;
    font-weight: 800;
}
.mfs-left small {
    font-size: 12px;
    color: var(--blue-600);
    vertical-align: super;
}
.mfs-mid {
    color: var(--gray-600);
    font-size: 13px;
}
.mfs-right {
    text-align: right;
    font-size: 13px;
    color: var(--gray-600);
}
.modal-details-toggle {
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    color: var(--blue-700);
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}
.modal-segments {
    padding: 10px 26px;
}
.fare-cards-wrap {
    position: relative;
    padding: 18px 26px;
}
.fare-cards {
    display: flex;
    gap: 16px;
    overflow: hidden;
}
.fare-card {
    flex: 1;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    min-width: 220px;
    position: relative;
    cursor: pointer;
}
.fare-card.selected {
    border-color: var(--blue-600);
}
.fare-card .fc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.fare-card .fc-name {
    font-weight: 800;
    font-size: 15px;
}
.fare-card .fc-cabin {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 10px;
}
.fare-card .fc-price {
    font-size: 19px;
    font-weight: 800;
}
.fare-card .fc-price sup {
    font-size: 11px;
}
.fare-card .radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fare-card.selected .radio-dot {
    border-color: var(--blue-600);
    background: var(--blue-600);
    color: #fff;
}
.fc-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: 12.5px;
    color: var(--gray-700);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.fc-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}
.fc-list li.no:before {
    content: "✕";
    color: #c0392b;
}
.fc-list li.yes:before {
    content: "✓";
    color: var(--green-600);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.carousel-btn.left {
    left: 4px;
}
.carousel-btn.right {
    right: 4px;
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    border-top: 1px solid var(--gray-200);
    position: sticky;
    bottom: 0;
    background: #fff;
}
.modal-footer .mf-price {
    font-size: 22px;
    font-weight: 800;
}
.modal-footer .mf-price small {
    font-size: 11.5px;
    color: var(--gray-500);
    display: block;
    font-weight: 500;
}
.btn-checkout {
    background: var(--blue-600);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-checkout:hover {
    background: var(--blue-700);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

@media (max-width: 1100px) {
    .footer-cols {
        grid-template-columns: repeat(3, 1fr);
    }
    .trend-grid,
    .why-grid,
    .heli-packages {
        grid-template-columns: repeat(1, 1fr);
    }
    .heli-locations {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   JUSTFLY HERO - MOBILE RESPONSIVE FIX
========================================== */

@media (max-width: 640px) {
    .hero {
        width: 100%;
        overflow-x: clip;
        padding-bottom: 45px;
    }

    /* Consistent page alignment */
    .hero .site-header,
    .hero .hero-inner,
    .hero .product-tabs,
    .hero > [data-tab-panel="flights"],
    .hero > [data-tab-panel="heli"] {
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Header */
    .hero .site-header {
        padding: 18px 0 !important;
        gap: 10px;
    }

    .hero .logo {
        font-size: 23px;
        flex-shrink: 0;
    }

    .hero .header-nav {
        gap: 10px;
        min-width: 0;
    }

    .hero .header-nav a {
        font-size: 12px;
    }

    .hero .currency-pill {
        font-size: 12px;
        gap: 4px;
    }

    .hero .signin-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* Hero heading */
    .hero .hero-inner {
        padding: 25px 0 20px !important;
    }

    .hero .hero-title {
        font-size: clamp(27px, 7vw, 34px);
        line-height: 1.2;
        margin: 12px 0 8px;
    }

    .hero .hero-sub {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 25px;
    }

    /* Product tabs */
    .hero .product-tabs {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .hero .product-tabs::-webkit-scrollbar {
        display: none;
    }

    .hero .product-tab {
        flex: 0 0 auto !important;
        padding: 11px 14px;
        font-size: 13px;
        white-space: nowrap;
        margin: 0 !important;
    }

    /* Flight panel */
    .hero > [data-tab-panel="flights"] {
        padding: 0 !important;
        margin-top: 10px !important;
    }

    #flightSearchForm.search-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 15px !important;
        border-radius: 0 14px 14px 14px;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #flightSearchForm .search-fields {
        overflow: visible !important;
    }

    #flightSearchForm .passenger-field {
        position: relative;
        z-index: 20;
    }

    #flightSearchForm .passenger-dropdown {
        z-index: 999;
    }

    /* Trip type */
    #flightSearchForm .trip-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 15px;
    }

    #flightSearchForm .trip-type {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        width: 100%;
    }

    #flightSearchForm .trip-type button {
        width: 100%;
        min-width: 0;
        padding: 10px 3px;
        font-size: 12px;
        white-space: nowrap;
    }

    #flightSearchForm .cabin-select {
        font-size: 13px;
        align-self: flex-start;
    }

    /* Flight fields */
    #flightSearchForm .search-fields {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 4px !important;
        border-radius: 12px;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #flightSearchForm .search-fields > .field {
        display: flex;
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 68px;
        padding: 12px 10px;
        border-right: none !important;
        border-bottom: 1px solid var(--gray-200);
        box-sizing: border-box !important;
    }

    #flightSearchForm .field-content {
        flex: 1;
        min-width: 0;
        width: 100%;
    }

    #flightSearchForm .field-content label {
        font-size: 11px;
    }

    #flightSearchForm .field-content input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: 14px;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    #flightSearchForm .field .clear-x {
        right: 10px;
    }

    /* Airport swap */
    #flightSearchForm .swap-btn {
        align-self: center;
        flex-shrink: 0;
        margin: -5px 0;
        transform: rotate(90deg);
        z-index: 2;
    }

    /* Search button */
    #flightSearchForm .search-fields > .search-btn {
        width: 100% !important;
        min-height: 50px;
        padding: 12px;
        justify-content: center;
        margin-top: 5px;
        box-sizing: border-box;
    }

    /* Helicopter form */
    .hero > [data-tab-panel="heli"] {
        margin-top: 10px;
    }

    .hero .heli-form-card {
        width: 100%;
        margin: 0;
        padding: 15px;
        box-sizing: border-box;
    }

    .hero .heli-form-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .hero .heli-form-grid .field {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .hero .heli-form-grid .search-btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .hero .heli-hero-note {
        align-items: flex-start;
        line-height: 1.5;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero .site-header,
    .hero .hero-inner,
    .hero .product-tabs,
    .hero > [data-tab-panel="flights"],
    .hero > [data-tab-panel="heli"] {
        width: calc(100% - 24px) !important;
    }

    .hero .header-nav {
        gap: 7px;
    }

    .hero .header-nav a {
        font-size: 11px;
    }

    .hero .logo {
        font-size: 21px;
    }

    #flightSearchForm.search-card {
        padding: 11px !important;
    }

    #flightSearchForm .trip-type button {
        font-size: 11px;
    }
}

#flightsExtraSections .promo-banner,
#flightsExtraSections .section {
    width: calc(100% - 40px);
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ==========================================
   DESKTOP CONTENT WIDTH - MAX-W-7XL
========================================== */

@media (min-width: 641px) {
    :root {
        --content-width: 80rem;
        --page-gutter: 32px;
    }

    .hero .site-header,
    .hero .hero-inner,
    .hero .product-tabs,
    .hero > [data-tab-panel="flights"],
    .hero > [data-tab-panel="heli"],
    #flightsExtraSections .promo-banner,
    #flightsExtraSections .section {
        width: calc(100% - 64px);
        max-width: 80rem;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Remove original horizontal offsets */
    .hero .site-header {
        padding-left: 0;
        padding-right: 0;
    }

    .hero .hero-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .hero .product-tabs {
        padding-left: 0;
        padding-right: 0;
    }

    /* Flight search card fills its 80rem container */
    .hero .search-card,
    .hero .heli-form-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    /* Sections use the same outer width */
    #flightsExtraSections .promo-banner {
        margin-top: 70px;
    }

    #flightsExtraSections .section {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ==========================================
   HELICOPTER CONTENT - MAX-W-7XL
========================================== */

@media (min-width: 641px) {
    #heliExtraSections > .heli-section,
    #heliExtraSections > .section {
        width: calc(100% - 64px);
        max-width: 80rem;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Preserve vertical spacing without extra horizontal padding */
    #heliExtraSections > .heli-section {
        padding: 56px 0;
    }

    #heliExtraSections > .section {
        padding: 60px 0;
    }

    #heliExtraSections > .section[style*="padding-top:0"] {
        padding-top: 0;
    }

    /* Keep grids within the content width */
    #heliExtraSections .heli-locations,
    #heliExtraSections .heli-packages,
    #heliExtraSections .heli-fleet {
        width: 100%;
        min-width: 0;
    }
}

.passenger-field {
    position: relative;
    min-width: 0;
    overflow: visible !important;
}

.passenger-content {
    position: relative;
    min-width: 0;
}

.passenger-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent;
    color: var(--gray-900);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.passenger-trigger i {
    font-size: 11px;
    color: var(--gray-600);
}

.passenger-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 270px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(16, 28, 54, 0.16);
    z-index: 200;
}

.passenger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f3;
}

.passenger-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.passenger-row strong {
    color: var(--gray-900);
    font-size: 13px;
}

.passenger-row small {
    color: var(--gray-500);
    font-size: 11px;
}

.passenger-row select {
    width: 65px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--gray-200);
    border-radius: 7px;
    background: #fff;
    color: var(--gray-900);
    font-size: 13px;
    outline: none;
}

.passenger-row select:focus {
    border-color: var(--blue-600);
}

.passenger-done {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: var(--blue-600);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.passenger-done:hover {
    background: var(--blue-700);
}

#flightSearchForm .field-content input,
#flightSearchForm .field-content input:hover,
#flightSearchForm .field-content input:focus,
#flightSearchForm .field-content input:active {
    border: 0 !important;
    border-bottom: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
    text-decoration: none !important;
    appearance: none;
    -webkit-appearance: none;
}

#flightSearchForm .field-content::before,
#flightSearchForm .field-content::after {
    display: none !important;
    content: none !important;
}

.trip-type {
    display: flex;
    align-items: center;
    gap: 22px;
}

.trip-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    padding: 8px 0;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.trip-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.trip-option.active {
    color: var(--gray-900);
}

.trip-option.active span {
    border-bottom: 2px solid var(--navy-900);
    padding-bottom: 7px;
}

@media (max-width: 640px) {
    #flightSearchForm .trip-type {
        display: flex !important;
        flex-direction: row;
        justify-content: flex-start;
        gap: 24px;
    }

    #flightSearchForm .trip-option {
        width: auto;
        font-size: 13px;
    }
}

.hidden {
    display: none !important;
}

#flightSearchForm .field-content {
    position: relative;
}

#flightSearchForm #origin_results,
#flightSearchForm #destination_results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 240px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

#flightSearchForm .airport-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 0 !important;
    cursor: pointer;
}

#flightSearchForm .airport-option:hover {
    background: #f0f5ff;
}

#flightSearchForm .airport-option strong {
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 700;
}

#flightSearchForm .airport-option span {
    color: var(--gray-700);
    font-size: 13px;
}

/* ---------- Flight amenities and baggage ---------- */

.flight-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.flight-extra-section {
    min-width: 0;
    padding-right: 16px;
    border-right: 1px solid var(--gray-200);
}

.flight-extra-section.baggage-section {
    padding-right: 0;
    padding-left: 4px;
    border-right: none;
}

.flight-extra-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--gray-200);
}

.flight-extra-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eaf0fd;
    color: var(--blue-600);
    font-size: 14px;
}

.flight-extra-icon.baggage-icon {
    background: #e8f8ef;
    color: var(--green-600);
}

.flight-extra-heading h4 {
    margin: 0;
    color: var(--navy-900);
    font-size: 13.5px;
    font-weight: 800;
}

.flight-extra-heading p {
    margin: 3px 0 0;
    color: var(--gray-500);
    font-size: 11px;
}

.flight-extra-items {
    display: flex;
    flex-direction: column;
}

.flight-extra-item {
    min-height: 37px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(228, 230, 234, 0.75);
    font-size: 12px;
}

.flight-extra-item:last-child {
    border-bottom: none;
}

.extra-item-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-weight: 500;
}

.extra-item-label i {
    width: 15px;
    color: var(--gray-500);
    text-align: center;
    font-size: 12px;
}

.extra-item-value {
    color: var(--gray-900);
    font-size: 11.5px;
    font-weight: 700;
    text-align: right;
}

.extra-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.extra-status.available,
.baggage-included {
    color: var(--green-600);
}

.extra-status.unknown {
    color: var(--gray-500);
    font-weight: 500;
}

.baggage-included i {
    margin-right: 3px;
    font-size: 11px;
}

@media (max-width: 600px) {
    .flight-extras {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .flight-extra-section {
        padding-right: 10px;
    }

    .flight-extra-section.baggage-section {
        padding-left: 2px;
    }

    .flight-extra-heading {
        gap: 7px;
    }

    .flight-extra-icon {
        width: 29px;
        height: 29px;
        font-size: 12px;
    }

    .flight-extra-heading h4 {
        font-size: 12px;
    }

    .flight-extra-heading p {
        font-size: 10px;
    }

    .flight-extra-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }

    .extra-item-value,
    .extra-status {
        padding-left: 23px;
        text-align: left;
        font-size: 10.5px;
    }
}

@media (max-width: 360px) {
    .flight-extras {
        gap: 7px;
        padding: 9px;
    }

    .flight-extra-section {
        padding-right: 7px;
    }

    .extra-item-label {
        font-size: 10.5px;
    }
}

/* Flight refund status */
.flight-refund-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 10px;
}

.refund-status-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 15px;
}

.refund-status-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.refund-status-title {
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.4;
}

.refund-status-description {
    font-size: 11.5px;
    line-height: 1.5;
}

.flight-refund-status.is-refundable {
    background: #f0faf4;
    border-color: #ccebd8;
}

.flight-refund-status.is-refundable .refund-status-icon {
    background: #dcf5e6;
    color: var(--green-600);
}

.flight-refund-status.is-refundable .refund-status-title {
    color: #147a43;
}

.flight-refund-status.is-refundable .refund-status-description {
    color: #43815d;
}

.flight-refund-status.is-non-refundable {
    background: #fff8f1;
    border-color: #f5dfc9;
}

.flight-refund-status.is-non-refundable .refund-status-icon {
    background: #ffedda;
    color: var(--orange-600);
}

.flight-refund-status.is-non-refundable .refund-status-title {
    color: #b94b20;
}

.flight-refund-status.is-non-refundable .refund-status-description {
    color: #95664d;
}

/* No flights found */
.flight-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 35px 25px;
    margin: 20px 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.flight-empty-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #fff2e9;
    color: var(--orange-600);
    font-size: 23px;
}

.flight-empty-content {
    max-width: 420px;
}

.flight-empty-content h3 {
    margin: 0 0 6px;
    color: var(--navy-900);
    font-size: 16px;
    font-weight: 800;
}

.flight-empty-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .flight-refund-status {
        align-items: flex-start;
        padding: 10px 12px;
    }

    .refund-status-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .refund-status-title {
        font-size: 12px;
    }

    .refund-status-description {
        font-size: 11px;
    }

    .flight-empty-state {
        flex-direction: column;
        gap: 13px;
        padding: 28px 18px;
        text-align: center;
    }

    .flight-empty-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .flight-empty-content h3 {
        font-size: 15px;
    }

    .flight-empty-content p {
        font-size: 12px;
    }
}

/* Individual flight legs */
.segment-leg {
    padding: 18px 20px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
}

.segment-leg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.segment-leg-number {
    padding: 5px 9px;
    border-radius: 6px;
    background: #edf2ff;
    color: var(--blue-700);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.segment-leg-airline {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 700;
}

.segment-leg-airline img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.segment-leg-airline small {
    display: block;
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 10px;
    font-weight: 500;
}

.segment-leg-duration {
    color: var(--gray-600);
    font-size: 11px;
    white-space: nowrap;
}

.segment-leg-duration i {
    margin-right: 4px;
}

.segment-leg-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.segment-leg-point {
    min-width: 0;
}

.segment-leg-time {
    margin-bottom: 7px;
    color: var(--navy-900);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.segment-leg-airport strong {
    display: block;
    color: var(--blue-700);
    font-size: 15px;
    font-weight: 800;
}

.segment-leg-airport span {
    display: block;
    margin-top: 3px;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 600;
}

.segment-leg-airport small {
    display: block;
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 10px;
    line-height: 1.4;
}

.segment-leg-date {
    margin-top: 8px;
    color: var(--gray-500);
    font-size: 10px;
}

.arrival-point {
    text-align: right;
}

.segment-leg-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.segment-leg-line {
    height: 1px;
    flex: 1;
    background: var(--gray-300);
}

.segment-leg-connector > span {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: var(--gray-50);
    color: var(--blue-600);
    font-size: 11px;
}

.segment-leg-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 13px;
    margin-top: 15px;
    border-top: 1px solid var(--gray-100);
}

.segment-leg-footer span {
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
}

.segment-leg-footer i {
    margin-right: 5px;
    color: var(--gray-500);
}

/* Layover between flight legs */
.segment-layover {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    margin: 0 20px;
    background: #fff9ed;
    border: 1px solid #f5e4bf;
    border-top: none;
    border-bottom: none;
}

.segment-layover-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff0ce;
    color: #bd801b;
    font-size: 13px;
}

.segment-layover-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.segment-layover-content strong {
    color: #966114;
    font-size: 11px;
    font-weight: 800;
}

.segment-layover-content span {
    color: #9b7a4c;
    font-size: 11px;
}

@media (max-width: 600px) {
    .segment-leg {
        padding: 14px 12px;
    }

    .segment-leg-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .segment-leg-airline {
        min-width: 130px;
    }

    .segment-leg-route {
        grid-template-columns: minmax(0, 1fr) 45px minmax(0, 1fr);
        gap: 6px;
    }

    .segment-leg-time {
        font-size: 20px;
    }

    .segment-leg-airport strong {
        font-size: 13px;
    }

    .segment-leg-airport span {
        font-size: 11px;
    }

    .segment-leg-airport small {
        font-size: 9px;
    }

    .segment-leg-connector {
        gap: 2px;
    }

    .segment-leg-connector > span {
        width: 23px;
        height: 23px;
        font-size: 10px;
    }

    .segment-layover {
        margin: 0 10px;
        padding: 11px;
    }
}

.loading-route .ap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loading-route .ap strong {
    color: var(--navy-900);
    font-size: 20px;
    font-weight: 800;
}

.loading-route .ap small {
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 500;
}

.loading-extra {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
}

.loading-divider {
    color: var(--gray-300);
}

.loading-overlay.active {
    display: flex;
}

/* Manage Booking */
[data-tab-panel="hotels"] {
    width: 100%;
    padding: 24px 16px;
}

[data-tab-panel="hotels"] .search-card {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(45, 54, 87, 0.05);
}

[data-tab-panel="hotels"] .manage-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 190px;
    gap: 18px;
    align-items: end;
}

[data-tab-panel="hotels"] label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

[data-tab-panel="hotels"] input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-size: 14px;
    color: #2d3657;
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

[data-tab-panel="hotels"] input:focus {
    outline: none;
    border-color: #2d3657;
    box-shadow: 0 0 0 3px rgba(45, 54, 87, 0.1);
}

[data-tab-panel="hotels"] button[type="submit"] {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 9px;
    background: #e8552f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.2s;
}

[data-tab-panel="hotels"] button[type="submit"]:hover {
    background: #d14824;
    transform: translateY(-1px);
}

[data-tab-panel="hotels"] .manage-booking-hint {
    margin-top: 16px;
    color: #8991a1;
    font-size: 12px;
}

@media (max-width: 768px) {
    [data-tab-panel="hotels"] {
        padding: 16px 10px;
    }

    [data-tab-panel="hotels"] .search-card {
        padding: 20px 16px;
    }

    [data-tab-panel="hotels"] .manage-booking-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

[data-tab-panel="hotels"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

[data-tab-panel="hotels"] .search-card {
    margin-top: 0 !important;
}
