/* ───────── Tokens ───────── */
:root {
  --ink: #222222;
  --ink-2: #484848;
  --muted: #6a6a6a;
  --faint: #929292;
  --line: #ebebeb;
  --line-2: #dddddd;
  --soft: #f7f7f7;
  --bg: #ffffff;
  --brand: #0e7c53;
  --brand-2: #0a6142;
  --brand-tint: #e8f4ee;
  --heart: #ff385c;
  --danger: #c13515;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --sh-2: 0 6px 16px rgba(0,0,0,.12);
  --sh-3: 0 8px 28px rgba(0,0,0,.28);
  --ease: cubic-bezier(.2,.8,.2,1);
  --hdr-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 180px; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }

.wrap { max-width: 1760px; margin: 0 auto; padding: 0 80px; }
.wrap-narrow { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 1128px) { .wrap { padding: 0 40px; } }
@media (max-width: 744px) { .wrap, .wrap-narrow { padding: 0 20px; } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 16px; transition: transform .1s, background .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-brand {
  background: radial-gradient(circle at 30% 0%, #18a06c 0%, var(--brand) 45%, var(--brand-2) 100%);
  color: #fff; width: 100%;
}
.btn-brand:hover { filter: brightness(1.05); }
.btn-line { border: 1px solid var(--ink); background: #fff; }
.btn-line:hover { background: var(--soft); }
.link-btn { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px; margin: -10px; border-radius: 8px; }
.link-btn:hover { background: var(--soft); }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 16px; height: 16px; stroke-width: 2.4; }
.round-btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: #fff; }
.round-btn svg { width: 18px; height: 18px; }
.ghost-btn {
  height: 42px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; position: relative; transition: background .2s;
}
.ghost-btn:hover { background: var(--soft); }
.ghost-btn svg { width: 18px; height: 18px; }

/* ───────── Header ───────── */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hdr.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.hdr-row { height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; justify-self: start; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #503124; white-space: nowrap; }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 4px; }
.fav-btn.has svg { fill: var(--heart); stroke: var(--heart); }
.fav-btn.on { background: var(--ink); color: #fff; }
.fav-btn.on svg { stroke: #fff; }
.fav-count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--heart); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}

/* Search pill */
.pill {
  position: relative; display: flex; align-items: center; height: 66px; border: 1px solid var(--line-2);
  border-radius: 999px; box-shadow: var(--sh-1); background: #fff; padding-right: 8px;
  transition: box-shadow .2s, background .2s;
}
.pill:hover { box-shadow: var(--sh-2); }
.pill.active { background: var(--soft); }
.pill-seg {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left;
  height: 100%; padding: 0 24px; border-radius: 999px; cursor: pointer; min-width: 180px; transition: background .15s, box-shadow .15s;
}
.pill-q { min-width: 260px; padding-left: 32px; }
.pill-seg:hover { background: var(--line); }
.pill.active .pill-seg:hover { background: #e4e4e4; }
.pill-seg.sel, .pill-seg:focus-within { background: #fff !important; box-shadow: var(--sh-2); }
.pill-lbl { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.pill-val { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.pill-val.set { color: var(--ink); font-weight: 500; }
.pill-q input { border: 0; outline: 0; background: transparent; padding: 0; font-size: 14px; width: 100%; }
.pill-q input::placeholder { color: var(--muted); }
.pill-div { width: 1px; height: 32px; background: var(--line-2); flex: none; }
.pill-seg:hover + .pill-div, .pill-div:has(+ .pill-seg:hover) { opacity: 0; }
.pill-go {
  width: 48px; height: 48px; flex: none; margin-left: 8px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; transition: background .2s;
}
.pill-go:hover { background: var(--brand-2); }
.pill-go svg { width: 18px; height: 18px; stroke-width: 2.6; }

.pop {
  position: absolute; top: calc(100% + 12px); left: 0; right: 0; background: #fff; border-radius: 32px;
  box-shadow: var(--sh-3); padding: 28px 32px; z-index: 50; animation: popIn .18s var(--ease);
}
.pop-sm { left: auto; width: 420px; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.pop h4 { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 340px; overflow: auto; margin: 0 -8px; padding: 0 8px; }
.city-opt {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); text-align: left;
}
.city-opt:hover { background: var(--soft); }
.city-opt.on { background: var(--brand-tint); }
.city-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.city-opt.on .city-ic { background: var(--brand); color: #fff; }
.city-ic svg { width: 18px; height: 18px; }
.city-opt b { display: block; font-weight: 600; font-size: 14px; }
.city-opt small { color: var(--muted); font-size: 12px; }
.len-opts { display: grid; gap: 8px; }

/* Mobile search */
.msearch { display: none; }

/* Category tabs */
.cats-row { position: relative; }
.cats-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.cats { flex: 1; display: flex; gap: 36px; overflow-x: auto; scrollbar-width: none; height: 100%; align-items: stretch; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cats::-webkit-scrollbar { display: none; }
.cat {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 12px; font-weight: 600; opacity: .78; transition: color .2s, opacity .2s; padding: 0 2px;
}
.cat svg { width: 24px; height: 24px; stroke-width: 1.5; }
.cat:hover { opacity: 1; color: var(--ink); }
.cat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; border-radius: 2px; transition: background .2s; }
.cat:hover::after { background: var(--line-2); }
.cat[aria-selected="true"] { color: var(--ink); opacity: 1; }
.cat[aria-selected="true"]::after { background: var(--ink); }
.cat-n { font-weight: 500; color: var(--faint); font-size: 11px; margin-left: 2px; }
.filters-btn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r); font-size: 13px; font-weight: 600; background: #fff;
}
.filters-btn:hover { border-color: var(--ink); background: var(--soft); }
.filters-btn svg { width: 16px; height: 16px; }
.filters-btn.on { border: 2px solid var(--ink); padding: 0 15px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }

/* ───────── List ───────── */
#main { min-height: 70vh; }
.notice {
  display: flex; gap: 12px; align-items: center; margin: 24px 0 0; padding: 12px 16px; border-radius: var(--r);
  background: var(--soft); color: var(--ink-2); font-size: 14px;
}
.notice svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.notice a { font-weight: 600; }
.results-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 28px 0 20px; flex-wrap: wrap; }
.results-bar h1 { font-size: 22px; font-weight: 700; }
.results-bar p { font-size: 14px; margin-top: 2px; }
.results-tools { display: flex; align-items: center; gap: 20px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; transition: background .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--ink); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.select select {
  appearance: none; height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 600; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  cursor: pointer;
}
.select select:hover { border-color: var(--ink); }

.chips-active { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.chips-active:empty { display: none; }
.achip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
}
.achip:hover { border-color: var(--ink); }
.achip svg { width: 14px; height: 14px; stroke-width: 2.4; }

.grid {
  display: grid; gap: 40px 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1640px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 950px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 550px) { .grid { grid-template-columns: 1fr; gap: 32px; } }

/* Card */
.card { position: relative; text-decoration: none; display: block; cursor: pointer; animation: fadeUp .35s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.cover {
  position: relative; aspect-ratio: 20 / 19; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background: var(--cv-bg); color: var(--cv-ink, #fff);
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: var(--cv-pat-o, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Cpath d='M28 8l5.9 8.1 9.9-2.2-2.2 9.9L49.7 28l-8.1 5.9 2.2 9.9-9.9-2.2L28 49.7l-5.9-8.1-9.9 2.2 2.2-9.9L6.3 28l8.1-5.9-2.2-9.9 9.9 2.2z'/%3E%3Crect x='19' y='19' width='18' height='18' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px; transition: transform 1.2s var(--ease);
}
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(180deg, transparent 40%, rgba(0,0,0,.28)); }
.card:hover .cover::before { transform: scale(1.06) rotate(1deg); }
.card.sold .cover { filter: grayscale(.85) contrast(.92); }
.cv-standard { --cv-bg: linear-gradient(150deg, #d9b98a 0%, #b88a55 55%, #8f6337 100%); }
.cv-premium { --cv-bg: linear-gradient(150deg, #1c8a64 0%, #0e6a4b 55%, #08432f 100%); }
.cv-luxury { --cv-bg: linear-gradient(150deg, #2f2a4a 0%, #1d1a33 55%, #0f0d1d 100%); --cv-pat-o: .12; }
.cv-luxury::before { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.1); opacity: .22 !important; }
.cv-saudia { --cv-bg: linear-gradient(150deg, #1d7f8c 0%, #0f5f6b 55%, #083f48 100%); }

.cv-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.tag svg { width: 12px; height: 12px; stroke-width: 2.4; }
.tag-dark { background: rgba(17,17,17,.82); color: #fff; backdrop-filter: blur(6px); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.heart { width: 32px; height: 32px; display: grid; place-items: center; flex: none; margin: -3px -3px 0 0; transition: transform .15s; }
.heart:active { transform: scale(.85); }
.heart svg { width: 26px; height: 26px; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 2; }
.heart.on svg { fill: var(--heart); }
.heart.pop svg { animation: heartPop .35s var(--ease); }
@keyframes heartPop { 40% { transform: scale(1.3); } }

.cv-cat { position: absolute; left: 18px; top: 50px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.cv-stays {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.22); display: grid; gap: 8px;
}
.stay { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 13px; line-height: 1.25; }
.stay svg { width: 18px; height: 18px; opacity: .9; }
.stay b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay small { font-size: 11px; opacity: .8; font-weight: 500; white-space: nowrap; }

.card-body { padding-top: 12px; display: grid; gap: 1px; font-size: 15px; }
.card-line1 { display: flex; justify-content: space-between; gap: 8px; }
.card-title { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-zone { flex: none; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.card-zone svg { width: 13px; height: 13px; }
.card-sub { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { margin-top: 6px; }
.card-price b { font-weight: 600; }
.card-price span { color: var(--ink-2); }
.card-price .u { text-decoration: underline; }
.card.sold .card-price b { color: var(--muted); }

/* Skeleton */
.sk .cover { background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.sk .cover::before, .sk .cover::after { display: none; }
.sk-line { height: 14px; border-radius: 6px; margin-top: 10px; background: #eee; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; }
.empty svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--faint); stroke-width: 1.3; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

.more { text-align: center; margin: 56px 0 24px; display: grid; justify-items: center; gap: 16px; }
.more p { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ───────── Footer ───────── */
.ftr { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); }
.ftr-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.ftr a { font-weight: 600; }

/* ───────── Modal ───────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 40px 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: 100%; max-width: 568px; max-height: 100%; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; animation: slideUp .35s var(--ease);
}
.modal-lg { max-width: 780px; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }
.modal-hd { flex: none; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 64px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.modal-hd h2 { text-align: center; font-size: 16px; font-weight: 700; }
.modal-bd { overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.modal-ft { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
body.locked { overflow: hidden; }

/* Filters */
.fsec { padding: 28px 0; border-bottom: 1px solid var(--line); }
.fsec:last-child { border-bottom: 0; }
@media (min-width: 951px) { .fsec.m-only { display: none; } }
.fsec h3 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.fsec > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.fsec h3 + .seg, .fsec h3 + .opts, .fsec h3 + .chk-list { margin-top: 20px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { height: 44px; padding: 0 20px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.seg button:hover { background: var(--soft); }
.seg button.on { background: var(--ink); color: #fff; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  height: 40px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
}
.opt:hover { border-color: var(--ink); }
.opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt small { color: var(--faint); font-size: 12px; }
.opt.on small { color: #bbb; }
.card-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.copt { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; text-align: left; display: grid; gap: 22px; }
.copt:hover { border-color: var(--ink); }
.copt.on { border: 2px solid var(--ink); padding: 15px; background: var(--soft); }
.copt svg { width: 28px; height: 28px; stroke-width: 1.4; }
.copt b { font-weight: 600; font-size: 15px; }
.copt small { display: block; color: var(--muted); font-size: 13px; }

.chk-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.chk-list.one { grid-template-columns: 1fr; }
.chk { display: flex; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk-box { width: 24px; height: 24px; flex: none; border: 1px solid #b0b0b0; border-radius: 6px; display: grid; place-items: center; transition: background .15s; }
.chk-box svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; opacity: 0; }
.chk input:checked + .chk-box { background: var(--ink); border-color: var(--ink); }
.chk input:checked + .chk-box svg { opacity: 1; }
.chk input:focus-visible + .chk-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.chk:hover .chk-box { border-color: var(--ink); }
.chk-txt { flex: 1; min-width: 0; }
.chk-txt small { display: block; color: var(--muted); font-size: 13px; }
.chk-n { color: var(--faint); font-size: 13px; }
.chk-search { width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; margin-bottom: 12px; font-size: 14px; }
.chk-search:focus { outline: 2px solid var(--ink); border-color: transparent; }
.show-more { margin-top: 12px; }

/* Price range */
.hist { display: flex; align-items: flex-end; gap: 2px; height: 72px; padding: 0 12px; }
.hist i { flex: 1; background: var(--line-2); border-radius: 2px 2px 0 0; min-height: 2px; transition: background .2s; }
.hist i.in { background: var(--brand); }
.range { position: relative; height: 28px; margin: -14px 12px 0; }
.range-track { position: absolute; top: 13px; left: 0; right: 0; height: 2px; background: var(--line-2); }
.range-fill { position: absolute; top: 13px; height: 2px; background: var(--ink); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; background: none; pointer-events: none; height: 28px; }
.range input::-webkit-slider-thumb { appearance: none; pointer-events: all; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: all; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: grab; }
.range input:active::-webkit-slider-thumb { transform: scale(1.1); cursor: grabbing; }
.range-vals { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; }
.range-box { flex: 1; max-width: 180px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 14px; }
.range-box small { display: block; font-size: 12px; color: var(--muted); }
.range-box b { font-weight: 500; font-size: 15px; }

/* Currency */
.cur-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 0 24px; }
.cur { text-align: left; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid transparent; }
.cur:hover { background: var(--soft); }
.cur.on { border-color: var(--ink); }
.cur b { display: block; font-weight: 500; font-size: 14px; }
.cur small { color: var(--muted); font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r); font-size: 14px; font-weight: 500; box-shadow: var(--sh-3); animation: slideUp .3s var(--ease);
}

/* ───────── Detail ───────── */
.dt-back { display: inline-flex; align-items: center; gap: 8px; margin: 24px 0 8px; padding: 8px 12px 8px 8px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.dt-back:hover { background: var(--soft); }
.dt-back svg { width: 18px; height: 18px; stroke-width: 2.2; }
.dt-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 8px 0 24px; flex-wrap: wrap; }
.dt-head h1 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.dt-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.dt-meta > span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--faint); }
.dt-meta a { font-weight: 600; }
.dt-actions { display: flex; gap: 4px; }
.dt-act { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dt-act:hover { background: var(--soft); }
.dt-act svg { width: 16px; height: 16px; }
.dt-act.on svg { fill: var(--heart); stroke: var(--heart); }

.hero {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 420px;
  border-radius: var(--r-lg); overflow: hidden;
}
.hero > div { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-main { grid-row: 1 / 3; }
.hero-main .h-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.hero-main .h-title { font-size: 34px; font-weight: 700; line-height: 1.1; margin-top: 8px; letter-spacing: -0.02em; max-width: 520px; }
.hero-main .h-sub { margin-top: 10px; font-size: 15px; opacity: .9; }
.hero .h-tile small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero .h-tile b { font-size: 17px; font-weight: 600; line-height: 1.2; margin-top: 4px; display: block; }
.hero .h-tile span { font-size: 13px; opacity: .85; margin-top: 4px; display: block; }
.hero .h-ic { position: absolute; top: 20px; left: 20px; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero .h-ic svg { width: 20px; height: 20px; }
.sold-banner { background: var(--danger); color: #fff; text-align: center; font-weight: 700; padding: 10px; border-radius: var(--r) var(--r) 0 0; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.sold-banner + .hero { border-radius: 0 0 var(--r-lg) var(--r-lg); }

.dt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 80px; margin-top: 48px; align-items: start; }
.dt-sec { padding: 32px 0; border-bottom: 1px solid var(--line); }
.dt-sec:first-child { padding-top: 0; }
.dt-sec:last-child { border-bottom: 0; }
.dt-sec > h2 { font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.dt-sec > h2 small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 4px; }

.host { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; position: relative; }
.avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; border: 2px solid #fff; }
.host b { font-size: 16px; font-weight: 600; display: block; }
.host small { color: var(--muted); font-size: 14px; }
.host a { font-size: 14px; }

.hl { display: grid; gap: 24px; }
.hl-row { display: grid; grid-template-columns: 28px 1fr; gap: 20px; }
.hl-row svg { width: 26px; height: 26px; stroke-width: 1.5; }
.hl-row b { display: block; font-weight: 600; font-size: 16px; }
.hl-row span { color: var(--muted); font-size: 14px; }

/* Journey */
.journey { position: relative; display: grid; gap: 0; }
.jstep { display: grid; grid-template-columns: 72px 28px 1fr; gap: 12px; position: relative; padding-bottom: 22px; }
.jstep:last-child { padding-bottom: 0; }
.jdate { text-align: right; font-size: 13px; color: var(--muted); padding-top: 3px; line-height: 1.2; }
.jdate b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.jdot { position: relative; display: flex; justify-content: center; }
.jdot::before { content: ""; position: absolute; top: 28px; bottom: -22px; width: 2px; background: var(--line); }
.jstep:last-child .jdot::before { display: none; }
.jdot i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line-2); z-index: 1; }
.jdot i svg { width: 14px; height: 14px; stroke-width: 2.2; }
.jstep.k-makkah .jdot i { background: #1d1a33; color: #f0cf8a; border-color: #1d1a33; }
.jstep.k-madinah .jdot i { background: var(--brand); color: #fff; border-color: var(--brand); }
.jstep.k-hajj .jdot i { background: #b88a55; color: #fff; border-color: #b88a55; }
.jbody b { font-weight: 600; font-size: 16px; display: block; }
.jbody span { color: var(--muted); font-size: 14px; }
.jnights { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--soft); border-radius: 6px; padding: 2px 7px; vertical-align: 2px; }

/* Hotels */
.stays { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hcard { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.hcard-top { height: 112px; position: relative; isolation: isolate; color: #fff; padding: 16px; display: flex; align-items: flex-end; }
.hcard-top.mk { background: linear-gradient(150deg, #2f2a4a, #0f0d1d); }
.hcard-top.md { background: linear-gradient(150deg, #1c8a64, #08432f); }
.hcard-top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.1'%3E%3Cpath d='M28 8l5.9 8.1 9.9-2.2-2.2 9.9L49.7 28l-8.1 5.9 2.2 9.9-9.9-2.2L28 49.7l-5.9-8.1-9.9 2.2 2.2-9.9L6.3 28l8.1-5.9-2.2-9.9 9.9 2.2z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 48px; }
.hcard-top small { position: absolute; top: 14px; left: 16px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hcard-top b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.hcard-bd { padding: 14px 16px 16px; }
.hcard-dates { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.rooms { display: grid; gap: 0; }
.room { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.room span { display: inline-flex; align-items: center; gap: 8px; }
.room svg { width: 16px; height: 16px; color: var(--muted); }
.room b { font-weight: 600; }
.room.na { color: var(--faint); }
.room.na b { font-weight: 500; text-decoration: line-through; }

/* Camps & flights */
.camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.camp { border: 1px solid var(--line-2); border-radius: var(--r); padding: 16px; display: grid; gap: 4px; }
.camp b { font-weight: 600; }
.camp .st { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.st.ok { color: var(--brand); }
.st.no { color: var(--danger); }
.camp-p { color: var(--ink-2); font-size: 14px; }

.flights { display: grid; gap: 12px; }
.fopt { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px 20px; }
.fopt-hd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.fopt-hd b { font-weight: 600; font-size: 16px; }
.fopt-hd span { color: var(--muted); font-size: 14px; }
.legs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.legs h5 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.leg { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 14px; padding: 6px 0; }
.leg svg { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; transform: rotate(45deg); }
.leg b { font-weight: 600; }
.leg small { grid-column: 2; color: var(--muted); font-size: 13px; }

/* Inclusions */
.inc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.inc-i { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.inc-i svg { width: 24px; height: 24px; flex: none; stroke-width: 1.5; }
.inc-i.x { color: var(--muted); }
.inc-i.x span { text-decoration: line-through; }
.inc + .btn { margin-top: 32px; }
#incBody .inc { grid-template-columns: 1fr; gap: 0; padding: 8px 0 24px; }
#incBody .inc-i { padding: 18px 0; border-bottom: 1px solid var(--line); }
#incBody h3 { font-size: 18px; margin: 24px 0 4px; }

.desc { font-size: 16px; line-height: 1.6; color: var(--ink-2); white-space: pre-line; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.notes { margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.6; display: grid; gap: 8px; }
.scholars { display: flex; flex-wrap: wrap; gap: 12px; }
.scholar { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 16px 12px 12px; }
.scholar .avatar { width: 40px; height: 40px; font-size: 15px; background: #b88a55; }
.scholar .avatar::after { display: none; }
.scholar b { font-weight: 600; }

/* Booking card */
.book { position: sticky; top: 112px; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); }
.book-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.book-price b { font-size: 22px; font-weight: 700; }
.book-price span { color: var(--ink-2); }
.book-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cfg { margin-top: 20px; border: 1px solid #b0b0b0; border-radius: var(--r); overflow: hidden; }
.cfg-row { padding: 12px 14px; border-top: 1px solid #b0b0b0; }
.cfg-row:first-child { border-top: 0; }
.cfg-row > label, .cfg-lbl { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.cfg-lbl span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 12px; margin-left: 4px; }
.cfg select { width: 100%; border: 0; background: transparent; font-size: 14px; padding: 0; outline: 0; cursor: pointer; }
.rseg { display: flex; gap: 6px; flex-wrap: wrap; }
.rseg button { flex: 1; min-width: 64px; padding: 7px 6px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; font-weight: 500; line-height: 1.2; }
.rseg button small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.rseg button:hover:not(:disabled) { border-color: var(--ink); }
.rseg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rseg button.on small { color: #ccc; }
.rseg button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.book .btn-brand { margin-top: 16px; }
.book-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.brk { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.brk div { display: flex; justify-content: space-between; gap: 12px; }
.brk b { white-space: nowrap; }
.brk span { color: var(--ink-2); text-decoration: underline; text-decoration-color: #c4c4c4; text-underline-offset: 3px; }
.brk .tot { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; font-weight: 700; }
.brk .tot span { text-decoration: none; color: var(--ink); }
.book-alt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.book-alt svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: 12px;
}
.mbar b { font-weight: 700; font-size: 16px; }
.mbar small { display: block; color: var(--muted); font-size: 12px; }
.mbar .btn-brand { width: auto; }

/* ───────── Responsive ───────── */
@media (max-width: 1128px) {
  .pill-seg { min-width: 140px; padding: 0 18px; }
  .pill-q { min-width: 200px; padding-left: 24px; }
  .dt-cols { gap: 48px; grid-template-columns: minmax(0,1fr) 340px; }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 950px) {
  .hdr-row { grid-template-columns: auto 1fr auto; }
  .pill { display: none; }
  .msearch { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; }
  .msearch-field {
    flex: 1; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 20px; border-radius: 999px;
    box-shadow: 0 3px 12px rgba(0,0,0,.1); border: 1px solid var(--line); cursor: text;
  }
  .msearch-field > svg { width: 18px; height: 18px; stroke-width: 2.6; flex: none; }
  .msearch-field span { display: grid; min-width: 0; flex: 1; }
  .msearch-field input { border: 0; outline: 0; padding: 0; font-weight: 600; font-size: 14px; background: transparent; width: 100%; }
  .msearch-field input::placeholder { color: var(--ink); }
  .msearch-field small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hdr-row { height: 64px; }
  .cats-inner { height: 64px; }
  .filters-btn { display: none; }
  .cats { gap: 28px; }
  .dt-cols { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .book { display: none; }
  .mbar { display: flex; }
  body.detail .ftr { padding-bottom: 84px; }
  .hero { height: 340px; grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; }
  .hero-main { grid-row: auto; grid-column: 1 / 3; }
  .hero > div:nth-child(n+4) { display: none; }
  .cur-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 744px) {
  .logo-text { font-size: 18px; }
  .hdr-right .ghost-btn { padding: 0 10px; }
  .results-bar { margin-top: 20px; }
  .results-bar h1 { font-size: 19px; }
  .results-tools { width: 100%; justify-content: space-between; }
  .notice { font-size: 13px; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-card, .modal-lg { max-width: none; max-height: 94vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .chk-list { grid-template-columns: 1fr; }
  .cur-grid { grid-template-columns: repeat(2, 1fr); }
  .dt-head h1 { font-size: 22px; }
  .dt-head { margin-bottom: 16px; }
  .hero { height: 300px; margin: 0 -20px; border-radius: 0; }
  .hero-main .h-title { font-size: 26px; }
  .inc { grid-template-columns: 1fr; gap: 16px; }
  .legs { grid-template-columns: 1fr; gap: 12px; }
  .jstep { grid-template-columns: 56px 28px 1fr; }
  .pop-sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ───────── Photos ───────── */
.has-ph { background: #222; }
.has-ph > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cover.has-ph::before, .hcard-top.has-ph::before { display: none; }
.cover.has-ph::after { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 48%, rgba(0,0,0,.62) 100%); }
.card:hover .cover.has-ph > .ph { transform: scale(1.04); }
.cover.has-ph .cv-cat { text-shadow: 0 1px 4px rgba(0,0,0,.5); opacity: 1; }
.cover.has-ph .cv-stays { background: rgba(20,20,20,.38); border-color: rgba(255,255,255,.18); }
.hero .has-ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.7) 100%); }
.hero > div:hover > .ph { transform: scale(1.03); }
.hcard-top.has-ph { height: 150px; }
.hcard-top.has-ph::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%); }
.ph-note { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.ph-credit { font-size: 12px; color: var(--faint); margin-top: 8px; }
.ph-credit a { color: inherit; }
.h-logos { position: absolute; top: 20px; left: 20px; display: flex; gap: 6px; }
.h-logos img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 6px; object-fit: contain; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.fopt-air { display: flex; align-items: center; gap: 10px; }
.fopt-air img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); padding: 4px; object-fit: contain; }

.card-body { grid-template-columns: minmax(0, 1fr); }
.hero .h-tile .h-logos { display: flex; margin: 0; }
.hero .h-tile .h-logos img { display: block; }

/* Pre-rendered copy for crawlers (removed by the app on boot) */
.ssr { padding: 32px 0; line-height: 1.6; }
.ssr h1 { font-size: 26px; margin-bottom: 8px; }
.ssr h2 { font-size: 18px; margin: 24px 0 8px; }
.ssr ul { padding-left: 20px; }
