/* THE ADDRESS — light brown theme: latte & sand surfaces, caramel accents, cocoa text, a touch of lagoon. */
:root {
  --bg: #F3EADF;
  --bg-2: #EADCCB;
  --surface: #FCF8F3;
  --surface-2: #F7F0E6;
  --ink: #2B1F16;
  --ink-2: #4A3828;
  --muted: #7C6754;
  --line: #E3D4C2;
  --line-2: #D5C1AA;

  --brown: #A6774F;        /* light brown — primary */
  --brown-deep: #7B5436;
  --brown-pale: #EFDFCB;
  --cocoa: #3F2C1F;        /* footer / dark blocks */
  --cream: #F7EAD6;
  --sun: #E3AE6A;
  --lagoon: #2F7F7B;
  --lagoon-pale: #DCEBE6;

  --ok: #3F7A4E;    --ok-bg: #E2EFDF;
  --warn: #9A6A1F;  --warn-bg: #F6E8CC;
  --bad: #A8432F;   --bad-bg: #F5DDD5;
  --info: #3D6E85;  --info-bg: #DDEAF0;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(63, 44, 31, .06);
  --shadow: 0 1px 2px rgba(63, 44, 31, .06), 0 12px 32px rgba(63, 44, 31, .10);
  --shadow-lg: 0 24px 60px rgba(63, 44, 31, .18);
  --header-h: 72px;
  --on-accent: #fff;       /* text on brown / status fills */
  --faint: #BCAA97;        /* unavailable calendar days */
  color-scheme: light;
}

/* Dark mode: deep cocoa surfaces, warm caramel accents. Follows the system unless the visitor picks a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110D; --bg-2: #241B15; --surface: #1F1813; --surface-2: #281F18;
    --ink: #F3E8DA; --ink-2: #DCCBB6; --muted: #A8927C; --line: #3A2D23; --line-2: #4D3C2F;
    --brown: #C9996D; --brown-deep: #E2B78C; --brown-pale: #3A2A1E; --cocoa: #0F0B08; --cream: #F7EAD6;
    --sun: #E3AE6A; --lagoon: #6FB8B1; --lagoon-pale: #1E3532;
    --ok: #8FCB9E; --ok-bg: #1E3325; --warn: #E6BA6E; --warn-bg: #3A2C16;
    --bad: #F0947E; --bad-bg: #3E211B; --info: #93C3D9; --info-bg: #1B2E38;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
    --on-accent: #17110D; --faint: #6B5A4C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110D; --bg-2: #241B15; --surface: #1F1813; --surface-2: #281F18;
  --ink: #F3E8DA; --ink-2: #DCCBB6; --muted: #A8927C; --line: #3A2D23; --line-2: #4D3C2F;
  --brown: #C9996D; --brown-deep: #E2B78C; --brown-pale: #3A2A1E; --cocoa: #0F0B08; --cream: #F7EAD6;
  --sun: #E3AE6A; --lagoon: #6FB8B1; --lagoon-pale: #1E3532;
  --ok: #8FCB9E; --ok-bg: #1E3325; --warn: #E6BA6E; --warn-bg: #3A2C16;
  --bad: #F0947E; --bad-bg: #3E211B; --info: #93C3D9; --info-bg: #1B2E38;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --on-accent: #17110D; --faint: #6B5A4C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brown-deep); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.stack { display: grid; gap: 16px; align-content: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
  line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--brown); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brown); border-color: var(--brown); color: var(--on-accent); }
.btn.primary:hover { background: var(--brown-deep); border-color: var(--brown-deep); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--brown-pale); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 14px 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

label.field, .field { display: grid; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; min-width: 0; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px var(--brown-pale); }
textarea { min-height: 96px; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brown); }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.error { color: var(--bad); font-weight: 600; font-size: 14px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand .wm { display: grid; line-height: 1; }
.brand .wm b { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: .2em; }
.brand .wm small { font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.nav a:hover { background: var(--brown-pale); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brown); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.badge-dot { position: relative; }
.badge-dot[data-count]:not([data-count="0"])::after {
  content: attr(data-count); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--bad); color: var(--on-accent); font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: grid; z-index: 50;
}
.dropdown-menu a, .dropdown-menu button {
  text-align: left; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: 14px;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,31,22,.38) 0%, rgba(43,31,22,.28) 40%, rgba(43,31,22,.66) 100%); }
.hero-bg svg { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; padding-block: 60px 40px; display: grid; gap: 22px; color: #fff; }
.hero-content .eyebrow { color: var(--cream); }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); max-width: 13ch; font-weight: 500; text-shadow: 0 2px 24px rgba(43,31,22,.25); }
.hero p.lede { max-width: 56ch; font-size: clamp(16px, 1.6vw, 18.5px); color: #FBF3E8; text-shadow: 0 1px 12px rgba(43,31,22,.35); }

/* ---------- booking bar ---------- */
.bookbar {
  background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; align-items: stretch; padding: 8px; gap: 4px; max-width: 1000px;
}
.bookbar .bb { padding: 10px 16px; border-radius: var(--r); display: grid; gap: 2px; min-width: 0; cursor: pointer; border: 0; background: none; text-align: left; }
.bookbar .bb:hover { background: var(--surface-2); }
.bookbar .bb span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bookbar .bb b, .bookbar .bb select, .bookbar .bb input { font-weight: 600; font-size: 15px; border: 0; padding: 0; background: transparent; box-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bookbar .btn { border-radius: var(--r); padding-inline: 26px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.alt { background: var(--surface-2); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.section-head p { color: var(--muted); font-size: 17px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.wide { aspect-ratio: 16 / 10; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph svg { width: 100%; height: 100%; }

.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.highlights li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.highlights li svg { width: 18px; height: 18px; color: var(--brown); flex: none; }

/* stay cards */
.stays { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.stay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.stay:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stay .media { aspect-ratio: 4 / 3; border-radius: 0; }
.stay .tag { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; z-index: 1; }
.stay .body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; }
.stay h3 { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.price-line b { font-size: 21px; font-weight: 700; }

/* amenities */
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.amenity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; gap: 14px; align-items: center; font-weight: 600; }
.amenity .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brown-pale); color: var(--brown-deep); display: grid; place-items: center; flex: none; }
.amenity .ic svg { width: 20px; height: 20px; }

/* island */
.island { background: var(--cocoa); color: var(--cream); }
.island .section-head p { color: #D9C6AE; }
.island .eyebrow { color: var(--sun); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.fact { border-top: 1px solid rgba(247,234,214,.25); padding-top: 14px; display: grid; gap: 4px; }
.fact b { font-family: var(--f-display); font-size: 34px; font-weight: 500; color: #fff; }
.fact span { font-size: 13px; color: #D9C6AE; letter-spacing: .04em; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 12px; }
.gallery button { border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--bg-2); position: relative; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(30,21,15,.92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 88vh; max-width: 92vw; border-radius: var(--r); object-fit: contain; }
.lightbox .btn { position: absolute; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 6px; text-decoration: none; }
.contact-card:hover { border-color: var(--brown); }
.contact-card b { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { background: var(--cocoa); color: var(--cream); padding-block: 56px 28px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(247,234,214,.16); }
.site-footer .brand { color: var(--cream); }
.site-footer .brand .wm small { color: #CDB79C; }
.site-footer h4 { font-family: var(--f-body); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.site-footer p, .site-footer a { color: #E2D0B8; font-size: 14.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(247,234,214,.28); display: grid; place-items: center; color: var(--cream); transition: background .2s, border-color .2s, color .2s; }
.socials a:hover { background: var(--cream); color: var(--cocoa); border-color: var(--cream); }
.socials svg { width: 18px; height: 18px; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: #BFA98E; }

/* ---------- booking page ---------- */
.page { padding-block: 36px 80px; }
.page-head { display: grid; gap: 8px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); }
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel h2 { font-size: 26px; margin-bottom: 14px; }
.unit-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.unit-opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 14px 16px; cursor: pointer; text-align: left; display: grid; gap: 4px; }
.unit-opt:hover { border-color: var(--line-2); }
.unit-opt.on { border-color: var(--brown); background: var(--brown-pale); box-shadow: 0 0 0 1px var(--brown) inset; }
.unit-opt b { font-size: 16px; }
.unit-opt span { font-size: 13px; color: var(--muted); }
.summary { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.summary .thumb { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; position: relative; background: var(--bg-2); }
.summary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.breakdown { display: grid; gap: 8px; font-size: 14.5px; }
.breakdown .ln { display: flex; justify-content: space-between; gap: 12px; }
.breakdown .ln.total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-weight: 800; font-size: 17px; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 18px; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper b { min-width: 24px; text-align: center; font-size: 17px; }

/* calendar */
.cal { display: grid; gap: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.cal-month h4 { font-family: var(--f-body); font-size: 15px; font-weight: 700; text-align: center; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 6px; }
.cal-day { aspect-ratio: 1; border: 0; background: none; border-radius: 50%; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; padding: 0; }
.cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day:disabled { cursor: default; color: var(--faint); }
.cal-day.taken { text-decoration: line-through; color: var(--faint); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--line-2); }
.cal-day.in { background: var(--brown-pale); border-radius: 0; }
.cal-day.start, .cal-day.end { background: var(--brown); color: var(--on-accent); }
.cal-day.blank { visibility: hidden; }
.cal-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth { max-width: 440px; margin: 40px auto; }
.auth .panel { display: grid; gap: 18px; padding: 32px; box-shadow: var(--shadow); }
.auth h1 { font-size: 38px; }
.code-input { font-size: 28px; letter-spacing: .5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.devcode { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; }

/* ---------- account ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs .on { color: var(--ink); border-bottom-color: var(--brown); }
.trip { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; }
.trip .media { aspect-ratio: 4 / 3; border-radius: var(--r); }
.list { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; white-space: nowrap; background: var(--bg-2); color: var(--ink-2); }
.st-pending, .st-sent, .st-partially_paid, .st-draft { background: var(--warn-bg); color: var(--warn); }
.st-confirmed, .st-issued, .st-accepted { background: var(--info-bg); color: var(--info); }
.st-checked_in, .st-paid { background: var(--ok-bg); color: var(--ok); }
.st-checked_out { background: var(--bg-2); color: var(--muted); }
.st-cancelled, .st-declined, .st-void, .st-expired { background: var(--bad-bg); color: var(--bad); }

/* chat */
.chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: min(68vh, 640px); }
.chat-log { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.bubble.them { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--brown); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 46px; height: 46px; }

/* ---------- modal & toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(43,31,22,.45); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s; }
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 26px; flex: 1; }
.modal-body { padding: 22px; overflow-y: auto; display: grid; gap: 16px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 100; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); animation: pop .2s; }
.toast.err { background: var(--bad); color: var(--on-accent); }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.side a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.side a svg { width: 18px; height: 18px; color: var(--muted); }
.side a:hover { background: var(--surface-2); }
.side a.on { background: var(--brown-pale); color: var(--brown-deep); }
.side a.on svg { color: var(--brown-deep); }
.side a .count { margin-left: auto; background: var(--bad); color: var(--on-accent); font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
.side .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.admin-main { padding: 28px clamp(16px, 3vw, 36px) 80px; min-width: 0; display: grid; gap: 22px; align-content: start; }
.admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { font-size: 38px; margin-right: auto; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.stat b { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table-wrap table { min-width: 640px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
.r { text-align: right; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

/* timeline */
.tl { display: grid; font-size: 12.5px; min-width: 900px; }
.tl > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 52px; position: relative; }
.tl .rh { position: sticky; left: 0; z-index: 3; background: var(--surface); padding: 10px 12px; display: grid; align-content: center; }
.tl .rh b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .dh { text-align: center; padding: 8px 0; min-height: 0; background: var(--surface-2); font-weight: 700; display: grid; align-content: center; }
.tl .dh small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tl .dh.we { background: var(--bg-2); }
.tl .dh.td { color: var(--brown-deep); box-shadow: inset 0 -2px 0 var(--brown); }
.tl .cell { cursor: pointer; background: var(--surface); }
.tl .cell:hover { background: var(--brown-pale); }
.section { scroll-margin-top: var(--header-h); }
.msg-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tl .bar { position: relative; margin: 8px 2px; z-index: 2; border-radius: 8px; padding: 0 8px; display: flex; align-items: center; font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; cursor: pointer; border: 0; text-align: left; }
.bar.b-pending { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1.5px currentColor; }
.bar.b-confirmed { background: var(--brown); color: var(--on-accent); }
.bar.b-checked_in { background: var(--ok); color: var(--on-accent); }
.bar.b-checked_out { background: var(--line-2); color: var(--ink-2); }
.bar.b-block { background: repeating-linear-gradient(135deg, var(--bg-2) 0 6px, var(--line) 6px 12px); color: var(--ink-2); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photo-tile { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .acts { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; gap: 4px; }
.photo-tile .acts button { border: 0; background: rgba(43,31,22,.78); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; cursor: pointer; }
.photo-tile .cover { position: absolute; top: 4px; left: 4px; background: var(--brown); color: var(--on-accent); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.upload-tile { aspect-ratio: 4 / 3; border: 2px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; padding: 8px; }
.upload-tile:hover { border-color: var(--brown); color: var(--brown-deep); }
.upload-tile input { display: none; }
.upload-tile svg { width: 26px; height: 26px; display: block; margin: 0 auto 6px; }

.items-table td { padding: 6px; }
.items-table input { padding: 8px; }

/* ---------- documents (print) ---------- */
.doc {
  /* Documents are always "paper": keep light colours in dark mode so they read and print the same. */
  --ink: #2B1F16; --ink-2: #4A3828; --muted: #7C6754; --line: #E3D4C2; --line-2: #D5C1AA; --surface: #FCF8F3; --surface-2: #F7F0E6;
  --brown: #A6774F; --brown-deep: #7B5436; --ok: #3F7A4E; --ok-bg: #E2EFDF; --warn: #9A6A1F; --warn-bg: #F6E8CC;
  --bad: #A8432F; --bad-bg: #F5DDD5; --info: #3D6E85; --info-bg: #DDEAF0; --bg-2: #EADCCB;
  background: #fff; color: #2B1F16; border-radius: var(--r); border: 1px solid var(--line); padding: clamp(20px, 4vw, 48px); font-size: 14px; max-width: 860px; margin: 0 auto; }
.doc-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--brown); }
.doc-top .brand svg { width: 56px; height: 56px; }
.doc-title { text-align: right; }
.doc-title h2 { font-size: 40px; letter-spacing: .08em; text-transform: uppercase; color: var(--brown-deep); }
.doc-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 24px; }
.doc-meta .label { margin-bottom: 4px; }
.doc table th { background: #F7F0E6; }
.doc .tot { margin-left: auto; width: min(340px, 100%); display: grid; gap: 6px; padding-top: 18px; }
.doc .tot .ln { display: flex; justify-content: space-between; gap: 12px; }
.doc .tot .grand { border-top: 2px solid var(--ink); padding-top: 10px; font-weight: 800; font-size: 17px; }
.doc .paid-stamp { --stamp: #C62828; display: inline-block; border: 3px solid var(--stamp); color: var(--stamp); font-size: 20px; font-weight: 800; letter-spacing: .2em; padding: 6px 18px; border-radius: 7px; transform: rotate(-4deg); margin-top: 10px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
:root[data-theme="dark"] .doc .paid-stamp { --stamp: #EF5350; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .doc .paid-stamp { --stamp: #EF5350; } }
.doc-foot { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .side, .toast, .overlay > .modal > .modal-head, .modal-foot { display: none !important; }
  .page, .admin-main { padding: 0 !important; }
  .admin { display: block; }
  .doc { border: 0; padding: 0; max-width: none; }
  .overlay { position: static; background: none; padding: 0; display: block; }
  .modal { box-shadow: none; max-height: none; width: auto; }
  .modal-body { padding: 0; overflow: visible; }
  body.printing-modal #app { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { display: grid; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.open a { padding: 12px; }
  .head-actions { margin-left: auto; }
  .bookbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookbar .bb:first-child { grid-column: 1 / -1; }
  .bookbar .btn { grid-column: 1 / -1; padding-block: 14px; }
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .admin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { position: sticky; top: var(--header-h); height: auto; flex-direction: row; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); z-index: 20; scrollbar-width: none; }
  .side a { white-space: nowrap; padding: 8px 12px; }
  .side .sep, .side .side-label { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .split, .two-col, .msg-layout { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .cal-months { grid-template-columns: minmax(0, 1fr); }
  .cal-month + .cal-month { display: none; }
  .trip { grid-template-columns: 96px minmax(0, 1fr); }
  .trip > :last-child { grid-column: 1 / -1; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .doc-meta { grid-template-columns: minmax(0, 1fr); }
  .doc-title { text-align: left; }
  .media { aspect-ratio: 4 / 3; }
  .bubble { max-width: 88%; }
  .table-wrap td, .table-wrap th { white-space: nowrap; }
}
@media (max-width: 480px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .brand .wm b { font-size: 18px; letter-spacing: .14em; }
  .brand svg { width: 38px; height: 38px; }
  .head-actions .seg { display: none; }
  .in-admin .brand .wm, .in-admin .site-header .chip { display: none; }
  .site-footer .top { grid-template-columns: minmax(0, 1fr); }
  .modal-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive refinements ---------- */
.nav-extra { display: none; }
.only-mobile { display: none; }
.facts { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.brand { min-width: 0; }
.brand .wm { min-width: 0; }
.brand .wm b, .brand .wm small { white-space: nowrap; }

/* Tablet: stack the two-column sections; whole-villa card spans the row above the two rooms. */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .media { aspect-ratio: 16 / 10; }
}
@media (min-width: 640px) and (max-width: 1020px) {
  .stays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stays .stay:first-child { grid-column: 1 / -1; }
  .stays .stay:first-child .media { aspect-ratio: 21 / 9; }
}
@media (max-width: 1020px) {
  .nav.open .nav-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 6px; padding: 12px 12px 0; }
  .nav-theme { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px 0; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
  .nav-theme svg { width: 18px; height: 18px; }
  /* Scrollable admin menu: fade the edge so it's clear there's more. */
  .side { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
}

/* Phones */
@media (max-width: 760px) {
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .amenity { padding: 12px; gap: 10px; font-size: 13.5px; line-height: 1.35; }
  .amenity .ic { width: 34px; height: 34px; border-radius: 10px; }
  .amenity .ic svg { width: 17px; height: 17px; }
  .section-head { margin-bottom: 24px; }
  .hero { min-height: auto; }
  .hero-content { padding-block: 48px 28px; }
  .admin-head h1 { flex-basis: 100%; font-size: 32px; }
  .admin-head .btn { padding: 8px 12px; font-size: 13px; }
  .msg-layout.has-thread > :first-child { display: none; }
  .msg-layout:not(.has-thread) > #thread { display: none; }
  .only-mobile { display: inline-flex; }
  .modal-head h3 { font-size: 22px; }
  .modal-foot .btn { flex: 1 1 auto; }
  .panel { padding: 18px; }
  .page { padding-block: 24px 56px; }
}
@media (max-width: 480px) {
  .brand .wm small { display: none; }
  body:not(.in-admin) #theme-btn { display: none; }
  .stat b { font-size: clamp(18px, 5.6vw, 24px); white-space: nowrap; }
  .stat { padding: 12px 14px; }
  .stats { gap: 10px; }
  .auth .panel { padding: 22px; }
  .auth h1 { font-size: 32px; }
  .fact b { font-size: 28px; }
}
@media (max-width: 360px) {
  .brand .wm b { font-size: 15px; letter-spacing: .1em; }
  .brand svg { width: 34px; height: 34px; }
  .site-header .wrap { gap: 10px; }
  .head-actions { gap: 4px; }
  .head-actions .btn.sm { padding: 6px 10px; }
  .amenities { grid-template-columns: minmax(0, 1fr); }
  .bookbar { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- photo slider ---------- */
.slider { position: relative; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.slides img.on { opacity: 1; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(252, 248, 243, .88); color: #2B1F16; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .2s; box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.slide-nav svg { width: 18px; height: 18px; }
.slide-nav.prev { left: 12px; }
.slide-nav.next { right: 12px; }
.slider:hover .slide-nav, .slide-nav:focus-visible { opacity: 1; }
@media (hover: none) { .slide-nav { opacity: .85; width: 34px; height: 34px; } }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s, background .3s; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.slide-dots button.on { width: 22px; background: #fff; }

/* Icons inside headings and eyebrows size with the text. */
h1 svg, h2 svg, h3 svg, .eyebrow svg { width: .9em; height: .9em; vertical-align: -.1em; margin-right: .2em; }

/* ---------- announcement badge (home hero) ---------- */
.announce {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  background: var(--sun); color: #2B1F16; padding: 9px 18px 9px 14px; border-radius: 999px;
  font-weight: 800; font-size: clamp(13px, 1.4vw, 15px); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(43, 31, 22, .28);
}
.announce i { width: 9px; height: 9px; border-radius: 50%; background: #2B1F16; animation: announce-pulse 1.8s ease-out infinite; }
@keyframes announce-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 31, 22, .55); }
  70% { box-shadow: 0 0 0 9px rgba(43, 31, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 31, 22, 0); }
}

/* Larger segmented choice (booking page: tourist / local) */
.seg.seg-lg { display: flex; width: fit-content; max-width: 100%; }
.seg.seg-lg button { padding: 10px 18px; font-size: 14px; }
@media (max-width: 480px) { .seg.seg-lg { width: 100%; } .seg.seg-lg button { flex: 1; padding: 10px 8px; } }

/* ---------- app-like phone experience ---------- */
html { -webkit-tap-highlight-color: transparent; }
button, a, input, select, label, summary { touch-action: manipulation; }
/* iPhone notch / home bar */
.site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
.nav.open { top: 100%; }
.mobile-cta { display: none; }
.hide-mobile { }
@keyframes slide-up { from { transform: translateY(100%); } }
@keyframes sheet { from { transform: translateY(48px); opacity: 0; } }

@media (max-width: 760px) {
  /* 16px+ text in fields stops iOS from zooming in when a field is tapped */
  input, select, textarea { font-size: 16px; }
  .bookbar .bb b, .bookbar .bb select, .bookbar .bb input { font-size: 16px; }
  /* Bigger tap targets */
  .btn.sm { min-height: 38px; padding: 8px 14px; }
  .seg button { padding: 8px 14px; }
  .cal-day { font-size: 15px; }
  .site-footer ul { gap: 12px; }

  /* Sticky bottom action bar */
  .mobile-cta:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
    animation: slide-up .25s ease-out;
  }
  .mobile-cta b { font-size: 18px; }
  .mobile-cta .btn { padding: 13px 22px; flex: none; }
  body.has-cta .site-footer { padding-bottom: calc(28px + 84px + env(safe-area-inset-bottom)); }
  body.has-cta .page { padding-bottom: 120px; }
  body.has-cta .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

  /* Pop-ups become bottom sheets */
  .overlay { align-items: end; padding: 0; }
  .modal, .modal.wide { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; animation: sheet .25s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .modal::before { content: ""; flex: none; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }

  /* Tables become cards */
  .hide-mobile { display: none !important; }
  .table-wrap table.cards { min-width: 0; }
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr { display: block; width: 100%; }
  table.cards tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border: 0; padding: 3px 0; white-space: normal !important; text-align: right; }
  table.cards td[data-label]::before { content: attr(data-label); flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; text-align: left; }
  table.cards td.card-head { align-items: center; text-align: left; padding-bottom: 8px; font-size: 15.5px; }
  table.cards td.card-actions { justify-content: flex-start; gap: 6px; padding-top: 10px; }
  tr.click:hover td { background: none; }
}
@media (max-width: 760px) {
  #bs, #gs { margin-left: 0 !important; width: 100%; flex-wrap: nowrap; }
  #bs input, #gs input { flex: 1; width: auto !important; max-width: none !important; }
}

/* Footer: plain text lines match the links */
.site-footer li { color: #E2D0B8; font-size: 14.5px; }
/* Admin: footer link rows */
.flink { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.flink input[data-k="url"] { grid-column: 1 / 3; }
.flink-acts { display: flex; gap: 2px; grid-row: 1; grid-column: 3; }
.flink-acts .btn { width: 34px; height: 34px; }
@media (max-width: 480px) { .flink { grid-template-columns: minmax(0, 1fr) auto; } .flink select { grid-column: 1; } .flink-acts { grid-row: 1 / span 2; grid-column: 2; flex-direction: column; } .flink input[data-k="url"] { grid-column: 1; } }
@media (max-width: 480px) { .flink { padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); } .flink:last-child { border-bottom: 0; } }

/* ID and passport numbers are stored in capitals — show them that way while typing */
#bk-id, #bd-id, input[name="passportNo"], input[name="nationalId"], input[name="idNumber"] { text-transform: uppercase; }
#bk-id::placeholder, input[name="nationalId"]::placeholder { text-transform: none; }

/* ---------- dashboard ---------- */
/* Chart series colours (validated with the dataviz checks against this site's surfaces). */
:root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; } }
:root[data-theme="dark"] { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; }

.dash-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.dash-filters .seg { flex-wrap: wrap; }
.dash-updated { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.dash-updated svg { width: 14px; height: 14px; }
.dash-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.hero-fig { font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; }
.tax-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tax-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; background: var(--surface); }
.tax-val { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin: 6px 0 4px; }
.legend-row span { display: inline-flex; align-items: center; gap: 7px; }
.tax-chart { position: relative; }
.tax-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tax-chart .grid { stroke: var(--line); stroke-width: 1; }
.tax-chart .base { stroke: var(--line-2); stroke-width: 1; }
.tax-chart .tick { fill: var(--muted); font-size: 11.5px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.tax-chart .hit { fill: transparent; cursor: crosshair; }
.tax-chart .hit:hover { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 210px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; font-size: 13px; display: grid; gap: 4px; }
.tip-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; }
.tip-total { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 2px; font-weight: 700; }
.month-table td, .month-table th { white-space: nowrap; }
.month-table .total-row td { background: var(--surface-2); }
.dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-stats .stat b { font-size: clamp(22px, 2.2vw, 30px); white-space: nowrap; }
@media (max-width: 760px) { .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-stats .stat b { font-size: 20px; } }

/* Bookings: owner's bulk-delete bar and row tickboxes */
.bulk-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; gap: 12px; }
.row-sel { width: 18px; height: 18px; margin-right: 10px; vertical-align: -3px; accent-color: var(--bad); cursor: pointer; }

/* ---------- island map (style inspired by the Fuvahmulah City Council map) ---------- */
.island-map { position: relative; height: clamp(420px, 62vh, 620px); border-radius: var(--r-lg); overflow: hidden; background: #0d2b33; box-shadow: var(--shadow); isolation: isolate; }
.island-map .map-canvas { position: absolute; inset: 0; background: #0d2b33; }
.island-map .leaflet-container { font-family: var(--f-body); background: #0d2b33; }
.island-map.map-street .leaflet-container { background: #aad3df; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #cfe3e6; font-weight: 600; z-index: 500; pointer-events: none; }
.map-card { position: absolute; top: 16px; left: 16px; z-index: 600; display: flex; align-items: center; gap: 12px; background: rgba(20,14,10,.82); color: #fff; padding: 10px 16px 10px 10px; border-radius: 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.map-card svg { width: 38px; height: 38px; }
.map-card b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: .14em; font-weight: 600; line-height: 1.1; }
.map-card span { font-size: 12px; color: #d9c6ae; }
.map-controls { position: absolute; left: 16px; top: 92px; z-index: 600; display: grid; gap: 8px; }
.map-controls button, .map-layer-switch { box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.map-controls button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: #fff; color: #2B1F16; display: grid; place-items: center; cursor: pointer; }
.map-controls button:hover { background: #F7F0E6; }
.map-controls svg { width: 18px; height: 18px; }
.map-layer-switch { position: absolute; top: 16px; right: 16px; z-index: 600; display: flex; background: #fff; border-radius: 999px; padding: 4px; gap: 2px; }
.map-layer-switch button { border: 0; background: transparent; color: #4A3828; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.map-layer-switch button.on { background: #2B1F16; color: #fff; }
.map-pin-wrap { background: none; border: 0; }
.map-pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.35); transition: transform .15s; }
.map-pin svg { width: 17px; height: 17px; }
.map-pin:hover { transform: scale(1.12); }
.map-pin.villa-pin { width: 52px; height: 52px; border-width: 3px; background: #fff; padding: 2px; animation: villa-bob 2.4s ease-in-out infinite; }
.map-pin.villa-pin svg { width: 100%; height: 100%; }
@keyframes villa-bob { 50% { transform: translateY(-3px); } }
.leaflet-tooltip.map-label { display: none; background: rgba(20,14,10,.78); color: #fff; border: 0; border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: 12px; box-shadow: none; }
.leaflet-tooltip.map-label::before { display: none; }
.map-labels-on .leaflet-tooltip.map-label, .leaflet-tooltip.villa-label { display: block; }
.leaflet-tooltip.villa-label { background: #7B5436; }
.island-map .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); }
.map-places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map-place { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.map-place:hover { border-color: var(--brown); }
.map-place.villa { border-color: var(--brown); background: var(--brown-pale); }
.map-place .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface); }
.loc-map { height: 340px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #0d2b33; }
@media (max-width: 760px) {
  .island-map { height: 440px; }
  .map-card { top: 12px; left: 12px; padding: 8px 12px 8px 8px; }
  .map-card svg { width: 30px; height: 30px; }
  .map-card b { font-size: 15px; }
  .map-controls { top: auto; bottom: 36px; left: 12px; }
  .map-layer-switch { top: auto; bottom: 36px; right: 12px; }
  .island-map .leaflet-control-attribution { font-size: 9px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- team & roles ---------- */
.side-role { margin-top: auto; padding: 14px 14px 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.role-card { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.role-top { display: flex; flex-direction: column; gap: 2px; }
.role-name { font-family: var(--f-display); font-size: 22px; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 2px 6px; margin-left: -7px; border-radius: 8px; color: var(--ink); width: 100%; }
.role-name:hover { border-color: var(--line); }
.role-name:focus { border-color: var(--brown); background: var(--surface-2); outline: none; }
.role-perms { display: grid; gap: 10px; }
.role-perms .check { align-items: flex-start; font-weight: 600; font-size: 14px; }
.role-perms .check input { margin-top: 3px; flex: none; }
.role-perms small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.role-card [data-del-role] { align-self: flex-start; }
@media (max-width: 1020px) { .side-role { display: none; } }

/* ---------- phone with country code · nationality per guest ---------- */
.phone-in { display: flex; gap: 8px; }
.phone-in input { flex: 1; }
.dial { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; min-width: 104px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; white-space: nowrap; }
.dial svg { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
.dial select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dial:focus-within { border-color: var(--brown); box-shadow: 0 0 0 3px var(--brown-pale); }
.nat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.nat-row { display: flex; flex-direction: column; gap: 4px; }
.nat-row > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.guest-list { display: grid; gap: 10px; }
.guest-row { display: grid; grid-template-columns: 30px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.guest-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brown-pale); color: var(--brown-deep); font-weight: 700; font-size: 13px; }
.guest-row input[readonly] { background: var(--surface-2); color: var(--ink-2); cursor: default; }
.guest-row input[readonly]:focus { border-color: var(--line-2); box-shadow: none; }
@media (max-width: 640px) {
  .guest-row { grid-template-columns: 30px minmax(0, 1fr); row-gap: 6px; }
  .guest-row > :not(.guest-no) { grid-column: 2; }
}
.guest-ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.reg-warn { border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); color: var(--ink); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 4px; }
.reg-warn b svg { width: 15px; height: 15px; vertical-align: -2px; color: var(--bad); }
.status.reg-chip { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); margin-top: 4px; display: inline-block; }
.req-chip { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 700; color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 1px; }

/* ---------- guest reports ---------- */
.print-only { display: none; }
.rep-print-head { margin-bottom: 12px; font-size: 13px; color: #333; }
.rep-print-head b { font-size: 18px; display: block; margin-bottom: 2px; }
.table-wrap table.rep-countries { min-width: 0; }
.rep-countries .bar-col { width: 34%; padding-right: 18px; }
.rep-bar { display: block; height: 10px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--viz-1); }
.rep-countries tr.on td { background: var(--brown-pale); }
@media print {
  .print-only { display: block; }
  .admin-head .btn, .dash-filters { display: none !important; }
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap table { min-width: 0; font-size: 11px; }
  .table-wrap td, .table-wrap th { white-space: normal; padding: 5px 6px; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .panel { break-inside: auto; box-shadow: none; }
  tr { break-inside: avoid; }
  .rep-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
.rep-guests .nowrap, .nowrap { white-space: nowrap; }
@media (max-width: 640px) { .rep-countries .bar-col { display: none; } }

/* ---------- payments: invoice on confirm → guest uploads slip → admin approves ---------- */
.st-review { background: var(--brown-pale); color: var(--brown-deep); }
.st-overdue { background: var(--bad-bg); color: var(--bad); }
.todo-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.todo { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r); background: var(--brown-pale); color: var(--brown-deep); text-decoration: none; font-weight: 600; }
.todo:hover { box-shadow: 0 0 0 1px var(--brown) inset; }
.todo svg { width: 18px; height: 18px; }
.todo b { font-size: 18px; }
td.card-actions .btn + .btn { margin-left: 6px; }
.pay-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 10px; background: var(--surface); }
.pay-hint { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; }
.pay-hint svg { width: 18px; height: 18px; flex: none; }
.pay-figs { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14.5px; }
.slip-list { display: grid; gap: 8px; }
.slip-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.slip-info { display: grid; gap: 2px; min-width: 0; flex: 1; }
.slip-thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; align-content: center; padding: 0; cursor: pointer; color: var(--muted); font-size: 10.5px; font-weight: 700; text-decoration: none; }
.slip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.slip-thumb svg { width: 22px; height: 22px; }
.slip-view { display: grid; place-items: center; background: var(--bg-2); border-radius: var(--r-sm); padding: 10px; }
.slip-view img { max-width: 100%; max-height: 60vh; border-radius: 6px; display: block; }
/* guest side */
.pay-due { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 14px; width: fit-content; }
.pay-due.late { background: var(--bad-bg); color: var(--bad); }
.pay-due.ok { background: var(--ok-bg); color: var(--ok); }
.pay-due svg { width: 16px; height: 16px; flex: none; }
.copy-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }
.copy-box > div { display: grid; gap: 2px; min-width: 0; }
.copy-box .bank { white-space: pre-line; font-weight: 600; overflow-wrap: anywhere; display: block; }
.copy-box b { font-size: 17px; overflow-wrap: anywhere; }
.upload-drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: var(--r); cursor: pointer; }
.upload-drop:hover, .upload-drop:focus-within { border-color: var(--brown); }
.upload-drop.picked { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.upload-drop svg { width: 30px; height: 30px; color: var(--brown-deep); }
/* Invisible but still there, so the browser can point at it when no file is chosen. */
.upload-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pay-done { display: flex; gap: 16px; align-items: flex-start; }
.pay-done > svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); flex: none; }
@media (max-width: 480px) { .slip-row { flex-wrap: wrap; } .copy-box { align-items: flex-start; } }

/* ---------- uploaded logo (replaces the drawn badge) ---------- */
.brand .logo-img { height: 44px; width: auto; max-width: 180px; object-fit: contain; flex: none; display: block; }
.doc-top .brand .logo-img { height: 64px; max-width: 220px; }
.map-card .logo-img { height: 38px; max-width: 90px; object-fit: contain; }
.map-pin.villa-pin .logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
/* Admin → Logo & icon: a big preview beside each upload. */
.brand-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: center; }
/* Checkerboard behind the preview, so a transparent PNG shows what's see-through. */
.brand-preview { aspect-ratio: 16 / 9; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 6px; padding: 16px;
  background: repeating-conic-gradient(var(--bg-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.brand-preview.square { aspect-ratio: 1; width: 160px; justify-self: center; }
.brand-preview img, .brand-preview svg { max-width: 100%; max-height: 110px; object-fit: contain; }
.brand-preview.square img, .brand-preview.square svg { max-height: 96px; }
.brand-card label.btn { cursor: pointer; }
@media (max-width: 640px) { .brand-card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .brand .logo-img { height: 38px; max-width: 140px; } }

/* ---------- book → pay → confirmed ---------- */
.next-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); }
.next-steps li::marker { color: var(--brown-deep); font-weight: 700; }
.pay-due.welcome { width: auto; padding: 12px 16px; font-size: 15px; }
.tracker { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.tracker li { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding-top: 2px; }
/* the line joining each step to the next */
.tracker li:not(:last-child)::after { content: ''; position: absolute; top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 3px; border-radius: 2px; background: var(--line-2); }
.tracker li.done:not(:last-child)::after { background: var(--ok); }
.tracker .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-2); color: var(--muted); border: 2px solid var(--line-2); }
.tracker .dot svg { width: 18px; height: 18px; }
.tracker li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tracker li.now .dot { background: var(--brown); border-color: var(--brown); color: var(--on-accent); box-shadow: 0 0 0 4px var(--brown-pale); }
.tracker li.wait .dot { border-color: var(--brown); color: var(--brown-deep); }
.tracker b { font-size: 14.5px; }
.tracker small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.pay-page .tracker { margin-bottom: 22px; }

/* ---------- quick quote: every option side by side ---------- */
.qq-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.qq-opt { display: grid; gap: 3px; text-align: left; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.qq-opt:hover:not(:disabled) { border-color: var(--brown); }
.qq-opt.on { border-color: var(--brown); background: var(--brown-pale); box-shadow: 0 0 0 1px var(--brown) inset; }
.qq-opt:disabled { opacity: .55; cursor: not-allowed; }
.qq-opt .qq-total { font-size: 20px; margin-top: 4px; }
.qq-why { font-size: 12.5px; font-weight: 700; color: var(--bad); }

/* ---------- "Waiting for you" on the dashboard ---------- */
.count-pill { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--bad); color: var(--on-accent); font-family: var(--f-body, inherit); font-size: 14px; font-weight: 800; vertical-align: middle; }
.wait-list { display: grid; gap: 10px; }
.wait-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brown); border-radius: var(--r); cursor: pointer; }
.wait-card:hover { border-color: var(--brown); }
.wait-main { display: grid; gap: 3px; flex: 1; min-width: 0; }
.wait-acts { display: flex; gap: 8px; flex: none; }

/* ---------- phones: bottom tab bar, big thumb-friendly buttons ---------- */
.admin-tabs { display: none; }
.more-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.more-menu a { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.more-menu a.on { background: var(--brown-pale); border-color: var(--brown); }
.more-menu svg { width: 20px; height: 20px; color: var(--brown-deep); flex: none; }
@media (max-width: 760px) {
  .in-admin .side { display: none; }
  .admin-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(0,0,0,.08); }
  .admin-tabs a, .admin-tabs button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 10px; }
  .admin-tabs svg { width: 24px; height: 24px; }
  .admin-tabs .on { color: var(--brown-deep); background: var(--brown-pale); }
  .admin-tabs .count { position: absolute; top: 0; left: calc(50% + 6px); background: var(--bad); color: var(--on-accent); font-size: 11px; font-weight: 800; border-radius: 9px; padding: 1px 6px; }
  .in-admin .admin-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .in-admin .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  /* Cards: buttons full width and tall enough for a thumb. */
  .wait-card { flex-wrap: wrap; }
  .wait-acts, table.cards td.card-actions { width: 100%; }
  .wait-acts .btn, table.cards td.card-actions .btn { flex: 1; justify-content: center; padding: 12px 10px; font-size: 15px; }
  table.cards td.card-actions:empty { display: none; }
  /* Windows: the main action on top, full width. */
  .modal-foot .btn.primary { order: -1; flex-basis: 100%; padding: 14px; font-size: 16px; }
  .modal-foot .btn { padding: 12px 14px; }
  .qq-opts { grid-template-columns: minmax(0, 1fr); }
}
