:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #0ea5e9;
    --accent-color: #f97316;
    /* Orange for CTA */
    --accent-hover: #ea580c;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    accent-color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--dark-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    background-color: var(--light-bg);
    border-radius: 6px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    margin-top: 0;
    /* Offset removed */
    padding: 80px 0;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative background blur */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(14, 165, 233, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.trust-badges-hero {
    display: flex;
    gap: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Booking Widget */
.booking-widget {
    flex: 0 0 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.widget-header {
    margin-bottom: 20px;
}

.widget-header h3 {
    margin-bottom: 15px;
}

.trip-type-toggle {
    display: flex;
    gap: 20px;
}

.trip-type-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.input-wrapper {
    position: relative;
    background: var(--light-bg);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-wrapper i {
    color: var(--text-muted);
}

.input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

.location-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.swap-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.swap-btn:hover {
    background: #f1f5f9;
}

.date-group {
    display: flex;
    gap: 10px;
}

.date-group .input-wrapper {
    flex: 1;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.pricing-subtext {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-light {
    background-color: var(--white);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 30px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #e0e7ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* Features */
.feature-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-image {
    flex: 1;
}

.image-box {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-xl);
}

.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--primary-color);
    background: #e0e7ff;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: var(--white);
}

.payment-icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .trust-badges-hero {
        justify-content: center;
    }

    .booking-widget {
        width: 100%;
        flex: none;
    }

    .feature-layout {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* =========================================
   RESULTS PAGE STYLES (Consolidated)
   ========================================= */

.results-page {
    background-color: #f1f5f9;
}

.results-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Search Header Bar */
.fs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
}


.location-box {
    background: #f1f5f9;
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.btn-modify {
    color: var(--primary-color);
    font-weight: 600;
    border: 1px solid var(--primary-color);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-modify:hover {
    background: #eef2ff;
}

/* Results Layout */
.results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar */
.filters-sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.filters-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.cb-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Range Slider (Visual Only for now) */
.range-slider {
    width: 100%;
}

.slider-vals {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slider-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* FLIGHT LIST & CARDS */
.flight-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flight-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: block;
    /* Important: Block for internal flex rows */
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.flight-main-row {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Airline Column */
.fc-airline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 140px;
    gap: 8px;
    flex-shrink: 0;
}

.airline-logo {
    height: 35px;
    /* Fixed height to prevent huge logo */
    width: auto;
    object-fit: contain;
    display: block;
}

.airline-name {
    font-size: 0.85rem;
    color: #64748b;
}

/* Schedule Column */
.fc-schedule {
    flex: 1;
    /* Takes available space */
    padding: 0 40px;
}

.fc-time-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.fc-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}

.fc-stop-badge {
    font-weight: 600;
    color: var(--text-main);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.fc-duration {
    font-weight: 500;
}

/* Visual Route Line */
.fc-route-vis {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fc-time.big {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-bg);
    line-height: 1;
}

.fc-line-graphic {
    flex: 1;
    margin: 0 20px;
    height: 2px;
    background: #e2e8f0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: white;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    z-index: 1;
}

.fc-loc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Date Badges */
.fc-date-badges {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.date-badge.green {
    background: #22c55e;
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Action/Price Column */
.fc-action {
    text-align: right;
    width: 160px;
    /* Fixed width for alignment */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.fc-price-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ea580c;
    /* Deep orange */
    line-height: 1;
}

.fc-price-main span {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: top;
}

.fc-price-strike {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-decoration: line-through;
}

.btn-select {
    background: #f97316;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.btn-select:hover {
    background: #ea580c;
}

/* Details Toggle */
.flight-details-toggle {
    background: #f8fafc;
    padding: 10px 25px;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    border-top: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.flight-details-toggle:hover {
    background: #f1f5f9;
}

.flight-details-content {
    display: none;
    padding: 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.segment-detail {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.segment-detail:last-child {
    border-bottom: none;
}

.seg-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.seg-info p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* CHECKOUT PAGE STYLES */
.checkout-page {
    background-color: #f1f5f9;
}

.checkout-container {
    padding-top: 100px;
    padding-bottom: 60px;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    font-weight: 600;
    color: var(--text-muted);
}

.checkout-progress .step {
    display: flex;
    align-items: center;
}

.checkout-progress .step.active {
    color: var(--dark-bg);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.form-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1.2rem;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
}

.input-std {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    margin-top: 5px;
}

.input-std:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Summary */
.summary-card h3 {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-bg);
}

.trust-icons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    justify-content: center;
}

.trust-icons span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.radio-option input {
    margin-top: 5px;
}

.radio-option label {
    flex: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.opt-title {
    font-weight: 600;
    color: var(--text-main);
}

.opt-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.opt-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
}

/* Responsive - Results & Checkout */
@media (max-width: 900px) {

    .results-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
    }

    .flight-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .fc-airline,
    .fc-schedule,
    .fc-action {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 0;
    }

    .fc-route-vis {
        gap: 10px;
    }

    .checkout-sidebar {
        grid-row: 1;
    }
}

/* LOADER & NEW FLIGHT CARD STYLES (Appended) */

/* Loader - Centered in content area */
.loader-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
}

.loader-overlay.hidden {
    display: none;
}

/* Circular Spinner to match screenshot 2 */
.spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #9CA3AF;
    /* Greyish top to match mockup */
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content h3 {
    font-size: 1.1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Base Overrides */
body {
    background-color: #F3F4F6;
    /* Light grey bg like screenshot */
}

/* Flight Search Header */
.flight-search-bar-header {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.fs-group-left,
.fs-group-center,
.fs-group-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.location-box {
    background: #F3F4F6;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--dark-bg);
}

.btn-modify {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-modify:hover {
    background: #EFF6FF;
}

/* Simple Steps: 1 Search Flight ... */
.checkout-progress {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.simple-step {
    color: var(--dark-bg);
}

.simple-step.text-muted {
    color: #9CA3AF;
}

/* FLIGHT CARD - EXACT MATCH REFINEMENTS */
.flight-card {
    background: white;
    border-radius: 8px;
    /* Slightly sharper than 12px */
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* More subtle */
    border: 1px solid #E5E7EB;
    transition: all 0.2s ease;
    overflow: hidden;
}

.flight-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    transform: translateY(-1px);
}

.flight-main-content {
    display: flex;
    /* Switch to Flex for safer behavior */
    align-items: center;
    padding: 24px;
    gap: 20px;
}

/* Col 1: Airline */
.col-airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered alignment */
    width: 150px;
    /* Widened for bigger logo */
    flex-shrink: 0;
}

.airline-logo-img {
    height: 64px;
    /* Much bigger per request */
    width: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    display: block;
}

.sd-airline-logo img {
    width: 48px;
    /* Bigger details logo */
    height: 48px;
    object-fit: contain;
}

.airline-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    display: block;
    margin-top: 6px;
    max-width: 140px;
    line-height: 1.2;
}

/* Col 2: Info (Center) */
.col-info {
    flex: 1;
    /* Take remaining space */
    min-width: 0;
    /* Prevent flex overflow */
    padding: 0 20px;
}

.itinerary-mini-row {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 12px 0;
    position: relative;
}

/* Return journey separation style */
.itinerary-mini-row+.itinerary-mini-row {
    margin-top: 20px;
}

.itinerary-mini-row+.itinerary-mini-row::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 1px dashed #e2e8f0;
}


.info-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 80px;
    /* Fixed width for alignment */
    flex-shrink: 0;
}

.badge-stops {
    background: none;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    white-space: nowrap;
}

.badge-duration {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 400;
    white-space: nowrap;
}

.info-timeline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-point {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 100px;
    justify-content: center;
    height: 50px;
    /* Fixed height for alignment */
}

.tp-time {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    line-height: 1;
}

.tp-code {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 500;
    margin-top: 2px;
}

.timeline-graphic {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    /* Force height */
    margin: 0 40px;
}

.itinerary-plane-path i {
    transform: none !important;
    color: #cbd5e1;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

/* Timeline Line - Solid for Cleaner Look per Original Site */
.line-dashed {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #E5E7EB;
    /* Solid line */
    top: 50%;
    z-index: 0;
    border: none;
}

.info-bottom {
    /* The green pill wrapper */
    position: relative;
    z-index: 1;
    background: #fff;
    /* Mask line */
    padding: 0 10px;
}

.green-pill {
    background: #059669;
    color: white;
    font-weight: 600;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 50px;
    /* removed uppercase to match screenshot */
}

.next-day {
    font-size: 0.6rem;
    color: #DC2626;
    /* Red for attention */
    display: block;
    font-weight: 600;
    white-space: nowrap;
    margin-top: -3px;
}

/* Col 3: Price */
.col-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 160px;
    flex-shrink: 0;
    text-align: right;
}

.main-price {
    font-size: 1.8rem;
    color: #EA580C;
    font-weight: 700;
    line-height: 1.2;
}

.sub-price {
    display: block;
    color: #9CA3AF;
    text-decoration: line-through;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.btn-select-orange {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    background: #F97316;
    color: #fff;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-select-orange:hover {
    background: #EA580C;
    color: #fff;
}

.flight-card-footer {
    background: #fff;
    /* White bg for clean look */
    /* border-top: 1px solid #E5E7EB; removed for seamless look */
    padding: 12px 24px;
    font-size: 0.85rem;
    color: #4F46E5;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.flight-card-footer:hover {
    background: #f9fafb;
}

/* DETAILS PANEL MATCH */
.flight-details-panel {
    display: none;
    padding: 24px;
    background: #fff;
    /* White */
    border-top: 1px solid #F3F4F6;
}

.details-date-header {
    font-weight: 700;
    color: #374151;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* =========================================
   Mobile/Tablet Responsive - "Exact Reference" Clone
   ========================================= */

/* Default visibility for new mobile elements - Hidden on Desktop */
.tp-date-label,
.mobile-arrow,
.mobile-flight-meta {
    display: none;
}

@media (max-width: 900px) {

    /* Reveal Mobile Elements */
    .tp-date-label {
        display: block;
        font-size: 0.75rem;
        color: #6B7280;
        /* Gray date */
        margin-bottom: 2px;
        font-weight: 500;
    }

    .mobile-arrow {
        display: block;
        font-size: 1.2rem;
        color: #9CA3AF;
        margin: 0 10px;
    }

    .mobile-flight-meta {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        font-size: 0.85rem;
        color: #4B5563;
        font-weight: 500;
    }

    /* Hide Desktop Elements */
    .desktop-only-graphic,
    .info-top {
        /* Hide old stops/duration badge row */
        display: none !important;
    }

    /* Card Container */
    .flight-card {
        padding-bottom: 0;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .flight-main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center Stack Everything */
        gap: 15px;
        padding: 20px;
    }

    /* === Row 1: Airline (Centered Logo) === */
    .col-airline {
        width: 100%;
        display: flex;
        flex-direction: row;
        /* Keep left alignment for logo+name or center? */
        /* Reference shows big logo centered, or logo+name left?
           Reference 1: Big Logo Left, text... wait. Reference 1 is weird.
           Reference 2: Logo Left.
           User Ref: "Qatar" Logo Left.
           Let's stick to Left Align for Airline as it looks cleaner with Name.
        */
        justify-content: flex-start;
        align-items: center;
        margin-bottom: 5px;
        padding: 0;
        border: none;
    }

    .airline-logo-img {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }

    .airline-text {
        font-size: 0.8rem;
        font-weight: 700;
        color: #334155;
        text-align: center;
        display: block;
        margin-top: 6px;
        max-width: 140px;
        line-height: 1.2;
    }

    /* === Row 2: Itinerary (Date - Time - Code) === */
    .col-info {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .itinerary-mini-row {
        display: flex;
        flex-direction: column;
        /* We need to inject the meta row below, so column is wrapper */
        align-items: center;
        width: 100%;
    }

    .info-timeline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Spread edges */
        width: 100%;
        position: relative;
    }

    /* Time Points */
    .time-point {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 80px;
    }

    .time-point:first-child {
        align-items: flex-start;
        text-align: left;
    }

    .time-point:last-child {
        align-items: flex-end;
        text-align: right;
    }

    /* Hide the old "DEP/ARR" labels if we use Dates */
    .time-point::before {
        display: none;
    }

    .tp-time {
        font-size: 1.4rem !important;
        /* Large Time */
        font-weight: 800;
        color: #111827;
        line-height: 1.2;
    }

    .tp-code {
        font-size: 1rem !important;
        font-weight: 700;
        color: #1d4ed8;
        /* Project Blue or similar standout color per ref */
        margin-top: 2px;
    }

    /* Graphic Area - Now just the arrow */
    .timeline-graphic {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        margin: 0;
        /* Line is hidden via desktop-only-graphic class */
    }

    /* === Row 4: Price (Centered) === */
    .col-price {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centered Price */
        justify-content: center;
        margin-top: 5px;
        border-top: 1px dashed #E5E7EB;
        /* Separator */
        padding-top: 15px;
        position: static;
    }

    .main-price {
        position: static;
        font-size: 1.6rem;
        font-weight: 800;
        color: #111827;
        line-height: 1;
        width: auto !important;
        text-align: center;
    }

    .main-price small {
        font-size: 0.9rem;
        color: #6B7280;
    }

    .sub-price {
        display: block !important;
        text-decoration: line-through;
        color: #9CA3AF;
        font-size: 1rem;
        margin-bottom: 2px;
    }

    /* === Row 5: Button (Full Width) === */
    .btn-select-orange {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 14px;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-top: 10px;
        font-weight: 600;
    }
}


/* Details Panel Full Structure (New) */
.segment-detail-row.full-structure {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
}

.sd-col {
    display: flex;
    flex-direction: column;
}

/* Airline Col */
.sd-airline {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.sd-airline-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sd-airline-text {
    display: flex;
    flex-direction: column;
}

.sd-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.sd-meta {
    font-size: 0.8rem;
    color: #9CA3AF;
    /* Light grey */
    margin-top: 1px;
}

/* Date Col */
.sd-date {
    font-size: 0.9rem;
    color: #6B7280;
    padding-top: 5px;
    /* align with text */
}

/* Location Col */
.sd-loc {
    padding-top: 2px;
}

.sd-time-big {
    font-size: 1.1rem;
    /* 10:10 am */
    font-weight: 700;
    color: #111827;
}

.sd-city {
    font-size: 0.85rem;
    color: #6B7280;
    margin-top: 2px;
}

/* Responsive Details */
@media (max-width: 900px) {
    .segment-detail-row.full-structure {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sd-col {
        align-items: center;
        text-align: center;
    }

    .sd-airline {
        justify-content: center;
    }
}

.seg-airline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.seg-logo-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.seg-airline-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
}

.seg-meta {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-left: 10px;
}

.seg-times-row {
    display: flex;
    justify-content: space-between;
    padding-left: 34px;
    /* Indent to match logo */
}

.seg-time-group {
    display: flex;
    flex-direction: column;
}

.st-time {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.st-place {
    font-size: 0.85rem;
    color: #6B7280;
}

/* Layover Pill */
.layover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}

.layover-pill {
    background: #F3F4F6;
    color: #6B7280;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    z-index: 1;
}

.layover-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: #E5E7EB;
    top: 50%;
    z-index: 0;
}

/* Responsive Flex Layout */
@media (max-width: 768px) {
    .flight-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .col-airline,
    .col-price {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .col-info {
        width: 100%;
        padding: 0;
    }

    .itinerary-mini-row {
        justify-content: center;
    }
}


/* INTERACTIVE HEADER STYLES */
.flight-search-bar-header.interactive {
    display: block;
    padding: 24px 30px;
    background: #fff;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 0;
}

.header-search-form {
    max-width: 1200px;
    margin: 0 auto;
}

.search-radios {
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.search-inputs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Slightly tighter gap to fit more */
}

.input-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    position: relative;
    transition: all 0.2s;
}

.input-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.big-box {
    flex: 3;
    /* More space for airports */
    min-width: 220px;
}

.date-box {
    flex: 1.5;
    min-width: 130px;
}

.traveler-box {
    flex: 2;
    min-width: 150px;
    cursor: pointer;
    background: #fff;
}

.input-field-clean {
    border: none;
    outline: none;
    font-size: 0.82rem;
    color: transparent !important;
    /* Text is hidden, display layer shows underneath */
    caret-color: #111827;
    /* Keep the typing cursor visible */
    width: 100%;
    font-family: inherit;
    background: transparent;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.input-wrapper .input-display-layer {
    left: 44px;
    /* Align with input text in landing page widget */
}

.input-display-layer {
    position: absolute;
    left: 12px;
    right: 32px;
    /* Extra space for clear icon */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.82rem;
    color: #1f2937;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    display: flex;
    align-items: center;
}

/* Specific offset for items with icons */
.input-box i~.input-display-layer {
    left: 40px;
}

.input-display-layer b {
    font-weight: 700;
    color: #111827;
}

.input-display-layer .sep {
    color: #9ca3af;
    margin: 0 4px;
}

.input-display-layer .sub {
    color: #6b7280;
    font-weight: 400;
    margin-left: 5px;
}

.display-layer-static {
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    font-size: 0.82rem !important;
    display: flex;
    align-items: center;
}


/* MOBILE SEARCH COLLAPSIBLE */
.mobile-search-collapsible {
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.mobile-search-collapsible.collapsed {
    margin-bottom: 20px;
}

.mobile-search-toggle-pill {
    display: none;
}

@media (max-width: 900px) {
    .mobile-search-collapsible.collapsed .flight-search-bar-header {
        display: none;
    }

    .mobile-search-toggle-pill {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #f1f5f9;
        color: #1e293b;
        border: 1px solid #e2e8f0;
        padding: 6px 16px;
        border-radius: 0 0 12px 12px;
        font-size: 0.85rem;
        font-weight: 600;
        margin: 0 auto;
        cursor: pointer;
        width: fit-content;
        position: relative;
        top: -1px;
        z-index: 10;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .flight-search-bar-header.interactive {
        border-radius: 0;
        padding: 15px !important;
    }
}

/* PREMIUM PROGRESS STEPS */
.onwardify-progress-wrapper {
    background: transparent;
    padding: 0 20px;
}

.centered-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 120px;
}

.step-num-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
    z-index: 2;
}

.progress-step.active .step-num-bubble {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: none;
    text-align: center;
}

.progress-step.active .step-label {
    color: #1e293b;
}

.mobile-filter-bar {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.btn-outline-blue {
    background: #fff;
    border: 1.5px solid #2563eb;
    color: #2563eb;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-field-clean::placeholder {
    color: #9ca3af !important;
    font-weight: 400;
    opacity: 1 !important;
    /* Ensure visibility despite transparent text */
}

.blue-icon {
    color: #3b82f6;
    font-size: 1.1rem;
}

.clear-icon {
    color: #d1d5db;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 5px;
}

.clear-icon:hover {
    color: #9ca3af;
}

.swap-icon-box {
    color: #3b82f6;
    background: #fff;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 -10px;
    z-index: 10;
    transition: all 0.2s;
}

.swap-icon-box:hover {
    border-color: #3b82f6;
    transform: rotate(180deg);
}

.trav-count {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin-right: 4px;
}

.trav-text {
    font-size: 0.9rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-modify-blue {
    background: #fff;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    border-radius: 6px;
    padding: 0 20px;
    height: 46px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-modify-blue:hover {
    background: #2563eb;
    color: #fff;
}

/* CUSTOM DROPDOWN STYLES */
.custom-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    min-width: 300px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.airport-results .dd-header {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-bottom: 1px solid #f3f4f6;
}

.airport-results .dd-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: background 0.15s;
}

.airport-results .dd-item:hover {
    background: #f8fafc;
}

.airport-results .dd-item i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.airport-results .code {
    font-weight: 700;
    color: #111827;
}

.airport-results .highlight {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-weight: 600;
    border-radius: 2px;
}

/* PROGRESS STEPS - PREMIUM DESIGN */
.onwardify-progress-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
}

.onwardify-progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.progress-step.active {
    color: #1e293b;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active .step-num {
    background: #1e293b;
    color: #fff;
    box-shadow: 0 4px 10px rgba(30, 41, 59, 0.2);
}

.step-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-divider {
    width: 30px;
    height: 1px;
    background: #e2e8f0;
}

.btn-filter-mobile {
    display: none;
    /* Desktop hidden */
    background: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .btn-filter-mobile {
        display: flex;
    }

    .onwardify-progress-container {
        gap: 8px;
    }

    .progress-divider {
        width: 15px;
    }

    .step-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .search-inputs-row {
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .big-box,
    .date-box,
    .traveler-box {
        width: 100%;
        flex: none;
        text-align: left;
    }

    .input-field-clean {
        text-align: left;
    }

    .input-display-layer {
        justify-content: flex-start;
    }

    #swap-locations-main {
        position: absolute;
        right: 20px;
        top: 50px;
        /* Positioned between From and To */
        margin: 0;
        transform: rotate(90deg);
        z-index: 5;
    }

    .btn-modify-blue {
        width: 100%;
    }
}

/* Index Hero Search Mobile Fixes */
@media (max-width: 768px) {
    .location-group {
        flex-direction: column;
        gap: 12px;
        position: relative;
    }

    .location-group .input-wrapper {
        width: 100%;
    }

    .swap-btn {
        position: absolute;
        right: 20px;
        top: 50px;
        z-index: 10;
        background: white;
        border: 1px solid #cbd5e1;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* CUSTOM DROPDOWN BASE */
.custom-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    z-index: 1000;
}

.custom-dropdown.hidden {
    display: none;
}

/* Airport Results */
.airport-results {
    min-width: 320px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.airport-results .dd-header {
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    border-bottom: 1px solid #f3f4f6;
}

.airport-results .dd-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
}

.airport-results .dd-item:hover {
    background: #f8fafc;
}

.airport-results .dd-item i {
    color: #3b82f6;
}

.airport-results .code {
    font-weight: 700;
    color: #111827;
}

.airport-results .highlight {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-weight: 600;
}


/* PASSENGER DROPDOWN STYLES */
.pax-dropdown {
    min-width: 320px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 350px;
    overflow: visible;
}

.pax-dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

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

.pax-row:last-of-type {
    border-bottom: none;
}

.pax-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    flex-direction: column;
}

.pax-label small {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
}

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

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

.counter button:hover {
    background: #f8fafc;
    border-color: #2563eb;
}

.counter input {
    width: 20px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
}

.btn-done {
    margin-top: 16px;
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-done:hover {
    background: #1d4ed8;
}

@media (max-width: 600px) {
    .pax-dropdown {
        min-width: 280px;
    }

    .pax-dropdown-content {
        flex-direction: column;
    }

    .pax-left-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 20px;
    }
}

#results-wrapper {
    transition: opacity 0.5s ease;
}

/* ========================================
   FLIGHT CARDS - QATAR AIRWAYS EXACT MATCH
   ======================================== */

/* Card Container */
.flight-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.flight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Main Grid Layout - Desktop */
.flight-main-content {
    display: grid;
    grid-template-columns: 150px 1fr 200px;
    gap: 24px;
    align-items: center;
}

/* Column 1: Airline Logo */
.col-airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.airline-logo-img {
    width: 80px;
    height: auto;
}

.airline-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    display: block;
    margin-top: 6px;
    max-width: 140px;
    line-height: 1.2;
}

/* Column 2: Flight Info */
.col-info {
    flex: 1;
}

.itinerary-mini-row {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Stops and Duration Row */
.info-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.badge-stops,
.badge-duration {
    font-size: 0.875rem;
    color: #64748b;
}

/* Timeline: Departure -> Arrival */
.info-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-point {
    display: flex;
    flex-direction: column;
}

.tp-date-label {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
    display: none;
    /* Hide on desktop */
}

.tp-time {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.tp-code {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.timeline-graphic {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
}

.mobile-arrow {
    display: none;
}

.line-dashed {
    width: 100%;
    height: 1px;
    border-top: 2px dashed #cbd5e1;
}

.info-bottom {
    margin-top: 8px;
}

.green-pill {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.next-day {
    display: block;
    font-size: 0.7rem;
    color: #f97316;
    margin-top: 2px;
}

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

/* Column 3: Price & Button */
.col-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.main-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.sub-price {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.btn-select-orange {
    background: #f97316;
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-select-orange:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

/* Flight Details Toggle */
.flight-card-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    cursor: pointer;
    color: #3b82f6;
    font-weight: 500;
}

.flight-card-footer:hover {
    color: #2563eb;
}

.flight-details-panel {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.flight-details-panel.open {
    display: block;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .flight-main-content {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .col-airline {
        margin-bottom: 12px;
    }

    .col-price {
        align-items: center;
    }

    .info-timeline {
        flex-direction: row;
        justify-content: space-around;
    }

    .mobile-arrow {
        display: inline;
        font-size: 1.5rem;
        color: #cbd5e1;
    }

    .desktop-only-graphic {
        display: none !important;
    }

    .tp-date-label {
        display: inline;
        margin-right: 8px;
    }

    .mobile-flight-meta {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 12px;
        font-size: 0.875rem;
        color: #64748b;
    }

    .btn-select-orange {
        width: 100%;
    }
}

/* FLIGHT DETAILS PANEL */
.details-date-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.segment-detail-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sd-col {
    display: flex;
    flex-direction: column;
}

.sd-airline {
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.sd-airline-logo img {
    width: 40px;
    height: auto;
}

.sd-name {
    font-weight: 600;
    color: #0f172a;
}

.sd-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.sd-date {
    font-size: 0.875rem;
    color: #475569;
}

.sd-time-big {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.sd-city {
    font-size: 0.875rem;
    color: #64748b;
}

.layover-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.layover-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.layover-pill {
    background: #fef3c7;
    color: #92400e;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   FLIGHT CARDS - BESTONWARDTICKET.COM EXACT MATCH
   ======================================== */
.flight-card {
    background: white;
    border-radius: 8px;
    padding: 4px 15px;
    margin-bottom: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    border: 1px solid #f1f5f9;
}

.flight-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.flight-main-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.col-airline {
    flex-shrink: 0;
    width: 110px;
    /* Added width for larger logo */
    display: flex;
    justify-content: center;
}

.airline-logo-img {
    width: 90px;
    height: auto;
    display: block;
}

.airline-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
    display: block;
    margin-top: 6px;
    max-width: 140px;
    line-height: 1.2;
}

.col-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.itinerary-mini-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.info-timeline {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
}

.time-point {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-date-label {
    display: none;
}

.tp-time {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.tp-code {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.info-top {
    display: none;
}

.timeline-graphic {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 4px;
    height: 30px;
}

.itinerary-plane-path {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    display: flex;
    /* Ensure it's visible */
}

.path-line {
    width: 100%;
    height: 1px;
    border-top: 2px dashed #e2e8f0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.itinerary-plane-path i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    color: #94a3b8;
    font-size: 0.85rem;
    background: white;
    padding: 0 4px;
}

.line-dashed,
.info-bottom,
.green-pill,
.desktop-only-graphic {
    display: none;
}

.next-day {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 2px;
}

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

.col-price {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.main-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.sub-price {
    display: none;
}

.btn-select-orange {
    background: #ef4444;
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-select-orange:hover {
    background: #dc2626;
}

.flight-card-footer {
    text-align: left;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
    cursor: pointer;
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.75rem;
}

.flight-card-footer:hover {
    color: #2563eb;
}

.flight-details-panel {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.flight-details-panel.open {
    display: block;
}

@media (max-width: 768px) {
    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 2000;
        overflow-y: auto;
        padding: 20px;
    }

    .filters-sidebar.active {
        display: block;
    }

    .close-sidebar-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #f1f5f9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #1e293b;
        cursor: pointer;
    }

    .flight-card {
        padding: 8px 10px;
    }
}

/* Premium Flatpickr Modern Theme */
.flatpickr-calendar {
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    padding: 8px;
    width: 300px !important;
}

.flatpickr-months {
    padding: 10px 0;
}

.flatpickr-months .flatpickr-month {
    background: #fff;
    color: #1e293b;
    fill: #1e293b;
}

.flatpickr-current-month {
    font-size: 1rem;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.flatpickr-weekday {
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.flatpickr-day {
    border-radius: 8px;
    color: #1e293b;
    font-weight: 500;
}

.flatpickr-day.selected {
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.flatpickr-day.today {
    border-color: #2563eb;
    color: #2563eb;
}

.flatpickr-day:hover {
    background: #f1f5f9;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    padding: 8px !important;
    color: #64748b !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #1e293b !important;
    background: #f1f5f9;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .flight-main-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .col-airline {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 4px;
    }

    .airline-logo-img {
        width: 160px;
    }

    .col-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 25px;
        /* More space between outbound and return on mobile */
    }

    .itinerary-mini-row {
        flex-direction: column;
        gap: 2px;
    }

    .info-timeline {
        justify-content: center;
        gap: 4px;
        width: 100%;
    }

    .col-price {
        width: 100%;
        flex-direction: column;
        gap: 6px;
        margin-top: 4px;
    }

    .btn-select-orange {
        width: 100%;
        padding: 8px;
    }

    .next-day {
        font-size: 0.65rem;
    }

}

/* MOBILE RESULTS INDICATOR */
.mobile-results-indicator {
    background: #f0f7ff;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin: 10px 0 25px 0;
    border: 1px dashed #bfdbfe;
    display: none;
    /* Desktop hidden */
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-results-indicator {
        display: block;
    }

    .mobile-only {
        display: block;
    }
}

.mobile-results-indicator h3 {
    font-size: 1.1rem;
    color: #1e40af;
    margin-bottom: 6px;
    font-weight: 700;
}

.mobile-results-indicator p {
    font-size: 0.9rem;
    color: #60a5fa;
    margin-bottom: 12px;
}

.bounce-icon {
    display: inline-block;
    animation: bounce-anim 2s infinite;
    color: #3b82f6;
    font-size: 1.5rem;
}

@keyframes bounce-anim {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }

    60% {
        transform: translateY(-4px);
    }
}

.input-error {
    border: 1px solid #ef4444 !important;
    background-color: #fef2f2 !important;
}

.date-box {
    min-width: 160px !important;
    flex: 1.8 !important;
}

.results-container {
    padding-top: 20px !important;
}

.mobile-results-count {
    display: none;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: #64748b;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .mobile-results-count {
        display: block;
    }
}


.airline-stops-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 4px;
    display: block;
}

@media (max-width: 900px) {
    .airline-logo-img {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50%;


        object-fit: contain;
    }

    .airline-stops-text {
        font-size: 0.8rem;
        color: #64748b;
        margin-top: 4px;
        display: block;
    }

    .flight-main-row {
        padding: 15px !important;
    }
}

.details-mini-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}



.input-box.input-error {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.input-field-clean.input-error {
    border: none !important;
}


.airline-logo-img {
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    padding: 2px;
}


@media (min-width: 901px) {
    .flight-card:hover {
        border: 2px solid #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
    }
}


.btn-select-orange {
    transition: all 0.2s;
    border: 1px solid #f97316;
    padding: 10px 24px;
    background: linear-gradient(135deg, #fb923c, #ea580c);
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2);
}

.btn-select-orange:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(234, 88, 12, 0.3);
    background: linear-gradient(135deg, #fdba74, #ea580c);
}



/* Airport Autocomplete Flags */
.dd-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.dd-item:hover {
    background: #f8fafc;
}

.dd-flag {
    width: 24px;
    height: auto;
    margin-right: 12px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.dd-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dd-city {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}

.dd-country {
    font-size: 0.8rem;
    color: #64748b;
}

.dd-code {
    font-weight: 700;
    color: #3b82f6;
    font-size: 0.9rem;
    background: #eff6ff;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 10px;
}