/* Burj Al Saada Hotel — public site
   Palette: night teal + brushed gold. One memorable element: the lit 3D tower. */
:root {
  --ink: #0f2a2e;
  --ink-2: #133338;
  --ink-3: #1a4047;
  --ink-deep: #0a1f22;
  --gold: #c9a45c;
  --gold-2: #e6cf9c;
  --gold-dim: rgba(201, 164, 92, .28);
  --ivory: #f1eadb;
  --mist: #a3b8b6;
  --wa: #25d366;
  --danger: #e58a7a;
  --on-gold: #0a1f22;                       /* text on gold buttons */
  --gold-hover: #e6cf9c;
  --glass: rgba(10, 31, 34, .86);           /* header when scrolled */
  --glass-solid: rgba(10, 31, 34, .97);     /* mobile menu */
  --field-bg: rgba(10, 31, 34, .92);
  --tint: rgba(201, 164, 92, .08);
  --map-filter: invert(.92) hue-rotate(180deg) saturate(.55) brightness(.95);

  --f-display: "Marcellus", "Times New Roman", serif;
  --f-body: "Jost", system-ui, sans-serif;
  --radius: 4px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
body.lang-ku, body.lang-ar {
  --f-display: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
.lang-ku h1, .lang-ku h2, .lang-ku h3, .lang-ar h1, .lang-ar h2, .lang-ar h3 { font-weight: 600; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lang-ku, body.lang-ar { font-size: 17px; line-height: 1.9; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--mist); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.ic { width: 24px; height: 24px; flex: none; }
.ic-sm { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .6em 1.4em;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--f-body); font-size: 16px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline { border-color: var(--gold-dim); color: var(--gold-2); background: transparent; }
.btn-outline:hover { border-color: var(--gold); background: var(--tint); }
.btn-ghost { background: transparent; color: var(--mist); }
.btn-ghost:hover { color: var(--ivory); }
.btn-wa { background: var(--wa); color: #06301a; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--mist); cursor: pointer; border-radius: 50%; }
.icon-btn:hover { color: var(--ivory); background: var(--tint); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: var(--glass); backdrop-filter: blur(12px); border-color: var(--gold-dim); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-2); font-family: var(--f-display); font-size: 19px; margin-inline-end: auto; }
.brand-mark { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links > a { text-decoration: none; color: var(--mist); transition: color .2s; }
.nav-links > a:hover { color: var(--ivory); }
.lang-switch { display: flex; gap: 2px; padding-inline-start: 18px; border-inline-start: 1px solid var(--gold-dim); }
.lang-switch a { text-decoration: none; padding: 4px 8px; border-radius: var(--radius); color: var(--mist); font-size: 14px; }
.lang-switch a[aria-current] { color: var(--gold-2); background: rgba(201, 164, 92, .12); }
.nav-cta { min-height: 42px; padding-inline: 1.1em; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--gold-dim); border-radius: var(--radius); background: transparent; color: var(--gold-2); cursor: pointer; place-items: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 110px 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 72% 78%, rgba(201,164,92,.13), transparent 70%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 70%);
}
[dir="rtl"] .hero { background:
    radial-gradient(ellipse 55% 60% at 28% 78%, rgba(201,164,92,.13), transparent 70%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 70%); }
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas: "copy stage" "search stage";
  align-items: end;
  column-gap: 40px; row-gap: 40px;
}
.hero-stage { grid-area: stage; position: relative; align-self: stretch; min-height: 600px; pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero-inner { z-index: 1; }
.hero::after { /* keeps the copy readable where the scene passes behind it */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,31,34,.78) 0%, rgba(10,31,34,.35) 38%, transparent 58%);
}
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(10,31,34,.78) 0%, rgba(10,31,34,.35) 38%, transparent 58%); }
.scene-fallback { display: none; position: absolute; inset: 0; margin: auto; width: 90%; height: auto; }
.no-webgl .scene-fallback { display: block; }
.no-webgl .hero-canvas { display: none; }

.hero-copy { grid-area: copy; align-self: end; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: var(--gold-2); font-size: 15px; margin-bottom: 22px; }
.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars .star { width: 14px; height: 14px; fill: currentColor; }
.hero-title {
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--ivory);
  max-width: 9ch;
  text-wrap: balance;
}
.lang-ku .hero-title, .lang-ar .hero-title { font-weight: 700; line-height: 1.3; letter-spacing: 0; font-size: clamp(40px, 5.6vw, 78px); max-width: 10ch; }
.hero-sub { margin-top: 26px; max-width: 38ch; font-size: 19px; color: var(--mist); }

.search {
  grid-area: search;
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 1px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: start;
}
.search .field { background: var(--field-bg); padding: 10px 16px 8px; }
.search-btn { grid-column: 1 / -1; border-radius: 0; min-height: 54px; padding-inline: 22px; font-size: 17px; }
.search .search-note { grid-column: 1 / -1; background: var(--field-bg); padding: 10px 16px; }
.search-note { display: flex; align-items: center; gap: 8px; color: var(--mist); font-size: 14px; }
.search-note .ic { color: var(--gold); }

.field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.field > span { font-size: 13px; color: var(--mist); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; background: transparent; padding: 4px 0; min-height: 34px;
  color: var(--ivory); font-size: 16px; outline: none;
}
.field select option { background: var(--ink-2); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.6) saturate(3) hue-rotate(5deg); cursor: pointer; }

/* ---------- offers ---------- */
.offers { background: var(--ink-deep); border-block: 1px solid var(--gold-dim); }
.offer-list { display: flex; flex-wrap: wrap; gap: 0; }
.offer { display: flex; gap: 18px; align-items: center; padding: 22px 0; flex: 1 1 340px; padding-inline-end: 28px; }
.offer + .offer { border-inline-start: 1px solid var(--gold-dim); padding-inline-start: 28px; }
.offer-pct { font-family: "Marcellus", serif; font-size: 40px; color: var(--gold); line-height: 1; direction: ltr; }
.offer strong { display: block; font-weight: 500; }
.offer p { color: var(--mist); font-size: 15px; }
.offer-meta { font-size: 13px !important; color: var(--gold-2) !important; opacity: .8; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(34px, 4.4vw, 56px); color: var(--ivory); }
.section-head p { color: var(--mist); max-width: 46ch; justify-self: end; }
.section-head p:only-child { justify-self: start; }

/* ---------- rooms (rate-card rows, not cards) ---------- */
.room-list { border-top: 1px solid var(--gold-dim); }
.room {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 230px;
  gap: 36px;
  padding-block: 32px;
  border-bottom: 1px solid var(--gold-dim);
  align-items: center;
}
.room-media { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.room-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.room:hover .room-media img { transform: scale(1.04); }
.room-ph {
  height: 100%; display: grid; place-items: center; color: var(--gold);
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(201,164,92,.07) 23px 24px),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.ph-ic { width: 64px; height: 64px; opacity: .7; }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 10px; border-radius: var(--radius); font-size: 13px; }
.badge-sold { background: var(--ink-deep); color: var(--danger); border: 1px solid currentColor; }
.room-body h3 { font-size: clamp(24px, 2.4vw, 30px); color: var(--ivory); margin-bottom: 10px; }
.room-desc { color: var(--mist); max-width: 52ch; }
.room-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 15px; color: var(--gold-2); }
.room-facts li { display: inline-flex; align-items: center; gap: 7px; }
.room-facts .ic { color: var(--gold); }
.room-rate { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: end; }
.rate { display: flex; flex-direction: column; align-items: flex-end; }
.rate-main { font-family: "Marcellus", var(--f-display); font-size: 28px; color: var(--gold-2); line-height: 1.2; }
.rate-sub, .rate-note { font-size: 14px; color: var(--mist); }
.rate-old { font-size: 14px; color: var(--mist); text-decoration: line-through; }
.rate-note.warn { color: var(--danger); }
.rate-note.ok { color: var(--gold-2); }
.room.is-unavailable .room-media, .room.is-unavailable .room-body { opacity: .5; }
.room.is-match .room-rate .btn { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* ---------- services ---------- */
.services { background: var(--ink-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--gold-dim); }
.service { padding: 36px 32px 40px 0; border-bottom: 1px solid var(--gold-dim); }
[dir="rtl"] .service { padding: 36px 0 40px 32px; }
.service:not(:nth-child(3n+1)) { padding-inline-start: 32px; border-inline-start: 1px solid var(--gold-dim); }
.service-ic { width: 34px; height: 34px; color: var(--gold); margin-bottom: 22px; }
.service h3 { font-size: 22px; margin-bottom: 8px; }
.service p { color: var(--mist); font-size: 16px; max-width: 34ch; }

/* ---------- gallery ---------- */
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.gallery-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--ink-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery-item img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.gallery-item:hover img { transform: scale(1.03); }

/* ---------- about ---------- */
.about { background: var(--ink-deep); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-text { margin-top: 28px; font-size: 20px; color: var(--ivory); max-width: 52ch; }
.lang-ku .about-text, .lang-ar .about-text { font-size: 19px; line-height: 2; font-weight: 300; }
.about-facts { border-top: 1px solid var(--gold-dim); }
.about-facts > div { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gold-dim); }
.about-facts dt { display: flex; align-items: center; gap: 10px; color: var(--mist); }
.about-facts dt .ic { color: var(--gold); }
.about-facts dd { color: var(--gold-2); font-family: "Marcellus", var(--f-display); font-size: 19px; text-align: end; }
.lang-ku .about-facts dd, .lang-ar .about-facts dd { font-family: var(--f-body); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact-info .muted { margin-top: 16px; max-width: 40ch; }
.contact-list { margin-top: 36px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { color: var(--gold); margin-top: 4px; }
.contact-list span { display: block; font-size: 13px; color: var(--mist); }
.contact-list a { text-decoration: none; font-size: 18px; color: var(--ivory); }
.contact-list a:hover { color: var(--gold-2); }
[dir="rtl"] .contact-list a[dir="ltr"] { display: inline-block; }
.socials { display: flex; gap: 10px; margin-top: 36px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--gold-dim); border-radius: 50%; color: var(--gold-2); transition: border-color .2s, background-color .2s; }
.socials a:hover { border-color: var(--gold); background: var(--tint); }
.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-dim); background: var(--ink-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
.map-btn { position: absolute; bottom: 16px; inset-inline-start: 16px; background: var(--field-bg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--gold-dim); background: var(--ink-deep); color: var(--mist); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; flex-wrap: wrap; }
.site-footer .lang-switch { border: 0; padding: 0; }

.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #06301a; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 28px; height: 28px; stroke-width: 1.8; }

/* ---------- dialogs ---------- */
.modal, .lightbox { border: 0; padding: 0; color: var(--ivory); }
.modal {
  width: min(600px, calc(100% - 24px)); max-height: calc(100svh - 24px);
  background: var(--ink-2); border: 1px solid var(--gold-dim); border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.modal::backdrop, .lightbox::backdrop { background: rgba(5, 16, 18, .78); backdrop-filter: blur(4px); }
.modal[open] { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal-close-form { position: absolute; top: 10px; inset-inline-end: 10px; margin: 0; }
.modal-body { padding: 32px clamp(20px, 5vw, 36px) 28px; display: grid; gap: 16px; }
.modal-body h2 { font-size: 30px; }
.modal-room { color: var(--gold-2); margin-top: -8px; }
.modal form { display: grid; gap: 14px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .row:has(.field-sm) { grid-template-columns: 1fr 1fr 90px; }
.modal .field { border: 1px solid var(--gold-dim); border-radius: var(--radius); padding: 8px 12px 4px; background: var(--ink-deep); transition: border-color .2s; }
.modal .field:focus-within { border-color: var(--gold); }
.modal textarea { resize: vertical; min-height: 56px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary:empty { display: none; }
.summary { border-top: 1px solid var(--gold-dim); padding-top: 14px; display: grid; gap: 6px; font-size: 15px; }
.summary .line { display: flex; justify-content: space-between; gap: 16px; color: var(--mist); }
.summary .line.discount { color: var(--gold-2); }
.summary .line.total { color: var(--ivory); font-size: 19px; padding-top: 6px; border-top: 1px dashed var(--gold-dim); }
.summary .line.total strong { font-family: "Marcellus", var(--f-display); color: var(--gold-2); font-weight: 400; }
.summary .line.warn { color: var(--danger); }
.form-error { color: var(--danger); font-size: 15px; }
.form-error:empty { display: none; }
.done { text-align: center; justify-items: center; }
.done .summary { width: 100%; text-align: start; }
.done p { color: var(--mist); max-width: 44ch; }
.done form { width: 100%; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.done-mark .ic { width: 30px; height: 30px; }

.lightbox { background: transparent; max-width: min(1100px, 94vw); max-height: 94svh; overflow: visible; }
.lightbox img { max-height: 84svh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { text-align: center; color: var(--mist); margin-top: 10px; }
.lightbox form { position: absolute; top: -52px; inset-inline-end: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .room { grid-template-columns: 240px minmax(0, 1fr); }
  .room-rate { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; text-align: start; flex-wrap: wrap; }
  .rate { align-items: flex-start; }
}
@media (max-width: 900px) {
  .nav { height: 64px; gap: 12px; }
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--glass-solid); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gold-dim);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid rgba(201,164,92,.14); font-size: 17px; color: var(--ivory); }
  .lang-switch { border: 0; padding: 14px 0 0; }
  .site-header.menu-open { background: var(--glass-solid); }

  .hero { padding-block: 88px 40px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "search"; row-gap: 8px; }
  .hero-stage { min-height: 0; height: 40svh; max-height: 380px; margin-inline: calc(var(--gutter) * -1); }
  .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(180deg, rgba(10,31,34,.6) 0%, transparent 30%, transparent 62%, rgba(10,31,34,.7) 100%); }
  .hero-sub { margin-top: 16px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .field-sm { grid-column: 1 / -1; }

  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 36px; }
  .section-head p { justify-self: start; }
  .room { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  .room-rate { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service, [dir="rtl"] .service { padding: 28px 20px 30px 0; }
  [dir="rtl"] .service { padding: 28px 0 30px 20px; }
  .service:not(:nth-child(3n+1)) { padding-inline-start: 0; border-inline-start: 0; }
  .service:nth-child(2n) { padding-inline-start: 20px; border-inline-start: 1px solid var(--gold-dim); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 340px; }
  .offer + .offer { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--gold-dim); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service:nth-child(2n) { padding-inline-start: 0; border-inline-start: 0; }
  .modal .row, .modal .row:has(.field-sm) { grid-template-columns: 1fr 1fr; }
  .modal .row .field:nth-child(3) { grid-column: 1 / -1; }
  .room-rate { flex-direction: column; align-items: stretch; }
  .room-rate .btn { width: 100%; }
  .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
.section-head p.warn { color: var(--danger); }
.modal-body[hidden] { display: none; }

[dir="ltr"] { unicode-bidi: isolate; }
section[id], .offers { scroll-margin-top: 76px; }

/* logo placements */
.about-side { display: grid; gap: 40px; }
.about-photo { position: relative; margin: 0 0 0 14px; max-width: 460px; }
[dir="rtl"] .about-photo { margin: 0 14px 0 0; }
.photo-frame { position: relative; }
.photo-frame::before { /* offset gold frame */
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--gold-dim); border-radius: var(--radius); pointer-events: none;
}
[dir="rtl"] .photo-frame::before { inset: 14px 14px -14px -14px; }
.about-photo img {
  position: relative; width: 100%; height: auto; aspect-ratio: 736 / 639; object-fit: cover;
  border-radius: var(--radius); filter: saturate(.92) contrast(1.03);
}
.about-photo figcaption { position: relative; margin-top: 26px; font-size: 14px; color: var(--mist); }
.footer-logo { width: 120px; height: auto; }
.contact-list .phone-line { display: block; width: fit-content; }
@media (max-width: 560px) { .brand-mark { height: 30px; } }

/* ID fields in the booking form */
.modal .row-id { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.id-note { font-size: 13px; color: var(--mist); margin-top: -6px; }
.done .btn-outline { margin-top: -4px; }
@media (max-width: 560px) { .modal .row-id { grid-template-columns: 1fr; } }

.mail-note { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--gold-2); font-size: 14px; margin: 0; }
.mail-note[hidden] { display: none; }
.mail-note span { direction: auto; unicode-bidi: plaintext; }

/* ---------- light theme ----------
   The hero keeps its night palette (the lit 3D citadel is a night scene);
   everything below it, and the header once scrolled, turns light. */
html[data-theme="light"] {
  --ink: #f6f1e6;
  --ink-2: #fffdf8;
  --ink-3: #efe5d0;
  --ink-deep: #eee6d6;
  --gold: #b08a40;
  --gold-2: #85642a;
  --gold-hover: #c9a45c;
  --gold-dim: rgba(140, 105, 45, .26);
  --ivory: #15292c;
  --mist: #56696a;
  --danger: #b23b2c;
  --glass: rgba(251, 248, 241, .92);
  --glass-solid: rgba(251, 248, 241, .98);
  --field-bg: #fffdf8;
  --tint: rgba(176, 138, 64, .1);
  --map-filter: saturate(.85);
  color-scheme: light;
}
html[data-theme="light"] .hero,
html[data-theme="light"] .site-header:not(.scrolled):not(.menu-open) {
  --ink: #0f2a2e; --ink-2: #133338; --ink-3: #1a4047; --ink-deep: #0a1f22;
  --gold: #c9a45c; --gold-2: #e6cf9c; --gold-hover: #e6cf9c; --gold-dim: rgba(201, 164, 92, .28);
  --ivory: #f1eadb; --mist: #a3b8b6; --danger: #e58a7a;
  --field-bg: rgba(10, 31, 34, .92); --tint: rgba(201, 164, 92, .08);
  color-scheme: dark;
  color: var(--ivory);
}
html[data-theme="light"] .modal { box-shadow: 0 30px 80px rgba(20, 30, 30, .25); }
html[data-theme="light"] .modal::backdrop { background: rgba(15, 30, 32, .55); }
html[data-theme="light"] .field input[type="date"]::-webkit-calendar-picker-indicator { filter: sepia(1) saturate(2) hue-rotate(-10deg) brightness(.7); }
html[data-theme="light"] .hero .field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(.6) saturate(3) hue-rotate(5deg); }
html[data-theme="light"] .room-ph { background: repeating-linear-gradient(90deg, transparent 0 23px, rgba(176,138,64,.09) 23px 24px), linear-gradient(160deg, #f3ead8, #e9dfca); }
html[data-theme="light"] .badge-sold { background: #fff; }
html[data-theme="light"] .services { background: #fbf7ef; }
html[data-theme="light"] .wa-float { box-shadow: 0 10px 30px rgba(20, 60, 40, .25); }
/* logo images: gold on dark, deep teal on light */
.logo-on-light { display: none; }
html[data-theme="light"] .logo-on-dark.swap { display: none; }
html[data-theme="light"] .logo-on-light.swap { display: block; }

/* theme switch */
.theme-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold-dim); background: transparent; color: var(--gold-2); cursor: pointer; flex: none; transition: border-color .2s, background-color .2s, color .2s; }
.theme-btn:hover { border-color: var(--gold); background: var(--tint); }
.theme-btn .ic { width: 19px; height: 19px; }
.theme-btn .t-moon { display: none; }
html[data-theme="light"] .theme-btn .t-sun { display: none; }
html[data-theme="light"] .theme-btn .t-moon { display: inline; }
html.theme-anim, html.theme-anim * { transition: background-color .35s, border-color .35s, color .35s !important; }
@media (max-width: 900px) { .theme-btn { width: 40px; height: 40px; } }
/* header over the dark hero keeps the gold mark */
html[data-theme="light"] .site-header:not(.scrolled):not(.menu-open) .logo-on-dark.swap { display: block; }
html[data-theme="light"] .site-header:not(.scrolled):not(.menu-open) .logo-on-light.swap { display: none; }
/* two phone numbers: one per line (also in RTL) */
.contact-list a.phone-line, [dir="rtl"] .contact-list a.phone-line[dir="ltr"] { display: block; width: fit-content; }

/* ---------- guided tour (gallery) ---------- */
.tour-card {
  position: relative; display: block; width: 100%; margin: 0 0 28px; padding: 0; border: 1px solid var(--gold-dim);
  border-radius: 6px; overflow: hidden; cursor: pointer; text-align: start; color: #f1eadb; background: #0a1f22;
  aspect-ratio: 21 / 8; min-height: 260px;
}
.tour-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease); }
.tour-card:hover .tour-card-img, .tour-card:focus-visible .tour-card-img { transform: scale(1.08); }
.tour-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,24,27,.92) 0%, rgba(8,24,27,.55) 45%, rgba(8,24,27,.15) 100%); }
.tour-card-body { position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; align-items: center; gap: 22px; padding: clamp(18px, 3.4vw, 36px); }
.tour-card-play {
  flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: #c9a45c; color: #0a1f22; box-shadow: 0 0 0 0 rgba(201,164,92,.55); animation: tourPulse 2.4s ease-out infinite;
}
.tour-card-play .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-inline-start: 4px; }
[dir="rtl"] .tour-card-play .ic { margin-inline-start: 0; margin-inline-end: 0; transform: none; }
@keyframes tourPulse { 70% { box-shadow: 0 0 0 18px rgba(201,164,92,0); } 100% { box-shadow: 0 0 0 0 rgba(201,164,92,0); } }
.tour-card-text { display: grid; gap: 4px; min-width: 0; }
.tour-card-text strong { font-family: var(--f-display); font-size: clamp(24px, 3vw, 36px); font-weight: 600; color: #fff; line-height: 1.3; }
.tour-card-text > span { color: #d6dfdd; font-size: 16px; }
.tour-card-text small { color: #e6cf9c; font-size: 13.5px; }
.tour-card-cta { margin-inline-start: auto; flex: none; border: 1px solid rgba(230,207,156,.6); color: #f1e2bd; padding: 10px 20px; border-radius: 30px; font-size: 15px; transition: background-color .2s, color .2s; }
.tour-card:hover .tour-card-cta { background: #c9a45c; color: #0a1f22; border-color: #c9a45c; }

.tour { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #050f11; color: #f1eadb; overflow: hidden; }
.tour::backdrop { background: #050f11; }
.tour[open] { animation: tourIn .45s var(--ease); }
@keyframes tourIn { from { opacity: 0; } }
html.tour-open { overflow: hidden; }
.tour-stage { position: absolute; inset: 0; }
.tour-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 1.3s ease; will-change: transform, opacity; animation-fill-mode: both; animation-timing-function: linear;
}
.tour-img.on { opacity: 1; }
/* "walking in": a slow push forward, each photo drifting a little differently */
.tour-img.k1 { animation-name: kb1; } .tour-img.k2 { animation-name: kb2; } .tour-img.k3 { animation-name: kb3; } .tour-img.k4 { animation-name: kb4; }
@keyframes kb1 { from { transform: scale(1.02); } to { transform: scale(1.16); } }
@keyframes kb2 { from { transform: scale(1.04) translate(1.5%, 0); } to { transform: scale(1.17) translate(-1.5%, -1%); } }
@keyframes kb3 { from { transform: scale(1.04) translate(-1.5%, .5%); } to { transform: scale(1.17) translate(1.5%, -1%); } }
@keyframes kb4 { from { transform: scale(1.03) translate(0, 1.5%); } to { transform: scale(1.15) translate(0, -1.5%); } }
.tour.is-paused .tour-img { animation-play-state: paused; }
.tour-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,15,17,.7) 0%, transparent 22%, transparent 55%, rgba(5,15,17,.88) 100%); }

.tour-hit { position: absolute; top: 15%; bottom: 25%; width: 35%; z-index: 1; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tour-hit-prev { inset-inline-start: 0; }
.tour-hit-next { inset-inline-end: 0; }

.tour-top { position: absolute; inset: 0 0 auto; z-index: 2; padding: 14px clamp(14px, 3vw, 32px) 0; }
.tour-bars { display: flex; gap: 4px; }
.tour-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 0; background: #e6cf9c; }
.tour-bar.done i { width: 100%; }
.tour-bar.run i { animation: barRun var(--d, 5.5s) linear forwards; }
.tour.is-paused .tour-bar.run i { animation-play-state: paused; }
@keyframes barRun { to { width: 100%; } }
.tour-topline { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.tour-brand { display: flex; align-items: center; gap: 10px; color: #e6cf9c; font-size: 15px; margin-inline-end: auto; }
.tour-brand img { height: 26px; width: auto; }
.tour-num { font-size: 13px; color: #c7d3d1; background: rgba(5,15,17,.5); padding: 2px 10px; border-radius: 20px; }
.tour-top form { margin: 0; }
.tour-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(5,15,17,.45); color: #fff; cursor: pointer; }
.tour-x:hover { background: rgba(255,255,255,.12); }

.tour-caption { position: absolute; z-index: 2; inset-inline: clamp(18px, 5vw, 64px); bottom: 150px; pointer-events: none; }
.tour-stop { font-family: var(--f-display); font-size: clamp(32px, 5.4vw, 64px); font-weight: 600; color: #fff; line-height: 1.25; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.tour-stop::before { content: ""; display: block; width: 46px; height: 2px; background: #c9a45c; margin-bottom: 14px; }
.tour-stop.in { animation: stopIn .9s var(--ease) both; }
@keyframes stopIn { from { opacity: 0; transform: translateY(18px); letter-spacing: .02em; } }
.tour-note { margin-top: 6px; font-size: 17px; color: #dfe7e5; max-width: 60ch; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.tour-note:empty { display: none; }

.tour-bottom { position: absolute; z-index: 2; inset: auto 0 0; padding: 0 clamp(14px, 3vw, 32px) max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 18px; }
.tour-chapters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 4px 0; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tour-chapters::-webkit-scrollbar { display: none; }
.tour-chip { flex: none; padding: 7px 16px; border-radius: 30px; border: 1px solid rgba(255,255,255,.22); background: rgba(5,15,17,.45); color: #d6dfdd; font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .25s, color .25s, border-color .25s; }
.tour-chip:hover { border-color: #e6cf9c; color: #fff; }
.tour-chip.on { background: #c9a45c; border-color: #c9a45c; color: #0a1f22; font-weight: 600; }
.tour-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.tour-ctrl button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(5,15,17,.45); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.tour-ctrl button:hover { border-color: #e6cf9c; }
.tour-ctrl .tour-play { width: 58px; height: 58px; background: #c9a45c; border-color: #c9a45c; color: #0a1f22; }
.tour-ctrl .tour-play .ic { fill: currentColor; stroke: currentColor; }
.tour-play .i-play, .tour.is-paused .tour-play .i-pause { display: none; }
.tour.is-paused .tour-play .i-play { display: grid; }

.tour-end { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; background: rgba(5,15,17,.78); backdrop-filter: blur(6px); animation: tourIn .6s var(--ease); }
.tour-end[hidden] { display: none; }
.tour-end img { width: 200px; height: auto; margin-bottom: 8px; }
.tour-end h3 { font-size: clamp(28px, 4vw, 44px); color: #fff; font-weight: 600; }
.tour-end p { color: #c7d3d1; }
.tour-end-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.tour-end .btn-gold { background: #c9a45c; color: #0a1f22; }
.tour-end .btn-outline { color: #e6cf9c; border-color: rgba(230,207,156,.5); }
.tour.is-end .tour-caption, .tour.is-end .tour-bottom, .tour.is-end .tour-hit { display: none; }

@media (max-width: 700px) {
  .tour-card { aspect-ratio: 4 / 3.4; min-height: 0; }
  .tour-card-body { flex-wrap: wrap; gap: 14px; }
  .tour-card-play { width: 58px; height: 58px; }
  .tour-card-cta { display: none; }
  .tour-caption { bottom: 158px; }
  .tour-bottom { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .tour-ctrl { justify-content: center; }
  .tour-brand span, .tour-brand { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-img.k1, .tour-img.k2, .tour-img.k3, .tour-img.k4 { animation: none; }
  .tour-card-play { animation: none; }
  .tour-stop.in { animation: none; }
}
.tour-ctrl .tour-play .i-pause .ic { stroke-width: 3; fill: none; }

/* ---------- room photo slider ---------- */
.rm-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rm-track::-webkit-scrollbar { display: none; }
.rm-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: none; scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in; overflow: hidden; }
.rm-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); user-select: none; }
.room:hover .room-media .rm-slide img { transform: scale(1.04); }
.rm-nav {
  position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: rgba(10, 31, 34, .7); color: #f1eadb; cursor: pointer; opacity: 0; transition: opacity .25s, background-color .2s; backdrop-filter: blur(4px);
}
.rm-nav .ic { width: 18px; height: 18px; }
.rm-nav:hover { background: #c9a45c; color: #0a1f22; }
.rm-prev { inset-inline-start: 10px; }
.rm-next { inset-inline-end: 10px; }
.room-media:hover .rm-nav, .rm-nav:focus-visible { opacity: 1; }
@media (hover: none) { .rm-nav { opacity: .85; width: 34px; height: 34px; margin-top: -17px; } }
.rm-dots { position: absolute; bottom: 10px; inset-inline: 0; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.rm-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: width .25s, background-color .25s; }
.rm-dots i.on { width: 18px; border-radius: 3px; background: #e6cf9c; }
.rm-count { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; background: rgba(10,31,34,.7); color: #f1eadb; font-size: 12.5px; backdrop-filter: blur(4px); }
.rm-count .ic { width: 14px; height: 14px; }
.room-media .badge { z-index: 3; }

/* lightbox previous / next */
.lb-nav { position: fixed; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(230,207,156,.4); background: rgba(10,31,34,.7); color: #f1eadb; cursor: pointer; }
.lb-nav:hover { background: #c9a45c; color: #0a1f22; border-color: #c9a45c; }
.lb-prev { inset-inline-start: max(12px, 2vw); }
.lb-next { inset-inline-end: max(12px, 2vw); }
.lightbox.single .lb-nav { display: none; }
.lb-num { color: #e6cf9c; margin-inline-start: 8px; font-size: 14px; }
.lightbox p { color: #c7d3d1; }
@media (max-width: 560px) { .lb-nav { width: 42px; height: 42px; margin-top: -21px; top: auto; bottom: 18px; } .lb-prev { inset-inline-start: 30%; } .lb-next { inset-inline-end: 30%; } }
