/* ── Design tokens: change look & feel here ─────────────────── */
:root {
  --paper: #f3f0e8;
  --ink: #16150f;
  --muted: #66625a;
  --rule: #d6d1c4;
  --accent: #23402f;          /* focus rings */

  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3.5rem;
  --gutter: clamp(1rem, 5vw, 3rem);
  --max-width: 68rem;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: var(--space-3) var(--gutter) var(--space-4);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ── Header ─────────────────────────────────────────────────── */
.page-header {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--ink);
  margin-bottom: var(--space-3);
}
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.lead { margin: var(--space-1) 0 0; font-size: 1.25rem; }

/* ── Sections ───────────────────────────────────────────────── */
section + section { margin-top: var(--space-4); }
.section-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hint { margin: 0.25rem 0 var(--space-2); color: var(--muted); }

/* ── Floor plan ─────────────────────────────────────────────── */
.plan {
  position: relative;
  width: 100%;
  aspect-ratio: 1033 / 472;   /* app.js overwrites this from the SVG's viewBox */
}
.plan svg { display: block; width: 100%; height: 100%; }

.booking-room {
  fill: color-mix(in srgb, var(--room-color) 16%, transparent);
  stroke: var(--ink);
  stroke-width: 5px;
  cursor: pointer;
  transition: fill 150ms ease;
}
.booking-room:hover,
.booking-room.is-hover  { fill: color-mix(in srgb, var(--room-color) 34%, transparent); }
.booking-room.is-active { fill: color-mix(in srgb, var(--room-color) 58%, transparent); }

/* Labels sit on top of the SVG; empty areas let clicks through to the rooms */
.plan-labels { position: absolute; inset: 0; pointer-events: none; }

.label {
  position: absolute;
  transform: translate(-50%, -50%);   /* centre the label on its x/y point */
  max-width: 15%;
  padding: 0.2em 0.5em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: 600 clamp(10px, 2.3vw, 15px) / 1.2 var(--font);
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
}
.label[aria-pressed="true"],
.label:hover,
.label.is-hover { background: var(--ink); color: var(--paper); }

/* ── Room tabs ──────────────────────────────────────────────── */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-2); }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;                  /* comfortable touch target */
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.swatches { display: inline-flex; gap: 3px; }
.swatch { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--swatch); }

/* ── Calendar ───────────────────────────────────────────────── */
.calendar-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: var(--space-3) 0 var(--space-1);
  font-size: 1.5rem;
  font-weight: 600;
}
.calendar-title .swatch { width: 0.6em; height: 0.6em; }

.calendar-frame { border: 1px solid var(--rule); background: #fff; }
.calendar-frame iframe { display: block; width: 100%; height: 640px; border: 0; }

.note { margin: var(--space-2) 0 0; max-width: 40rem; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 700px) {
  .calendar-frame iframe { height: 560px; }
}
