/* Haramain Guide: mobile-first, deep green + gold. Logical properties make RTL work without a second sheet. */
:root {
  --green-900: #072b20;
  --green-800: #0b3d2e;
  --green-700: #11553f;
  --green-100: #e4efe9;
  --gold: #c9a24b;
  --gold-dark: #9a7728;
  --gold-soft: #f5ecd3;
  --cream: #f7f2e6;
  --ink: #1b2a24;
  --muted: #5d6b64;
  --line: #dcd6c4;
  --danger: #a32020;
  --radius: 20px;
  --sai-t: env(safe-area-inset-top, 0px); --sai-b: env(safe-area-inset-bottom, 0px); --sai-l: env(safe-area-inset-left, 0px); --sai-r: env(safe-area-inset-right, 0px);
  --bar-h: 64px; --tab-h: 72px;
  --teal: #0f5c57; --sand: #f3ecdc;
  --shadow: 0 1px 2px rgba(7, 43, 32, .06), 0 6px 18px rgba(7, 43, 32, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Naskh Arabic", "Noto Nastaliq Urdu", "Noto Sans Bengali", "Noto Sans Devanagari", Arial, sans-serif;
  /* Eight-point star tile, drawn in CSS gradients (no images, CSP safe) */
  --tile: conic-gradient(from 45deg at 50% 50%, transparent 0 25%, rgba(201, 162, 75, .16) 0 50%, transparent 0 75%, rgba(201, 162, 75, .16) 0);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--cream); }
img, svg { max-width: 100%; }
a { color: var(--green-700); }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--green-800); }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 2rem - var(--sai-l) - var(--sai-r)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Sample banner */
.sample-banner { background: var(--gold-soft); color: #5b4511; font-size: .85rem; padding: .4rem 0; text-align: center; border-bottom: 1px solid var(--line); }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 52px; transition: transform .12s, background-color .15s; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #1b1405; }
.btn-gold:hover { background: #d8b45e; color: #1b1405; }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn-ghost:hover { background: var(--green-100); color: var(--green-800); }
.btn-sm { padding: .5rem 1.1rem; min-height: 48px; font-size: .95rem; }
.btn-block { width: 100%; }
.is-disabled { cursor: not-allowed; }
.btn.is-disabled { color: var(--muted); border-color: var(--muted); border-style: dashed; background: transparent; }
.btn.is-disabled:hover { background: transparent; color: var(--muted); }

/* Hero with arches */
.hero { background: var(--green-800) var(--tile); background-size: 28px 28px; color: #fff; padding: 2rem 0 2.5rem; }
.hero h1 { color: #fff; }
.hero .lead { color: #d9e7e0; max-width: 40rem; }
.arches { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.arch { display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; min-height: 190px; padding: 1.2rem 1rem; text-decoration: none; color: #fff; background: linear-gradient(180deg, rgba(201, 162, 75, .18), rgba(7, 43, 32, .85)); border: 2px solid var(--gold); border-radius: 999px 999px var(--radius) var(--radius); text-align: center; }
.arch:hover { background: linear-gradient(180deg, rgba(201, 162, 75, .35), rgba(7, 43, 32, .9)); color: #fff; }
.arch-name { font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.arch-sub { font-size: .85rem; color: #d9e7e0; }
.arch-cta { margin-top: .5rem; font-size: .85rem; text-decoration: underline; }

/* Sections */
.block { padding-block: 1.5rem; }
.page-head { padding-block: 1.5rem .5rem; }
.page-head .lead { color: var(--muted); max-width: 46rem; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: .25rem; }
.head-meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; margin-top: -1.5rem; position: relative; border-block-start: 4px solid var(--gold); }
.module-grid, .country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; list-style: none; padding: 0; margin: 0; }
.module-card { display: flex; flex-direction: column; gap: .3rem; padding: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-block-end: 3px solid transparent; }
.module-card:hover { border-block-end-color: var(--gold); }
.module-card strong { color: var(--green-800); }
.module-card span { font-size: .85rem; color: var(--muted); }
.icon { width: 28px; height: 28px; fill: var(--gold-dark); }
.cta-band { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--green-800) var(--tile); background-size: 24px 24px; color: #fff; align-items: flex-start; }
.cta-band h2 { color: var(--gold); }
.cta-band p { color: #d9e7e0; margin: 0; }

/* Forms */
label { display: block; }
label > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .2rem; color: var(--green-800); }
input[type=text], input[type=number], input[type=email], input[type=tel], input[type=date], input[type=search], select, textarea { width: 100%; padding: .65rem .75rem; font: inherit; border: 1px solid #b9b39d; border-radius: 10px; background: #fff; color: var(--ink); min-height: 52px; }
input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--green-700); flex: none; }
label.check { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; min-height: 48px; }
label.check span { margin: 0; font-weight: 400; color: var(--ink); font-size: .95rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .7rem; }
legend { font-weight: 700; color: var(--green-800); padding: 0; margin-bottom: .4rem; border-block-end: 2px solid var(--gold); display: block; width: 100%; }
.inline-form { display: grid; gap: .8rem; align-items: end; }
.pair, .triple { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.triple { grid-template-columns: repeat(3, 1fr); }
.form-card { background: #fff; padding: 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.field-error { color: var(--danger); display: block; margin-top: .2rem; }
.notice { background: var(--gold-soft); border-inline-start: 5px solid var(--gold); padding: .8rem 1rem; border-radius: 8px; margin: .8rem 0; }
.notice-error { background: #fbe9e9; border-color: var(--danger); color: var(--danger); }
details.pick { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .8rem; background: var(--cream); }
details.pick summary { cursor: pointer; font-weight: 600; padding: .3rem 0; }
.ref { font-size: 1.3rem; }
.ref strong { letter-spacing: .08em; background: var(--gold-soft); padding: .2rem .6rem; border-radius: 6px; }

/* Listings */
.listing { display: grid; gap: 1rem; padding-block: 1rem 2rem; }
.filter-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .6rem 1rem; }
.filter-box summary { cursor: pointer; font-weight: 700; padding: .8rem 0; min-height: 48px; color: var(--green-800); }
.filter-box form { padding-block: .5rem 1rem; display: grid; gap: .5rem; }
.filter-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.count { background: var(--gold); color: #1b1405; border-radius: 999px; padding: 0 .5rem; font-size: .8rem; }
.result-count { font-weight: 600; color: var(--muted); }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border-block-end: 3px solid transparent; transition: border-color .15s; }
.card:hover { border-block-end-color: var(--gold); }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.card-body h3 { margin: .2rem 0; }
.card-body h3 a { text-decoration: none; color: var(--green-800); }
.stretch::after { content: ""; position: absolute; inset: 0; }
.card-quote { position: relative; z-index: 2; margin-top: auto; align-self: flex-start; }
.card-top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.walk { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.walk .icon { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: .3rem 0; }
.tags li, .chip { background: var(--green-100); color: var(--green-800); border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; }
.price { margin: .4rem 0; }
.price strong { font-size: 1.1rem; color: var(--green-800); }
.price-note { display: block; color: var(--muted); font-size: .75rem; }
.stars { color: var(--gold-dark); letter-spacing: 2px; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.badge-sample { background: var(--gold-soft); color: #6b520f; border: 1px dashed var(--gold-dark); }
.badge-source { background: var(--green-100); color: var(--green-800); }
.route { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.route-line { display: inline-block; width: 36px; height: 2px; background: var(--gold); position: relative; vertical-align: middle; }
.route-line::after { content: ""; position: absolute; inset-inline-end: -1px; top: -3px; width: 8px; height: 8px; border-block-start: 2px solid var(--gold); border-inline-end: 2px solid var(--gold); transform: rotate(45deg); }
[dir=rtl] .route-line::after { transform: rotate(-135deg); }
.empty { padding: 2rem; text-align: center; background: #fff; border-radius: var(--radius); }

/* Photo placeholders: geometric, no images */
.ph { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: .6rem .8rem; color: #fff; background: var(--tile), linear-gradient(135deg, var(--green-700), var(--green-900)); background-size: 26px 26px, auto; }
.ph-madinah { background: var(--tile), linear-gradient(135deg, #1c6b4c, #0a3b2a); background-size: 26px 26px, auto; }
.ph-city { font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.gallery { display: grid; gap: .6rem; grid-template-columns: 1fr; }
.gallery { min-width: 0; }
.gallery img, .gallery .ph { border-radius: var(--radius); width: 100%; max-width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }

/* Detail */
.detail { display: grid; gap: 1.2rem; padding-block: 1rem 2.5rem; }
.detail-main { display: grid; gap: 1.2rem; min-width: 0; }
.group { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; }
.group h2 { border-inline-start: 4px solid var(--gold); padding-inline-start: .6rem; font-size: 1.15rem; }
.facts { display: grid; gap: .6rem; margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: .6rem; padding-block: .35rem; border-block-end: 1px dotted var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts-wide > div { grid-template-columns: 1fr; }
.facs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .6rem; }
.facs li { padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; }
.facs li.on { background: var(--green-100); color: var(--green-800); }
.facs li.on::before { content: "\2713\00a0"; font-weight: 700; }
.facs li.off { background: #f1eee4; color: #8a8777; text-decoration: line-through; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: start; padding: .5rem .6rem; border-block-end: 1px solid var(--line); }
thead th { background: var(--green-100); color: var(--green-800); }
.buy-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; border-block-start: 4px solid var(--gold); display: grid; gap: .6rem; }
.price-big strong { font-size: 1.8rem; color: var(--green-800); }
.book-actions { display: grid; gap: .6rem; }
.meter-row { margin: .6rem 0; }
meter { width: 100%; height: 14px; }
.map { height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--green-100); border: 1px solid var(--line); z-index: 0; }
.map-full { height: 65vh; min-height: 360px; }
.map-fallback { padding: 1rem; color: var(--muted); }
.map-list { margin-bottom: 1rem; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; list-style: none; padding: 0; margin: .8rem 0 0; font-size: .9rem; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: .4rem; background: #555; }
.dot-airport { background: #2b6cb0; } .dot-haram { background: var(--gold-dark); } .dot-station { background: #7b3fa0; } .dot-ziyarat { background: #2f855a; } .dot-hotel { background: var(--green-800); }
.country { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .9rem .5rem; text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); height: 100%; }
.country:hover { outline: 2px solid var(--gold); }
.flag { font-size: 2rem; line-height: 1; }
.country-name { font-weight: 600; color: var(--green-800); }
.country small { color: var(--muted); }
.small-h { font-size: 1.05rem; margin-top: 1rem; }

/* Ads */
.ad { margin: 1rem auto; width: min(1100px, 100% - 2rem); text-align: center; border: 1px dashed var(--line); border-radius: 8px; padding: .5rem; color: var(--muted); font-size: .85rem; }
.ad small { display: block; font-size: .7rem; text-transform: uppercase; }

/* Footer */
.site-footer { margin-top: 2rem; background: var(--green-900); color: #cfdcd5; padding: 1.5rem 0; border-block-start: 4px solid var(--gold); font-size: .9rem; }
.site-footer .muted { color: #9fb3aa; }
.footer-brand { color: var(--gold); font-weight: 700; font-size: 1.1rem; margin-bottom: .2rem; }

/* Chat widget */
.chat { position: fixed; inset-inline-end: calc(1rem + var(--sai-r)); bottom: calc(var(--tab-h) + var(--sai-b) + .9rem); z-index: 80; }
.chat[hidden] { display: none; }
.chat-toggle { display: flex; align-items: center; gap: .5rem; background: var(--gold); color: #1b1405; border: 0; border-radius: 999px; padding: .75rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); min-height: 48px; }
.chat-toggle .icon { fill: #1b1405; width: 22px; height: 22px; }
.chat-panel { position: fixed; inset: auto 0 0 0; height: min(78vh, 560px); padding-block-end: var(--sai-b); background: #fff; display: flex; flex-direction: column; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .3); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-panel > header { display: flex; justify-content: space-between; align-items: center; background: var(--green-800); color: #fff; padding: .7rem 1rem; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; min-width: 44px; min-height: 44px; }
.chat-log { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; background: var(--cream); }
.msg { max-width: 88%; padding: .55rem .8rem; border-radius: 14px; font-size: .95rem; overflow-wrap: anywhere; }
.msg-bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg-user { background: var(--green-700); color: #fff; align-self: flex-end; }
.msg ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.msg li a { display: block; padding: .4rem .6rem; border-radius: 8px; background: var(--green-100); text-decoration: none; color: var(--green-800); }
.msg li small { display: block; color: var(--muted); }
.chat-note { font-size: .72rem; color: var(--muted); margin: 0; padding: .3rem .8rem; background: var(--cream); }
/* Hotel photo carousel (scroll-snap) and card thumbnails */
.carousel { position: relative; min-width: 0; margin-block-end: .8rem; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.carousel-track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; min-width: 0; }
.slide img { width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 70vh; object-fit: cover; display: block; background: var(--green-100); }
.slide-cap { padding: .7rem 1rem .9rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; }
.slide-cap .cap { margin: 0; font-weight: 600; }
.slide-cap .credit { margin: 0; }
.badge-area { background: var(--gold-soft); color: #6b520f; border: 1px solid var(--gold-dark); }
.car-btn { position: absolute; top: 35%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--green-800); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.car-btn:focus-visible { outline: 3px solid var(--gold); }
.car-prev { inset-inline-start: .6rem; } .car-next { inset-inline-end: .6rem; }
[dir=rtl] .car-btn { transform: translateY(-50%) scaleX(-1); }
.card-thumb { position: relative; flex: none; min-height: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-100); }
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb .badge-area { position: absolute; inset-block-end: .5rem; inset-inline-start: .5rem; }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

.room-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.room-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.room-card .carousel { margin: 0; border-radius: 0; box-shadow: none; }
.room-card .slide img { max-height: 40vh; }
.room-ph { aspect-ratio: 3 / 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; background: var(--gold-soft); color: #6b520f; font-weight: 600; }
.room-card .slide-cap { padding: .4rem .8rem; }
.room-body { padding: .8rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.room-body h3 { margin: 0; }
.room-body p { margin: 0; }
.room-card .car-btn { top: 40%; width: 44px; height: 44px; }
.room-toggle { display: flex; gap: .25rem; padding: .5rem; background: var(--sand); border-block-end: 1px solid var(--line); }
.room-toggle[hidden], .room-media [hidden] { display: none; }
.room-tab { flex: 1; min-height: 44px; padding: .4rem .8rem; border: 1px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; }
.room-tab[aria-pressed=true] { background: var(--teal); color: #fff; }
.room-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.room-plan { margin: 0; background: var(--sand); }
.room-occ { font-size: 1.05rem; color: var(--teal); }
.room-in { margin-block-start: .2rem; }
.room-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.room-feats li { padding: .15rem .6rem; border-radius: 999px; background: var(--gold-soft); color: #6b520f; font-size: .85rem; }
.room-plan-link { display: block; }
.room-plan img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.room-plan-link { cursor: zoom-in; }
.room-card .room-plan + .carousel { border-block-start: 1px solid var(--line); }
.room-plan figcaption { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; padding: .5rem .8rem .7rem; }
.plan-dialog { width: min(96vw, 900px); max-height: 94vh; padding: 2.8rem .8rem .8rem; border: 0; border-radius: var(--radius); background: var(--sand); color: var(--ink); }
.plan-dialog::backdrop { background: rgba(7, 43, 32, .75); }
.plan-dialog img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: var(--sand); }
.plan-cap { margin: .5rem 0 0; text-align: center; font-weight: 600; color: var(--teal); }
.plan-close { position: absolute; inset-block-start: .5rem; inset-inline-end: .5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--teal); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.plan-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chat-form { display: flex; gap: .5rem; padding: .6rem; border-block-start: 1px solid var(--line); }
.chat-form input[type=text]:not(.hp) { flex: 1; }
.chat-form .hp { position: absolute; inset-inline-start: -9999px; }

/* Leaflet divIcon markers */
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .6); background: #555; }
.pin-airport { background: #2b6cb0; } .pin-haram { background: var(--gold-dark); } .pin-station { background: #7b3fa0; } .pin-ziyarat { background: #2f855a; } .pin-hotel { background: var(--green-800); }

@media (min-width: 640px) {
  .grid-2, .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .ph-0 { grid-column: 1 / -1; }
  .inline-form { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; }
  .chat-panel { padding-block-end: 0; inset: auto; inset-inline-end: 1rem; bottom: calc(var(--tab-h) + var(--sai-b) + 5rem); width: 380px; border-radius: var(--radius); height: 540px; }
}
@media (min-width: 900px) {
  .listing { grid-template-columns: 290px 1fr; align-items: start; }
  .filters { position: sticky; top: calc(var(--bar-h) + 1rem); max-height: calc(100vh - var(--bar-h) - var(--tab-h) - 2rem); overflow: auto; }
  .detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .detail-side { min-width: 0; align-self: start; position: sticky; top: calc(var(--bar-h) + 1rem); display: grid; gap: 1rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .arches { max-width: 560px; }
  .arch { min-height: 230px; }
  .map { height: 380px; }
}



/* ---------- App shell: fixed top bar, fixed bottom tab bar ---------- */
body { padding-block-start: calc(var(--bar-h) + var(--sai-t)); padding-block-end: calc(var(--tab-h) + var(--sai-b) + 4.5rem); }
.appbar { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; background: var(--green-800); color: #fff; padding-block-start: var(--sai-t); box-shadow: 0 2px 12px rgba(7, 43, 32, .25); border-block-end: 2px solid var(--gold); }
.appbar-in { width: min(1100px, 100% - 1.5rem - var(--sai-l) - var(--sai-r)); margin-inline: auto; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; min-height: 48px; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand:hover { color: var(--gold); }
.brand-mark { border-radius: 10px; flex: none; }
.appbar-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn, .langs summary { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 48px; min-height: 48px; padding-inline: .75rem; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none; font-weight: 700; cursor: pointer; list-style: none; transition: background-color .15s; }
.icon-btn:hover, .langs summary:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.icon-btn[aria-current], .langs[open] summary { background: var(--gold); color: #1b1405; }
.appbar .ico { width: 24px; height: 24px; }
.langs { position: relative; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; inset-inline-end: 0; margin: .5rem 0 0; padding: .4rem; list-style: none; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(7, 43, 32, .3); min-width: 12rem; max-height: 70vh; overflow: auto; z-index: 60; animation: pop .16s ease-out; }
.langs a { display: flex; align-items: center; min-height: 48px; padding: .4rem .9rem; text-decoration: none; color: var(--ink); border-radius: 12px; }
.langs a:hover, .langs a[aria-current] { background: var(--green-100); }
.appbar :focus-visible, .tabbar :focus-visible { outline-color: #fff; }
.sample-banner { position: relative; }

.tabbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50; background: #fff; border-block-start: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(7, 43, 32, .10); padding-block-end: var(--sai-b); }
.tabbar ul { list-style: none; margin: 0 auto; padding: 0 var(--sai-r) 0 var(--sai-l); width: min(1100px, 100%); display: flex; }
.tabbar li { flex: 1; min-width: 0; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: var(--tab-h); padding: .4rem .25rem; text-decoration: none; color: var(--muted); font-size: .8rem; font-weight: 600; position: relative; transition: color .15s; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .ico { width: 30px; height: 30px; padding: 3px 14px; box-sizing: content-box; border-radius: 999px; transition: background-color .2s, color .2s; }
.tab:hover { color: var(--green-800); }
.tab[aria-current] { color: var(--green-800); }
.tab[aria-current] .ico { background: var(--gold-soft); color: var(--green-800); }
.tab[aria-current] span { font-weight: 800; }
.tab:active .ico { transform: scale(.92); }

.quote-fab { position: fixed; inset-inline-start: calc(1rem + var(--sai-l)); bottom: calc(var(--tab-h) + var(--sai-b) + .9rem); z-index: 70; box-shadow: 0 8px 22px rgba(7, 43, 32, .35); min-height: 56px; padding-inline: 1.5rem; font-size: 1.05rem; }
.quote-fab .ico { width: 24px; height: 24px; }
.btn-gold { box-shadow: 0 2px 0 var(--gold-dark); }

/* ---------- Home ---------- */
.hero { background: var(--teal) var(--tile); background-size: 28px 28px; padding: 1.5rem 0 3rem; border-end-start-radius: 32px; border-end-end-radius: 32px; }
.hero h1 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); max-width: 30rem; }
.hero .lead { max-width: 34rem; }
.arches { max-width: 640px; }
.arch { min-height: 200px; border-radius: 999px 999px 24px 24px; transition: transform .15s, background .2s; }
.arch:active { transform: scale(.98); }
.arch-cta { display: inline-flex; align-items: center; justify-content: center; align-self: center; min-height: 48px; padding-inline: 1.1rem; margin-top: .4rem; border-radius: 999px; background: var(--gold); color: #1b1405; text-decoration: none; font-weight: 700; }
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; margin: 0; border-block-start: 4px solid var(--gold); }
.block h2, .search-card h2 { font-size: 1.3rem; }
.module-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.module-card { align-items: center; text-align: center; padding: 1.3rem .8rem; min-height: 150px; justify-content: center; border-radius: 24px; border: 0; transition: transform .15s, box-shadow .15s; }
.module-card:active { transform: scale(.97); }
.module-card strong { font-size: 1.15rem; }
.tile-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: var(--green-100); color: var(--green-800); }
.tile-icon .ico { width: 38px; height: 38px; }
.tile-flights .tile-icon { background: var(--gold-soft); color: var(--gold-dark); }
.tile-visa .tile-icon { background: #dfeeee; color: var(--teal); }
.tile-map .tile-icon { background: #efe4cf; color: #7a5a14; }
.tile-desc { display: none; }
.cta-band { border-radius: 24px; background-color: var(--teal); }

/* Cards, listings, details */
.card { border-radius: 24px; border-block-end: 0; transition: transform .15s, box-shadow .15s; }
.card:active { transform: scale(.985); }
.card-body { padding: 1rem 1.2rem 1.2rem; }
.card-body h3 { font-size: 1.2rem; }
.price strong { font-size: 1.25rem; }
.chip, .tags li { padding: .25rem .8rem; font-size: .85rem; }
.group, .buy-box, .filter-box, .form-card { border-radius: 24px; }
.page-head h1 { margin-block-end: .3rem; }
.crumbs a { display: inline-block; padding-block: .6rem; }
.map { border-radius: 24px; }
th, td { padding: .7rem .6rem; }
.site-footer { margin-block-start: 1rem; border-start-start-radius: 28px; border-start-end-radius: 28px; }

/* Quote button stays in reach on detail pages (phone/tablet portrait) */
@media (max-width: 899px) {
  .detail-side { position: static; }
  .buy-box { position: sticky; inset-block-end: calc(var(--tab-h) + var(--sai-b) + .6rem); z-index: 40; grid-template-columns: 1fr auto; align-items: center; gap: .4rem .8rem; box-shadow: 0 8px 28px rgba(7, 43, 32, .28); order: 2; }
  .buy-box > .price-big { grid-column: 1; margin: 0; }
  .buy-box > .price-note, .buy-box > .muted { grid-column: 1 / -1; }
  .buy-box > .book-actions { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .buy-box > .price-note, .buy-box > .muted.small { display: none; }
  .detail { padding-block-end: 4rem; }
}
@media (max-width: 479px) {
  .chat-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat-toggle { padding: .75rem; min-width: 56px; justify-content: center; }
  .tab { font-size: .74rem; }
  .tab .ico { padding-inline: 10px; }
  .buy-box { grid-template-columns: 1fr; }
  .buy-box > .book-actions { grid-column: 1; grid-row: auto; justify-content: stretch; }
  .buy-box > .book-actions .btn { flex: 1; }
}
@media (min-width: 640px) {
  .module-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-desc { display: block; font-size: .9rem; color: var(--muted); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .quote-fab { inset-inline-start: auto; inset-inline-end: calc(1rem + var(--sai-r)); bottom: calc(var(--tab-h) + var(--sai-b) + 5rem); }
}
@media (min-width: 900px) {
  :root { --bar-h: 72px; }
  .module-card:hover, .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(7, 43, 32, .08), 0 12px 28px rgba(7, 43, 32, .14); }
  .tabbar ul { padding-inline: 1rem; }
  .quote-fab { inset-inline-end: max(1rem, calc((100vw - 1100px) / 2)); }
  .chat { inset-inline-end: max(1rem, calc((100vw - 1100px) / 2)); }
}

/* Motion: one subtle transform-only page entrance (never touches opacity); nothing for users who opt out */
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes enter { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  main { animation: enter .28s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) { :root { --muted: #3f4b45; --line: #8a8470; } }
@media print { .appbar, .tabbar, .quote-fab, .chat, .site-footer, .ad { display: none; } body { padding: 0; } }

/* OpenStreetMap hotels: Arabic names, unknown-data notices, attribution */
.hotel-card[hidden] { display: none; }
.ph-slim { aspect-ratio: 16 / 5; }
.name-ar { margin: 0 0 .2rem; color: var(--muted); font-size: .95rem; }
.name-ar-lg { font-size: 1.3rem; margin-block-end: .4rem; }
.notice-inline { background: var(--gold-soft); border-inline-start: 5px solid var(--gold); padding: .7rem 1rem; border-radius: 8px; margin: .5rem 0 1rem; }
.osm-credit { margin-block-start: .5rem; }
.site-footer a { color: var(--gold); }

/* Hotel assistant (bottom-sheet chat on /hotels): reuses .msg bubbles from the travel assistant */
.ha { position: fixed; inset-inline-start: calc(1rem + var(--sai-l)); bottom: calc(var(--tab-h) + var(--sai-b) + 5.2rem); z-index: 90; }
.ha[hidden], .ha-panel[hidden], .ha-backdrop[hidden] { display: none; }
.ha-toggle { display: flex; align-items: center; gap: .5rem; background: var(--green-800); color: #fff; border: 2px solid var(--gold); border-radius: 999px; padding: .65rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(7, 43, 32, .35); min-height: 52px; }
.ha-toggle .icon { fill: var(--gold); width: 22px; height: 22px; }
.ha-backdrop { position: fixed; inset: 0; background: rgba(7, 43, 32, .45); z-index: 1; }
.ha-panel { position: fixed; inset: auto 0 0 0; z-index: 2; height: min(82vh, 640px); padding-block-end: var(--sai-b); background: #fff; display: flex; flex-direction: column; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .3); overflow: hidden; }
.ha-panel:focus { outline: none; }
.ha-panel > header { display: flex; justify-content: space-between; align-items: center; background: var(--green-800); color: #fff; padding: .7rem 1rem; }
.ha-close { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; min-width: 44px; min-height: 44px; }
.ha-log { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; background: var(--cream); }
.ha-log .msg p { margin: 0; }
.ha-log .msg small { display: block; color: var(--muted); }
.ha-chips { display: flex; flex-wrap: wrap; gap: .5rem; align-self: stretch; }
.ha-chip { font: inherit; font-size: .95rem; background: #fff; color: var(--green-800); border: 2px solid var(--green-700); border-radius: 999px; padding: .45rem 1rem; min-height: 44px; cursor: pointer; }
.ha-chip:hover { background: var(--green-100); }
.ha-chip[aria-pressed="true"] { background: var(--green-800); color: #fff; }
.ha-chip-done { background: var(--gold); border-color: var(--gold-dark); color: #1b1405; font-weight: 700; }
.ha-chip-done:hover { background: #d8b45e; }
.ha-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding: .5rem .6rem 0; border-block-start: 1px solid var(--line); }
.ha-form { display: flex; gap: .5rem; padding: .6rem; }
.ha-form input[type=text] { flex: 1; min-width: 0; }
.ha-quote { margin-block-start: .5rem; }
.ha-chipbar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-block-end: .6rem; }
.ha-chipbar[hidden] { display: none; }
.ha-link { background: none; border: 0; color: var(--green-700); font: inherit; text-decoration: underline; cursor: pointer; padding: .5rem .4rem; min-height: 44px; }
@media (min-width: 640px) {
  .ha { inset-inline-start: auto; inset-inline-end: calc(1rem + var(--sai-r)); bottom: calc(var(--tab-h) + var(--sai-b) + 9.2rem); }
  .ha-backdrop { display: none; }
  .ha-panel { inset: auto; inset-inline-end: 1rem; bottom: calc(var(--tab-h) + var(--sai-b) + 1rem); width: 400px; height: min(620px, calc(100vh - var(--bar-h) - var(--tab-h) - 2rem)); border-radius: var(--radius); padding-block-end: 0; }
}
@media (min-width: 900px) {
  .ha { inset-inline-end: max(1rem, calc((100vw - 1100px) / 2)); }
  .ha-panel { inset-inline-end: max(1rem, calc((100vw - 1100px) / 2)); }
}
@media (max-width: 479px) {
  .ha-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ha-toggle { padding: .75rem; min-width: 56px; justify-content: center; }
}
@media print { .ha { display: none; } }

/* Featured packages */
.package-grid { align-items: stretch; }
.pkg-breakdown { margin: .5rem 0; display: grid; gap: .25rem; }
.pkg-breakdown > div { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; border-block-end: 1px dashed var(--green-100); padding-block: .2rem; }
.pkg-breakdown dt { color: var(--muted); font-size: .9rem; }
.pkg-breakdown dd { margin: 0; text-align: end; font-size: .95rem; }
.pkg-breakdown .pkg-note { display: block; border: 0; padding: 0; }
.pkg-breakdown .pkg-total { border-block-end: 0; padding-block-start: .5rem; }
.pkg-breakdown .pkg-total dt { color: var(--green-800); font-weight: 700; }
.pkg-breakdown .pkg-total strong { font-size: 1.15rem; color: var(--green-800); }
.pkg-src { display: block; }
@media (min-width: 900px) { .package-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 899px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
