/* ==========================================================================
   The Interactive Home Hub · Roche Digital template
   Tokens and the .rd-* idiom come from ../../_brand/styles.css. Nothing here
   invents a colour or a typeface. Paper page, ink text, one accent, Fraunces
   headings with the italic word, Inter body, JetBrains Mono labels.
   Phone first: a fixed tab bar along the bottom, one long page above it.
   On a laptop (720px+) the tabs move up into the header. The booking sheet is
   the page's one ink surface.
   ========================================================================== */

:root {
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
  --measure: 36rem;
  --top-h: 3.6rem;
  --bar-h: 4.1rem;
  --ease: var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-size: .95rem; line-height: 1.7; overflow-x: hidden; padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: 999px; font-size: .85rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
.sec__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.sec__head .idx { color: var(--accent); }
.sec__head .rd-rule { flex: 1; }
.sec__title { font-size: clamp(2.3rem, 8.5vw, 3.4rem); margin-top: .2rem; }
.sec__story { margin-top: .9rem; max-width: var(--measure); color: var(--ink-2); }

.rd-btn { font-size: .8rem; padding: .8em 1.3em; white-space: nowrap; }
.rd-btn--sm { font-size: .72rem; padding: .62em 1.05em; }
/* on the ink surface: a paper pill and an outlined pill */
.rd-btn--paper { background: var(--paper); color: var(--ink); }
.rd-btn--paper:hover { background: var(--paper-raised); }
.rd-btn--outline { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--hairline-on-ink); }
.rd-btn--outline:hover { background: rgba(247,246,243,.08); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: calc(.85rem + env(safe-area-inset-top)) var(--gutter) .7rem;
  background: rgba(247,246,243,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.top__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.brand { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; text-decoration: none; line-height: 1; white-space: nowrap; color: var(--ink); }
.brand__sub { font-style: italic; font-weight: 400; color: var(--ink-2); }
.top__now { white-space: nowrap; color: var(--ink-3); }
.top__tabs { display: none; }

/* ---------- Bottom tab bar (phone) ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: repeat(6, 1fr);
  /* side margins like an iOS tab bar, so the first and last tabs never sit on the screen edge */
  padding: .45rem max(1rem, env(safe-area-inset-right)) calc(.45rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(247,246,243,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--hairline);
}
.bar a { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; color: var(--ink-3); padding: .3rem 0 .2rem; position: relative; transition: color .2s ease; }
.bar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bar a span { font-family: var(--font-mono); font-size: .52rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.bar a::after { content: ""; position: absolute; left: 50%; bottom: -.15rem; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s var(--ease); }
.bar a.is-on { color: var(--ink); }
.bar a.is-on::after { opacity: 1; transform: scale(1); }

@media (min-width: 720px) {
  :root { --top-h: 4.2rem; --bar-h: 0rem; }
  .bar { display: none; }
  .top__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .top__now { justify-self: end; }
  .top__tabs { display: flex; gap: .3rem; justify-content: center; }
  .top__tabs a { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: .5em .95em; border-radius: 999px; color: var(--ink-2); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
  .top__tabs a:hover { border-color: var(--hairline-strong); color: var(--ink); }
  .top__tabs a.is-on { background: var(--ink); color: var(--paper); }
}

/* ---------- Layout ---------- */
main { padding: calc(var(--top-h) + env(safe-area-inset-top) + 1.2rem) var(--gutter) 3rem; max-width: 56rem; margin: 0 auto; }
.sec { padding-top: 3.2rem; scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top)); }
.sec + .sec { margin-top: 3rem; }

/* ---------- Hello ---------- */
.hello { padding-top: .6rem; }
.hello .rd-kicker { margin-bottom: 1rem; }
.hello__title { font-size: clamp(2.9rem, 12vw, 4.8rem); }
.hello__sub { margin-top: 1.1rem; max-width: var(--measure); color: var(--ink-2); font-size: var(--text-lead); line-height: 1.55; }
.hello__pic { margin-top: 1.8rem; }
.hello__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card); }
.hello__pic figcaption { margin-top: .6rem; font-size: .78rem; line-height: 1.6; color: var(--ink-3); }
@media (min-width: 640px) {
  .hello { display: grid; grid-template-columns: 1fr 16rem; gap: 2.5rem; align-items: start; }
  .hello > div { padding-top: 1.5rem; }
  .hello__pic { margin-top: 0; }
}

/* ---------- Wi-Fi ---------- */
.wifi { margin-top: 1.4rem; padding: 1.5rem 1.4rem 1.4rem; }
.wifi__grid { display: grid; gap: 1.1rem; }
.wifi dt { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.wifi dd { margin: .15rem 0 0; font-family: var(--font-display); font-weight: 460; font-size: 1.8rem; line-height: 1.1; letter-spacing: -.01em; word-break: break-word; }
.wifi dd.wifi__pw { font-family: var(--font-mono); font-weight: 500; font-size: 1.25rem; letter-spacing: .04em; user-select: all; -webkit-user-select: all; }
.wifi__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.wifi__how { margin-top: 1.1rem; font-size: .82rem; line-height: 1.65; color: var(--ink-2); }
.wifi__qr { display: none; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.wifi__qr.is-open { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; }
.wifi__qr img { width: 7.5rem; height: 7.5rem; padding: .4rem; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 8px; }
.wifi__qr p { font-size: .82rem; line-height: 1.65; color: var(--ink-2); }
.share { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; font-size: .84rem; color: var(--ink-2); }

/* ---------- Draft tags (review only) ---------- */
.tag { display: none; font-family: var(--font-mono); font-size: .52rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); background: var(--accent); padding: .3em .6em; border-radius: 999px; vertical-align: middle; margin-left: .5em; }
html.is-review .tag { display: inline-block; }
.review-note { display: none; margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed var(--accent-dim); border-radius: 8px; font-size: .8rem; line-height: 1.65; color: var(--ink-2); }
html.is-review .review-note { display: block; }
.review-note code { font-family: var(--font-mono); font-size: .72rem; }

/* ---------- The house: fold-out rows ---------- */
.rows { margin-top: 1.6rem; border-top: 1px solid var(--hairline); }
.row { border-bottom: 1px solid var(--hairline); }
.row summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--font-display); font-weight: 460; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; }
.row summary::-webkit-details-marker { display: none; }
.row summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: .3rem; }
.row[open] summary::after { transform: rotate(-135deg); }
.row__body { padding: 0 0 1.3rem; max-width: var(--measure); color: var(--ink-2); }
.row__body p + p { margin-top: .7rem; }

/* ---------- Cards: book someone, venues, activities ---------- */
.cards { margin-top: 1.8rem; display: grid; gap: 2rem; }
.card { display: grid; gap: .9rem; align-content: start; }
.card__pic { position: relative; overflow: hidden; background: var(--paper-deep); border-radius: var(--radius-card); }
.card__pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__pic--tall img { aspect-ratio: 4 / 5; }
.card__pic--none { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 1px solid var(--hairline); }
.card__pic--none span { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--ink-3); padding: 1rem; text-align: center; }
.card__kind { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.card__mins { font-family: var(--font-mono); font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.card__name { font-family: var(--font-display); font-weight: 460; font-size: 1.7rem; line-height: 1.05; letter-spacing: -.01em; margin-top: .2rem; }
.card__line { margin-top: .55rem; max-width: var(--measure); font-size: .92rem; color: var(--ink-2); }
.card__meta { margin-top: .4rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.8; }
.card__note { margin-top: .4rem; font-size: .8rem; color: var(--ink-3); }
.card__actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
@media (min-width: 640px) {
  .cards--wide { grid-template-columns: 1fr 1fr; gap: 2.4rem 2rem; }
  .card--span { grid-column: 1 / -1; grid-template-columns: 16rem 1fr; gap: 1.5rem; }
  .card--span .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .card--person { grid-template-columns: 13rem 1fr; gap: 1.5rem; }
  .card--person .card__pic img { aspect-ratio: 4 / 5; }
}

/* Options inside a card (golf courses) */
.opts { margin-top: .6rem; border-top: 1px solid var(--hairline); }
.opt { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hairline); align-items: start; }
.opt img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 8px; }
.opt__name { font-family: var(--font-display); font-weight: 460; font-size: 1.25rem; line-height: 1.1; }
.opt__line { margin-top: .3rem; font-size: .84rem; color: var(--ink-2); }
.opt__meta { margin-top: .25rem; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.opt .card__actions { margin-top: .6rem; }

/* ---------- Areas (eat) ---------- */
.areas { display: flex; gap: .4rem; margin: 1.6rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) .3rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.areas::-webkit-scrollbar { display: none; }
.area-btn { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 12px; padding: .6rem .9rem .55rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.area-btn b { font-family: var(--font-display); font-weight: 460; font-size: 1.05rem; line-height: 1.1; }
.area-btn small { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.area-btn[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.area-btn[aria-selected="true"] small { color: rgba(247,246,243,.6); }
.area { display: none; margin-top: 1.8rem; }
.area.is-on { display: block; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.area__head { display: grid; gap: .2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--hairline); }
.area__name { font-family: var(--font-display); font-weight: 460; font-style: italic; font-size: 2rem; line-height: 1; }
.area__blurb { margin-top: .6rem; max-width: var(--measure); font-size: .9rem; color: var(--ink-2); }
.area .cards { margin-top: 1.6rem; }

/* ---------- Essentials ---------- */
.ess { margin-top: 1.6rem; border-top: 1px solid var(--hairline); }
.ess__row { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--hairline); }
.ess__k { font-family: var(--font-display); font-weight: 460; font-size: 1.2rem; line-height: 1.2; }
.ess__v { grid-column: 1; font-size: .84rem; color: var(--ink-2); }
.ess__a { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.ess__row--alarm .ess__k { color: #B3261E; }

/* ---------- Footer ---------- */
.foot { padding: 2.5rem var(--gutter) 2rem; text-align: center; font-family: var(--font-mono); font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); line-height: 2.2; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Booking sheet: the one ink surface ---------- */
.bk { border: 0; padding: 0; margin: auto; width: min(100vw - 2rem, 30rem); max-height: calc(100dvh - 2rem); border-radius: var(--radius-card); overflow: auto; }
.bk::backdrop { background: rgba(22,21,19,.6); backdrop-filter: blur(6px); }
.bk__form { position: relative; padding: 2.2rem 1.6rem 1.8rem; }
@media (min-width: 640px) { .bk__form { padding: 2.6rem 2.4rem 2.2rem; } }
.bk__close { position: absolute; top: .9rem; right: .9rem; background: transparent; border: 0; padding: .4rem; opacity: .65; cursor: pointer; line-height: 0; color: var(--paper); }
.bk__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.bk__title { font-size: 2rem; margin-top: .5rem; }
.bk__q { margin-top: 1.5rem; }
.bk__q > span { display: block; margin-bottom: .55rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font-family: var(--font-body); font-size: .78rem; font-weight: 500; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--hairline-on-ink); background: transparent; color: var(--paper); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.chip:hover, .chip:focus-visible { border-color: var(--paper); outline: 0; }
.chip[aria-checked="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.count { display: inline-flex; align-items: center; border: 1px solid var(--hairline-on-ink); border-radius: 999px; }
.count button { background: transparent; border: 0; width: 2.6rem; height: 2.3rem; cursor: pointer; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--paper); }
.count output { min-width: 2.4rem; text-align: center; font-family: var(--font-display); font-size: 1.4rem; }
.bk__preview { margin-top: 1.5rem; padding: 1rem 1.1rem; border-left: 2px solid var(--accent); font-size: .86rem; line-height: 1.7; color: rgba(247,246,243,.85); background: rgba(247,246,243,.05); border-radius: 0 8px 8px 0; }
.bk__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.bk__hint { margin-top: 1rem; font-size: .76rem; line-height: 1.65; color: rgba(247,246,243,.5); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 1.2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 1rem); z-index: 60; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 500; padding: .7em 1.2em; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media print {
  .top, .bar, .share, .toast, .bk, .areas { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  main { padding-top: 1rem; }
  .row { display: block; } .row summary::after { display: none; }
  .area { display: block !important; }
}
