/* =====================================================================
   Dar Al Umrah — Premium travel design system
   Palette: saffron yellows, ivory/off-white, light gold, warm greys. No blue.
   ===================================================================== */
:root {
  --ivory: #fffdf7;
  --off: #faf6ec;
  --sand: #f3ebd8;
  --champagne: #eadbb5;
  --butter: #fbe9a8;
  --honey: #f5c842;
  --saffron: #f0b400;
  --gold: #d4af5a;
  --gold-deep: #a97c22;
  --bronze: #7d5a17;
  --ink: #1f1b13;
  --ink-2: #463f31;
  --mute: #776f60;
  --line: #e8dfcb;
  --line-2: #d9cdb2;
  --night: #17140f;
  --night-2: #221e17;
  --ok: #4f7a3a;
  --warn: #b7791f;
  --danger: #a83a2a;

  --f-display: 'Noto Kufi Arabic', 'Almarai', sans-serif;
  --f-body: 'Almarai', 'Noto Kufi Arabic', system-ui, sans-serif;
  --r-sm: 10px; --r: 16px; --r-lg: 26px; --r-xl: 38px;
  --sh-1: 0 1px 2px rgba(60, 44, 10, .06), 0 4px 14px rgba(60, 44, 10, .06);
  --sh-2: 0 10px 30px -10px rgba(60, 44, 10, .22), 0 2px 6px rgba(60, 44, 10, .06);
  --sh-3: 0 30px 70px -25px rgba(60, 44, 10, .35);
  --ease: cubic-bezier(.22, .9, .25, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
html[lang='en'] { --f-display: 'Cormorant Garamond', 'Noto Kufi Arabic', serif; }
/* Arabic is cursive: letter-spacing breaks the joins between letters */
html[lang='ar'] :is(h1, h2, h3, h4, h5, .eyebrow, .brand-text small, .drawer h4, .footer h4, .toc b, .stars) { letter-spacing: 0; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16.5px; line-height: 1.8; color: var(--ink);
  background: var(--off); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--butter); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
html[lang='en'] h1, html[lang='en'] h2, html[lang='en'] h3 { font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--mute); }
.center { text-align: center; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font: 600 15.5px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-gold { --bg: linear-gradient(135deg, #f7d15a, var(--saffron) 55%, #e09c00); --fg: var(--ink); box-shadow: 0 8px 22px -10px rgba(224, 156, 0, .7); }
.btn-gold::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ivory); }
.btn-light { --bg: rgba(255, 253, 247, .14); --fg: var(--ivory); border-color: rgba(255, 253, 247, .35); backdrop-filter: blur(8px); }
.btn-light:hover { --bg: rgba(255, 253, 247, .24); }
.btn-wa { --bg: #2f7d4f; --fg: #fff; }
.btn-sm { padding: .55em 1.05em; font-size: 14px; }
.btn-lg { padding: 1em 1.9em; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .5); animation: ripple .6s var(--ease); pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--ink); text-decoration: none; }
.link-arrow svg { width: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir='rtl'] .link-arrow svg, [dir='rtl'] .flip { transform: scaleX(-1); }
[dir='rtl'] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Alert bar ---------- */
.alertbar { background: var(--ink); color: var(--champagne); font-size: 14px; position: relative; z-index: 60; }
.alertbar .container { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.alertbar a { color: var(--honey); }
.alertbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--honey); flex: none; box-shadow: 0 0 0 0 rgba(245, 200, 66, .6); animation: pulse 2s infinite; }
.alertbar.urgent { background: #5a2015; } .alertbar.warning { background: #4a3810; }
.alertbar .x { margin-inline-start: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245, 200, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 200, 66, 0); } }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; background: rgba(250, 246, 236, .86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.header.is-hero { background: transparent; backdrop-filter: none; }
body.has-hero main { margin-top: -78px; }
.header.is-hero:not(.scrolled) .nav-link, .header.is-hero:not(.scrolled) .brand, .header.is-hero:not(.scrolled) .icon-btn { color: var(--ivory); }
.header.scrolled { background: rgba(250, 246, 236, .92); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(60, 44, 10, .4); }
.header .bar { display: flex; align-items: center; gap: 18px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 700 23px/1 var(--f-display); }
.brand-text small { font-size: 11.5px; letter-spacing: .08em; opacity: .75; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; background: none; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.nav-link:hover, .nav-link[aria-current='page'] { background: rgba(240, 180, 0, .14); color: inherit; }
.nav-link svg { width: 14px; transition: transform .25s; }
.nav-item:hover .nav-link svg, .nav-item:focus-within .nav-link svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); inset-inline-start: 50%; transform: translate(50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; width: min(720px, 90vw); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
[dir='ltr'] .mega { transform: translate(-50%, 8px); }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(50%, 0); }
[dir='ltr'] .nav-item:hover .mega, [dir='ltr'] .nav-item:focus-within .mega { transform: translate(-50%, 0); }
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .2s; }
.mega a:hover { background: var(--off); }
.mega .mi { width: 40px; height: 40px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; flex: none; color: var(--gold-deep); }
.mega .mi svg { width: 20px; }
.mega b { display: block; font-size: 15px; font-weight: 600; }
.mega small { display: block; color: var(--mute); font-size: 13px; line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s; }
.icon-btn:hover { background: rgba(240, 180, 0, .16); color: inherit; }
.icon-btn svg { width: 21px; }
.badge { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--saffron); color: var(--ink); font: 700 11px/18px var(--f-body); text-align: center; }
.lang-btn { font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: inherit; border: 1px solid var(--line-2); }
.header.is-hero:not(.scrolled) .lang-btn { color: var(--ivory); border-color: rgba(255,255,255,.4); }
.menu-btn { display: none; }
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-inline-start: auto; }
  .header .cta-desktop { display: none; }
}

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(23, 20, 15, .5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(400px, 92vw); background: var(--ivory); padding: 20px 22px 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .4s var(--ease); }
[dir='ltr'] .drawer-panel { transform: translateX(100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: .12em; color: var(--mute); margin: 22px 0 6px; font-weight: 600; }
.drawer a.dl { display: block; padding: 11px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: var(--ivory); overflow: hidden; background: var(--night); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero-slide.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.02) translate3d(-1.5%, -1%, 0); } }
.hero::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 50% 110%, rgba(23,20,15,.95) 10%, rgba(23,20,15,.55) 45%, rgba(23,20,15,.15) 75%),
  linear-gradient(180deg, rgba(23,20,15,.55), rgba(23,20,15,0) 30%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 150px 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.hero .eyebrow { color: var(--honey); }
.hero h1 { color: var(--ivory); font-size: clamp(38px, 6.4vw, 82px); line-height: 1.12; max-width: 15ch; margin: 18px 0 18px; text-wrap: balance; }
.hero h1 .gold { background: linear-gradient(100deg, #ffe08a, var(--honey) 40%, #d9a520 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19.5px); max-width: 56ch; color: rgba(255, 253, 247, .86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-top: 56px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255,255,255,.3); cursor: pointer; border-radius: 3px; overflow: hidden; position: relative; }
.hero-dots button.active::after { content: ''; position: absolute; inset: 0; background: var(--honey); transform-origin: right; animation: dot 7s linear forwards; }
[dir='ltr'] .hero-dots button.active::after { transform-origin: left; }
@keyframes dot { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-caption { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-word { display: inline-block; opacity: 0; transform: translateY(.5em); animation: word .9s var(--ease) forwards; }
@keyframes word { to { opacity: 1; transform: none; } }

/* Quick finder */
.finder { position: relative; z-index: 3; margin-top: -46px; }
.finder-card { background: var(--ivory); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border: 1px solid var(--line); }
.finder-card a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; text-decoration: none; color: var(--ink); transition: background .25s, transform .25s var(--ease); }
.finder-card a:hover { background: var(--off); transform: translateY(-2px); color: inherit; }
.finder-card .fi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--butter), var(--honey)); color: var(--ink); flex: none; }
.finder-card .fi svg { width: 22px; }
.finder-card b { display: block; font-size: 15px; line-height: 1.3; }
.finder-card small { color: var(--mute); font-size: 12.5px; line-height: 1.4; display: block; }
@media (max-width: 980px) { .finder-card { grid-template-columns: repeat(2, 1fr); } .finder-card a:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .finder-card a { padding: 12px; } .finder-card small { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4vw, 50px); margin: 10px 0 0; max-width: 20ch; text-wrap: balance; }
.section-head p { max-width: 52ch; color: var(--mute); margin: 12px 0 0; }
.bg-ivory { background: var(--ivory); }
.bg-sand { background: var(--sand); }
.bg-night { background: var(--night); color: rgba(255, 253, 247, .82); }
.bg-night h2, .bg-night h3 { color: var(--ivory); }
.bg-night .eyebrow { color: var(--honey); }
.bg-night .muted, .bg-night .section-head p { color: rgba(255,253,247,.6); }
.pattern { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: url('/static/img/pattern.svg'); background-size: 120px; }

/* Page hero (inner pages) */
.page-hero { position: relative; padding-block: 140px 70px; color: var(--ivory); overflow: hidden; background: var(--night); isolation: isolate; }
.page-hero.compact { padding-block: 120px 50px; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-out forwards; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23,20,15,.92), rgba(23,20,15,.45) 60%, rgba(23,20,15,.6)); }
.page-hero h1 { color: var(--ivory); font-size: clamp(34px, 5vw, 62px); margin: 14px 0 12px; max-width: 22ch; text-wrap: balance; }
.page-hero p { color: rgba(255,253,247,.82); max-width: 60ch; font-size: 18px; margin: 0; }
.page-hero .eyebrow { color: var(--honey); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(255,253,247,.65); }
.crumbs a { color: rgba(255,253,247,.85); text-decoration: none; }
.crumbs a:hover { color: var(--honey); }
.page-hero.plain { background: var(--sand); color: var(--ink); padding-block: 56px 44px; }
.page-hero.plain::after { display: none; }
.page-hero.plain h1 { color: var(--ink); } .page-hero.plain p { color: var(--ink-2); }
.page-hero.plain .crumbs, .page-hero.plain .crumbs a { color: var(--mute); }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
a.card { text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: var(--champagne); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 22px 22px 24px; }
.card-body h3 { font-size: 22px; margin-bottom: 8px; }
.card-body p { color: var(--mute); font-size: 15px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--bronze); font-size: 12.5px; font-weight: 600; }
.chip-gold { background: linear-gradient(135deg, var(--butter), var(--honey)); color: var(--ink); }
.chip-dark { background: rgba(23,20,15,.72); color: var(--honey); backdrop-filter: blur(6px); }
.card-media .chip { position: absolute; top: 14px; inset-inline-start: 14px; }

/* Bento services */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 18px; }
.bento .tile { grid-column: span 4; position: relative; border-radius: var(--r-lg); overflow: hidden; color: var(--ivory); text-decoration: none; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.bento .tile:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.bento .tile:nth-child(2) { grid-column: span 5; }
.bento .tile:nth-child(3) { grid-column: span 5; }
.bento .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.bento .tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23,20,15,.88) 5%, rgba(23,20,15,.15) 65%); transition: background .4s; }
.bento .tile:hover img { transform: scale(1.08); }
.bento .tile:hover::after { background: linear-gradient(0deg, rgba(23,20,15,.92) 15%, rgba(23,20,15,.3) 80%); }
.bento .tile h3 { color: var(--ivory); font-size: clamp(22px, 2.2vw, 30px); margin: 10px 0 6px; }
.bento .tile p { color: rgba(255,253,247,.8); margin: 0; font-size: 15px; max-width: 46ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.bento .tile:hover p, .bento .tile:focus-visible p, .bento .tile:nth-child(1) p { max-height: 7em; opacity: 1; }
.bento .ti { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,253,247,.14); backdrop-filter: blur(8px); display: grid; place-items: center; color: var(--honey); border: 1px solid rgba(255,253,247,.2); }
.bento .ti svg { width: 22px; }
.bento .go { position: absolute; top: 22px; inset-inline-end: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--honey); color: var(--ink); display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: .4s var(--ease); }
.bento .tile:hover .go { transform: scale(1) rotate(0); opacity: 1; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } .bento .tile, .bento .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; } .bento .tile:nth-child(1) { grid-column: span 2; } .bento .tile p { max-height: 7em; opacity: 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .tile:nth-child(1) { grid-column: span 1; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-block: 1px solid var(--line); }
.stat { padding: 34px 20px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font: 700 clamp(38px, 5vw, 58px)/1 var(--f-display); color: var(--ink); }
.stat b span { background: linear-gradient(120deg, var(--gold-deep), var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--mute); font-size: 14.5px; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-inline-start: 0; } .stat { border-top: 1px solid var(--line); } }

/* Journey timeline (home) */
.journey { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.journey-steps { list-style: none; padding: 0; margin: 0; position: relative; }
.journey-steps::before { content: ''; position: absolute; inset-block: 18px; inset-inline-start: 21px; width: 2px; background: linear-gradient(var(--honey), rgba(240,180,0,.1)); }
.journey-steps li { position: relative; padding-inline-start: 66px; padding-block: 12px; cursor: pointer; }
.journey-steps .n { position: absolute; inset-inline-start: 0; top: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); color: var(--honey); border: 1px solid rgba(245,200,66,.35); font-weight: 700; transition: .35s var(--ease); }
.journey-steps li.active .n { background: var(--honey); color: var(--ink); transform: scale(1.1); box-shadow: 0 0 0 8px rgba(245,200,66,.15); }
.journey-steps h3 { font-size: 21px; margin: 4px 0 2px; transition: color .3s; }
.journey-steps p { margin: 0; font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
.journey-steps li.active p { max-height: 6em; opacity: 1; }
.journey-steps li:not(.active) h3 { color: rgba(255,253,247,.6); }
.journey-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); }
.journey-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s, transform 1.6s var(--ease); }
.journey-visual img.active { opacity: 1; transform: scale(1); }
.journey-visual .frame { position: absolute; inset: 16px; border: 1px solid rgba(245,200,66,.5); border-radius: calc(var(--r-xl) - 10px); pointer-events: none; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .journey-visual { aspect-ratio: 16/10; order: -1; } }

/* Tools showcase */
.tool-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 230px; background: linear-gradient(160deg, var(--ivory), var(--off)); }
.tool-card .ic { width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: var(--honey); display: grid; place-items: center; transition: transform .45s var(--ease); }
.tool-card:hover .ic { transform: rotate(-8deg) scale(1.06); }
.tool-card .ic svg { width: 26px; }
.tool-card h3 { font-size: 21px; margin: 6px 0 0; }
.tool-card p { color: var(--mute); margin: 0; font-size: 15px; flex: 1; }

/* Countdown teaser */
.teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 0% 0%, #3a3020, var(--night) 60%); color: var(--ivory); overflow: hidden; position: relative; }
.teaser h2 { color: var(--ivory); font-size: clamp(28px, 3.4vw, 42px); }
.teaser p { color: rgba(255,253,247,.75); }
.clock { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.clock div { min-width: 82px; padding: 16px 10px; border-radius: 18px; background: rgba(255,253,247,.06); border: 1px solid rgba(245,200,66,.25); text-align: center; }
.clock b { display: block; font: 700 40px/1 var(--f-display); color: var(--honey); font-variant-numeric: tabular-nums; }
.clock small { font-size: 12px; color: rgba(255,253,247,.6); }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; } .clock div { min-width: 0; flex: 1; } .clock b { font-size: 30px; } }

/* Reviews */
.review { padding: 26px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.stars { color: var(--saffron); letter-spacing: 2px; font-size: 17px; }
.review blockquote { margin: 0; font-size: 16px; color: var(--ink-2); flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--butter), var(--gold)); display: grid; place-items: center; font-weight: 700; color: var(--ink); flex: none; }
.empty { border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 40px 24px; text-align: center; color: var(--mute); background: var(--ivory); }
.empty svg { width: 42px; margin: 0 auto 10px; color: var(--gold); }

/* CTA band */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; color: var(--ivory); padding: clamp(36px, 6vw, 80px); isolation: isolate; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,20,15,.9), rgba(23,20,15,.4)); }
[dir='rtl'] .cta-band::after { background: linear-gradient(-90deg, rgba(23,20,15,.9), rgba(23,20,15,.4)); }
.cta-band h2 { color: var(--ivory); font-size: clamp(28px, 4vw, 48px); max-width: 18ch; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(255,253,247,.7); padding-block: 70px 28px; margin-top: 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer h4 { color: var(--ivory); font-family: var(--f-body); font-size: 15px; letter-spacing: .04em; margin-bottom: 14px; }
.footer a { color: rgba(255,253,247,.72); text-decoration: none; }
.footer a:hover { color: var(--honey); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer .brand { color: var(--ivory); margin-bottom: 14px; }
.footer .bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,253,247,.1); font-size: 13.5px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,253,247,.15); }
.socials a:hover { background: var(--honey); color: var(--ink); border-color: var(--honey); }
.socials svg { width: 18px; }
@media (max-width: 900px) { .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: span 2; } }

/* ---------- Content (guides, articles) ---------- */
.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.toc { position: sticky; top: 100px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; font-size: 14.5px; }
.toc b { display: block; font-size: 12.5px; letter-spacing: .1em; color: var(--mute); margin-bottom: 10px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; border-inline-start: 2px solid transparent; line-height: 1.5; }
.toc a.l3 { padding-inline-start: 22px; font-size: 13.5px; }
.toc a:hover, .toc a.active { background: var(--off); border-inline-start-color: var(--saffron); color: var(--ink); }
.toc .actions { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } .toc nav { display: none; } .toc.open nav { display: block; } }
.prose { font-size: 17.5px; line-height: 1.95; color: var(--ink-2); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.8em 0 .6em; padding-top: .2em; scroll-margin-top: 110px; color: var(--ink); }
.prose h2::before { content: ''; display: block; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--saffron), var(--gold)); margin-bottom: 14px; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .4em; scroll-margin-top: 110px; color: var(--ink); }
.prose > :first-child, .prose > :first-child::before { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--gold-deep); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; background: linear-gradient(135deg, #fff7dc, var(--ivory)); border-inline-start: 4px solid var(--saffron); border-radius: 0 var(--r) var(--r) 0; color: var(--ink-2); font-size: 16.5px; }
[dir='rtl'] .prose blockquote { border-radius: var(--r) 0 0 var(--r); }
.prose blockquote p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--ivory); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
.prose th { background: var(--sand); color: var(--ink); text-align: start; font-weight: 700; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: start; }
.prose tr:last-child td { border-bottom: 0; }
.prose a[href^='tel:'] { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; background: var(--butter); color: var(--ink); font-weight: 700; text-decoration: none; direction: ltr; }
.sources { margin-top: 40px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--sand); }
.sources h3 { font-size: 18px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.sources ul { margin: 0; padding-inline-start: 1.2em; font-size: 15px; }

/* ---------- Forms ---------- */
.form-card { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--sh-1); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .fields, .f3 { grid-template-columns: minmax(0, 1fr); } }
.field label, .label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); }
.field label small { color: var(--mute); font-weight: 400; }
.input, .field input:not([type='checkbox']):not([type='radio']), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--off); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 15px; transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23776f60' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left 14px center; padding-inline-end: 40px; }
[dir='ltr'] .field select { background-position: right 14px center; }
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron); background: var(--ivory); box-shadow: 0 0 0 4px rgba(240,180,0,.18); }
.field .hint { font-size: 13px; color: var(--mute); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold-deep); flex: none; margin-top: 3px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; font-size: 15px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.notice svg { width: 20px; flex: none; margin-top: 3px; }
.notice.success { background: #eef5e6; color: #2f4d22; border: 1px solid #cfe2bf; }
.notice.error { background: #fbece8; color: #6e2318; border: 1px solid #f0cdc5; }
.notice.info { background: #fff6d8; color: var(--bronze); border: 1px solid var(--butter); }
.notice ul { margin: 0; padding-inline-start: 1.2em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--sand); padding: 5px; border-radius: 999px; }
.seg a, .seg button, .seg label { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; font: 600 14px var(--f-body); color: var(--ink-2); cursor: pointer; text-decoration: none; transition: .25s; }
.seg .on, .seg a[aria-current='true'], .seg input:checked + span { background: var(--ivory); color: var(--ink); box-shadow: var(--sh-1); }
.seg label { position: relative; padding: 0; }
.seg label span { display: block; padding: 8px 16px; border-radius: 999px; }
.seg label input { position: absolute; opacity: 0; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
[dir='rtl'] .rating-input { flex-direction: row-reverse; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 30px; color: var(--line-2); cursor: pointer; transition: color .15s, transform .2s; margin: 0; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--saffron); }
.rating-input label:hover { transform: scale(1.15); }

/* ---------- Tools UI ---------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 980px) { .tool-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 100px; }
.result-card { background: var(--night); color: var(--ivory); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-3); position: relative; overflow: hidden; }
.result-card::before { content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%; inset-inline-end: -120px; top: -160px; background: radial-gradient(circle, rgba(245,200,66,.25), transparent 65%); }
.result-card h3 { color: var(--ivory); }
.big-num { font: 700 clamp(36px, 5vw, 54px)/1.1 var(--f-display); color: var(--honey); font-variant-numeric: tabular-nums; }
.breakdown { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.breakdown li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 15px; }
.breakdown .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.breakdown .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--honey)); width: 0; transition: width .8s var(--ease); }
.rooms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.room { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; background: var(--off); }
.room b { display: block; font-size: 14px; }
.room small { color: var(--mute); font-size: 12px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.stepper button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ivory); cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); }
.stepper button:hover { background: var(--butter); }
.stepper input { width: 42px; text-align: center; border: 0; background: transparent; font: 700 18px var(--f-body); color: var(--ink); }
@media (max-width: 560px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
.progress-ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--saffron) calc(var(--p) * 1%), var(--sand) 0); transition: --p .6s; position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--ivory); }
.progress-ring b { position: relative; font: 700 32px var(--f-display); }
.progress-line { height: 10px; border-radius: 10px; background: var(--sand); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--saffron)); border-radius: 10px; transition: width .6s var(--ease); }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { border-bottom: 1px solid var(--line); }
.task-list label { display: flex; gap: 12px; align-items: center; padding: 13px 4px; cursor: pointer; transition: background .2s; border-radius: 10px; }
.task-list label:hover { background: var(--off); }
.task-list input { appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; transition: .2s; cursor: pointer; margin: 0; }
.task-list input:checked { background: var(--saffron); border-color: var(--saffron); }
.task-list input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.task-list input:checked + span { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--gold); }
.phase { margin-bottom: 18px; }
.phase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; }
.phase-head h3 { margin: 0; font-size: 20px; }
.phase-head .count { font-weight: 700; color: var(--gold-deep); font-size: 14px; }
.phase-body { padding: 0 22px 14px; }
.itinerary { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.itinerary th { background: var(--sand); padding: 12px; text-align: start; font-weight: 700; position: sticky; top: 0; }
.itinerary td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.itinerary td[contenteditable] { outline: none; border-radius: 6px; transition: background .2s; }
.itinerary td[contenteditable]:hover { background: #fff7dc; }
.itinerary td[contenteditable]:focus { background: #fff1c2; box-shadow: inset 0 0 0 2px var(--honey); }
.itinerary .city { font-weight: 700; white-space: nowrap; }
.itinerary .city.makkah { color: var(--gold-deep); } .itinerary .city.madinah { color: var(--ok); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--off); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.kpi b { display: block; font: 700 28px var(--f-display); }
.kpi small { color: var(--mute); font-size: 13px; }

/* Accordion */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--ivory); margin-bottom: 10px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.acc[open] { box-shadow: var(--sh-1); border-color: var(--champagne); }
.acc summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; transition: transform .35s var(--ease), background .3s; }
.acc[open] summary .plus { transform: rotate(45deg); background: var(--honey); }
.acc .acc-body { padding: 0 22px 20px; color: var(--ink-2); }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ivory); font: 600 14.5px var(--f-body); cursor: pointer; color: var(--ink-2); transition: .25s; }
.tab[aria-selected='true'] { background: var(--ink); color: var(--honey); border-color: var(--ink); }
.tabpanel[hidden] { display: none; }
.gate { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--ivory); transition: .3s var(--ease); }
.gate:hover { border-color: var(--honey); transform: translateY(-3px); box-shadow: var(--sh-2); }
.gate .no { width: 70px; height: 70px; border-radius: 18px; background: var(--night); color: var(--honey); display: grid; place-items: center; font: 700 26px var(--f-display); }
.gate .no.na { font-size: 22px; }
.gate h4 { margin: 0 0 2px; font-size: 18px; }

/* Map */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-2); height: 520px; position: relative; background: var(--sand); }
#map { width: 100%; height: 100%; }
.leaflet-tile-pane { filter: sepia(.35) saturate(.8) hue-rotate(-8deg) brightness(1.02); }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(135deg, var(--honey), var(--gold-deep)); border: 3px solid var(--ivory); box-shadow: 0 6px 16px rgba(60,44,10,.35); }
.pin.madinah { background: linear-gradient(135deg, #e9d29a, #8a6d2a); }
.leaflet-popup-content-wrapper { border-radius: 16px !important; font-family: var(--f-body); }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; }
.pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 16px 16px 0 0; }
.pop div { padding: 10px 14px 14px; }
.pop b { display: block; font-size: 15px; }
.pop p { margin: 4px 0 0 !important; font-size: 13px; color: var(--mute); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ivory) !important; }
.place-list { display: grid; gap: 10px; max-height: 520px; overflow-y: auto; padding-inline-end: 4px; }
.place { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; text-align: start; font: inherit; color: inherit; width: 100%; transition: .25s; }
.place:hover, .place.on { border-color: var(--honey); background: #fffaf0; }
.place img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.place b { display: block; font-size: 15px; }
.place small { color: var(--mute); font-size: 13px; line-height: 1.4; display: block; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.new { background: #fff3cf; color: #8a5d00; }
.status.contacting { background: #f4ead3; color: #7d5a17; }
.status.confirmed { background: #e7f1df; color: #3c6b27; }
.status.cancelled { background: #f6e3df; color: #8d3021; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding-inline-start: 30px; padding-bottom: 16px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 6px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 4px #fff3cf; }
.timeline li::after { content: ''; position: absolute; inset-inline-start: 11px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.steps-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 20px 0; }
.steps-track div { text-align: center; position: relative; font-size: 13.5px; color: var(--mute); }
.steps-track div::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 8px; background: var(--line); position: relative; z-index: 1; }
.steps-track div::after { content: ''; position: absolute; top: 8px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.steps-track div:last-child::after { display: none; }
.steps-track div.done { color: var(--ink); font-weight: 600; }
.steps-track div.done::before, .steps-track div.done::after { background: var(--saffron); }

/* Price table */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.price { text-align: center; padding: 16px 8px; border-radius: 16px; background: var(--off); border: 1px solid var(--line); }
.price b { display: block; font: 700 22px var(--f-display); }
.price small { color: var(--mute); }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1b13' stroke-width='3'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Assistant widget */
.ai-fab { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 70; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(140deg, #f7d15a, var(--saffron)); color: var(--ink); box-shadow: 0 14px 30px -10px rgba(224,156,0,.8); display: grid; place-items: center; transition: transform .3s var(--ease); }
.ai-fab:hover { transform: scale(1.07) rotate(-6deg); }
.ai-fab svg { width: 28px; }
.ai-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--honey); opacity: 0; animation: ring 3s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .7; } 80%, 100% { transform: scale(1.3); opacity: 0; } }
.ai-panel { position: fixed; bottom: 96px; inset-inline-start: 22px; z-index: 71; width: min(390px, calc(100vw - 32px)); max-height: min(600px, calc(100svh - 130px)); display: flex; flex-direction: column; background: var(--ivory); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-3); overflow: hidden; transform-origin: bottom left; transform: scale(.9) translateY(10px); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
[dir='ltr'] .ai-panel { transform-origin: bottom right; }
.ai-panel.open { transform: none; opacity: 1; visibility: visible; }
.ai-head { padding: 16px 18px; background: var(--night); color: var(--ivory); display: flex; align-items: center; gap: 12px; }
.ai-head b { display: block; font-size: 16px; } .ai-head small { color: rgba(255,253,247,.6); font-size: 12.5px; }
.ai-head .icon-btn { color: var(--ivory); margin-inline-start: auto; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--off); min-height: 220px; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.7; white-space: pre-line; animation: msg .35s var(--ease); }
@keyframes msg { from { opacity: 0; transform: translateY(6px); } }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--ivory); border-end-end-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--ivory); border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.msg .links a { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--butter); color: var(--ink); text-decoration: none; white-space: normal; }
.ai-suggest { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; background: var(--off); }
.ai-suggest button { font: 500 12.5px var(--f-body); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ivory); cursor: pointer; color: var(--ink-2); }
.ai-suggest button:hover { border-color: var(--saffron); }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--ivory); }
.ai-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; font: inherit; font-size: 15px; background: var(--off); min-width: 0; }
.ai-form input:focus { outline: none; border-color: var(--saffron); }
.ai-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--honey); display: grid; place-items: center; cursor: pointer; flex: none; }
.ai-form button svg { width: 19px; }
.ai-note { font-size: 11.5px; color: var(--mute); padding: 0 14px 10px; background: var(--ivory); }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin: 0 2px; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.wa-fab { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #2f7d4f; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(47,125,79,.8); transition: transform .3s var(--ease); }
.wa-fab:hover { transform: scale(1.07); color: #fff; }
.wa-fab svg { width: 28px; }

/* Toast */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--ivory); padding: 12px 20px; border-radius: 999px; font-size: 14.5px; z-index: 120; opacity: 0; transition: .35s var(--ease); pointer-events: none; box-shadow: var(--sh-3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 12% 12% 12% round 30px); transition: clip-path 1.4s var(--ease); }
.reveal-img.in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
.parallax { will-change: transform; }

/* Pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--ivory); }
.pager .on { background: var(--ink); color: var(--honey); border-color: var(--ink); }

/* Misc */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.img-frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4/3; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.info-row { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--mute); font-size: 14.5px; }
.info-row span { display: inline-flex; align-items: center; gap: 6px; }
.info-row svg { width: 17px; color: var(--gold-deep); }
.panel { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.panel h3 { font-size: 21px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.kbd { font-family: ui-monospace, monospace; background: var(--sand); padding: 2px 8px; border-radius: 6px; font-size: .9em; direction: ltr; display: inline-block; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; width: 100%; }
.dash-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a { padding: 11px 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.dash-nav a:hover { background: var(--off); }
.dash-nav svg { width: 18px; color: var(--gold-deep); }
.booking-item { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--off); margin-bottom: 12px; }
.booking-item header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }

@media print {
  .header, .footer, .ai-fab, .ai-panel, .wa-fab, .alertbar, .no-print, .toc .actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page-hero { padding: 20px 0; background: none; color: #000; }
  .page-hero::after, .page-hero .bg { display: none; }
  .page-hero h1, .page-hero p { color: #000; }
  .card, .panel, .form-card { box-shadow: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .itinerary td[contenteditable] { background: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { clip-path: none; }
}

/* Uploaded logo (wide, light background) */
.brand-logo { height: 68px; width: auto; max-width: 190px; object-fit: contain; background: var(--ivory); border-radius: 14px; padding: 4px 10px; box-shadow: var(--sh-1); }
.footer .brand-logo { height: 110px; max-width: 240px; }
.drawer .brand-logo { height: 48px; }
@media (max-width: 560px) { .header .brand-logo { height: 54px; max-width: 140px; } }

/* Small phones: keep the header row inside 360–420px screens */
html, body { overflow-x: clip; }
@media (max-width: 430px) {
  .header .bar { gap: 8px; }
  .header-actions { gap: 2px; }
  .lang-btn { padding: 6px 9px; font-size: 13px; }
  .brand-text small { display: none; }
  .header .brand-mark { width: 38px; height: 38px; }
}
.doc-layout > * { min-width: 0; }
.toc .actions .btn { white-space: normal; justify-content: center; text-align: center; }
@media (max-width: 430px) {
  .header .brand { min-width: 0; flex: 0 1 auto; }
  .header .brand-text { min-width: 0; overflow: hidden; }
  .header .brand-text b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .header-actions { flex: none; }
}

/* Arabic typography: Kufi headings need more line room than Latin serifs */
html[lang='ar'] :is(h1, h2, h3, h4) { line-height: 1.55; font-weight: 700; }
html[lang='ar'] .hero h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.45; font-weight: 800; text-shadow: 0 2px 24px rgba(23, 20, 15, .35); }
html[lang='ar'] .brand-text b { line-height: 1.3; }
html[lang='ar'] body { line-height: 1.9; }
