:root {
    --gold: #C9A227;
    --gold-light: #E8C547;
    --gold-dim: rgba(201, 162, 39, 0.16);
    --ink: #111111;
    --ink-soft: #1A1A1A;
    --navy: #1D4E89;
    --cream: #F7F1DE;
    --cream-2: #EFE6C9;
    --paper: #FFFdf6;
    --muted: #6B6456;
    --line: rgba(17, 17, 17, 0.1);
    --white: #ffffff;
    --danger: #BE123C;
    --success: #15803D;
    --shadow: 0 24px 80px rgba(17, 17, 17, 0.14);
    --radius: 22px;
    --header: 84px;
    --font: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[lang="en"] { --font: "IBM Plex Sans", "IBM Plex Sans Arabic", sans-serif; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 24px)); margin-inline: auto; }

.site-header {
    position: sticky; top: 0; z-index: 200;
    height: var(--header);
    display: flex; align-items: center;
    overflow: visible;
    background: rgba(17, 17, 17, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.28);
}
.site-header .inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: min(1280px, calc(100% - 24px)); margin-inline: auto;
    flex-wrap: nowrap;
}
html[lang="en"] .nav a { padding: 8px 8px; font-size: .84rem; }
@media (max-width: 1180px) {
    html[lang="en"] .nav a { font-size: .78rem; padding: 6px 7px; }
    html[lang="en"] .brand-text span { display: none; }
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); min-width: 0; }
.brand { transition: transform .25s ease; }
.brand:hover { transform: translateY(-1px); }
.brand-badge {
    width: 54px; height: 54px; border-radius: 50%;
    border: 2px solid var(--gold); background: #000; padding: 6px; flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: box-shadow .25s ease, transform .25s ease;
}
.brand:hover .brand-badge { box-shadow: 0 0 0 4px rgba(201,162,39,.18), 0 10px 28px rgba(0,0,0,.4); }
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand-text span { font-size: .72rem; color: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; min-width: 0; }
.nav a {
    color: #EDE6D0; font-size: .92rem; font-weight: 500;
    padding: 8px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--gold-light); background: rgba(201,162,39,.12); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: nowrap; }
.desktop-only { display: inline-flex; }
.lang { display: flex; gap: 6px; align-items: center; }
.lang a {
    display: inline-flex; align-items: center; gap: 6px;
    color: #ddd; font-size: .78rem; padding: 5px 8px; border-radius: 10px;
    border: 2px solid transparent; white-space: nowrap;
}
.lang a.is-active {
    border-color: var(--gold);
    background: rgba(201,162,39,.14);
}
.lang img { width: 30px; height: 22px; object-fit: cover; border-radius: 4px; }
.currency-dropdown { position: relative; z-index: 210; }
.currency-dropdown__btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 8px 12px;
    border-radius: 999px; border: 1px solid rgba(201,162,39,.45);
    background: rgba(201,162,39,.12); color: var(--gold-light);
    font-weight: 700; font-size: .82rem; cursor: pointer;
    list-style: none;
}
.currency-dropdown__btn::-webkit-details-marker { display: none; }
.currency-dropdown__btn::marker { content: ""; }
.currency-dropdown[open] .currency-dropdown__btn {
    background: rgba(201,162,39,.22);
    border-color: var(--gold-light);
}
.currency-dropdown__list {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: #111;
    border: 1px solid rgba(201,162,39,.35);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    z-index: 220;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.currency-dropdown__list a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    color: #EDE6D0;
}
.currency-dropdown__list a strong { font-size: 1rem; letter-spacing: .04em; }
.currency-dropdown__list a span { font-size: .8rem; color: #b9b19a; line-height: 1.3; }
.currency-dropdown__list a.is-active,
.currency-dropdown__list a:hover { background: rgba(201,162,39,.16); color: var(--gold-light); }
.nav-extras { display: none; flex-direction: column; gap: 8px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; border-radius: 999px;
    padding: 10px 16px; font-weight: 600; font-size: .88rem;
    white-space: nowrap; flex-shrink: 0; line-height: 1;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #E8C547, #C9A227); color: #111; box-shadow: 0 10px 24px rgba(201,162,39,.28); }
.btn-ghost { background: transparent; color: var(--cream); border: 1px solid rgba(247,241,222,.3); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-block { width: 100%; }

.menu-toggle {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid rgba(201,162,39,.4); background: transparent; color: var(--gold-light);
}

.hero {
    position: relative; min-height: min(88vh, 820px);
    display: grid; align-items: end; color: var(--cream);
    overflow: hidden;
}
.hero-media {
    position: absolute; inset: 0;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.55) 48%, rgba(10,10,10,.88) 100%),
        linear-gradient(90deg, rgba(10,10,10,.55), transparent 55%);
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0 220px; }
.kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: var(--gold-light);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.7;
    white-space: normal;
}
html[lang="en"] .kicker { letter-spacing: .12em; text-transform: uppercase; }
.hero .kicker { font-size: .9rem; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-weight: 700; line-height: 1.18; margin: 0 0 .4em; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.02em; }
.hero h1 { font-size: clamp(2.9rem, 7vw, 5.4rem); max-width: 14ch; }
.lead { font-size: 1.08rem; max-width: 46ch; color: #E7DFC6; }
.hero .lead { font-size: 1.28rem; max-width: 48ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { font-size: 1.02rem; padding: 12px 22px; }
.stats {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin-top: 40px; max-width: 640px;
}
.stat { border-top: 1px solid rgba(201,162,39,.45); padding-top: 12px; }
.stat b { display: block; font-size: 1.45rem; color: var(--gold-light); }
.hero .stat b { font-size: 1.85rem; }
.stat span { font-size: .82rem; color: #cfc6aa; }
.hero .stat span { font-size: 1rem; }

.search-card {
    position: relative; z-index: 2; margin-top: -56px;
    background: var(--paper); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px;
    border: 1px solid rgba(201,162,39,.22);
}
.search-card h2 { font-size: 1.25rem; }
.search-grid {
    display: grid; grid-template-columns: 1.2fr 1.2fr 1fr .7fr .7fr auto;
    gap: 10px; align-items: end;
}
label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field, select, textarea, input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="tel"] {
    width: 100%; border: 1px solid var(--line); background: #fff;
    border-radius: 14px; padding: 12px 14px; font-size: 1rem; color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field:focus, select:focus, textarea:focus, input:focus {
    outline: 2px solid rgba(201,162,39,.45); border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,162,39,.12);
}

.section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
.section-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.gold-rule { width: 48px; height: 2px; background: var(--gold); margin-bottom: 14px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.card {
    background: var(--paper); border-radius: 20px; overflow: hidden;
    border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(17,17,17,.05);
}
.card img { width: 100%; height: 210px; object-fit: cover; transition: transform .7s ease; }
.card:hover img { transform: scale(1.06); }
.card-body { padding: 18px 18px 20px; }
.card-body h3 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.price { color: var(--navy); font-weight: 700; }
.money {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap;
}
.sar-symbol {
    display: inline-block;
    width: 1.05em;
    height: 1.15em;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("/images/Saudi_Riyal_Symbol.svg") center / contain no-repeat;
    mask: url("/images/Saudi_Riyal_Symbol.svg") center / contain no-repeat;
    vertical-align: -0.12em;
}
.money-prefix, .money-code { font-weight: 700; }
.why .price, .hero .price { color: var(--gold-light); }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gold-dim); color: #7A6414; border-radius: 999px;
    padding: 4px 10px; font-size: .75rem; font-weight: 600;
}

.why { background: var(--ink-soft); color: var(--cream); }
.why .card { background: transparent; border-color: rgba(201,162,39,.2); color: inherit; box-shadow: none; }
.why h3 { color: var(--gold-light); }

.split-photo { min-height: 420px; border-radius: 28px; overflow: hidden; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }

.page-hero {
    position: relative; min-height: 340px; display: grid; align-items: end; color: var(--cream);
    overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,.2), rgba(10,10,10,.82));
}
.page-hero .wrap { position: relative; z-index: 1; padding: 72px 0 40px; }

.trip-list { display: grid; gap: 14px; }
.trip {
    display: grid; grid-template-columns: 1.4fr .8fr auto; gap: 16px; align-items: center;
    background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
}
.trip-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .9rem; }
.trip-price { text-align: end; }
.trip-price b { font-size: 1.4rem; display: block; }

.seat-map { background: var(--paper); border-radius: 24px; padding: 20px; border: 1px solid var(--line); }
.seat-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: .82rem; }
.seat-row { display: grid; grid-template-columns: 28px repeat(2, 44px) 28px repeat(2, 44px); gap: 8px; justify-content: center; margin-bottom: 8px; }
.seat-row.family { grid-template-columns: 28px repeat(5, 44px); }
.seat {
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; font-size: .72rem; font-weight: 700;
}
.seat.is-window { box-shadow: inset 0 0 0 2px rgba(29,78,137,.25); }
.seat.is-family { background: #fff7e0; }
.seat.is-taken { background: #ece7dc; color: #aaa; cursor: not-allowed; }
.seat.is-selected { background: var(--gold); border-color: var(--gold); color: #111; }
.aisle { display: flex; align-items: center; justify-content: center; color: #bbb; font-size: .65rem; }

.passengers { display: grid; gap: 14px; }
.passenger { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert-error { background: #fde8ee; color: var(--danger); }
.alert-ok { background: #e8f6ee; color: var(--success); }

.site-footer {
    position: relative;
    overflow: hidden;
    color: #d8d0b8;
    padding: 56px 0 24px;
    border-top: 1px solid rgba(201,162,39,.28);
    background: #0b0b0b;
}
.footer-media {
    position: absolute; inset: 0; pointer-events: none;
}
.footer-media img { width: 100%; height: 100%; object-fit: cover; }
.footer-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,.78), rgba(8,8,8,.92));
}
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; min-height: 180px; }

.cta-band {
    background: var(--paper);
    padding: 64px 0 80px;
    border-top: 1px solid var(--line);
}
.cta-band .lead { color: var(--muted); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

@media (max-width: 980px) {
    :root { --header: 72px; }
    .nav { display: none; }
    .desktop-only { display: none !important; }
    .header-lang .lang-label { display: none; }
    .header-lang img { width: 34px; height: 24px; }
    .menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
    .site-header {
        position: relative;
        z-index: 80;
        height: var(--header);
        overflow: visible;
    }
    .site-header .inner { gap: 10px; }
    .header-actions { gap: 8px; }
    .nav.is-open {
        display: flex !important; flex-direction: column; position: absolute; top: 100%; inset-inline: 0;
        background: #111; padding: 16px; gap: 4px; z-index: 90;
        max-height: min(70vh, 520px); overflow: auto;
    }
    .nav.is-open a { width: 100%; }
    .nav.is-open .nav-extras {
        display: flex; flex-direction: column; gap: 12px;
        margin-top: 12px; padding-top: 12px;
        border-top: 1px solid rgba(201,162,39,.2);
    }
    .nav.is-open .btn { width: 100%; }
    .search-grid, .trip, .grid-3, .grid-2, .footer-grid, .form-grid, .gallery { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
    .hero {
        min-height: 520px;
        align-items: end;
    }
    .hero-copy { padding: 20px 0 28px; }
    .hero h1 { font-size: 2.1rem; max-width: none; }
    .hero .lead { font-size: 1rem; max-width: none; }
    .hero .stat b { font-size: 1.2rem; }
    .hero .stat span { font-size: .78rem; }
    .hero-copy > *,
    .hero-media img,
    html.js .reveal.is-in .card,
    html.js .reveal.is-in .trip,
    html.js .reveal.is-in .gold-rule { animation: none !important; }
    .trip-price { text-align: start; }
}

@media (max-width: 640px) {
    .brand-text { display: none; }
    .stats { grid-template-columns: 1fr; }
    .seat-row, .seat-row.family { grid-template-columns: repeat(5, 40px); }
    .section { padding: 56px 0; }
}

/* Motion */
.btn { transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-gold:hover { box-shadow: 0 16px 32px rgba(201,162,39,.38); }
.nav a { transition: color .2s ease, background .2s ease; }
.lang a { transition: border-color .2s ease, color .2s ease; }
.card, .trip {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover, .trip:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(17,17,17,.12);
    border-color: rgba(201,162,39,.35);
}
.seat { transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.seat:not(.is-taken):hover { transform: scale(1.08); }
.hero-media img {
    transform: scale(1.08);
    animation: heroZoom 18s ease-out forwards;
}
.hero-copy > * {
    animation: riseIn .8s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }

html.js .reveal.is-in .card,
html.js .reveal.is-in .trip {
    animation: riseIn .7s cubic-bezier(.16,1,.3,1) both;
}
html.js .reveal.is-in .card:nth-child(2),
html.js .reveal.is-in .trip:nth-child(2) { animation-delay: .07s; }
html.js .reveal.is-in .card:nth-child(3),
html.js .reveal.is-in .trip:nth-child(3) { animation-delay: .14s; }
html.js .reveal.is-in .card:nth-child(4),
html.js .reveal.is-in .trip:nth-child(4) { animation-delay: .21s; }
html.js .reveal.is-in .gold-rule {
    animation: ruleGrow .8s cubic-bezier(.16,1,.3,1) both;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    place-items: center;
    background: #070707;
    transition: opacity .55s ease, visibility .55s ease;
}
.page-loader__veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,162,39,.16), transparent 58%);
}
.page-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.page-loader__orbit {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background: #000;
    box-shadow: 0 0 0 1px rgba(201,162,39,.35), 0 20px 50px rgba(0,0,0,.45);
}
.page-loader__orbit::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #E8C547;
    border-right-color: rgba(201,162,39,.25);
    animation: spin 1.1s linear infinite;
}
.page-loader__badge {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: #000;
    padding: 10px;
    display: grid;
    place-items: center;
    animation: pulseSoft 1.8s ease-in-out infinite;
}
.page-loader__badge img { width: 100%; height: 100%; object-fit: contain; }
.page-loader__name {
    color: var(--gold-light);
    letter-spacing: .28em;
    font-weight: 600;
    font-size: .82rem;
}
.page-loader__bar {
    width: 120px;
    height: 2px;
    background: rgba(201,162,39,.18);
    overflow: hidden;
    border-radius: 99px;
}
.page-loader__bar i {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #E8C547, transparent);
    animation: barSlide 1.1s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes barSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
@keyframes pulseSoft {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes riseIn {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroZoom {
    from { transform: scale(1.12); }
    to { transform: scale(1.02); }
}
@keyframes ruleGrow {
    from { width: 0; opacity: 0; }
    to { width: 48px; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    html.js .reveal, .reveal { opacity: 1; transform: none; }
    .hero-media img { transform: none; }
    .page-loader { display: none !important; }
    html.is-loading { overflow: auto; }
}
