/* ==========================================================================
   Al-Battar Transfer — Base Styles (language-agnostic)
   ========================================================================== */

:root {
    /* Brand */
    --primary:        #4f46e5;
    --primary-dark:   #4338ca;
    --primary-soft:   #eef2ff;
    --gold:           #D4A853;
    --gold-soft:      #FAF5E7;

    /* Text */
    --text:           #1F2937;
    --text-light:     #6B7280;
    --text-muted:     #9CA3AF;
    --text-on-primary:#FFFFFF;

    /* Surfaces */
    --bg:             #FFFFFF;
    --bg-soft:        #F9FAFB;
    --bg-card:        #FFFFFF;

    /* Borders */
    --border:         #E5E7EB;
    --border-hover:   #D1D5DB;
    --border-focus:   var(--primary);

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(17, 24, 39, 0.05);
    --shadow-md:  0 4px 12px rgba(17, 24, 39, 0.08);
    --shadow-lg:  0 16px 40px rgba(17, 24, 39, 0.12);

    /* Radius */
    --radius-card:  16px;
    --radius-btn:   12px;
    --radius-input: 10px;
    --radius-pill:  999px;

    /* Spacing scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Layout */
    --container-max: 1160px;
    --header-height: 72px;

    /* Typography */
    --fs-xs:   12px;
    --fs-sm:   14px;
    --fs-base: 16px;
    --fs-lg:   18px;
    --fs-xl:   22px;
    --fs-2xl:  28px;
    --fs-3xl:  36px;
    --fs-4xl:  48px;

    /* Motion */
    --ease:   cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur:    180ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-size: var(--fs-base);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary-dark); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

main { flex: 1 0 auto; }

/* ---------- Header ---------- */
.site-header {
    height: var(--header-height);
    background: var(--bg);
    border-block-end: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text);
    font-weight: 700;
    font-size: var(--fs-lg);
}
.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}
.brand-text-fallback {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--text-on-primary);
    border-radius: var(--radius-btn);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: var(--fs-sm);
}
.main-nav a:hover { color: var(--primary); }

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang-switcher:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.lang-switcher svg { width: 16px; height: 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 22px;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: var(--fs-base);
    line-height: 1.2;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary {
    background: var(--primary);
    color: var(--text-on-primary);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--text-on-primary); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-soft); }
.btn-lg { padding: 14px 28px; font-size: var(--fs-lg); }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }

/* ---------- Forms ---------- */
.form-group { margin-block-end: var(--space-4); }
.form-label {
    display: block;
    margin-block-end: var(--space-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-input);
    color: var(--text);
    font-size: var(--fs-base);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control:hover { border-color: var(--border-hover); }
.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-help {
    margin-block-start: var(--space-2);
    font-size: var(--fs-xs);
    color: var(--text-light);
}
.form-error {
    margin-block-start: var(--space-2);
    font-size: var(--fs-xs);
    color: #DC2626;
}

/* ---------- Hero ---------- */
.hero {
    padding: var(--space-16) 0 var(--space-12);
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    text-align: center;
}
.hero h1 {
    font-size: var(--fs-4xl);
    line-height: 1.15;
    margin: 0 0 var(--space-3);
    color: var(--text);
}
.hero .lead {
    font-size: var(--fs-lg);
    color: var(--text-light);
    margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-block-start: var(--space-16);
    background: var(--bg-soft);
    border-block-start: 1px solid var(--border);
    color: var(--text-light);
    padding: var(--space-10) 0 var(--space-6);
    font-size: var(--fs-sm);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-8);
}
.footer-col h4 {
    color: var(--text);
    font-size: var(--fs-base);
    margin: 0 0 var(--space-3);
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.footer-col a { color: var(--text-light); }
.footer-col a:hover { color: var(--primary); }
.footer-meta {
    margin-block-start: var(--space-8);
    padding-block-start: var(--space-4);
    border-block-start: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}
.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: #16A34A;
    font-weight: 600;
}

/* ---------- Search card (index page) ---------- */
.search-card {
    max-width: 720px;
    margin: -56px auto 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    padding: 32px;
    position: relative;
    z-index: 2;
}
.search-row { position: relative; }
.search-row .form-control { padding-inline-start: 44px; }
.search-row .dot {
    position: absolute;
    inset-inline-start: 14px;
    top: 42px;
    width: 10px; height: 10px;
    border-radius: 50%;
}
.search-row .dot.from { background: #10B981; }
.search-row .dot.to   { background: #EF4444; }
.swap-btn {
    position: absolute;
    inset-inline-end: 0;
    top: -20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.swap-btn:hover { border-color: var(--primary); color: var(--primary); }
.search-meta {
    display: flex; gap: 16px; flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px; color: var(--text-light);
    align-items: center;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-title {
    text-align: center;
    font-size: var(--fs-2xl);
    margin: 0 0 32px;
}
.features-grid, .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.feature-card, .step-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    text-align: center;
}
.feature-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3, .step-card h3 {
    margin: 0 0 6px;
    font-size: var(--fs-lg);
}
.feature-card p, .step-card p {
    margin: 0;
    color: var(--text-light);
    font-size: var(--fs-sm);
}
.step-num {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-on-primary);
    display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--gold-soft);
    border-block: 1px solid #EFE4C9;
    padding: 24px 0;
    text-align: center;
    color: #7A5F1E;
    font-weight: 600;
}
.trust-strip .digits { color: var(--text); font-size: var(--fs-xl); margin-inline-end: 8px; }

/* ---------- Results page ---------- */
.trip-summary {
    position: sticky;
    top: var(--header-height);
    background: var(--bg);
    border-block-end: 1px solid var(--border);
    padding: 14px 0;
    z-index: 10;
    font-size: var(--fs-sm);
}
.trip-summary .container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.trip-summary .route { color: var(--text); font-weight: 600; }
.trip-summary .meta  { color: var(--text-light); }
.sort-wrap {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--fs-sm); color: var(--text-light);
}
.sort-wrap select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); }

.offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 32px 0;
}
.offer-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 20px;
    display: flex; flex-direction: column;
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.offer-image {
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: var(--bg-soft);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
.offer-image img { width: 100%; height: 100%; object-fit: contain; }
.offer-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.offer-models { color: var(--text-light); font-size: 13px; margin: 0 0 14px; }
.offer-specs {
    display: flex; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-light);
    margin-bottom: 14px;
}
.offer-specs span { display: inline-flex; align-items: center; gap: 6px; }
.offer-specs svg { width: 16px; height: 16px; }
.offer-price { margin-top: auto; }
.offer-price .big {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--primary);
}
.offer-price .orig { font-size: 12px; color: var(--text-light); }
.offer-note {
    margin: 8px 0;
    font-size: 12px;
    color: #7A5F1E;
    background: var(--gold-soft);
    padding: 6px 10px;
    border-radius: 8px;
}
.offer-card .btn { margin-top: 12px; }

.empty-state {
    text-align: center; padding: 64px 24px;
    color: var(--text-light);
}
.empty-state h2 { color: var(--text); margin: 0 0 12px; }

/* ---------- My Bookings ---------- */
.booking-card {
    border-width: 2px;
    border-style: solid;
}
.booking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.booking-ref {
    margin: 0;
    font-family: 'Inter', monospace;
    letter-spacing: 1.5px;
    font-size: var(--fs-xl);
    color: var(--text);
}
.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
}
.booking-actions {
    margin-top: 20px;
    padding-block-start: 16px;
    border-block-start: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ---------- Success page ---------- */
.success-page { padding: 32px 0 64px; }

.success-banner {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-card);
    margin-bottom: 24px;
}
.success-banner h1  { margin: 14px 0 6px; font-size: var(--fs-2xl); }
.success-banner .subtitle { color: var(--text-light); margin-bottom: 18px; }

.success-banner.confirmed { background: #ECFDF5; }
.success-banner.pending   { background: #FEF3C7; }
.success-banner.warning   { background: #FEF3C7; }
.success-banner.failed    { background: #FEE2E2; }
.success-banner.error     { background: var(--bg-soft); }

.success-banner .booking-ref {
    display: inline-block;
    background: var(--bg);
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    border: 2px solid var(--border);
    font-size: var(--fs-lg);
}
.success-banner .booking-ref .label { color: var(--text-light); }
.success-banner .booking-ref .value {
    font-weight: 700;
    color: var(--text);
    margin-inline-start: 8px;
    font-family: 'Inter', monospace;
    letter-spacing: 1.2px;
}
.pending-info { margin-top: 14px; color: #92400E; font-style: italic; }

.success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.trip-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0;
}
.trip-details dt { color: var(--text-light); font-size: var(--fs-sm); }
.trip-details dd { margin: 0; font-weight: 600; color: var(--text); }

.price-big {
    font-size: var(--fs-3xl);
    font-weight: 800;
    color: var(--text);
    margin: 12px 0 6px;
    font-family: 'Inter', sans-serif;
}
.price-big span { font-size: var(--fs-lg); color: var(--text-light); font-weight: 500; }

.payment-method { color: #10B981; font-weight: 600; margin: 0 0 18px; }

.voucher-section, .next-steps {
    margin-top: 20px;
    padding-block-start: 18px;
    border-block-start: 1px solid var(--border);
}
.voucher-section h3, .next-steps h3 {
    font-size: var(--fs-base);
    margin: 0 0 10px;
    color: var(--text);
}
.voucher-links { display: flex; flex-wrap: wrap; gap: 8px; }
.next-steps ul { margin: 0; padding-inline-start: 20px; color: var(--text-light); line-height: 1.8; }

.booking-ref-small { color: var(--text-light); font-size: var(--fs-sm); }

@media (max-width: 768px) {
    .success-grid { grid-template-columns: 1fr; }
}

/* ---------- Checkout page ---------- */
.checkout-page { padding: 32px 0 64px; }
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.checkout-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout-sidebar .sticky { position: sticky; top: calc(var(--header-height) + 16px); }

.page-title {
    margin: 0 0 4px;
    font-size: var(--fs-2xl);
    color: var(--text);
}

.breadcrumb {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: var(--fs-sm);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .separator { margin: 0 8px; color: var(--text-muted); }

.summary-grid { display: grid; gap: 12px; }
.summary-item { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.summary-item .label { color: var(--text-light); }
.summary-item .value { font-weight: 600; color: var(--text); text-align: end; }

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.required { color: #DC2626; }
.info-text { color: #059669; margin: 0 0 12px; font-size: var(--fs-sm); font-weight: 600; }

.price-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 6px 0;
    color: var(--text);
}
.price-row.total {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--primary);
}
.checkout-sidebar hr {
    border: 0;
    border-block-start: 1px solid var(--border);
    margin: 8px 0;
}

.time-check {
    margin: 12px 0;
    font-size: var(--fs-sm);
    min-height: 22px;
}
.time-check .checking    { color: var(--text-light); }
.time-check .available   { color: #059669; font-weight: 600; }
.time-check .unavailable { color: #DC2626; font-weight: 600; }

.consent-section { margin: 16px 0; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--text);
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.checkbox-label.consent { align-items: flex-start; }
.consent-text { line-height: 1.6; color: var(--text-light); font-size: 13px; }

.payment-info {
    text-align: center;
    margin: 12px 0 0;
    color: var(--text-light);
    font-size: var(--fs-xs);
}

@media (max-width: 860px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .two-cols { grid-template-columns: 1fr; }
    .checkout-sidebar .sticky { position: static; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-light); }
.gold { color: var(--gold); }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    :root { --fs-4xl: 32px; --fs-3xl: 28px; }
    .main-nav { display: none; }
    .hero { padding: var(--space-10) 0 var(--space-8); }
}

/* ==========================================================================
   Arrival notice (from-airport flow)
   ========================================================================== */
.arrival-notice {
    margin-top: 14px;
    padding: 14px 16px;
    background: #ECFDF5;
    border: 1px solid #6EE7B7;
    border-radius: 10px;
}
.arrival-notice strong { color: #065F46; font-size: 15px; display: block; margin-bottom: 4px; }
.arrival-notice p      { margin: 4px 0 0; font-size: 13px; color: #047857; }
.arrival-notice small  { color: #065F46; font-weight: 600; }

/* ==========================================================================
   Additional services (checkout)
   ========================================================================== */
.additional-services-section h2 {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.additional-services-section h2 .muted {
    font-size: 13px;
    font-weight: 400;
    color: #94A3B8;
}
.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.service-item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    background: #FFFFFF;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.service-item:hover {
    background: #F8FAFC;
    border-color: #C7D2FE;
}
.service-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1F4E79;
    cursor: pointer;
}
.service-item input[type="checkbox"]:checked ~ .service-info .service-name {
    color: #1F4E79;
}
.service-item:has(input:checked) {
    background: #EEF2FF;
    border-color: #1F4E79;
    box-shadow: 0 0 0 1px #1F4E79 inset;
}
.service-icon {
    font-size: 22px;
    line-height: 1;
}
.service-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.service-name { font-size: 14px; font-weight: 600; color: #1F2937; }
.service-desc { font-size: 12px; color: #64748B; }
.service-price {
    font-weight: 700;
    color: #1F4E79;
    white-space: nowrap;
    font-size: 14px;
}

/* ==========================================================================
   Flight info card (AeroDataBox lookup)
   ========================================================================== */
.flight-card {
    margin-top: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
    border: 1px solid #C7D2FE;
    border-radius: 12px;
    animation: fcFadeIn 0.25s ease-out;
}
@keyframes fcFadeIn { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

.fc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.fc-airline { font-weight: 700; color: #1F2937; font-size: 15px; }
.fc-number {
    background: #1F4E79;
    color: #FFF;
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.fc-status {
    margin-inline-start: auto;
    background: #D4A853;
    color: #FFF;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.fc-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}
.fc-point { text-align: center; }
.fc-iata  { font-size: 22px; font-weight: 700; color: #1F4E79; letter-spacing: 1px; }
.fc-city  { font-size: 13px; color: #64748B; margin-top: 2px; }
.fc-time  { margin-top: 6px; font-weight: 600; color: #1F2937; font-size: 14px; direction: ltr; display: inline-block; }
.fc-meta  { margin-top: 4px; font-size: 12px; color: #64748B; }

.fc-arrow {
    font-size: 13px;
    color: #94A3B8;
    font-weight: 600;
    text-align: center;
    padding: 0 8px;
    border-top: 2px dashed #CBD5E1;
    min-height: 2px;
    position: relative;
    padding-top: 8px;
}

.fc-cached {
    margin-top: 10px;
    font-size: 11px;
    color: #94A3B8;
    text-align: end;
}

@media (max-width: 520px) {
    .fc-route { grid-template-columns: 1fr; }
    .fc-arrow { border-top: none; border-inline-start: 2px dashed #CBD5E1; padding: 8px 0 8px 16px; }
}

/* ==========================================================================
   Consent section — visual feedback when missing
   ========================================================================== */
.consent-section {
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
}
.consent-section.is-missing {
    background: #FEF2F2;
    border-color: #FCA5A5;
}
.consent-error {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #B91C1C;
}
.consent-section.shake { animation: consentShake 0.5s ease-in-out; }
@keyframes consentShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/* ==========================================================================
   Pickup↔Flight Timeline (checkout.php)
   ========================================================================== */
.timeline-wrap {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 16px;
}
.timeline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.timeline-icon { flex: 0 0 24px; font-size: 18px; }
.timeline-label { color: #64748B; min-width: 110px; }
.timeline-value { font-weight: 600; color: #1F2937; }
.timeline-arrow {
    margin: 6px 0 6px 34px;
    color: #94A3B8;
    font-size: 13px;
}
.timeline-warn {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}
.timeline-warn.is-warning { background: #FEF3C7; color: #92400E; }
.timeline-warn.is-error   { background: #FEE2E2; color: #991B1B; }

/* ==========================================================================
   AlbattarAutocomplete (ac-*) — dropdown, items, icons
   ========================================================================== */
.ac-wrap { position: relative; }

.ac-drop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
    background: #FFFFFF;
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 4px;
    display: none;
}
.ac-drop.open { display: block; }

.ac-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
}
.ac-item:hover,
.ac-item.ac-active { background: #F1F5F9; }

.ac-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1F4E79;
    background: #EEF2FF;
    border-radius: 50%;
}
.ac-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ac-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ac-main {
    font-weight: 600;
    font-size: 14px;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-sec {
    font-size: 12px;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ac-iata {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #1F4E79;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ac-empty,
.ac-error,
.ac-loading {
    padding: 14px 12px;
    font-size: 13px;
    color: #64748B;
    text-align: center;
}
.ac-error { color: #B91C1C; }

.ac-loading { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ac-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #E2E8F0;
    border-top-color: #1F4E79;
    border-radius: 50%;
    display: inline-block;
    animation: acSpin 0.7s linear infinite;
}
@keyframes acSpin { to { transform: rotate(360deg); } }

/* ========================================================================
   Home page redesign — 2026-04-29
   Additive layer: tightens spacing, glassmorphism on the search card,
   restyled trust strip, and Eastern Arabic numerals for home content only.
   Affects: index.php sections only. Does NOT touch results/checkout/payment.
   ======================================================================== */

/* Eastern Arabic numerals (٠-٩) for home content blocks only —
   relies on font feature; falls through gracefully on non-supporting fonts. */
.hero,
.trust-strip,
.section .features-grid,
.section .steps-grid {
    font-feature-settings: "lnum" 0;
}

/* ---------- Hero polish (revised 2026-04-29 — tighter, above-the-fold) ----------
   Goal: hero text + search card visible together in 1440x900 viewport, no scroll.
   Was: min-height 78vh + flex center → big top void with small content.
   Now: natural height + block layout → content starts near top of viewport. */
.hero {
    min-height: auto;
    display: block;
    padding: 56px 0 24px;
    text-align: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 55%);
}
.hero h1 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 12px;
}
.hero .lead {
    font-size: 17px;
    color: #6B7280;
    margin: 0;
}

/* ---------- Search card: glassmorphism + tight gap from hero ---------- */
.search-card {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 231, 235, 0.55);
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 20px 60px rgba(17, 24, 39, 0.06),
        0 4px 12px rgba(17, 24, 39, 0.03);
    margin-top: 8px;  /* hero already has padding-bottom: 24px */
}
.search-card .form-control {
    height: 56px;
    border-radius: 12px;
    border-width: 1.5px;
    transition: all 0.2s var(--ease);
}
.search-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
}
.search-card .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* ---------- Swap button: circular + rotate on hover ---------- */
.search-card .swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-width: 1.5px;
    transition: all 0.2s var(--ease);
}
.search-card .swap-btn:hover {
    background: var(--primary-soft);
    transform: rotate(180deg);
}

/* ---------- CTA: gradient + lift ---------- */
.search-card .btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.25);
    border-radius: 14px;
    height: 56px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.2s var(--ease);
}
.search-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.35);
}
.search-card .btn-primary:active {
    transform: translateY(0);
}

/* ---------- Trust strip: 2-pill row with green dots ---------- */
.trust-strip {
    background: transparent;
    padding: 24px 0 8px;
    border: none;
}
.trust-strip .trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 14px;
}
.trust-strip .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.trust-strip .trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    display: inline-block;
}
.trust-strip .trust-sep {
    color: #D1D5DB;
}
/* override the legacy .digits styling inside the new trust strip
   (kept for results/checkout pages which still use .digits) */
.trust-strip .digits {
    display: none;
}

/* ---------- Feature cards: lift on hover ---------- */
.feature-card {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
    border-color: var(--primary);
}

/* ---------- Step cards: numbered circle + lift ---------- */
.step-card {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 24px;
    /* Step numbers also use Eastern digits via the .hero / sections selector above.
       This rule simply ensures the size/shape are consistent with the redesign. */
}

/* ---------- Compact form rhythm (smaller gaps so card fits viewport) ---------- */
.search-card .form-group { margin-bottom: 12px; }
.search-card .form-group:last-of-type { margin-bottom: 0; }
.search-card .form-label { margin-bottom: 4px; font-size: 13px; }
.search-card .form-control { height: 48px; }
.search-card .btn-primary { height: 50px; margin-top: 12px; }
.search-card > div[style*="grid-template-columns"] { gap: 10px !important; margin-top: 12px !important; }

/* ---------- Time select: fix placeholder rendering ----------
   index.php sets dir="ltr" on #f-time so time values like "10:30" render
   left-to-right. But the Arabic placeholder ("اختر الوقت") was overlapping
   the browser's native chevron, producing a broken-looking glyph in the
   middle. Solution: render placeholder in RTL only when no time is picked
   (:invalid = empty required select). Once a time is chosen (:valid), revert
   to LTR for proper "10:30" rendering. Digits are bidi-neutral so this is safe. */
.search-card #f-time {
    padding-inline-end: 40px;       /* room for native chevron */
    background-image: none;          /* override any custom arrow on RTL select */
}
.search-card #f-time:invalid {       /* placeholder showing — Arabic */
    direction: rtl;
    text-align: right;
}
.search-card #f-time:valid {         /* time selected — keep "HH:MM" left-to-right look */
    direction: ltr;
    text-align: left;
}
.search-card #f-time option { direction: ltr; text-align: left; }

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
    .hero { padding: 32px 0 16px; min-height: auto; }
    .hero h1 { font-size: 26px; }
    .hero .lead { font-size: 15px; }
    .search-card { padding: 20px; border-radius: 18px; margin-top: 4px; }
    .search-card .form-control { height: 48px; }
    .search-card .btn-primary { height: 50px; font-size: 16px; }
    .trust-strip { padding: 16px 0 4px; }
    .trust-strip .trust-row { font-size: 13px; gap: 8px; }
    .trust-strip .trust-sep { display: none; }
}
