/* ============================================================
   Atrium — design system
   Shared tokens, reset and primitives for every surface.
   Written with logical properties so Arabic RTL costs nothing.
   ============================================================ */

:root {
  /* Ink */
  --ink:      #17150F;
  --ink-2:    #423E35;
  --muted:    #7A7466;
  --faint:    #A69F91;

  /* Surfaces */
  --paper:    #F7F4EE;
  --paper-2:  #EFEBE2;
  --card:     #FFFFFF;
  --line:     #E4DFD4;
  --line-2:   #D3CCBD;

  /* Brand */
  --green:      #14483C;
  --green-2:    #0D3128;
  --green-3:    #08211B;
  --green-soft: #E7EFEB;
  --green-mid:  #2C6A59;
  --brass:      #A2803A;
  --brass-2:    #86682C;
  --brass-soft: #F6EEDC;

  /* Status — never used as decoration */
  --good: #2E7A50;  --good-soft: #E6F2EA;
  --warn: #A8760F;  --warn-soft: #FBF1DC;
  --crit: #AC3B2B;  --crit-soft: #FAEAE7;
  --info: #2A5C90;  --info-soft: #E8EFF7;

  /* Type */
  --font-display: "Fraunces", "IBM Plex Sans Arabic", Georgia, serif;
  --font-body: "Inter", "IBM Plex Sans Arabic", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Geometry */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(23,21,15,.05), 0 2px 6px rgba(23,21,15,.05);
  --sh-2: 0 4px 14px rgba(23,21,15,.07), 0 12px 30px rgba(23,21,15,.07);
  --sh-3: 0 10px 30px rgba(23,21,15,.10), 0 30px 70px rgba(23,21,15,.14);
  --sh-in: inset 0 1px 0 rgba(255,255,255,.6);

  --ease: cubic-bezier(.2,.72,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss01" 1;
}

html[dir="rtl"] body,
html[dir="rtl"] input, html[dir="rtl"] button, html[dir="rtl"] select {
  font-family: "IBM Plex Sans Arabic", var(--font-body);
  letter-spacing: 0 !important;
}
html[dir="rtl"] .display, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  letter-spacing: 0 !important;
}

img, svg, video { display: block; max-width: 100%; }

/* Room names, amenities and rate plans stay in English in every language.
   Isolating them keeps their punctuation from drifting in an RTL paragraph. */
bdi, .ltr { unicode-bidi: isolate; }
html[dir="rtl"] .opt-blurb, html[dir="rtl"] .svc-blurb, html[dir="rtl"] .helper-body,
html[dir="rtl"] #stayRoomBlurb, html[dir="rtl"] .chip, html[dir="rtl"] .mono {
  unicode-bidi: isolate;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- type */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  letter-spacing: -.02em;
  line-height: 1.06;
}
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  background: var(--green); color: #fff;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
  box-shadow: 0 2px 8px rgba(20,72,60,.22);
  white-space: nowrap;
}
.btn:hover { background: var(--green-2); box-shadow: 0 6px 18px rgba(20,72,60,.3); }
.btn:active { transform: translateY(1px) scale(.995); }
.btn[disabled], .btn.is-disabled { opacity: .38; pointer-events: none; box-shadow: none; }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-2); box-shadow: none; }
.btn-quiet { background: transparent; color: var(--muted); box-shadow: none; }
.btn-quiet:hover { background: rgba(23,21,15,.05); color: var(--ink); box-shadow: none; }
.btn-brass { background: var(--brass); box-shadow: 0 2px 8px rgba(162,128,58,.28); }
.btn-brass:hover { background: var(--brass-2); }
.btn-crit { background: var(--crit); box-shadow: none; }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- surface */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip-crit { background: var(--crit-soft); color: var(--crit); border-color: transparent; }
.chip-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip-brass { background: var(--brass-soft); color: var(--brass-2); border-color: transparent; }
.chip-green { background: var(--green-soft); color: var(--green); border-color: transparent; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.tier {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.tier-Platinum, .tier-Ambassador { color: var(--brass-2); }
.tier-Gold { color: #8A6A18; }
.tier-Silver { color: var(--muted); }
.tier-Member { color: var(--faint); }

/* ---------------------------------------------------------------- layout */

.wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- motion */

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.rise { animation: riseIn .5s var(--ease-out) both; }
.rise-1 { animation-delay: .04s; } .rise-2 { animation-delay: .09s; }
.rise-3 { animation-delay: .14s; } .rise-4 { animation-delay: .19s; }
.rise-5 { animation-delay: .24s; } .rise-6 { animation-delay: .29s; }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.28); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.spinner-ink { border-color: rgba(23,21,15,.15); border-top-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------------------------------------------------------------- brand */

.mark { display: inline-flex; align-items: center; gap: 11px; }
.mark-glyph {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
}
.mark-name {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  letter-spacing: -.015em; font-variation-settings: "SOFT" 0, "WONK" 0;
}
.mark-sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ---------------------------------------------------------------- inputs */

.field { display: block; }
.field-label {
  display: block; font-size: 12px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em; margin-block-end: 7px;
}
.input {
  width: 100%; padding: 13px 16px;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.input::placeholder { color: var(--faint); }
.field-hint { font-size: 12px; color: var(--muted); margin-block-start: 7px; }

/* ---------------------------------------------------------------- table */

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: start; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding: 0 12px 9px; border-block-end: 1px solid var(--line);
}
.tbl td { padding: 11px 12px; border-block-end: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-block-end: 0; }
.tbl-hover tr:hover td { background: var(--paper); }
.ta-end { text-align: end; }

/* ---------------------------------------------------------------- scroll */

.scroll-y { overflow-y: auto; overscroll-behavior: contain; }
.scroll-y::-webkit-scrollbar { width: 10px; }
.scroll-y::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid var(--paper); }
.scroll-y::-webkit-scrollbar-track { background: transparent; }
