/* Ben's Hotel — base styles. Mobile-first; no framework.
   Brand tokens below get replaced once the logo arrives (M2). */

:root {
  /* Brand — sampled from the crest logo */
  --charcoal: #232323;     /* logo background */
  --charcoal-2: #2e2e2e;
  --gold: #c8a876;         /* crest gold — on dark backgrounds only */
  --gold-ink: #7a5c2a;     /* darker gold for text/links on light backgrounds (AA contrast) */
  --ivory: #f3ece0;        /* text on charcoal */
  --ink: #232323;
  --muted: #625b52;
  --line: #e6dfd3;
  --bg: #faf7f1;
  --surface: #ffffff;
  --radius: 10px;
  --gutter: 16px;
  --max: 1080px;
  --bar-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Garamond, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); /* room for book bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
h2 { font-size: 1.4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 640px; padding-block: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons — 48px min tap target */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
}
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.05rem; }
.btn-primary { background: var(--gold); color: var(--charcoal); }
.btn-secondary { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-ghost { background: var(--charcoal-2); color: var(--ivory); border-color: #444; }

/* Header */
.site-header { background: var(--charcoal); border-bottom: 1px solid #3a3a3a; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); }
.brand-crest { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ivory); opacity: .8; margin-top: 3px; }
.brand-name { font: 600 1.25rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.nav-toggle { background: none; border: 0; padding: 12px; margin-right: -12px; color: var(--gold); cursor: pointer; }
.site-nav { display: none; }
.site-nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--charcoal); border-bottom: 1px solid #3a3a3a; padding: 8px var(--gutter) 16px;
}
.site-nav a:not(.btn) { padding: 12px 0; text-decoration: none; color: var(--ivory); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--gold); }
.nav-cta { margin-top: 8px; }
.header-book { display: none; }

/* Language menu (scripts/build.mjs langMenu): 🌐 + the language's own name, in the header bar
   on every screen; plain links in a <details>, so it works without JS */
.lang-menu { position: relative; margin-left: auto; color: var(--ivory); }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 1px solid #555; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; color: var(--gold); font-size: .8em; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--gold); color: var(--gold); }
.lang-menu summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-globe { color: var(--gold); flex: none; }
.lang-menu .lang-name { display: none; }
.lang-menu ul { list-style: none; position: absolute; right: 0; top: 100%; z-index: 70; min-width: 11rem; margin: 6px 0 0; padding: 6px; background: var(--charcoal); border: 1px solid #444; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.lang-menu li a { display: block; padding: 12px 14px; border-radius: 6px; color: var(--ivory); text-decoration: none; font-weight: 500; }
.lang-menu li a:hover { background: #333; color: var(--gold); }
.lang-menu li a[aria-current] { color: var(--gold); }
.lang-menu li a[aria-current]::after { content: " ✓"; }
@media (max-width: 359px) { .lang-menu .lang-code { display: none; } }
@media (min-width: 400px) { .lang-menu .lang-name { display: inline; } .lang-menu .lang-code { display: none; } }
.brand-name, .site-nav a { white-space: nowrap; }
@media (max-width: 439px) {
  .brand { gap: 8px; }
  .brand-crest { width: 40px; height: 40px; }
  .brand-name { font-size: 1.05rem; letter-spacing: .07em; }
  .brand-sub { letter-spacing: .2em; }
}

/* Currency menu (site/assets/js/currency.js); empty without JS */
.prefs:empty { display: none; }
.pref { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--ivory); font-weight: 500; }
.pref select { flex: 1; min-width: 0; max-width: 20rem; min-height: 44px; padding: 8px 10px; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 1px solid #555; border-radius: 6px; }
.pref-code { display: none; }
.fx { font-family: var(--font); font-weight: 400; font-size: .85em; color: var(--muted); white-space: nowrap; margin-left: .35em; }
.price .fx { font-size: .95rem; letter-spacing: 0; }
td > .fx, .q-lines .fx { display: block; margin-left: 0; }
.fx-note { margin-top: 16px; }
.fx-note a { color: var(--gold); }

/* Hero */
.hero { background: var(--charcoal); color: var(--ivory); padding: 32px 0 44px; text-align: center; }
.hero-logo { width: 220px; height: 220px; margin: 0 auto 8px; }
.established { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ivory); opacity: .85; margin: -4px 0 18px; letter-spacing: .02em; }
.hero h1 { color: var(--gold); font-size: clamp(1.9rem, 6.5vw, 2.8rem); }
/* Home: the building's front behind the hero, darkened so the text stays readable. */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 35, 35, .62) 0%, rgba(35, 35, 35, .78) 55%, rgba(35, 35, 35, .9) 100%); }
.hero-photo .hero-logo { border-radius: 50%; box-shadow: 0 6px 28px rgba(0, 0, 0, .45); }
.hero-photo .lede, .hero-photo .pay-note { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.hero .lede { margin-inline: auto; }
.hero .hero-actions { justify-content: center; }
.hero .pay-note { margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .75rem; color: var(--gold); margin: 0 0 8px; }
.lede { font-size: 1.15rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 16px; }
.pay-note { font-size: .9rem; opacity: .85; max-width: 44ch; }

/* Cards */
.cards { display: grid; gap: 16px; padding-block: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card a { font-weight: 600; }
.card h2 { color: var(--ink); }
.card { border-top: 3px solid var(--gold); }
.placeholder-note { color: var(--muted); font-size: .85rem; padding-bottom: 24px; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--ivory); padding: 32px 0 16px; margin-top: 32px; border-top: 3px solid var(--gold); }
.site-footer a { color: var(--gold); }
.footer-grid { display: grid; gap: 24px; }
.footer-name, .footer-head { font-weight: 700; margin: 0 0 6px; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.footer-logo { width: 120px; height: 120px; margin: -8px 0 4px -8px; }
address { font-style: normal; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 4px 0; }
.fine { font-size: .8rem; opacity: .75; margin-top: 24px; }

/* Sticky mobile book bar */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(35,35,35,.97); border-top: 1px solid #3a3a3a;
}
.book-bar .btn { white-space: nowrap; padding-left: 8px; padding-right: 8px; }

/* Cookie notice for the Google Ads tag (ads.js shows it); sits above the book bar */
.cookie-notice {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(var(--bar-h) + 8px + env(safe-area-inset-bottom)); z-index: 70;
  max-width: 560px; margin: 0 auto; padding: 12px 14px; display: grid; gap: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.18); font-size: .92rem; line-height: 1.4;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-notice-actions .btn { flex: 1 1 120px; }
body.booking .cookie-notice { bottom: calc(8px + env(safe-area-inset-bottom)); }

/* Full menu bar from 1024 px; phones and tablets use ☰ and the bottom bar */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .book-bar { display: none; }
  .cookie-notice { bottom: 16px; }
  .nav-toggle { display: none; }
  .site-nav { margin-left: auto; }
  .lang-menu { order: 3; margin-left: 0; }
  .site-nav .nav-cta { display: none; }
  .header-book { display: inline-flex; order: 4; white-space: nowrap; }
  .site-nav, .site-nav.open { display: flex; flex-direction: row; position: static; align-items: center; gap: clamp(12px, 1.7vw, 24px); padding: 0; border: 0; }
  .nav-cta { margin-top: 0; }
  .pref { position: relative; padding: 0; }
  .pref-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pref-code { display: block; padding: 10px 2px; font-size: .9rem; letter-spacing: .06em; white-space: nowrap; }
  .pref-code::after { content: " ▾"; color: var(--gold); }
  .pref select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; min-height: 0; padding: 0; }
  .pref:hover .pref-code, .pref:focus-within .pref-code { color: var(--gold); }
  .pref:has(select:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
}

@media (min-width: 760px) {
  .hero { padding: 48px 0 72px; }
  .hero-logo { width: 280px; height: 280px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > .card:nth-child(odd):last-child { grid-column: 1 / -1; } /* a third card spans the row */
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- Inner pages ---------- */
.page-hero { background: var(--charcoal); color: var(--ivory); padding: 36px 0 32px; border-bottom: 3px solid var(--gold); }
.page-hero h1 { color: var(--gold); font-size: clamp(2rem, 7vw, 2.8rem); }
.page-hero .lede { max-width: 46ch; }
.page-hero .btn { margin-top: 8px; }
.section { padding-block: 28px 8px; }
.section > h2 { font-size: 1.6rem; }
.prose { max-width: 720px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.fine-print { font-size: .9rem; color: var(--muted); }
.page-hero .fine-print, .site-footer .fine-print { color: inherit; opacity: .8; }
.btn-outline { background: transparent; color: var(--gold-ink); border-color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--gold); }

/* Photo placeholders — replaced with real <picture> elements when photos arrive */
.photo-ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #2a2a2a 0 12px, #262626 12px 24px);
  border: 1px solid #3a3a3a; color: var(--gold); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase;
}
.photo-ph.wide { aspect-ratio: 16 / 9; }

/* Rooms */
.rooms { display: grid; gap: 20px; padding-block: 28px 8px; }
.room { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.room .photo-ph { border-radius: 0; border: 0; }
/* Room photos: one photo, or a swipeable strip where the next photo peeks in (no JS). */
.room-photos { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--line); }
.room-photos::-webkit-scrollbar { display: none; }
.room-photos img { flex: 0 0 100%; min-width: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; display: block; }
.room-photos.multi img { flex-basis: 88%; }
.room-photos.multi img:last-child { scroll-snap-align: end; }
.room-body { padding: 18px 18px 22px; }
.room-meta { color: var(--muted); font-size: .95rem; margin-top: -4px; }
.price { font-size: 1.1rem; margin: 12px 0 4px; }
.price strong { font-size: 1.5rem; font-family: var(--font-display); color: var(--ink); }
.price span { color: var(--muted); font-size: .95rem; }
.room .btn { margin-top: 12px; }

/* Facts list */
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Hall rates table: stacked cards on phones, a table on wider screens */
.table-wrap { margin: 12px 0; }
.rates { width: 100%; border-collapse: collapse; }
.rates thead { display: none; }
.rates tr { display: block; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 12px; }
.rates th[scope="row"] { display: block; text-align: left; font-family: var(--font-display); font-size: 1.25rem; padding: 4px 0 6px; }
.rates td { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.rates td::before { content: attr(data-label); color: var(--muted); }
.rates td:nth-of-type(1) { font-weight: 700; font-size: 1.1rem; }
.rates td:nth-of-type(2) { color: var(--muted); }

/* Hall schedule */
.blocks { display: grid; gap: 12px; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.block h3 { margin-bottom: 2px; }
.block-time { font-family: var(--font-display); font-size: 1.35rem; margin: 0; color: var(--gold-ink); }

/* Contact */
.contact-grid { display: grid; gap: 12px; }
.contact-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--gold); }
.cc-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.cc-value { font-weight: 600; overflow-wrap: anywhere; }

/* Map (click to load) */
.map { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map.loaded { display: block; }

.placeholder-note { border: 1px dashed var(--gold); background: #fff8e8; color: #6b5220; padding: 10px 14px; border-radius: 8px; font-size: .85rem; }

@media (min-width: 760px) {
  .rooms { grid-template-columns: 1fr 1fr; }
  .rooms > .placeholder-note { grid-column: 1 / -1; }
  .blocks { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .map { aspect-ratio: 16 / 7; }
  .page-hero { padding: 56px 0 44px; }
  .rates thead { display: table-header-group; }
  .rates tr { display: table-row; border: 0; padding: 0; margin: 0; background: none; }
  .rates th, .rates td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
  .rates tbody th, .rates tbody td { background: var(--surface); }
  .rates thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border-bottom: 2px solid var(--gold); }
  .rates th[scope="row"] { font-size: 1.1rem; padding: 12px 14px; line-height: inherit; } /* same padding as the other cells, so rows line up */
  .rates td::before { content: none; }
  .rates thead small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
  .rates tbody tr { background: var(--surface); }
}

/* Amenity and rule lists */
.amenities { grid-column: 1 / -1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.amenities h2 { font-size: 1.3rem; }
.ticks, .rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--gold-ink); font-weight: 700; margin-right: 10px; }
.rules li::before { content: "•"; color: var(--gold-ink); font-weight: 700; margin-right: 10px; }
.two-col { display: grid; gap: 20px; margin: 8px 0 12px; }
.hours { margin-top: 16px; }
@media (min-width: 760px) {
  .amenities .ticks { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
}

/* Booking pages have their own step buttons; the quick-action bar would compete with them. */
body.booking { padding-bottom: env(safe-area-inset-bottom); }
body.booking .book-bar { display: none; }

/* Senior citizen & PWD discount highlight */
.discount-badge { display: inline-block; margin: 14px auto 0; padding: 8px 14px; border-radius: 999px; background: #e6f2e7; color: #1d4d2c; font-size: .92rem; line-height: 1.4; max-width: 100%; }
.discount-badge strong { color: #14532d; }
.discount-badge a { color: #14532d; font-weight: 600; white-space: nowrap; }
.wrap > .discount-badge { border-radius: 12px; margin-top: 18px; }
.page-hero .discount-badge { display: table; margin: 14px 0 0; }
/* On the dark heroes: a quiet gold-outlined note instead of the green pill */
.hero .discount-badge, .page-hero .discount-badge { background: transparent; color: rgba(246, 241, 231, .82); border: 1px solid rgba(200, 168, 118, .35); font-size: .85rem; padding: 6px 14px; }
.hero .discount-badge strong, .page-hero .discount-badge strong { color: var(--gold); font-weight: 600; }
.hero .discount-badge a, .page-hero .discount-badge a { color: var(--gold); font-weight: 500; }

/* Dining page */
/* Function hall photos: one wide photo, then the rest as a swipeable row on phones
   (so the rates stay close to the top) and a mosaic on wider screens. */
.hall-main { margin: 0 0 4px; }
.hall-main img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.hall-gallery { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 0 0 var(--radius) var(--radius); }
.hall-gallery::-webkit-scrollbar { display: none; }
.hall-gallery img { display: block; flex: 0 0 46%; min-width: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 760px) {
  .hall-main img { max-height: 520px; }
  .hall-gallery { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
  .hall-gallery img { height: 100%; }
  .hall-gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .hall-gallery img:nth-child(6), .hall-gallery img:nth-child(7) { grid-column: span 2; aspect-ratio: 8 / 3; }
}

.dining-tag { color: var(--gold-ink); margin-bottom: 4px; }
@media (min-width: 760px) { .cards.dining { grid-template-columns: repeat(3, 1fr); } .cards.dining > .card:nth-child(odd):last-child { grid-column: auto; } }
/* Photo strip on top of each card: one lead photo, optionally two smaller ones below. */
.dining-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.dining-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--line); }
.dining-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.dining-photos .lead { grid-column: 1 / -1; }
/* A card with one photo matches the height of the cards with three (4:3 + 4:3 at half width ≈ 8:9). */
@media (min-width: 760px) { .dining-photos .lead:only-child { aspect-ratio: 8 / 9; } }
.dining-body { padding: 18px 20px 20px; }
/* Ambre and the cafe: the photos and the name open their own sites. */
a.dining-photos { text-decoration: none; }
a.dining-photos img { transition: filter .2s; }
a.dining-photos:hover img { filter: brightness(1.06); }
.dining-name { color: inherit; text-decoration: none; }
.dining-name::after { content: " \2192"; color: var(--gold-ink); font-size: .8em; }
.dining-name:hover, .dining-name:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Corporate & groups (/corporate) */
.corp-perks li { margin-bottom: 6px; }
.corp-form-card { max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 20px; }
.corp-form-card form { display: grid; gap: 12px; margin-top: 12px; }
.corp-form-card label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.corp-form-card input, .corp-form-card textarea, .corp-form-card select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 44px; width: 100%; background: #fff; }
.corp-dates { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; display: grid; gap: 10px; }
.corp-dates legend { font-weight: 600; padding: 0 4px; }
.corp-check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; }
.corp-check input { width: 20px; height: 20px; min-height: 0; flex: none; }
.corp-done { text-align: center; padding: 10px 0; }
.corp-done .done-mark { font-size: 2.4rem; color: #2f6b45; margin: 0; }
.corp-note { margin-top: 16px; padding: 12px 14px; background: #fbf6ea; border-radius: 10px; }

/* Function hall: monthly installments (shown while management offers them) */
[data-installments][hidden] { display: none; }
.promo-link { margin: 14px 0 0; }
.promo-link a { display: inline-block; padding: 10px 14px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.promo-link a:hover, .promo-link a:focus-visible { background: var(--gold); color: var(--charcoal); }
.plan-promo { scroll-margin-top: 16px; }
.plan-promo .lede { max-width: 46ch; }
.plan-from { font-size: 1.1rem; margin: 0 0 12px; }
.plan-example { margin: 0 0 16px; padding: 14px 16px; background: #fbf6ea; border-radius: var(--radius); }
.plan-example-h { font-weight: 600; margin: 0 0 8px; }
.plan-example ol { list-style: none; margin: 0 0 8px; padding: 0; }
.plan-example li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.plan-example li:first-child { border-top: 0; }
.plan-example li b { white-space: nowrap; }
.plan-example .fine-print { margin: 0; }
.plan-terms { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 16px; }
.plan-terms summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; color: var(--gold-ink); }
.plan-terms summary::-webkit-details-marker { display: none; }
.plan-terms summary { list-style: none; justify-content: space-between; }
.plan-terms summary::after { content: "▾"; }
.plan-terms[open] summary::after { content: "▴"; }
.plan-terms[open] { padding-bottom: 8px; }
.plan-terms h3 { font-size: 1rem; margin: 12px 0 4px; }
.plan-terms ul { margin: 0 0 8px; padding-left: 1.2em; }
/* the LOA template prints cleanly */
.loa { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 760px; line-height: 1.6; margin-bottom: 40px; }
.loa-letterhead { text-align: center; color: var(--muted); border: 1px dashed #cfc6b8; padding: 16px; }
.loa-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.loa-table th, .loa-table td { border: 1px solid #bbb; padding: 8px; height: 34px; text-align: left; font-size: .9rem; }
.loa-sign { margin-top: 28px; }
@media print {
  .loa-page .site-header, .loa-page .site-footer, .loa-page .book-bar, .loa-page .loa-intro, .loa-page .skip-link { display: none !important; }
  .loa { border: 0; padding: 0; max-width: none; }
}
.corp-form-card .bk-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.corp-form-card input[type="date"] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
.corp-form-card .bk-pair > label { min-width: 0; }
.corp-form-card .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.corp-form-card .consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.corp-form-card .phone-row { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 8px; }
.corp-form-card [hidden] { display: none !important; }

/* Signing the LOA online (/corporate-loa?t=…) */
.loa-form, .loa-review { max-width: 680px; margin-top: 12px; }
.loa-form h2, .loa-review h2 { margin: 0 0 4px; }
.loa-text { white-space: pre-wrap; font: inherit; font-size: .95rem; line-height: 1.55; background: #faf8f4; border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 50vh; overflow: auto; }
.sig-pad { display: block; width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 2px dashed #cfc6b8; border-radius: 10px; touch-action: none; cursor: crosshair; }
.sig-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.loa-online .corp-done { text-align: center; }

/* The company's booking page (signed LOA link) */
.loa-book { max-width: 680px; margin-top: 16px; display: grid; gap: 12px; }
.acct-tier { margin: 0; }
.acct-progress { height: 10px; background: #eee7da; border-radius: 999px; overflow: hidden; }
.acct-progress span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.book-room { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; margin-bottom: 10px; }
.book-room-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.book-room-head button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }
.book-room select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 44px; background: #fff; }
.book-quote table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.book-quote td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.book-quote td:last-child { text-align: right; white-space: nowrap; }
.book-quote .q-total td { font-weight: 700; border-bottom: 0; }
.acct-stays { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.acct-stays li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff; }
.acct-stays .st { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.acct-stays .st.confirmed { color: #2f6b45; }

/* The letter on the review screen */
.loa-book[hidden], .loa-review[hidden], .loa-form[hidden] { display: none !important; }
.loa-doc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; line-height: 1.55; font-size: .95rem; max-height: 60vh; overflow: auto; }
.loa-doc-title { font: 600 1.05rem var(--font-display); letter-spacing: .02em; margin: 0 0 12px; text-align: center; }
.loa-doc p { margin: 0 0 10px; }
.loa-meta, .loa-terms { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .92rem; }
.loa-meta th, .loa-terms th { text-align: left; vertical-align: top; color: var(--muted); font-weight: 600; padding: 6px 10px 6px 0; width: 34%; }
.loa-meta td, .loa-terms td { padding: 6px 0; vertical-align: top; }
.loa-terms th, .loa-terms td { border-top: 1px solid var(--line); }
.loa-terms tr:last-child th, .loa-terms tr:last-child td { border-bottom: 1px solid var(--line); }
.loa-law { font-size: .85rem; color: var(--muted); }
@media (max-width: 480px) {
  .loa-doc { max-height: none; }
  .loa-terms th, .loa-terms td, .loa-meta th, .loa-meta td { display: block; width: auto; padding: 2px 0; }
  .loa-terms th { padding-top: 8px; }
  .loa-terms td { padding-bottom: 8px; border-top: 0; }
}

/* Sign and book: steps, the device code, guests, availability */
.loa-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 12px 0; counter-reset: s; }
.loa-steps li { flex: 1; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 8px 4px; border-bottom: 3px solid #e6dfd2; counter-increment: s; }
.loa-steps li::before { content: counter(s) " · "; }
.loa-steps li.on { color: var(--ink); border-bottom-color: var(--gold); }
.loa-verify, .loa-stay { max-width: 560px; display: grid; gap: 12px; margin-top: 12px; }
.loa-verify[hidden], .loa-stay[hidden], .loa-verify form[hidden] { display: none !important; }
.loa-verify form { display: grid; gap: 10px; }
.loa-verify [name=code] { font-size: 1.6rem; letter-spacing: .4em; text-align: center; }
.loa-validity { max-width: 680px; }
.guest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guests { display: grid; gap: 8px; }
.guest-row input, .loa-stay input, .loa-book input, .loa-verify input { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 44px; width: 100%; min-width: 0; background: #fff; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--gold-ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; justify-self: start; }
.stay-free.warn { color: #a1291b; font-weight: 600; }
.stay-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 8px; }
.stay-table td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.stay-table td:last-child { text-align: right; white-space: nowrap; padding-left: 8px; }
.stay-table .q-total td { font-weight: 700; border-bottom: 0; }
.loa-stay-summary h3 { margin: 0 0 6px; font-size: 1rem; }
.loa-steps[hidden] { display: none !important; }

.names-later { margin-top: 2px; }
.loa-stay .corp-check input, .loa-book .corp-check input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; }
.guest-count[hidden], .guests[hidden] { display: none !important; }
.guest-count { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.guest-count select { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 44px; background: #fff; max-width: 8rem; }
.names-needed { color: #a1291b; }
.names-form { display: grid; gap: 8px; margin-top: 8px; }

/* the company's page once signed: stays first, then "Book more rooms", then the letter */
.stay-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; }
.stay-acts .link-btn { min-height: 36px; }
.acct-stays .asked { display: block; color: #2f6b45; margin-top: 2px; }
.acct-stays textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #cfc6b8; border-radius: 8px; }
.stay-form:empty { display: none; }
.book-new { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.book-new[hidden], #book-open[hidden] { display: none !important; }
.loa-letter { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; justify-items: start; }
.loa-letter h3, .book-new h3 { margin: 0; }
.btn-danger { background: #a1291b; color: #fff; border: 0; }
/* the stay editor: a stepper per room type, with what's free on its own row */
.stay-h { margin: 16px 0 6px; font-size: 1rem; }
.stay-nights { margin: 6px 0 0; color: var(--ink); font-weight: 600; }
.stay-nights:empty, .stay-total:empty { display: none; }
.stay-types { display: grid; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.stay-type { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.stay-type + .stay-type { border-top: 1px solid var(--line); }
.stay-type-txt { flex: 1; display: grid; gap: 1px; min-width: 0; }
.stay-type-txt small { color: var(--muted); font-size: .85rem; }
.stay-type .stay-free { color: #2f6b45; font-weight: 600; }
.stay-type .stay-free:empty { display: none; }
.stay-type.short { background: #fdf3f0; }
.stay-type.short .stay-free { color: #a1291b; }
.room-stepper { display: inline-flex; align-items: center; border: 1px solid #cfc6b8; border-radius: 999px; overflow: hidden; flex: none; }
.room-stepper button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.35rem; line-height: 1; color: var(--ink); cursor: pointer; }
.room-stepper button:disabled { color: #c8c1b6; cursor: default; }
.room-stepper output { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.05rem; }
.stay-total { margin: 6px 0 0; }
.stay-type.full .stay-free { color: #8a5a12; }
.stay-total.warn { color: #a1291b; }
.all-later[hidden] { display: none !important; }
.loa-stay .all-later input, .loa-book .all-later input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; }
.stay-rooms .book-room-head span { font-weight: 700; }
.team-code { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; justify-items: start; }
.team-code h3 { margin: 0; }
.team-code[hidden] { display: none !important; }
.team-code code { background: #f6ecd6; padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }
.stay-intro { margin: 0; }
.stay-box { display: grid; gap: 10px; }
.stay-box[hidden], #stay-open[hidden] { display: none !important; }
.loa-stay > .bk-error:empty { display: none; }

/* ---------- the guest's booking page (/booking): status and pay the deposit online ---------- */
.bp { max-width: 560px; }
.bp-card { background: #fff; border: 1px solid #e6dccb; border-radius: 14px; padding: 18px 16px; }
.bp-ref { margin: 0 0 4px; color: #555; }
.bp-status { font: 600 1.35rem/1.2 Georgia, serif; margin: 0 0 8px; }
.bp-status.st-confirmed { color: #2e6b2e; }
.bp-status.st-cancelled, .bp-status.st-expired { color: #8a2a1d; }
.bp-note { background: #fbf6ea; border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 6px; }
.bp-facts { display: grid; gap: 6px; margin: 14px 0 18px; }
.bp-facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.bp-facts dt { color: #666; }
.bp-facts dd { margin: 0; font-weight: 600; text-align: right; }
.bp-pay { width: 100%; }
.bp-small { font-size: .92rem; color: #555; margin-top: 10px; }
.bp-error { color: #a1291b; }
.bp-error:empty { display: none; }
.bp-test { background: #a1291b; color: #fff; display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: .9rem; }
.bp-find { display: grid; gap: 12px; }
.bp-find[hidden] { display: none; }
.bp-find label { display: grid; gap: 4px; font-weight: 600; }
.bp-find input { min-height: 48px; padding: 0 12px; font-size: 1rem; border: 1px solid #cfc6b8; border-radius: 10px; }
.bp-help { margin-top: 18px; font-size: .95rem; }
.bp-manual { border-top: 1px solid #eee; margin-top: 16px; padding-top: 14px; }
.bp-h { font: 600 1.15rem/1.3 Georgia, serif; margin: 0 0 10px; }
.bp-qr { display: block; width: 240px; max-width: 100%; height: auto; margin: 8px auto 12px; border: 1px solid #e6dccb; border-radius: 10px; }
.bp-soon { color: #999; border: 1px dashed #ccc; border-radius: 10px; padding: 8px 12px; margin: 10px 0 14px; }
.bp-soon span { font-weight: 600; margin-right: 6px; }
.bp-ref-form { display: grid; gap: 10px; margin-top: 12px; }
.bp-ref-form[hidden] { display: none; }
.bp-ref-form label { display: grid; gap: 4px; font-weight: 600; }
.bp-ref-form input { min-height: 48px; padding: 0 12px; font-size: 1rem; border: 1px solid #cfc6b8; border-radius: 10px; }

/* Home on phones: the menu's pages follow as you scroll (assets/js/more.js) */
.more[hidden] { display: none; }
.more-page > .page-hero { margin-top: 8px; }
body.more-pending .site-footer { display: none; } /* comes back after the last page (or if loading stops) */
.more-sentinel { height: 1px; }
.nudge {
  margin: 8px var(--gutter) 32px; padding: 18px 18px 16px; max-width: calc(var(--max) - 2 * var(--gutter));
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(35, 35, 35, .06);
}
@media (min-width: 1112px) { .nudge { margin-inline: auto; } }
.nudge p { margin: 0 0 8px; }
.nudge-eyebrow { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; }
.nudge-lead { font: 600 1.3rem/1.25 var(--font-display); color: var(--ink); }
.nudge-lead strong { color: var(--gold-ink); }
.nudge-fine { font-size: .92rem; color: var(--muted); }
.nudge-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.nudge-actions .btn { flex: 1 1 140px; }
.nudge-end { text-align: center; border-left-width: 1px; border-top: 3px solid var(--gold); }
.nudge-top { margin-top: 14px !important; font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
  .more-page, .nudge { animation: more-in .35s ease-out both; }
  @keyframes more-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* Hotel closed for renovation (lib/closures.mjs; site.js): one calm line under the header, pointing to later dates */
.closure-line { margin: 0; background: var(--ivory); color: var(--ink); border-bottom: 1px solid rgba(0, 0, 0, .08); font-size: .95rem; }
.closure-line .wrap { display: block; padding-block: 10px; }
.closure-line a { font-weight: 600; white-space: nowrap; color: var(--gold-ink); }

/* Maintenance "+ Cost" from an expense: the task picker */
.mt-pick-find { display: block; margin: .5rem 0 .75rem; }
.mt-pick-group + .mt-pick-group { margin-top: .75rem; }
/* Maintenance: "Paid" on a cost opens its expense entries */
.mt-paid-link { font: inherit; }
.mt-paid-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.mt-paid { border-top: 1px solid var(--line, #e6dfd2); padding: .75rem 0; }
.mt-paid-head { margin: 0 0 .25rem; }
.mt-paid .msg-atts img { max-width: 160px; border-radius: 8px; }
/* Maintenance: a contract for the whole project — how labour is paid, and "paid ahead of the work" */
.mt-basis { border: 0; padding: 0; margin: .25rem 0 .5rem; }
.mt-basis legend { font-weight: 600; padding: 0; margin-bottom: .25rem; }
.mt-ahead { background: #fff6e0; border-left: 3px solid #c9952b; padding: .5rem .75rem; border-radius: 6px; margin: .5rem 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mt-ahead { background: #3a3020; } }

/* a department's parts under it (Reports → Costs by department) */
table.list tr.sub td { font-size: .88em; color: var(--muted, #6b6259); border-top: 0; padding-top: .15rem; }
table.list tr.sub td:first-child { padding-left: 1.4rem; }
/* Schedules: earlier ones folded away (owner, Nov 7, 2026) */
.ss-earlier { margin-top: .6rem; }
.ss-earlier > summary { cursor: pointer; padding: .5rem 0; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
#ss-versions li { padding: .55rem 0; border-bottom: 1px solid var(--line, #e7dfd3); }
#ss-versions li:last-child { border-bottom: 0; }
#ss-versions li > small { display: block; margin: .15rem 0 .35rem; }
