/* ==========================================================================
   Koviou Holiday Village — stylesheet
   1. Tokens & reset
   2. Typography & shared elements
   3. Header / navigation
   4. Hero & quick availability bar
   5. Availability results & calendar
   6. Split sections, rooms, facilities, beach
   7. Gallery & lightbox
   8. Booking form & summary
   9. Contact, location, policies, footer
  10. Responsive & motion preferences
   ========================================================================== */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --deep: #0e3744;
  --deep-2: #0a2a34;
  --sea: #1a6b7d;
  --sea-soft: #2b8a9e;
  --sand: #d9b877;
  --sand-bright: #e8c88a;
  --sand-deep: #7d6230;
  --cream: #fdfbf7;
  --tint: #f3eee4;
  --line: #e2dbcd;
  --ink: #14262c;
  --ink-soft: #3d5359;
  --muted: #56696e;
  --white: #fff;
  --danger: #b3402f;
  --ok: #2c7a5b;
  --warn: #8a5f14;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-ui: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --shell: 1240px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 38, 44, .06), 0 2px 8px rgba(20, 38, 44, .05);
  --shadow-md: 0 8px 28px rgba(20, 38, 44, .10);
  --shadow-lg: 0 24px 60px rgba(14, 55, 68, .18);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

/* Author `display` rules would otherwise beat the [hidden] attribute. */
[hidden] { display: none !important; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--sea-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-deep :focus-visible,
.hero :focus-visible { outline-color: var(--sand-bright); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--deep);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 2. Typography & shared ---------- */
.shell {
  width: min(100% - 2.6rem, var(--shell));
  margin-inline: auto;
}
.shell.narrow { width: min(100% - 2.6rem, 820px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.012em;
  margin: 0;
  color: var(--deep);
}

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin: 0 0 .85rem;
}
.eyebrow-light {
  color: var(--sand-bright);
  text-shadow: 0 1px 10px rgba(4, 20, 26, .75);
}
.eyebrow .stars { letter-spacing: .12em; color: var(--sand-bright); }
.eyebrow .dot { opacity: .5; margin: 0 .25rem; }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-tint { background: var(--tint); }
.section-deep { background: var(--deep); color: rgba(255, 255, 255, .84); }
.section-deep h2,
.section-deep h3 { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head-center { margin-inline: auto; text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  margin-bottom: .7rem;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 40rem;
}
.section-head-center .section-sub { margin-inline: auto; }
.section-deep .section-sub { color: rgba(255, 255, 255, .72); }

.lede { font-size: 1.09rem; color: var(--ink-soft); }

.noscript-note { padding: 1rem; background: #fff; border-radius: var(--radius); }

/* Buttons */
.btn {
  --btn-bg: var(--deep);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.55rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
    color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--sea); }
.btn-primary:hover { --btn-bg: var(--deep); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--deep);
  border-color: currentColor;
}
.btn-ghost:hover { --btn-bg: var(--deep); --btn-fg: #fff; border-color: var(--deep); }
.btn-sm { padding: .62rem 1.1rem; font-size: .74rem; }
.btn-lg { padding: 1rem 2rem; font-size: .86rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sea);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow:hover { gap: .7rem; color: var(--deep); }

/* Forms (shared) */
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .72rem .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7f84' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.1rem;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #cfc5b2; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea-soft);
  box-shadow: 0 0 0 3px rgba(43, 138, 158, .14);
}
.field input.is-invalid,
.field select.is-invalid { border-color: var(--danger); background: #fdf5f3; }
.field-wide { grid-column: 1 / -1; }

.form-error {
  margin: .8rem 0 0;
  padding: .7rem .9rem;
  background: #fdf1ee;
  border-left: 3px solid var(--danger);
  border-radius: 2px;
  color: #8d3325;
  font-size: .88rem;
}
.form-fineprint {
  margin: 1rem 0 0;
  font-size: .84rem;
  color: var(--muted);
}
.form-fineprint a { color: var(--sea); }

/* ---------- 3. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  color: #fff;
  transition: background .35s var(--ease), box-shadow .35s var(--ease),
    color .35s var(--ease), padding .35s var(--ease);
  padding: .55rem 0;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 32, 40, .55), rgba(8, 32, 40, 0));
  opacity: 1;
  transition: opacity .35s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.site-header.is-stuck {
  background: rgba(253, 251, 247, .96);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  padding: .35rem 0;
}
.site-header.is-stuck::after { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.brand-mark { color: var(--sand-bright); display: flex; }
.site-header.is-stuck .brand-mark { color: var(--sea); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.brand-sub {
  font-size: .6rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  opacity: .78;
  margin-top: .18rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}
.site-nav a {
  position: relative;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .9;
  padding: .3rem 0;
  transition: opacity .18s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .9rem; flex: none; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  letter-spacing: .04em;
  text-decoration: none;
  opacity: .92;
}
.phone-link:hover { opacity: 1; }
.site-header .btn-primary { --btn-bg: var(--sea); }
.site-header.is-stuck .btn-primary { --btn-bg: var(--deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  opacity: .9;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 94vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 8rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.04);
  animation: heroDrift 26s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 28, 35, .84) 0%, rgba(7, 28, 35, .46) 42%, rgba(7, 28, 35, .34) 70%, rgba(7, 28, 35, .55) 100%);
}

.hero-inner { margin-bottom: auto; padding-top: clamp(2rem, 8vh, 6rem); }
.hero-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(2.9rem, 9vw, 6.4rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.02em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 32px rgba(0, 0, 0, .28);
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--sand-bright); }
.hero-lead {
  max-width: 34rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, .93);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .3);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.8rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  font-size: .82rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .86);
}
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sand-bright);
  margin-right: .22rem;
}

/* Quick availability bar */
.quickbar {
  background: rgba(253, 251, 247, .97);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem 1.35rem 1.3rem;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .6);
}
.quickbar-head {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: .85rem;
}
.quickbar-title {
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--deep);
}
.quickbar-note { margin: 0; font-size: .8rem; color: var(--muted); }
.quickbar-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: end;
}
.btn-search { height: 46px; padding-inline: 1.7rem; }

/* ---------- 5. Availability results ---------- */
.section-avail { background: var(--tint); padding-top: clamp(2.5rem, 5vw, 4rem); }
.avail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

.avail-banner {
  margin: 0 0 1.2rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .92rem;
  background: #eaf3f0;
  border-left: 3px solid var(--ok);
  color: #235c46;
}
.avail-banner.is-warn { background: #fdf4e5; border-color: var(--warn); color: #7b5714; }
.avail-banner.is-bad { background: #fdf1ee; border-color: var(--danger); color: #8d3325; }

.avail-options { display: grid; gap: .9rem; }

.avail-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
  padding: .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.avail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.avail-card.is-soldout { opacity: .62; }
.avail-card.is-soldout:hover { transform: none; box-shadow: none; }
.avail-card-img {
  width: 132px;
  height: 96px;
  border-radius: var(--radius);
  object-fit: cover;
}
.avail-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: .18rem;
}
.avail-card-sub {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.avail-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.avail-tags li {
  font-size: .72rem;
  padding: .16rem .5rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.pill-left {
  font-size: .74rem;
  font-weight: 500;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #eaf3f0;
  color: var(--ok);
  display: inline-block;
  margin-top: .55rem;
}
.pill-left.is-low { background: #fdf4e5; color: var(--warn); }
.pill-left.is-out { background: #fdf1ee; color: var(--danger); }

.avail-card-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  min-width: 148px;
}
.avail-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--deep);
}
.avail-price small {
  display: block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: .3rem;
}
.avail-total {
  font-size: .8rem;
  color: var(--ink-soft);
}
.avail-note { font-size: .76rem; color: var(--muted); text-align: right; }

/* Calendar */
.cal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1rem 1.15rem;
  position: sticky;
  top: 84px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.cal-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep);
}
.cal-nav {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.cal-nav:hover { background: var(--tint); border-color: #cfc5b2; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow {
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-bottom: .35rem;
}
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: .78rem;
  border-radius: 3px;
  border: 0;
  background: #fbf9f4;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.cal-day:hover:not(:disabled) { transform: scale(1.08); z-index: 1; }
.cal-day.status-open { background: #eaf3f0; color: #235c46; }
.cal-day.status-tight { background: #fdf0d8; color: #7b5714; }
.cal-day.status-full { background: #f7e2dd; color: #97382a; }
.cal-day.status-closed { background: transparent; color: #ada396; }
.cal-day:disabled { cursor: default; opacity: .7; }
.cal-day.is-selected { background: var(--sea); color: #fff; font-weight: 600; }
.cal-day.is-inrange { background: var(--sea-soft); color: #fff; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--sand-deep); }
.cal-day-empty { visibility: hidden; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .8rem;
  list-style: none;
  margin: .9rem 0 0;
  padding: .85rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .7rem;
  color: var(--muted);
}
.cal-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.swatch-open { background: #cfe6df; }
.swatch-tight { background: #f6dfae; }
.swatch-full { background: #edc6bd; }
.swatch-closed { background: #ddd7ca; }
.cal-hint { margin: .7rem 0 0; font-size: .74rem; color: var(--muted); }

/* ---------- 6. Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img,
.media-tall {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-body p { max-width: 42ch; }
.split-body .section-title { margin-bottom: 1rem; }
.split-body .btn { margin-top: .6rem; }

.media-badge {
  position: absolute;
  right: -14px;
  bottom: -18px;
  background: var(--deep);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.media-badge-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sand-bright);
  line-height: 1;
}
.media-badge-label {
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.8rem 0;
  padding: 1.2rem 0;
  border-block: 1px solid var(--line);
}
.stat-row div { text-align: center; }
.stat-row dt {
  font-size: .63rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.stat-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--deep);
}

/* Rooms */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.room-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.room-card-media { position: relative; overflow: hidden; }
.room-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.room-card:hover .room-card-media img { transform: scale(1.05); }
.room-card-price {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(253, 251, 247, .95);
  backdrop-filter: blur(6px);
  padding: .45rem .85rem;
  font-size: .78rem;
  color: var(--ink-soft);
}
.room-card-price strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--deep);
  margin-right: .15rem;
}
.room-card-body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.room-card-body h3 { font-size: 1.5rem; margin-bottom: .1rem; }
.room-card-sub {
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin: 0 0 .7rem;
}
.room-card-body p { font-size: .92rem; color: var(--ink-soft); }
.room-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  list-style: none;
  margin: .8rem 0 1rem;
  padding: .8rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
}
.room-specs li { display: inline-flex; align-items: center; gap: .32rem; }
.room-features {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}
.room-features li {
  font-size: .72rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-soft);
}
.room-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.room-avail-badge {
  font-size: .74rem;
  font-weight: 500;
  color: var(--ok);
}
.room-avail-badge.is-low { color: var(--warn); }
.room-avail-badge.is-out { color: var(--danger); }

.rates-note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: 1.6rem;
  font-size: .82rem;
  color: var(--muted);
  max-width: 60ch;
}
.rates-note svg { flex: none; margin-top: .18rem; }

/* Facilities */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.facility {
  background: var(--cream);
  padding: 1.7rem 1.5rem;
  transition: background .25s var(--ease);
}
.facility:hover { background: #fff; }
.facility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--sea);
  margin-bottom: .9rem;
}
.facility h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.facility p { font-size: .88rem; color: var(--ink-soft); margin: 0; }

/* Beach band */
.beach-band {
  position: relative;
  min-height: clamp(440px, 62vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.beach-band-media { position: absolute; inset: 0; z-index: -1; }
.beach-band-media img { width: 100%; height: 100%; object-fit: cover; }
.beach-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 28, 35, .9) 0%, rgba(7, 28, 35, .62) 48%, rgba(7, 28, 35, .12) 100%);
}
.beach-card { max-width: 33rem; }
.beach-card h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: .9rem;
}
.beach-card p { color: rgba(255, 255, 255, .9); font-weight: 300; }
.beach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.3rem !important;
}
.beach-meta span {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .38rem .8rem;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
}

/* ---------- 7. Gallery & lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  gap: .7rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--tint);
}
.gallery-item-wide { grid-column: span 2; grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 55, 68, .22);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 22, 28, .94);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 2.5rem 4.5rem;
  animation: fadeIn .22s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.lightbox-img {
  max-width: min(1120px, 100%);
  max-height: 100%;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; font-size: 1rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.7rem; line-height: 1; }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-count {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: .8rem;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .7);
}

/* ---------- 8. Booking form ---------- */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
}

.booking-form {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2.1rem);
}
.form-block { border: 0; padding: 0; margin: 0 0 1.7rem; }
.form-block:last-child { margin-bottom: 0; }
.form-legend {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: #fff;
}
.form-legend span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--sand-bright);
  color: var(--deep);
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 600;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin-bottom: .9rem;
}
.form-row:has(.field:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row .field-wide { grid-column: 1 / -1; }

.section-deep .field-label { color: rgba(255, 255, 255, .66); }
.section-deep .field input,
.section-deep .field select,
.section-deep .field textarea {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
}
.section-deep .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section-deep .field input::placeholder,
.section-deep .field textarea::placeholder { color: rgba(255, 255, 255, .38); }
.section-deep .field select option { color: var(--ink); background: #fff; }
.section-deep .field input:focus,
.section-deep .field select:focus,
.section-deep .field textarea:focus {
  border-color: var(--sand-bright);
  box-shadow: 0 0 0 3px rgba(232, 200, 138, .18);
  background: rgba(255, 255, 255, .1);
}
.section-deep input[type="date"]::-webkit-calendar-picker-indicator,
.section-deep input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.6);
  cursor: pointer;
}
.section-deep .form-error { background: rgba(179, 64, 47, .18); color: #ffd9d1; }

.form-consent { padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.checkbox {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .84rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 1.1rem;
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: .15rem 0 0;
  accent-color: var(--sand-bright);
  cursor: pointer;
}
.section-deep .form-fineprint { color: rgba(255, 255, 255, .58); }
.section-deep .form-fineprint a { color: var(--sand-bright); }

.booking-summary {
  position: sticky;
  top: 84px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--ink);
}
.summary-inner { padding: 1.4rem 1.4rem 1.5rem; }
.summary-empty { font-size: .9rem; color: var(--muted); margin: 0; }
.summary-head {
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .9rem;
}
.summary-head h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.summary-head p {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.summary-lines { list-style: none; margin: 0 0 .9rem; padding: 0; font-size: .88rem; }
.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  color: var(--ink-soft);
}
.summary-lines li span:last-child { white-space: nowrap; color: var(--ink); }
.summary-lines li.is-sub { font-size: .8rem; color: var(--muted); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: .9rem;
}
.summary-total-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.summary-total-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1;
}
.summary-deposit {
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--tint);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  margin-bottom: .9rem;
}
.summary-deposit strong { color: var(--deep); }
.summary-nights { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .78rem; color: var(--muted); max-height: 132px; overflow-y: auto; }
.summary-nights li { display: flex; justify-content: space-between; padding: .18rem 0; }
.summary-note { font-size: .74rem; color: var(--muted); margin: 0; }

.summary-confirm { text-align: center; }
.summary-confirm .tick {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #eaf3f0;
  color: var(--ok);
  display: grid;
  place-items: center;
}
.summary-confirm h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.summary-confirm .ref {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .84rem;
  letter-spacing: .16em;
  background: var(--tint);
  padding: .35rem .9rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--deep);
}
.summary-confirm p { font-size: .88rem; color: var(--ink-soft); }
.summary-confirm .btn { margin-top: .8rem; }

/* ---------- 9. Contact / location / policies / footer ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.3rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.contact-card h3 {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card address { font-style: normal; font-size: 1rem; line-height: 1.75; color: var(--ink); }
.contact-card-accent { background: var(--deep); color: rgba(255, 255, 255, .85); border-color: var(--deep); }
.contact-card-accent h3 { color: rgba(255, 255, 255, .6); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .94rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .6rem; }
.contact-list .ci { color: var(--sand-bright); flex: none; margin-top: .28rem; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.contact-list a:hover { border-color: var(--sand-bright); }
.contact-card-accent .btn { align-self: flex-start; --btn-bg: var(--sand-bright); --btn-fg: var(--deep); }
.contact-card-accent .btn:hover { --btn-bg: #fff; }

.policy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .88rem; color: var(--ink-soft); }
.policy-list strong { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.contact-card .link-arrow { align-self: flex-start; margin-top: auto; }

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  filter: saturate(.92);
}

.distance-list {
  list-style: none;
  margin: 1.3rem 0 1.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
}
.distance-list li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .58rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.distance-list span { flex: 1; color: var(--ink-soft); }
.distance-list strong { color: var(--deep); font-weight: 500; }
.distance-list em { font-style: normal; font-size: .76rem; color: var(--muted); min-width: 6.5rem; text-align: right; }

.accordion {
  border-top: 1px solid var(--line);
}
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep);
  list-style: none;
  transition: color .18s var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--sand-deep);
  transition: transform .25s var(--ease);
  flex: none;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--sea); }
.accordion-body { padding: 0 0 1.3rem; font-size: .93rem; color: var(--ink-soft); }
.accordion-body p { max-width: 68ch; }

.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th,
.table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.table th { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.table td:last-child { text-align: right; white-space: nowrap; }

.site-footer { background: var(--deep-2); color: rgba(255, 255, 255, .62); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.4rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .brand-name { color: #fff; font-size: 1.5rem; }
.footer-tag { margin: .5rem 0 .8rem; font-size: .82rem; letter-spacing: .04em; }
.footer-contact { font-size: .88rem; margin: 0; }
.footer-contact a { color: var(--sand-bright); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-nav { display: flex; gap: clamp(2rem, 5vw, 4rem); }
.footer-nav h3 {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .8rem;
}
.footer-nav a {
  display: block;
  font-size: .86rem;
  text-decoration: none;
  color: rgba(255, 255, 255, .78);
  padding: .18rem 0;
  transition: color .18s var(--ease);
}
.footer-nav a:hover { color: var(--sand-bright); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1.3rem;
  font-size: .76rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 1.2rem);
  z-index: 300;
  background: var(--deep);
  color: #fff;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-size: .86rem;
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: min(90vw, 460px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 10. Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .phone-link span { display: none; }
  .header-actions .btn-sm { display: none; }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 340px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: .3rem;
    padding: 5.5rem 1.8rem 2rem;
    background: var(--cream);
    color: var(--ink);
    box-shadow: -12px 0 48px rgba(14, 55, 68, .22);
    z-index: 95;
    overflow-y: auto;
  }
  .site-nav.is-open a {
    font-family: var(--font-display);
    font-size: 1.45rem;
    text-transform: none;
    letter-spacing: 0;
    padding: .5rem 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { position: relative; z-index: 96; }
  .site-header:has(.site-nav.is-open) { color: var(--ink); }

  .quickbar-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-search { grid-column: 1 / -1; }
  .avail-layout,
  .booking-layout { grid-template-columns: 1fr; }
  .cal { position: static; }
  .booking-summary { position: static; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 860px) {
  .split,
  .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .media-badge { right: 12px; bottom: -14px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .avail-card { grid-template-columns: 104px minmax(0, 1fr); }
  .avail-card-img { width: 104px; height: 84px; }
  .avail-card-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: .8rem;
    min-width: 0;
  }
  .avail-note { text-align: left; }
  .hero { min-height: auto; padding-top: 7rem; padding-bottom: 2rem; }
  .hero-inner { padding-top: 2rem; }
}

@media (max-width: 640px) {
  body { font-size: .97rem; }
  .shell { width: calc(100% - 2rem); }
  .hero-facts { gap: .4rem 1.1rem; font-size: .76rem; }
  .quickbar-fields { grid-template-columns: 1fr; }
  .quickbar { padding: 1rem; }
  .form-row,
  .form-row:has(.field:nth-child(2):last-child) { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; }
  .gallery-item-wide { grid-column: span 2; grid-row: span 2; }
  .lightbox { padding: 3.4rem .7rem; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: .4rem; }
  .lightbox-next { right: .4rem; }
  .footer-nav { gap: 1.6rem; }
  .footer-inner { flex-direction: column; }
  .distance-list em { min-width: 0; }
  .avail-price { font-size: 1.5rem; }
  /* Let the charge description wrap instead of forcing the table wide. */
  .table th,
  .table td { padding: .5rem .4rem; }
  .table td:last-child { white-space: normal; text-align: left; }
  .table th:last-child { text-align: left; }
}

@media (max-width: 430px) {
  .brand-mark svg { width: 34px; height: 34px; }
  .brand-name { font-size: 1.18rem; }
  .brand-sub { display: none; }
  .brand { gap: .5rem; }
  .header-actions { gap: .45rem; }
  .header-inner { gap: .6rem; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero-facts { font-size: .72rem; }
  .media-badge { padding: .7rem .95rem; }
  .media-badge-num { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero-media img { transform: none; }
}

@media print {
  .site-header, .quickbar, .booking-form, .avail-side, .lightbox, .toast { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Reservations viewer — /reservations.html (owner's page)
   ========================================================================== */
.admin-page { background: var(--cream); }

.admin-header {
  background: var(--deep);
  color: #fff;
  padding: 1rem 0;
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-header .brand-mark { color: var(--sand-bright); }
.admin-header .brand-name { color: #fff; }
.admin-header .brand-sub { color: rgba(255, 255, 255, .6); }
.admin-header .link-arrow {
  color: var(--sand-bright);
  border-color: rgba(232, 200, 138, .5);
}
.admin-header .link-arrow:hover { color: #fff; border-color: #fff; }

.admin-main { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }

.admin-gate {
  max-width: 34rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.admin-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: .6rem;
}
.admin-lead { color: var(--ink-soft); font-size: .95rem; }
.admin-gate-row {
  display: flex;
  gap: .7rem;
  align-items: flex-end;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.admin-gate-row .field { flex: 1 1 14rem; }
.admin-gate-row .btn { height: 46px; white-space: nowrap; }
.admin-hint { margin: 1rem 0 0; font-size: .78rem; color: var(--muted); }
.admin-gate code,
.admin-foot code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: .85em;
  background: var(--tint);
  padding: .1rem .35rem;
  border-radius: 3px;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.admin-stat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  min-width: 7.5rem;
}
.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--deep);
  line-height: 1.15;
}
.admin-stat-label {
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}
.admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.admin-status {
  margin: 0 0 1rem;
  font-size: .84rem;
  color: var(--muted);
}
.admin-status.is-ok { color: var(--ok); }
.admin-status.is-bad { color: var(--danger); }

.admin-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  white-space: nowrap;
}
.admin-table th,
.admin-table td {
  padding: .7rem .8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table thead th {
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--tint);
  position: sticky;
  top: 0;
}
.admin-table tbody tr:hover { background: #fbf8f2; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table strong { color: var(--deep); font-weight: 500; }
.admin-table a { color: var(--sea); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }
.admin-table .admin-notes {
  white-space: normal;
  min-width: 12rem;
  max-width: 20rem;
  color: var(--ink-soft);
  font-size: .8rem;
}

.admin-foot {
  margin: 1rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  max-width: 60ch;
}

@media (max-width: 640px) {
  .admin-gate-row { flex-direction: column; align-items: stretch; }
  .admin-gate-row .btn { width: 100%; }
  .admin-header .link-arrow { font-size: .7rem; }
}
/* ==========================================================================
   Booking manager — admin.html
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: flex-end;
}
.admin-filters .field-inline { min-width: 10rem; }
.admin-filters .field-inline input,
.admin-filters .field-inline select { padding: .5rem .7rem; font-size: .86rem; }
.checkbox-inline {
  margin: 0 0 .55rem;
  font-size: .82rem;
  color: var(--ink-soft);
  gap: .45rem;
  align-items: center;
  color: var(--ink-soft);
}
.checkbox-inline input { accent-color: var(--sea); }

.admin-section-title {
  font-size: 1.15rem;
  margin: 0 0 .7rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.admin-count { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); font-weight: 400; }

.admin-occupancy { margin: 0 0 2rem; }
.admin-list { margin-bottom: 2rem; }

.admin-stat.is-warn { border-left: 3px solid var(--warn); }
.admin-stat.is-ok { border-left: 3px solid var(--ok); }

/* Occupancy strip */
.occupancy-table { font-size: .78rem; }
.occupancy-table th[scope="row"] {
  position: sticky;
  left: 0;
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: .8rem;
  font-weight: 500;
  color: var(--deep);
  white-space: nowrap;
  z-index: 1;
}
.occ-day { text-align: center !important; padding: .5rem .3rem !important; }
.occ-day span { display: block; }
.occ-dow { font-size: .58rem; opacity: .65; }
.occ-cell {
  text-align: center;
  padding: .45rem .3rem !important;
  font-variant-numeric: tabular-nums;
  min-width: 1.9rem;
}
.occ-free   { background: #f2f8f5; color: #4a6d5c; }
.occ-some   { background: #e7f2ec; color: #2c7a5b; }
.occ-high   { background: #fdf0d8; color: #7b5714; font-weight: 500; }
.occ-full   { background: #f7ded6; color: #9c3524; font-weight: 600; }
.occ-closed { background: #f3f0e9; color: #b9b3a5; }

/* Status pills and selects */
.status-pill,
.status-select {
  display: inline-block;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-request   { background: #fdf4e5; color: #7b5714; border-color: #efdcb4; }
.status-confirmed { background: #eaf3f0; color: #235c46; border-color: #c9e2d7; }
.status-blocked   { background: #eceaf3; color: #494175; border-color: #d5d1e6; }
.status-cancelled { background: #f2f0ec; color: #7b7570; border-color: #ded9d0; text-decoration: line-through; }

.status-select {
  appearance: none;
  cursor: pointer;
  padding-right: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7f84' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .5rem center;
}
.status-select:focus-visible { outline: 2px solid var(--sea-soft); outline-offset: 2px; }

.admin-table .cell-sub {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: .15rem;
}
.admin-table .cell-source { font-size: .8rem; }
.admin-table .cell-total { font-variant-numeric: tabular-nums; }
.admin-table .cell-actions { display: flex; gap: .3rem; }
.admin-table tr.row-cancelled td { opacity: .58; }

.btn-xs {
  padding: .32rem .6rem;
  font-size: .66rem;
  letter-spacing: .06em;
  border-radius: 999px;
}
.btn-danger { color: var(--danger); border-color: currentColor; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* Editor dialog */
.admin-dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(94vw, 44rem);
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.admin-dialog::backdrop { background: rgba(8, 30, 38, .55); backdrop-filter: blur(3px); }
.admin-dialog-form { display: flex; flex-direction: column; max-height: 90vh; }
.admin-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.admin-dialog-head h2 { font-size: 1.25rem; margin: 0; }
.admin-dialog-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--tint);
  border: 0; border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: .9rem;
}
.admin-dialog-close:hover { background: var(--line); }
.admin-dialog-body { padding: 1.2rem 1.3rem; overflow-y: auto; }
.admin-dialog-body .form-row { margin-bottom: .8rem; }
.admin-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  padding: .9rem 1.3rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

@media (max-width: 720px) {
  .admin-bar { flex-direction: column; align-items: stretch; }
  .admin-actions { justify-content: flex-start; }
  .admin-filters { flex-direction: column; align-items: stretch; }
  .admin-filters .field-inline { min-width: 0; }
}