/* ==========================================================================
   Tulip Rest House — design system
   Aesthetic: Omani estate at dusk — deep navy, antique gold, warm sand.
   Display: Marcellus (serif). Body: Rubik. Arabic: Noto Naskh / Noto Sans Arabic.

   Colour is expressed as semantic tokens (surface / on-surface / border) rather
   than raw hex in components, so the dark theme at the bottom of this file is a
   small override instead of a second stylesheet.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Brand — fixed identity, same in both themes */
  --navy: #152A47;
  --navy-deep: #0D1B30;
  --gold: #8A6427;
  --gold-bright: #C89B4B;

  /* Gold is only 2.5:1 on a light surface, so text on light uses a darker tone
     while the bright tone stays for dark surfaces and non-text accents. */
  --gold-on-light: #7C5A23;

  --sand: #F7F3EC;
  --cream: #FFFDF8;
  --line: #EDE4D6;
  --ink: #14181F;
  --muted: #5A6470;
  --ok: #2E7D4F;
  --danger: #B3362B;
  --danger-text: #9F2D24;

  /* Semantic surfaces */
  --surface: #FFFFFF;          /* cards, inputs, calendar days */
  --surface-2: var(--sand);    /* recessed / striped rows */
  --page: var(--cream);
  --on-surface: var(--ink);
  --on-surface-muted: var(--muted);
  --border: var(--line);
  /* Control boundaries need 3:1 to be perceivable (WCAG 1.4.11), which the
     decorative --line tone (1.2:1) does not meet. 3.4:1 on white, 3.1:1 on sand. */
  --border-strong: #998A70;
  --header-bg: rgba(255, 253, 248, .92);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -18px rgba(13, 27, 48, .35);
  --shadow-soft: 0 18px 48px -34px rgba(13, 27, 48, .4);
  --shadow-premium: 0 28px 80px -42px rgba(13, 27, 48, .55);
  --font-display: "Marcellus", "Amiri", serif;
  --font-body: "Rubik", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1160px;
  --header-h: 72px;
  /* Smallest comfortable tap target (Apple HIG 44pt / Material 48dp). */
  --tap: 44px;
}

/* Arabic gets purpose-built faces: Rubik covers the script but Noto Naskh is
   designed for it, and half of this site's traffic is RTL. */
[lang="ar-OM"], [dir="rtl"] {
  --font-display: "Noto Naskh Arabic", "Amiri", serif;
  --font-body: "Noto Sans Arabic", "Rubik", "Segoe UI", Tahoma, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--on-surface);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.u-hidden, .skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 8px; clip: auto;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold), #6F4D1C); color: #fff; box-shadow: 0 10px 24px -10px rgba(138, 100, 39, .7); }
.btn--gold:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(138, 100, 39, .8); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--ghost { border-color: var(--border); color: var(--navy); background: rgba(255, 255, 255, .7); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-on-light); }
.btn--light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn--light:hover { background: var(--surface); color: var(--navy); }
.btn--sm { min-height: var(--tap); padding: 9px 20px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: wait; transform: none; }

/* ---- Header ----------------------------------------------------------- */
.topbar { background: var(--navy-deep); color: #CFD8E6; font-size: .78rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 12px; flex-wrap: wrap; }
.topbar a { min-height: 44px; display: inline-flex; align-items: center; color: #E8EDF5; text-decoration: none; }
.topbar__links { display: flex; align-items: center; gap: 8px; margin: 0; }
.topbar a:hover { color: var(--gold-bright); }
.topbar__wa { font-weight: 600; }
.topbar__hours { margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); }
.brand__mark { color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .04em; }
.brand__sub { font-size: .66rem; text-transform: uppercase; letter-spacing: .22em; color: var(--gold); }

.site-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  display: flex; align-items: center; min-height: var(--tap); padding: 10px 12px; border-radius: 8px;
  font-weight: 500; font-size: .92rem; color: var(--on-surface);
  text-decoration: none; position: relative;
}
.site-nav__link:hover { color: var(--gold); background: var(--sand); }
.site-nav__link.is-active { color: var(--gold); font-weight: 600; }
.site-nav__link.is-active::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px;
  background: var(--gold-bright); border-radius: 2px;
}
.site-nav__cta { margin-inline-start: 8px; }
.site-nav__lang a { font-weight: 600; text-decoration: none; color: var(--navy); border-inline-start: 1px solid var(--border); padding-inline-start: 14px; margin-inline-start: 10px; display: block; }

.nav-toggle { display: none; width: var(--tap); height: var(--tap); background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle__bar { display: block; width: 24px; height: 2.4px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

.nav-drawer { display: none; }

@media (max-width: 940px) {
  .site-nav { display: none; }
  .topbar__hours { display: none; }
  .nav-toggle { display: block; }
  .nav-drawer { display: block; border-top: 1px solid var(--border); background: var(--page); }
  .nav-drawer[hidden] { display: none; }
  .nav-drawer__nav ul { list-style: none; margin: 0; padding: 14px 20px 22px; }
  .nav-drawer__nav li + li { border-top: 1px solid var(--border); }
  .nav-drawer__nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 12px 2px; font-size: 1.05rem; color: var(--navy); text-decoration: none; font-weight: 500; }
  .nav-drawer__nav a.is-active { color: var(--gold-on-light); font-weight: 700; }
  .nav-drawer .btn { margin-top: 14px; width: 100%; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(78vh, 680px);
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13, 27, 48, .92) 0%, rgba(13, 27, 48, .35) 55%, rgba(13, 27, 48, .55) 100%);
}
.hero__in { padding-block: clamp(56px, 9vh, 110px) clamp(60px, 9vh, 110px); width: 100%; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 18px;
}
.hero__kicker::before { content: ""; width: 34px; height: 1px; background: var(--gold-bright); }
.hero h1 { color: #fff; max-width: 13ch; text-wrap: balance; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 52ch; color: #E4E9F1; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero__badge {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: #D9E1EC;
}
.hero__badge svg { color: var(--gold-bright); }

/* Reveal animation on first paint */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__in > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__in > *:nth-child(2) { animation-delay: .12s; }
.hero__in > *:nth-child(3) { animation-delay: .24s; }
.hero__in > *:nth-child(4) { animation-delay: .36s; }
.hero__in > *:nth-child(5) { animation-delay: .44s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Page hero (interior pages) ---------------------------------------- */
.page-hero { background: var(--navy); color: #fff; padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset-block-end: -80px; inset-inline-end: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 75, .22), transparent 65%);
}
.page-hero h1 { color: #fff; }
.page-hero .sub { color: #D5DDE9; max-width: 60ch; font-size: 1.05rem; }

/* ---- Sections ---------------------------------------------------------- */
.section { padding-block: clamp(52px, 8vw, 96px); }
.section--sand { background: var(--sand); }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  font-size: .75rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-on-light); font-weight: 600; margin-bottom: 10px;
}

/* ---- Cards / grids ----------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__title { margin-bottom: 6px; }
.card__text { color: var(--on-surface-muted); font-size: .95rem; margin: 0; }

.space-card__badge {
  position: relative; margin-top: -30px; margin-inline: 20px;
  align-self: flex-start;
  background: var(--navy); color: #fff;
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 8px;
}

/* ---- Pricing cards ----------------------------------------------------- */
.price-card { position: relative; text-align: center; padding: 34px 26px 30px; }
.price-card--feature { border-color: var(--gold-bright); box-shadow: 0 24px 60px -24px rgba(138, 100, 39, .45); }
.price-card__tag {
  position: absolute; top: -13px; inset-inline: 0; margin-inline: auto; width: max-content;
  background: var(--gold); color: #fff; font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px; font-weight: 600;
}
.price-card__slot { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }
.price-card__day { font-size: .8rem; color: var(--on-surface-muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.price-card__amount { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-on-light); line-height: 1; }
.price-card__amount small { font-size: 1rem; color: var(--on-surface-muted); font-family: var(--font-body); }
.price-card__unit { color: var(--on-surface-muted); font-size: .85rem; margin-top: 4px; }

/* ---- Lists / features -------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding-inline-start: 34px; position: relative; margin-bottom: 12px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6427' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---- Reviews ----------------------------------------------------------- */
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 26px; }
.review__stars { color: var(--gold-on-light); letter-spacing: 3px; margin-bottom: 10px; font-size: 1.05rem; }
.review__body { font-size: .98rem; margin-bottom: 14px; }
.review__name { font-weight: 600; color: var(--navy); margin: 0; }
.review__date { color: var(--on-surface-muted); font-size: .8rem; margin: 0; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 18px;
}
.rating-badge strong { font-size: 1.3rem; font-family: var(--font-display); color: var(--gold-on-light); }

/* ---- Gallery ----------------------------------------------------------- */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.gallery-grid .g-item--wide { grid-column: span 2; }
.gallery-grid .g-item--tall { grid-row: span 2; }
.gallery-grid .g-item--tall .g-item__media { height: 100%; }
@media (max-width: 940px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-grid .g-item--wide, .gallery-grid .g-item--tall { grid-column: span 1; grid-row: span 1; } }

.g-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.g-item__media { aspect-ratio: 4 / 3; }
.g-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover .g-item__media img { transform: scale(1.05); }
.g-item__cap {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(13, 27, 48, .82), transparent);
  color: #fff; font-size: .85rem; font-weight: 500;
  opacity: 0; transition: opacity .25s ease;
}
.g-item:hover .g-item__cap, .g-item:focus-within .g-item__cap { opacity: 1; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-bar button {
  border: 1px solid var(--border); background: var(--surface); color: var(--on-surface);
  border-radius: 999px; padding: 9px 20px; font: 500 .88rem var(--font-body);
  cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.filter-bar button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-bar button:hover { border-color: var(--gold); color: var(--gold-on-light); }
.filter-bar button.is-active:hover { color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(13, 27, 48, .94);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: var(--radius); margin-inline: auto; }
.lightbox__close {
  position: absolute; top: 18px; inset-inline-end: 22px;
  background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox__nav--prev { inset-inline-start: 18px; }
.lightbox__nav--next { inset-inline-end: 18px; }

/* ---- Virtual tour ------------------------------------------------------ */
.tour-stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-deep); aspect-ratio: 16 / 9; box-shadow: var(--shadow);
}
.tour-stage__img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.tour-stage__img.is-active { opacity: 1; }
.tour-stage__img img { width: 100%; height: 100%; object-fit: cover; }
.tour-stage__cap {
  position: absolute; inset-inline-start: 0; inset-block-end: 0;
  background: linear-gradient(to top, rgba(13, 27, 48, .9), transparent);
  color: #fff; padding: 60px 28px 24px; width: 100%; pointer-events: none;
}
.tour-stage__title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 4px; color: #fff; }
.tour-stage__text { color: #D5DDE9; font-size: .92rem; max-width: 56ch; margin: 0; }
.tour-stage__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 253, 248, .14); border: 1px solid rgba(255, 253, 248, .4);
  color: #fff; font-size: 1.25rem; cursor: pointer; backdrop-filter: blur(4px);
  transition: background .2s; z-index: 2;
}
.tour-stage__nav:hover { background: var(--gold); }
.tour-stage__nav--prev { inset-inline-start: 14px; }
.tour-stage__nav--next { inset-inline-end: 14px; }
.tour-stage__tools { position: absolute; top: 14px; inset-inline-end: 14px; display: flex; gap: 8px; z-index: 2; }
.tour-stage__tool {
  background: rgba(13, 27, 48, .55); border: 1px solid rgba(255, 255, 255, .3);
  min-height: var(--tap); color: #fff; font: 600 .78rem var(--font-body); padding: 8px 14px;
  border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px);
}
.tour-stage.is-fullscreen { border-radius: 0; aspect-ratio: auto; position: fixed; inset: 0; z-index: 400; }
.tour-roomlist { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.tour-roomlist button {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 9px 20px; font: 500 .88rem var(--font-body); cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.tour-roomlist button.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.tour-progress { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.tour-progress span { width: 26px; height: 3px; border-radius: 3px; background: var(--border); transition: background .3s; }
.tour-progress span.is-active { background: var(--gold); }

/* ---- Booking ----------------------------------------------------------- */
.book-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 940px) { .book-layout { grid-template-columns: 1fr; } }

.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 26px 30px; }
.step + .step { margin-top: 22px; }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font: 600 .9rem var(--font-body);
  margin-inline-end: 12px; flex: none;
}
.step__h { display: flex; align-items: center; font-size: 1.15rem; margin-bottom: 18px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__title { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin: 0; text-transform: capitalize; }
.cal__nav {
  background: none; border: 1px solid var(--border-strong);
  width: var(--tap); height: var(--tap); border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.cal__nav:hover:not([disabled]) { border-color: var(--gold); color: var(--gold-on-light); }
.cal__nav[disabled] { opacity: .58; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-surface-muted); padding-block: 6px; }
.cal__day {
  aspect-ratio: 1; min-height: var(--tap); display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  font: 500 .92rem var(--font-body); color: var(--on-surface);
  cursor: pointer; position: relative; padding: 0; min-width: 0;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cal__day small { font-size: .55rem; color: var(--on-surface-muted); line-height: 1; margin-top: 2px; }
.cal__day:hover:not([disabled]):not(.is-selected) { border-color: var(--gold); color: var(--gold-on-light); }
.cal__day[disabled] { background: var(--surface-2); color: #6F6656; cursor: not-allowed; border-color: transparent; }
.cal__day--weekend { background: #FBF4E4; }
.cal__day--holiday::after { content: ""; position: absolute; top: 6px; inset-inline-end: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); }
.cal__day.is-half { border-style: dashed; }
.cal__day.is-selected { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 18px -8px rgba(13, 27, 48, .6); }
.cal__day.is-selected small { color: #C9D3E2; }
/* Further days of a multi-day stay: clearly part of the booking, but secondary
   to the start date the guest actually picked. */
.cal__day--in-range { background: #E7ECF4; border-color: var(--navy); color: var(--navy); }
.cal__day--in-range small { color: var(--navy); }
.cal__legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: .78rem; color: var(--on-surface-muted); }
.cal__legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-inline-end: 6px; vertical-align: -2px; border: 1px solid var(--border); }
.cal__legend .lg-free { background: var(--surface); } .cal__legend .lg-half { background: var(--surface); border-style: dashed; }
.cal__legend .lg-busy { background: var(--border); } .cal__legend .lg-wknd { background: #FBF4E4; }
.cal__legend .lg-holiday { background: var(--surface); position: relative; }
.cal__legend .lg-holiday::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-bright); }

.slot-options { display: grid; gap: 12px; }
.slot-option {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; background: var(--surface); text-align: start;
  font-family: var(--font-body); transition: all .16s ease; width: 100%;
}
.slot-option:hover { border-color: var(--gold); }
.slot-option.is-selected { border-color: var(--navy); background: var(--sand); }
.slot-option__label { font-weight: 600; color: var(--navy); display: block; }
.slot-option__hint { color: var(--on-surface-muted); font-size: .8rem; display: block; margin-top: 2px; }
.slot-option__price { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-on-light); white-space: nowrap; }

.check-toggle { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.check-toggle input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; }

.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counter { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
/* The days stepper carries a hint under its label, so it needs room to breathe
   and must not squash the +/- control on a narrow screen. */
.counter--days { align-items: flex-start; }
.counter--days .counter__label { display: block; margin-bottom: 2px; }
.counter--days .slot-option__hint { display: block; max-width: 34ch; }
.counter--days .counter__ctrl { flex: 0 0 auto; }
.counter--days output { min-width: 7ch; }
.counter__label { font-weight: 600; font-size: .9rem; }
.counter__ctrl { display: flex; align-items: center; gap: 10px; }
.counter__ctrl button {
  width: var(--tap); height: var(--tap); border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.counter__ctrl button:active { transform: scale(.94); }
.counter__ctrl button:hover { border-color: var(--gold); color: var(--gold-on-light); }
.counter__ctrl output { font-weight: 600; min-width: 2ch; text-align: center; }

.summary { background: var(--navy); color: #E7ECF4; border-radius: var(--radius-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 44px); }
.summary h2 { color: #fff; font-size: 1.3rem; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .93rem; }
.summary__row span:last-child { font-weight: 600; white-space: nowrap; }
.summary__row--sep { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 8px; padding-top: 14px; }
/* Per-day breakdown of a multi-day stay — subordinate to the totals above it. */
.summary__days { border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); margin: 8px 0; padding: 4px 0; }
.summary__row--sub { font-size: .84rem; color: #C9D3E2; padding: 4px 0; }
.summary__row--sub span:last-child { font-weight: 500; }
.summary__total { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright); }
.summary__note { font-size: .8rem; color: #A9B5C7; }
.summary__empty { color: #A9B5C7; font-size: .92rem; }

/* ---- Forms ------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--on-surface-muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: 12px 14px;
  border: 1.5px solid var(--border-strong); border-radius: 10px;
  font: 400 .96rem var(--font-body); color: var(--on-surface); background: var(--surface);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: 3px solid rgba(200, 155, 75, .45); outline-offset: 2px; }
.field textarea { min-height: 96px; resize: vertical; }
.field__err { color: var(--danger-text); font-size: .8rem; margin-top: 5px; min-height: 1em; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.guest-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--page); }
.guest-card__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.guest-card__h h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--gold-on-light); }
.guest-card__remove { min-height: var(--tap); background: none; border: 0; color: var(--danger-text); cursor: pointer; font-size: .82rem; text-decoration: underline; padding: 8px; }

.form-msg { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: .93rem; }
.form-msg--ok { background: #E8F4EC; color: var(--ok); border: 1px solid #BFE0CC; }
.form-msg--err { background: #FBEAE8; color: var(--danger); border: 1px solid #F0C4BF; }

/* ---- FAQ --------------------------------------------------------------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px;
  font-weight: 600; color: var(--navy); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--gold-on-light);
  transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item__a { padding: 0 22px 20px; color: var(--on-surface-muted); }
.faq-item__a p:last-child { margin-bottom: 0; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(200, 155, 75, .25), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #D5DDE9; max-width: 52ch; margin-inline: auto; }

/* ---- Tables ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.data th { text-align: start; background: var(--navy); color: #fff; padding: 12px 16px; font-weight: 600; white-space: nowrap; }
table.data td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--sand); }

/* ---- Status pills ------------------------------------------------------ */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pill--pending { background: #FBF0DA; color: #8A6427; }
.pill--confirmed { background: #E4F1E8; color: #1F6B40; }
.pill--cancelled, .pill--expired, .pill--no_show { background: #F3E4E2; color: var(--danger); }
.pill--completed { background: #E7ECF4; color: var(--navy); }

/* ---- Thank you --------------------------------------------------------- */
.ty-card { max-width: 720px; margin-inline: auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 56px); }
.ty-ref {
  display: inline-block; font-family: var(--font-display); font-size: 1.6rem;
  letter-spacing: .06em; color: var(--gold); background: var(--sand);
  border: 1px dashed var(--gold-bright); border-radius: var(--radius); padding: 12px 26px; margin: 10px 0 22px;
}

/* ---- Footer / misc ----------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #B9C4D4; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-block: clamp(44px, 6vw, 70px); }
@media (max-width: 940px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__name { font-family: var(--font-display); color: #fff; font-size: 1.5rem; margin: 0 0 6px; }
.site-footer__tag { color: var(--gold-bright); margin-bottom: 20px; }
.site-footer__h { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 8px; }
.site-footer a { color: #B9C4D4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__addr { font-style: normal; margin-bottom: 12px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: .8rem; }
.site-footer__bottom p { margin: 0; }

.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

.embed-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.embed-map iframe { width: 100%; height: 420px; border: 0; }

.legal-body { max-width: 760px; }
.legal-body h2 { font-size: 1.3rem; margin-top: 1.8em; }

/* ---- RTL --------------------------------------------------------------- */
[dir="rtl"] body { font-family: var(--font-body); letter-spacing: 0; }
[dir="rtl"] .brand__name { letter-spacing: 0; }
[dir="rtl"] .site-nav__link.is-active::after { inset-inline: 12px; }

/* ==========================================================================
   Premium public experience
   Understated editorial hospitality: photography, useful facts and restrained
   depth carry the visual quality instead of decorative effects.
   ========================================================================== */

body:not(.admin) .site-main { overflow: clip; }
body:not(.admin) h1, body:not(.admin) h2 { text-wrap: balance; }
body:not(.admin) .site-header { box-shadow: 0 8px 28px -26px rgba(13, 27, 48, .8); }
.section__head > p:not(.section__kicker) { color: var(--on-surface-muted); font-size: 1.02rem; }
.section__head--flush { margin-bottom: 0; }
.section-action { margin: 32px 0 0; text-align: center; }
.section--cta { padding-top: 0; }
.editorial-split { align-items: center; gap: clamp(36px, 7vw, 92px); }

/* The hero facts bring the most important booking truths above the fold. */
.hero { min-height: min(84vh, 760px); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); letter-spacing: -.025em; line-height: 1.02; }
.hero__sub { max-width: 58ch; line-height: 1.7; }
.hero-facts {
  width: min(700px, 100%); display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 34px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px;
  background: rgba(13, 27, 48, .58); backdrop-filter: blur(10px);
}
.hero-facts > div { min-width: 0; padding: 14px 18px; }
.hero-facts > div + div { border-inline-start: 1px solid rgba(255, 255, 255, .16); }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { color: #fff; font-size: .88rem; font-weight: 600; }
.hero-facts span { margin-top: 2px; color: #C9D3E2; font-size: .72rem; }
.hero__badge { margin-top: 18px; }

/* Interior heroes can be either image-led or quiet editorial panels. */
.page-hero {
  isolation: isolate; display: flex; align-items: flex-end; min-height: 330px;
  padding: clamp(58px, 8vw, 104px) 0 clamp(50px, 7vw, 84px);
  background:
    radial-gradient(70% 160% at 86% 20%, rgba(200, 155, 75, .2), transparent 62%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.page-hero::after { z-index: -1; opacity: .7; }
.page-hero__in { position: relative; z-index: 1; width: 100%; }
.page-hero__eyebrow {
  display: flex; align-items: center; gap: 11px; margin: 0 0 14px;
  color: var(--gold-bright); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
}
.page-hero__eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.page-hero h1 { max-width: 14ch; margin-bottom: 12px; font-size: clamp(2.55rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.025em; }
.page-hero .sub { max-width: 64ch; margin: 0; font-size: clamp(1rem, 2vw, 1.15rem); line-height: 1.7; }
.page-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.page-hero__note {
  width: max-content; max-width: 100%; margin: 22px 0 0; padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px;
  background: rgba(255, 255, 255, .07); color: #DCE4EF; font-size: .8rem;
}
.page-hero--photo { min-height: clamp(410px, 56vw, 580px); background: var(--navy-deep); }
.page-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 18, 33, .94) 0%, rgba(7, 18, 33, .68) 48%, rgba(7, 18, 33, .3) 100%);
}
[dir="rtl"] .page-hero--photo::before { background: linear-gradient(-90deg, rgba(7, 18, 33, .94) 0%, rgba(7, 18, 33, .68) 48%, rgba(7, 18, 33, .3) 100%); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; }
.page-hero--editorial::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to left, #000, transparent 75%);
}
[dir="rtl"] .page-hero--editorial::before { mask-image: linear-gradient(to right, #000, transparent 75%); }
.page-hero--compact { min-height: 290px; }

/* Short editorial callouts connect imagery to practical booking information. */
.content-note {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 30px; padding: 16px 19px; border-inline-start: 3px solid var(--gold);
  background: var(--surface-2); border-radius: 0 12px 12px 0;
}
[dir="rtl"] .content-note { border-radius: 12px 0 0 12px; }
.content-note p { max-width: 74ch; margin: 0; color: var(--on-surface-muted); font-size: .9rem; }
.content-note a { flex: 0 0 auto; font-size: .82rem; font-weight: 700; text-decoration: none; }
.content-note > span { color: var(--on-surface-muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }

/* Asymmetric image pairing on the home page. */
.home-collage { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 90px auto 62px; min-width: 0; }
.home-collage picture { overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-premium); }
.home-collage img { width: 100%; height: 100%; object-fit: cover; }
.home-collage__main { grid-column: 1 / 5; grid-row: 1 / 3; min-height: 470px; border-radius: 18px; }
.home-collage__detail { grid-column: 4 / 6; grid-row: 2 / 4; min-height: 230px; border: 7px solid var(--page); border-radius: 15px; z-index: 1; }
.section--sand .home-collage__detail { border-color: var(--sand); }

/* Cards are quieter and more tactile; descriptions remain visible. */
.card { border-radius: 16px; box-shadow: var(--shadow-soft); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-premium); }
.card__body { padding: 22px 23px 26px; }
.space-card__badge { margin-inline: 18px; border-radius: 6px; }
.g-item { border-radius: 16px; box-shadow: var(--shadow-soft); }
.g-item__cap { opacity: 1; padding: 52px 18px 15px; background: linear-gradient(to top, rgba(7, 18, 33, .92), rgba(7, 18, 33, .05)); }
.g-item__cap--rich strong, .g-item__cap--rich span { display: block; }
.g-item__cap--rich strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; }
.g-item__cap--rich span { max-width: 48ch; margin-top: 3px; color: #D6DFEB; font-size: .72rem; line-height: 1.45; }
.g-item__button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.filter-bar { align-items: center; margin-bottom: 28px; }
.filter-bar button, .tour-roomlist button { min-height: var(--tap); }
.filter-bar button.is-active { box-shadow: 0 8px 20px -14px rgba(13, 27, 48, .8); }
.lightbox__close { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; }

/* Guided tour polish and visible progress. */
.tour-stage { border-radius: 18px; box-shadow: var(--shadow-premium); }
.tour-stage__cap { padding: 78px 32px 26px; }
.tour-stage__index { margin: 0 0 5px; color: var(--gold-bright); font-size: .7rem; font-weight: 600; letter-spacing: .13em; }
.tour-stage__title { font-size: clamp(1.35rem, 3vw, 1.85rem); }
.tour-hint { margin: 10px 0 0; color: var(--on-surface-muted); font-size: .82rem; text-align: center; }
.tour-cta { margin-top: 40px; text-align: center; }

.amenity-list { max-width: 900px; margin-inline: auto; columns: 2; column-gap: 56px; font-size: .95rem; }
.amenity-list li { break-inside: avoid; }
.pricing-note { margin: 22px 0 0; color: var(--on-surface-muted); font-size: .86rem; text-align: center; }

/* Booking guidance is informative without competing with the primary CTA. */
.booking-guide { border-top: 1px solid var(--border); }
.booking-steps {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 980px; margin: 0 auto; padding: 0; list-style: none;
}
.booking-steps::before { content: ""; position: absolute; inset-inline: 14%; top: 23px; height: 1px; background: var(--border-strong); }
.booking-steps li { position: relative; display: flex; gap: 15px; align-items: flex-start; padding: 0 12px; background: var(--page); }
.booking-steps li > span {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; background: var(--page);
  color: var(--gold-on-light); font: 500 1rem var(--font-display);
}
.booking-steps h3 { margin: 3px 0 4px; font-size: 1rem; }
.booking-steps p { margin: 0; color: var(--on-surface-muted); font-size: .82rem; line-height: 1.55; }
.booking-progress-intro { border-bottom: 1px solid var(--border); background: var(--surface); }
.booking-progress-intro ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; }
.booking-progress-intro li { min-height: 68px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; color: var(--on-surface-muted); }
.booking-progress-intro li + li { border-inline-start: 1px solid var(--border); }
.booking-progress-intro li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .74rem; }
.booking-progress-intro li strong { color: var(--on-surface); font-size: .82rem; }

/* Events, location and contact pages expose practical facts at a glance. */
.venue-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 30px; border-block: 1px solid var(--border); }
.venue-facts div { padding: 17px 22px; }
.venue-facts div + div { border-inline-start: 1px solid var(--border); }
.venue-facts strong, .venue-facts span { display: block; }
.venue-facts strong { color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }
.venue-facts span { margin-top: 3px; color: var(--on-surface-muted); font-size: .8rem; }
.event-grid { gap: 24px; }
.event-card .card__media { aspect-ratio: 5 / 4; }
.cta-band__alt { margin-top: 18px; }
.cta-band__alt a { color: #DCE4EF; }
.cta-band__alt a:hover { color: var(--gold-bright); }
.location-layout, .contact-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.embed-map { min-height: 520px; border-radius: 18px; box-shadow: var(--shadow-premium); }
.embed-map iframe { height: 520px; }
.location-card, .contact-form-card {
  padding: clamp(26px, 4vw, 42px); border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.location-address { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--on-surface); font-style: normal; font-size: 1rem; line-height: 1.85; }
.location-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.location-facts p { margin: 0; padding: 13px; border-radius: 10px; background: var(--surface-2); }
.location-facts strong, .location-facts span { display: block; }
.location-facts strong { font-size: .78rem; }
.location-facts span { margin-top: 3px; color: var(--on-surface-muted); font-size: .72rem; }
.location-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.contact-panel {
  padding: clamp(28px, 4vw, 42px); border-radius: 16px; background:
    radial-gradient(80% 80% at 100% 0%, rgba(200, 155, 75, .2), transparent 62%), var(--navy-deep);
  color: #D8E0EB; box-shadow: var(--shadow-premium);
}
.contact-panel--sticky { position: sticky; top: calc(var(--header-h) + 54px); }
.contact-panel h2, .contact-panel h3 { color: #fff; }
.contact-panel .section__kicker { color: var(--gold-bright); }
.contact-panel__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; color: var(--gold-bright); }
.contact-panel__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-panel__phones { font-size: 1.12rem; line-height: 1.9; }
.contact-panel a:not(.btn) { color: #E7ECF4; }
.contact-panel a:not(.btn):hover { color: var(--gold-bright); }
.contact-panel__divider { height: 1px; margin: 30px 0 24px; background: rgba(255,255,255,.14); }
.contact-panel__address { font-style: normal; line-height: 1.8; }
.contact-panel__hours { margin: 14px 0 0; color: #AEB9C8; font-size: .82rem; }
.contact-panel__link { display: block; margin-top: 18px; font-size: .83rem; font-weight: 600; text-decoration: none; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-layout .faq-list { max-width: none; width: 100%; }
.faq-item { border-radius: 12px; box-shadow: 0 10px 30px -30px rgba(13,27,48,.8); }
.faq-item summary { min-height: 60px; display: flex; align-items: center; padding-block: 17px; }
.faq-item[open] { border-color: rgba(138, 100, 39, .45); box-shadow: var(--shadow-soft); }

/* Shared confidence rail and a more informative footer. */
.assurance { border-block: 1px solid rgba(255,255,255,.09); background: var(--navy); color: #fff; }
.assurance__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.assurance__item { min-height: 112px; display: flex; align-items: center; gap: 13px; padding: 20px 24px; }
.assurance__item + .assurance__item { border-inline-start: 1px solid rgba(255,255,255,.1); }
.assurance__icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.07); color: var(--gold-bright); }
.assurance__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assurance strong, .assurance small { display: block; }
.assurance strong { font-size: .82rem; }
.assurance small { margin-top: 3px; color: #B9C4D4; font-size: .7rem; line-height: 1.35; }
.site-footer__promise { max-width: 42ch; color: #AEB9C8; font-size: .8rem; line-height: 1.65; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* Legal, success and error states retain the same composed visual language. */
.legal-card { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.legal-body { max-width: 840px; }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h2 { padding-top: .25em; font-size: 1.32rem; }
.legal-body p, .legal-body li { color: var(--on-surface-muted); }
.legal-body li + li { margin-top: 7px; }
.legal-action { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.ty-card { border-radius: 18px; box-shadow: var(--shadow-premium); }
.ty-card h1 { font-size: clamp(1.8rem, 4vw, 2.55rem); }
.ty-card__icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #E8F4EC; color: var(--ok); }
.ty-card__icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ty-card__later { margin-top: 14px; color: var(--on-surface-muted); font-size: .8rem; }
.ty-card__details { max-width: 440px; margin: 32px auto 0; padding: 22px; border-radius: 12px; background: var(--surface-2); text-align: start; }
.ty-card__details h2 { font-size: 1.15rem; }
.error-page { min-height: 68vh; display: grid; place-items: center; }
.error-page__card { position: relative; max-width: 720px; padding-block: 80px; text-align: center; }
.error-page__code { position: absolute; inset: 50% auto auto 50%; z-index: -1; margin: 0; transform: translate(-50%, -50%); color: var(--surface-2); font: 400 clamp(10rem, 28vw, 18rem)/1 var(--font-display); }
.error-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); }

/* The booking form feels like a guided concierge flow rather than a utility. */
.page-book .step { border-radius: 16px; box-shadow: var(--shadow-soft); }
.page-book .summary { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; box-shadow: var(--shadow-premium); }
.page-book .summary h2 { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
.slot-option, .counter, .check-toggle { border-radius: 12px; }

@media (max-width: 940px) {
  .assurance__grid { grid-template-columns: repeat(2, 1fr); }
  .assurance__item:nth-child(3) { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .assurance__item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.1); }
  .faq-layout, .location-layout, .contact-layout { grid-template-columns: 1fr; }
  .contact-panel--sticky { position: static; }
  .embed-map, .embed-map iframe { min-height: 420px; height: 420px; }
  .home-collage__main { min-height: 400px; }
}

@media (max-width: 640px) {
  .hero { min-height: 720px; }
  .hero__in { padding-bottom: 54px; }
  .hero-facts { grid-template-columns: 1fr; width: min(360px, 100%); }
  .hero-facts > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 14px; }
  .hero-facts > div + div { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .hero-facts span { margin: 0; text-align: end; }
  .page-hero { min-height: 290px; }
  .page-hero--photo { min-height: 440px; }
  .page-hero--photo::before { background: linear-gradient(to top, rgba(7,18,33,.96), rgba(7,18,33,.55)); }
  [dir="rtl"] .page-hero--photo::before { background: linear-gradient(to top, rgba(7,18,33,.96), rgba(7,18,33,.55)); }
  .page-hero h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .page-hero__actions .btn { flex: 1 1 100%; }
  .content-note { align-items: flex-start; flex-direction: column; gap: 10px; }
  .home-collage { grid-template-rows: 54px auto 42px; }
  .home-collage__main { min-height: 330px; }
  .home-collage__detail { min-height: 170px; border-width: 5px; }
  .editorial-split--reverse-mobile > :first-child { order: 2; }
  .editorial-split--reverse-mobile > :last-child { order: 1; }
  .amenity-list { columns: 1; }
  .venue-facts { grid-template-columns: 1fr; }
  .venue-facts div + div { border-inline-start: 0; border-top: 1px solid var(--border); }
  .booking-steps { grid-template-columns: 1fr; gap: 22px; }
  .booking-steps::before { inset: 22px auto 22px 34px; width: 1px; height: auto; }
  [dir="rtl"] .booking-steps::before { inset: 22px 34px 22px auto; }
  .booking-steps li { padding-inline: 12px; }
  .booking-progress-intro ol { grid-template-columns: 1fr; padding-block: 6px; }
  .booking-progress-intro li { min-height: 48px; justify-content: flex-start; }
  .booking-progress-intro li + li { border-inline-start: 0; }
  .location-facts { grid-template-columns: 1fr; }
  .location-actions .btn { flex: 1 1 100%; }
  .assurance__grid { grid-template-columns: 1fr; }
  .assurance__item { min-height: 88px; padding: 16px 20px; }
  .assurance__item + .assurance__item { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .contact-form-card, .contact-panel, .location-card { padding: 24px 20px; }
  .legal-card { border-inline: 0; border-radius: 0; }
}

[dir="rtl"] .content-note a span, [dir="rtl"] .contact-panel__link span { display: inline-block; transform: rotate(180deg); }

/* ---- Admin workspace shell --------------------------------------------- */
/* The dashboard keeps the public brand, but uses a compact operations layout
   and body type throughout so dense data is quicker to scan. */
.admin {
  --admin-sidebar: #10223A;
  --admin-sidebar-2: #18304F;
  --admin-sidebar-text: #E9EEF5;
  --admin-sidebar-muted: #AAB7C8;
  --admin-accent-soft: #F4EBDD;
  --admin-info-soft: #EAF0F7;
  --admin-control: #FFFFFF;
  min-height: 100dvh;
  background: var(--page);
}
.admin h1, .admin h2, .admin h3, .admin h4 {
  font-family: var(--font-body); font-weight: 700; letter-spacing: -.025em;
}
.admin h1 { font-size: clamp(1.85rem, 3vw, 2.5rem); }
.admin h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
.admin .btn { border-radius: 10px; min-height: var(--tap); padding: 12px 18px; }
.admin .btn--sm { min-height: var(--tap); padding: 9px 13px; font-size: .84rem; }
.admin-shell { min-height: 100dvh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.admin-sidebar {
  position: sticky; top: 0; z-index: 30; height: 100dvh; min-width: 0;
  display: flex; flex-direction: column; padding: 22px 14px 16px;
  color: var(--admin-sidebar-text); background: var(--admin-sidebar);
  box-shadow: 14px 0 36px -28px rgba(4, 12, 24, .9);
}
.admin-brand {
  display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 5px 9px;
  color: #fff; text-decoration: none; border-radius: 12px; margin-bottom: 30px;
}
.admin-brand:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.admin-brand__mark {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 11px;
  color: var(--gold-bright); background: rgba(255, 255, 255, .07);
}
.admin-brand__mark svg { width: 24px; height: 24px; }
.admin-brand strong, .admin-brand small { display: block; line-height: 1.25; }
.admin-brand strong { font-size: 1.05rem; letter-spacing: .02em; }
.admin-brand small { color: var(--admin-sidebar-muted); font-size: .72rem; margin-top: 2px; }
.admin-nav { min-width: 0; }
.admin-nav__label {
  margin: 0 10px 9px; color: var(--admin-sidebar-muted); font-size: .67rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.admin-nav a {
  position: relative; min-height: 45px; display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: 10px; color: var(--admin-sidebar-muted);
  font-size: .88rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.admin-nav a::before {
  content: ""; position: absolute; inset-block: 11px; inset-inline-start: -14px;
  width: 3px; border-radius: 0 4px 4px 0; background: transparent;
}
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.admin-nav a.is-active { color: #fff; background: var(--admin-sidebar-2); }
.admin-nav a.is-active::before { background: var(--gold-bright); }
.admin-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.admin-icon--sm { width: 16px; height: 16px; flex-basis: 16px; margin-inline-start: auto; }
.admin-badge {
  min-width: 20px; padding: 2px 6px; margin-inline-start: auto; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700;
  line-height: 1.45; text-align: center; font-variant-numeric: tabular-nums;
}
.admin-site-link {
  min-height: 44px; display: flex; align-items: center; gap: 11px; margin-top: auto;
  padding: 10px 11px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  color: var(--admin-sidebar-muted); font-size: .84rem; text-decoration: none;
}
.admin-site-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.admin-workspace { min-width: 0; }
.admin-topbar {
  position: sticky; top: 0; z-index: 20; min-height: 72px; display: flex;
  justify-content: space-between; align-items: center; gap: 20px; padding: 10px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid var(--border); background: var(--header-bg); backdrop-filter: blur(14px);
}
.admin-topbar__context span, .admin-topbar__context strong { display: block; line-height: 1.35; }
.admin-topbar__context span { color: var(--on-surface-muted); font-size: .7rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.admin-topbar__context strong { color: var(--navy); font-size: .96rem; }
.admin-account { display: flex; align-items: center; gap: 9px; margin: 0; }
.admin-avatar {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--admin-accent-soft); color: var(--gold-on-light); font-size: .8rem; font-weight: 700;
}
.admin-account__name { max-width: 160px; color: var(--on-surface); font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-signout {
  min-height: var(--tap); display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--on-surface-muted);
  font: 600 .78rem/1 var(--font-body); cursor: pointer;
}
.admin-signout:hover { color: var(--danger); background: var(--surface-2); }
.admin-main { min-width: 0; }
.admin-content { width: 100%; max-width: 1500px; margin-inline: auto; padding: clamp(24px, 3vw, 42px); }
.admin-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.admin-head h1 { margin: 0; }
.admin-title { max-width: 720px; }
.admin-title__text { max-width: 66ch; margin: 7px 0 0; color: var(--on-surface-muted); font-size: .93rem; }
.admin-page-actions { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.admin-filter { display: flex; align-items: center; gap: 9px; margin: 0; }
.admin-filter label { color: var(--on-surface-muted); font-size: .78rem; font-weight: 600; }
.admin-filter select {
  min-width: 174px; min-height: var(--tap); padding: 9px 34px 9px 12px;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--admin-control); color: var(--on-surface); font: 500 .84rem var(--font-body);
}
.admin-actions { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 18px; }
.admin-actions form { margin: 0; }
.data tr.is-past td { opacity: .55; }
.step.is-unread { border-inline-start: 3px solid var(--gold); }

@media (max-width: 960px) {
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 12px 16px 10px; }
  .admin-brand { width: max-content; min-height: 45px; margin: 0 0 8px; padding: 2px 4px; }
  .admin-brand__mark { width: 34px; height: 34px; flex-basis: 34px; }
  .admin-nav__label, .admin-site-link { display: none; }
  .admin-nav ul { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .admin-nav li { flex: 0 0 auto; }
  .admin-nav a { min-height: var(--tap); padding: 8px 11px; }
  .admin-nav a::before { inset: auto 12px -10px; width: auto; height: 3px; border-radius: 4px 4px 0 0; }
  .admin-topbar { top: 0; }
}

@media (max-width: 600px) {
  .admin-sidebar { padding-inline: 12px; }
  .admin-nav a { font-size: .8rem; gap: 8px; }
  .admin-topbar { min-height: 58px; padding: 8px 14px; }
  .admin-topbar__context span, .admin-account__name, .admin-signout span { display: none; }
  .admin-topbar__context strong { font-size: .9rem; }
  .admin-signout { width: var(--tap); padding: 8px; justify-content: center; }
  .admin-content { padding: 22px 14px 34px; }
}

/* ==========================================================================
   Dark theme
   Follows the system preference. Surfaces are desaturated navy tones rather
   than inverted light values, so the estate-at-dusk identity holds and the
   brand navy sections still read as intentional rather than accidental.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --page: #0B1420;
    --surface: #16212F;
    --surface-2: #1E2A39;
    --on-surface: #E9EDF3;
    --on-surface-muted: #A3AEBE;
    --border: #27333F;
    --border-strong: #4A5769;
    --header-bg: rgba(11, 20, 32, .92);
    --danger-text: #F2A79C;
    /* On dark surfaces the bright gold is the readable one (5.7:1). */
    --gold-on-light: var(--gold-bright);
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .6);
  }

  /* Headings sit on dark surfaces now, so navy would disappear. */
  h1, h2, h3, h4 { color: #F2F5F9; }
  a { color: var(--gold-bright); }
  a:hover { color: #E3C88E; }

  .brand, .site-nav__lang a, .nav-toggle__bar { color: var(--on-surface); }
  .nav-toggle__bar { background: var(--on-surface); }
  .brand__sub, .site-nav__link.is-active { color: var(--gold-bright); }
  .site-nav__link { color: var(--on-surface); }
  .site-nav__link:hover { color: var(--gold-bright); background: var(--surface-2); }

  .btn--ghost { background: var(--surface-2); color: var(--on-surface); }
  .btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
  .btn--navy { background: var(--surface-2); color: var(--on-surface); border-color: var(--border-strong); }
  .btn--navy:hover { background: var(--border); color: #fff; }

  /* Components that use brand navy as text in the light theme need the
     semantic foreground once their surfaces turn dark. */
  .price-card__slot,
  .review__name,
  .cal__title,
  .cal__nav,
  .slot-option__label,
  .counter__ctrl button,
  .faq-item summary,
  .venue-facts strong { color: var(--on-surface); }
  .filter-bar button:hover,
  .cal__nav:hover:not([disabled]),
  .cal__day:hover:not([disabled]):not(.is-selected),
  .counter__ctrl button:hover { color: var(--gold-bright); }
  .slot-option.is-selected { background: var(--surface-2); border-color: var(--gold-bright); }

  .cal__day { color: var(--on-surface); }
  .cal__day--weekend { background: #24202A; }
  .cal__day[disabled] { background: var(--surface-2); color: #A8B2C0; }
  .cal__day--in-range { background: #24405F; border-color: var(--gold-bright); color: #EAF1FA; }
  .cal__day.is-selected { background: var(--gold-bright); border-color: var(--gold-bright); color: #12100B; }
  .cal__day.is-selected small { color: #2E2414; }

  .section--sand { background: var(--surface-2); }
  .price-card__tag { background: var(--gold-bright); color: #12100B; }

  /* Status tints are light-mode washes; rebuild them as dark-surface tints so
     the text keeps its 4.5:1 instead of dark-on-dark. */
  .pill--pending { background: #3A2E15; color: #F0CE86; }
  .pill--confirmed { background: #16311F; color: #8FD6A8; }
  .pill--cancelled, .pill--expired, .pill--no_show { background: #3A1D1A; color: #F2A79C; }
  .pill--completed { background: #1E2A39; color: #B9C9E0; }

  .form-msg--ok { background: #16311F; color: #8FD6A8; }
  .form-msg--err { background: #3A1D1A; color: #F2A79C; }

  /* The hero image needs a heavier scrim to keep white text readable. */
  .hero::after {
    background: linear-gradient(to top, rgba(6, 11, 18, .95) 0%, rgba(6, 11, 18, .5) 55%, rgba(6, 11, 18, .7) 100%);
  }
  .hero__media img { opacity: .62; }
}

/* The wordmark is Latin in both locales, so it keeps its serif even under the
   Arabic font stack. */
[dir="rtl"] .brand__name { font-family: "Marcellus", serif; }

/* ==========================================================================
   Admin dashboard content
   ========================================================================== */

.admin-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px 26px; margin-bottom: 20px;
  box-shadow: 0 10px 30px -27px rgba(13, 27, 48, .75);
}
.admin-section > h2:first-child { margin-top: 0; }
.admin-muted { color: var(--on-surface-muted); }
.admin-meta { margin: 2px 0 0; color: var(--on-surface-muted); font-size: .86rem; }
.admin-note { color: var(--on-surface-muted); margin-top: 20px; }

/* The first row answers the four operational questions an owner asks most. */
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat {
  min-height: 126px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 17px; text-decoration: none; color: inherit; display: flex; align-items: flex-start; gap: 13px;
  box-shadow: 0 9px 26px -24px rgba(13, 27, 48, .8);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.admin-stat:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; box-shadow: 0 14px 30px -24px rgba(13, 27, 48, .8); }
.admin-stat.is-active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.admin-stat__icon {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  border-radius: 11px; color: var(--navy); background: var(--admin-info-soft);
}
.admin-stat__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-stat__body { min-width: 0; display: block; }
.admin-stat__n { font: 700 1.85rem/1 var(--font-body); color: var(--navy); display: block; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.admin-stat__l { display: block; margin-top: 7px; color: var(--on-surface); font-size: .79rem; font-weight: 700; line-height: 1.25; }
.admin-stat__hint { display: block; margin-top: 4px; color: var(--on-surface-muted); font-size: .7rem; line-height: 1.25; }
.admin-stat--alert .admin-stat__n { color: var(--gold-on-light); }
.admin-stat--alert .admin-stat__icon { color: var(--gold-on-light); background: var(--admin-accent-soft); }

.admin-detail { border-top: 3px solid var(--gold); scroll-margin-top: 88px; }
.admin-detail > .admin-head { align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.admin-back { display: inline-block; margin-bottom: 10px; color: var(--on-surface-muted); font-size: .78rem; font-weight: 600; text-decoration: none; }
.admin-back:hover { color: var(--gold-on-light); }
.admin-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 0 28px; margin: 0 0 20px; }
.admin-fact { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-fact:last-child { border-bottom: 0; }
.admin-fact__k { color: var(--on-surface-muted); font-size: .88rem; }
.admin-fact__v { font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }

.field--inline { margin: 0; }
.field--grow { margin: 0; flex: 1 1 220px; }
.field__hint { display: block; color: var(--on-surface-muted); font-size: .82rem; margin-top: 5px; }
.admin-empty { color: var(--on-surface-muted); padding: 18px 2px; }

.admin-list { padding: 0; overflow: hidden; }
.admin-list__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; }
.admin-list__head h2 { margin: 0; font-size: 1.05rem; }
.admin-list__head p { margin: 4px 0 0; color: var(--on-surface-muted); font-size: .78rem; }
.admin-clear-filter { font-size: .8rem; font-weight: 600; }
.admin table.data { border-radius: 0; border-top: 1px solid var(--border); }
.admin table.data th {
  padding: 11px 15px; background: var(--surface-2); color: var(--on-surface-muted);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.admin table.data td { padding: 13px 15px; }
.admin table.data tbody tr { transition: background .16s ease; }
.admin table.data tbody tr:hover { background: var(--surface-2); }
.admin table.data tr.is-selected { background: var(--admin-accent-soft); box-shadow: inset 3px 0 0 var(--gold); }
.admin-reservations-table td:first-child a { font-weight: 700; text-decoration: none; }
.admin-reservations-table small { color: var(--on-surface-muted); font-size: .74rem; }

/* Destructive controls sit apart from ordinary ones. */
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #97281E; color: #fff; }

/* Wide operational tables become labeled cards instead of forcing sideways
   scrolling on the phone the owner is likely holding. */
@media (max-width: 720px) {
  .table-wrap { overflow-x: visible; }
  table.data { background: none; border-radius: 0; }
  .data thead { display: none; }
  .data tbody, .data tr, .data td { display: block; width: 100%; }
  .admin .data tr {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 12px; padding: 4px 0;
  }
  .admin .data tbody tr:hover { background: var(--surface); }
  .data td { border-bottom: 1px solid var(--border); padding: 10px 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; text-align: end; }
  .data tr td:last-child { border-bottom: 0; }
  .data td::before {
    content: attr(data-label);
    font-weight: 600; font-size: .82rem; color: var(--on-surface-muted);
    text-align: start; flex: 0 0 auto;
  }
  .data td:not([data-label]) { display: block; text-align: start; }
  .data td:not([data-label])::before { content: none; }
  .admin-fact__v { text-align: end; }
  .admin-list { padding: 18px 14px 6px; overflow: visible; }
  .admin-list__head { padding: 0 0 14px; }
  .admin table.data { border-top: 0; }
  .admin table.data tr.is-selected { background: var(--admin-accent-soft); }
}

@media (max-width: 560px) {
  .admin-section { padding: 18px 16px 22px; }
  .admin-head { align-items: flex-start; }
  .admin-page-actions, .admin-page-actions > *, .admin-filter { width: 100%; }
  .admin-page-actions .btn { flex: 1 1 auto; }
  .admin-filter { align-items: stretch; flex-direction: column; gap: 5px; }
  .admin-filter select { width: 100%; }
  .admin-list { padding: 18px 14px 6px; }
  .admin-actions { flex-direction: column; align-items: stretch; }
  .admin-actions .btn, .admin-actions form { width: 100%; }
  .admin-actions .btn { justify-content: center; }
}

.input--num { max-width: 140px; }
.input--med { max-width: 280px; }
.admin-h-sm { margin: 0; font-size: 1.1rem; }
.admin-prewrap { white-space: pre-wrap; margin: 0 0 14px; }
.admin-inline-actions { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wrap--narrow { max-width: 520px; }

@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stat { min-height: 104px; }
}

@media (prefers-color-scheme: dark) {
  .admin {
    --admin-accent-soft: #332B1F;
    --admin-info-soft: #1E3146;
    --admin-control: var(--surface);
  }
  .admin-topbar__context strong, .admin-stat__n, .admin-stat__icon { color: #EEF3F9; }
  .admin table.data th { color: #B5C0CE; }
}

@media (prefers-reduced-motion: reduce) {
  .admin *, .admin *::before, .admin *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .admin-stat:hover, .admin .btn:hover { transform: none; }
}
