/* San Marco Family House — version D, round 2: one container, one heading pattern, rounded everything.
   Pale Venetian plaster ground, deep sage ink, client colours sage #616c5d and apricot #d8a27b. Newsreader, self-hosted. */

@font-face { font-family: 'Newsreader Display'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/newsreader-display-300.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-text-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/newsreader-text-500.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #ecebe6;          /* Venetian plaster */
  --surface: #e2e1da;
  --paper: #f3f4f0;
  --ink: #2a3128;
  --muted: #4e5849;
  --sage: #616c5d;        /* client */
  --on-sage: #f3f3ef;
  --accent: #d8a27b;      /* client */
  --accent-hover: #cf9469;
  --accent-ink: #2a3128;
  --wa: #075e54;          /* WhatsApp brand dark green */
  --wa-hover: #0a7468;
  --wa-glyph: #25d366;    /* WhatsApp brand green */

  --f-display: 'Newsreader Display', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-text: 'Newsreader Text', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --s-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.9rem);
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --s-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  --s-head: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);
  --s-display: clamp(3rem, 1.6rem + 5.8vw, 6.5rem);

  --m: clamp(20px, 5vw, 72px);           /* page margin */
  --wrap: 1280px;                         /* every section shares this width and left edge */
  --gap: clamp(16px, 2.4vw, 32px);
  --section: clamp(88px, 10vw, 152px);
  --r: clamp(14px, 0.9vw + 8px, 22px);    /* photos, cards, map */
  --r-sm: 12px;                           /* thumbnails, inputs, rows */
  --r-frame: clamp(18px, 1.6vw + 8px, 30px); /* hero and footer panels */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-text); font-size: var(--s-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
figure, h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { text-wrap: pretty; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 90; background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; border-radius: 999px; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico--s { width: 14px; height: 14px; }

/* ---------- system: container, section, heading block, media ---------- */
.wrap { width: min(100% - 2 * var(--m), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section) 0; }
.head { font-family: var(--f-display); font-weight: 300; font-size: var(--s-head); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.sh { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sh__p, .lead { font-size: var(--s-lead); line-height: 1.45; max-width: 44ch; }
.media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: var(--s-small); font-weight: 500; line-height: 1.2; }

.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.06em; transition: text-decoration-color 180ms ease; }
.link--u { text-decoration-color: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  font: 500 var(--s-small)/1 var(--f-text); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; border: 0; border-radius: 999px; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa .ico { color: var(--wa-glyph); width: 22px; height: 22px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--wide { width: 100%; min-height: 54px; font-size: var(--s-body); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .btn--wa:hover { background: var(--wa-hover); }
  .btn--accent:hover { background: var(--accent-hover); }
  .btn--ink:hover { background: #3a4337; }
  .btn--ghost:hover { background: #fbfbf9; }
  .btn--accent:hover .ico { transform: translateX(3px); }
}
.btn--accent .ico { transition: transform 200ms var(--ease-out); }

/* reveal once; anything already on screen is shown at once by the script */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 760ms var(--ease-out) var(--d, 0ms), transform 860ms var(--ease-out) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- language menu ---------- */
.lang { position: relative; }
.lang__btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-left: -12px; border-radius: 999px; cursor: pointer; font-size: var(--s-small); font-weight: 500; }
.lang__btn::-webkit-details-marker { display: none; }
.lang[open] .lang__btn { background: var(--surface); }
.flag { width: 21px; height: 14px; border-radius: 2px; flex: none; }
.lang__menu { position: absolute; top: calc(100% + 6px); left: -12px; z-index: 40; min-width: 200px; padding: 6px; background: var(--paper); border-radius: 14px; }
.lang__item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-size: var(--s-small); }
.lang__item[aria-current='page'] { background: var(--surface); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .lang__item:hover { background: var(--surface); } }
@media (prefers-reduced-motion: no-preference) { .lang[open] .lang__menu { animation: menu-in 200ms var(--ease-out); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* ---------- hero: the living room as a full photograph in a rounded frame ---------- */
.hero { padding: 12px; }
.hero__frame { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; height: calc(100svh - 24px); min-height: 600px; max-height: 1000px; border-radius: var(--r-frame); overflow: hidden; background: #3b3530; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__frame::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(14, 17, 13, 0.5) 0%, rgba(14, 17, 13, 0.22) 42%, rgba(14, 17, 13, 0) 66%), linear-gradient(180deg, rgba(14, 17, 13, 0.5) 0%, rgba(14, 17, 13, 0) 20%, rgba(14, 17, 13, 0.08) 36%, rgba(14, 17, 13, 0.6) 66%, rgba(14, 17, 13, 0.82) 100%); } /* taste-skill-ignore: legibility scrim over the photograph */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(14px, 1.6vw, 22px) clamp(18px, 3vw, 40px); font-size: var(--s-small); }
.nav__left { display: flex; align-items: center; gap: 22px; }
.nav__l { font-weight: 500; text-decoration: none; }
.nav__mark { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 500; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .nav__l:hover { text-decoration: underline; text-underline-offset: 0.22em; } }
.hero .lang__btn { color: #fff; }
.hero .lang[open] .lang__btn { background: rgba(255, 255, 255, 0.16); }
.hero .lang__menu { color: var(--ink); }
.hero :focus-visible { outline-color: #fff; }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 760px; padding: 0 clamp(22px, 4vw, 64px) clamp(26px, 4vw, 60px); }
.hero__title { font-family: var(--f-display); font-weight: 300; font-size: var(--s-display); line-height: 0.96; letter-spacing: -0.03em; }
.hero__line { display: block; white-space: nowrap; }
.hero__lead { font-size: var(--s-lead); line-height: 1.45; max-width: 40ch; color: rgba(255, 255, 255, 0.94); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__facts dd { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: var(--s-small); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__actions .btn { min-height: 54px; padding: 0 26px; font-size: var(--s-body); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-load] > * { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease-out) forwards; }
  .js .hero [data-load] > :nth-child(2) { animation-delay: 90ms; }
  .js .hero [data-load] > :nth-child(3) { animation-delay: 160ms; }
  .js .hero [data-load] > :nth-child(4) { animation-delay: 230ms; }
  .js .hero__bg img { animation: settle 1600ms var(--ease-expo) both; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }

/* ---------- intro: text and one photograph, top-aligned ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.intro__text { display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.intro__text .head { margin-bottom: 4px; }
.intro__tel .link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.intro__photo { aspect-ratio: 4 / 5; }

/* ---------- rooms: four photographs on one grid, then the details ---------- */
.rooms__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 21vw, 300px)); gap: 12px; }
.rooms__p--1 { grid-row: 1 / 3; }
.rooms__p--4 { grid-column: 2 / 4; }
.rooms__info { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.rooms__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--gap); }
.rooms__list dt, .amen__h { font-family: var(--f-display); font-weight: 300; font-size: var(--s-lead); line-height: 1.15; }
.rooms__list dd { margin-top: 6px; }
.amen__h { margin-bottom: 12px; }
.amen ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px var(--gap); }

/* ---------- gallery: justified rows with rounded thumbnails ---------- */
.gallery { --rh: 220px; }
.gallery__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); cursor: pointer; font-size: var(--s-small); font-weight: 500; transition: background-color 180ms ease; }
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-on { background: var(--accent); color: var(--accent-ink); }
.chip.is-on span { color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .chip:not(.is-on):hover { background: #d8d7cf; } }
/* every photo in a row shares one height, rows end flush on both sides */
.sheet { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet__i { flex: var(--r) 1 calc(var(--r) * var(--rh)); min-width: 0; }
.sheet__i[hidden] { display: none; }
.sheet__b { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-sm); background: var(--surface); cursor: zoom-in; overflow: hidden; isolation: isolate; }
.sheet__b img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sheet__b:hover img { transform: scale(1.03); } }
@media (prefers-reduced-motion: no-preference) { .sheet.is-filtering .sheet__i { animation: sheet-in 420ms var(--ease-out) both; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); } }
/* the last row closes on a colour field that asks for dates, never on a hole */
.sheet__end { flex: 999 1 280px; min-height: var(--rh); display: flex; border-radius: var(--r-sm); background: var(--sage); color: var(--on-sage); }
.sheet__cta { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: inherit; font-family: var(--f-display); font-size: var(--s-lead); line-height: 1.15; text-decoration: none; }
.sheet__cta .ico { width: 24px; height: 24px; flex: none; transition: transform 200ms var(--ease-out); }
.sheet__cta:focus-visible { outline-color: var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .sheet__cta:hover .ico { transform: translateX(4px); } }

/* lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #11150f; color: #f3f3ef; overscroll-behavior: contain; }
.lb::backdrop { background: #11150f; }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 64px 72px 8px; min-height: 0; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity 220ms ease, transform 260ms var(--ease-out); }
.lb__stage.is-loading img { opacity: 0.35; }
.lb__cap { padding: 12px 72px 20px; text-align: center; font-size: var(--s-small); }
.lb__count { color: #b9bdb3; margin-left: 8px; font-variant-numeric: tabular-nums; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(243, 243, 239, 0.12); color: #f3f3ef; cursor: pointer; transition: background-color 180ms ease; }
.lb__btn:focus-visible { outline-color: #f3f3ef; }
@media (hover: hover) and (pointer: fine) { .lb__btn:hover { background: rgba(243, 243, 239, 0.24); } }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- near: sticky map beside the list ---------- */
.near__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.near__map { position: sticky; top: 16px; height: min(78svh, 760px); min-height: 480px; border-radius: var(--r); overflow: hidden; background: #dcdcd3; isolation: isolate; }
.map { position: absolute; inset: 0; background: #dcdcd3; }
.pois { display: flex; flex-direction: column; gap: 4px; }
.pois__i { scroll-margin-top: 18svh; }
.poi { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name time' 'cat time'; column-gap: 16px; align-items: center; padding: 12px 16px; min-height: 64px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; cursor: pointer; transition: background-color 200ms ease; }
.poi__name { grid-area: name; font-size: var(--s-lead); font-family: var(--f-display); line-height: 1.15; }
.poi__cat { grid-area: cat; font-size: var(--s-small); color: var(--muted); }
.poi__time { grid-area: time; display: inline-flex; align-items: center; gap: 6px; font-size: var(--s-small); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.poi__time .ico { width: 18px; height: 18px; }
.pois__i.is-active .poi { background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .poi:hover { background: var(--surface); } .pois__i.is-active .poi:hover { background: var(--paper); } }
.poi__d { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 320ms var(--ease-out); }
.poi__d > div { overflow: hidden; padding: 0 16px; }
.poi__d p { margin-top: 8px; max-width: 46ch; }
.poi__m { color: var(--muted); font-size: var(--s-small); }
.poi__d .link { display: inline-block; margin: 8px 0 14px; font-size: var(--s-small); font-weight: 500; }
.js .poi__d { grid-template-rows: 0fr; }
.js .pois__i.is-open .poi__d { grid-template-rows: 1fr; }
.js .pois__i:not(.is-open) .poi__d > div { visibility: hidden; transition: visibility 0s 320ms; }

/* map interface (an app fragment: its own borders, shadows and radius) */
[data-ui] .leaflet-container { background: #dcdcd3; font-family: var(--f-text); }
.map__canvas { position: absolute; inset: 0; }
.near__map.has-land .map, [data-ui] .has-land .leaflet-container, .near__map.has-land .leaflet-container { background: #c3cecb; } /* lagoon under the bundled land shapes */
.gmk { position: absolute; display: grid; place-items: center; border: 0; padding: 0; border-radius: 50%; cursor: pointer; font: inherit; }
.gmk.mk-home { margin: -26px 0 0 -26px; cursor: default; }
.gmk.mk-poi { position: absolute; margin: -14px 0 0 -14px; } /* every pin is placed on its own point in the overlay pane; never in the normal flow */
.gmk.mk-poi:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.gmk-chip { position: absolute; pointer-events: none; }
/* Google's logo and terms sit in the bottom corners and must stay visible */
.near__map[data-engine='google'] .card { bottom: 36px; }
.near__map[data-engine='google'] .map__open { bottom: auto; top: 14px; }
[data-ui] .leaflet-tile-pane { filter: grayscale(0.55) sepia(0.18) saturate(0.85) brightness(1.03) contrast(0.94); }
.near__map.is-notiles .map { background: #d9dcd3; }
.map__note { position: absolute; z-index: 500; left: 14px; right: 70px; top: 14px; max-width: 340px; padding: 10px 14px; border-radius: 12px; background: var(--paper); font-size: var(--s-small); line-height: 1.4; }
.card:not([hidden]) ~ .map__note { display: none; }
[data-ui] .leaflet-tooltip { font: 500 var(--s-small)/1.2 var(--f-text); color: var(--ink); background: var(--paper); border: 0; border-radius: 8px; box-shadow: 0 2px 10px rgba(30, 36, 28, 0.18); padding: 6px 10px; }
[data-ui] .leaflet-control-attribution { font-size: 12px; line-height: 1.4; white-space: nowrap; background: rgba(246, 246, 242, 0.85); padding: 2px 8px; border-radius: 8px 0 0 0; }
.map__ctrl { position: absolute; z-index: 500; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 8px; }
.map__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-out); } /* taste-skill-ignore: map interface, inside [data-ui] */
.map__btn:active { transform: scale(0.94); }
@media (pointer: coarse) { .map__btn[data-zoom] { display: none; } }
.map__open { position: absolute; z-index: 500; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-size: var(--s-small); font-weight: 500; text-decoration: none; } /* taste-skill-ignore: map interface, inside [data-ui] */
.leaflet-marker-icon.mk { display: grid; place-items: center; border-radius: 50%; }
.mk-home { width: 52px; height: 52px; background: var(--ink); color: var(--paper); }
.mk-home svg { width: 24px; height: 24px; }
.mk-poi { width: 28px; height: 28px; background: var(--sage); color: var(--paper); transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.mk-poi::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.mk-poi span { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--paper); font-size: var(--s-small); font-weight: 500; color: var(--ink); opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.map.show-labels .mk-poi span, .mk-poi.is-active span { opacity: 1; }
.mk-poi.lbl-left span { left: auto; right: 34px; }
.mk-poi.lbl-below span, .mk-poi.lbl-above span { left: 50%; transform: translateX(calc(-50% + var(--lx, 0px))); }
.mk-poi.lbl-below span { top: 34px; }
.mk-poi.lbl-above span { top: auto; bottom: 34px; }
.mk-poi.is-active { background: var(--accent); color: var(--ink); transform: scale(1.18); z-index: 1000 !important; }
/* pins that would sit on top of another at this zoom shrink to a dot; zoom in and they grow back */
.mk-poi.is-small:not(.is-active) { transform: scale(0.5); }
.mk-poi.is-small:not(.is-active) span { opacity: 0 !important; }
.mk-poi.no-label span { opacity: 0 !important; }
.mk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: var(--s-small); font-weight: 500; white-space: nowrap; box-shadow: 0 4px 14px rgba(30, 36, 28, 0.2); transform: translate(-50%, -50%); } /* taste-skill-ignore: map interface, inside [data-ui] */
.mk-chip svg { width: 18px; height: 18px; }
.card { position: absolute; z-index: 600; left: 14px; bottom: 14px; width: min(520px, calc(100% - 28px)); display: grid; grid-template-columns: 40% 1fr; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 14px 40px rgba(30, 36, 28, 0.24); } /* taste-skill-ignore: map interface, inside [data-ui] */
.card[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .card:not([hidden]) { animation: menu-in 240ms var(--ease-out); } }
.card__media { position: relative; min-height: 172px; background: var(--surface); overflow: hidden; }
.card__media:empty { display: none; }
.card:has(.card__media:empty) { grid-template-columns: 1fr; }
.card:not([hidden]) ~ .map__open { display: none; }
.card__track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.card__track::-webkit-scrollbar { display: none; }
.card__track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.card__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.card__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }
.card__dots span.is-on { background: #fff; }
.card__close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }
.card__close .ico { width: 16px; height: 16px; }
.card__media:empty + .card__close { background: var(--surface); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card__name { font-family: var(--f-display); font-weight: 300; font-size: var(--s-lead); line-height: 1.1; padding-right: 36px; }
.card__cat { color: var(--muted); font-size: var(--s-small); }
.card__desc { font-size: var(--s-small); line-height: 1.45; margin-top: 4px; }
.card__time { font-size: var(--s-small); font-weight: 500; margin-top: 4px; }
.card__dir { font-size: var(--s-small); font-weight: 500; margin-top: 6px; align-self: flex-start; }

/* ---------- arrive: photograph, colour tile and facts on one grid ---------- */
.arrive__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.arrive__photo .media { aspect-ratio: 16 / 10; }
.arrive__note { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: var(--s-small); line-height: 1.55; }
.arrive__side { display: flex; flex-direction: column; gap: var(--gap); }
.arrive__tile { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10%; border-radius: var(--r); background: var(--sage); }
.sign { width: 100%; height: auto; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.facts dt { font-size: var(--s-small); color: var(--muted); }
.facts dd { font-weight: 500; font-variant-numeric: tabular-nums; text-wrap: balance; }

/* ---------- faq: a rounded panel, questions beside a photograph ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: start; padding: clamp(28px, 5vw, 72px); border-radius: var(--r-frame); background: var(--surface); }
.faq__body { display: flex; flex-direction: column; gap: 28px; }
.faq__list { display: flex; flex-direction: column; gap: 8px; }
.acc { border-radius: var(--r-sm); background: var(--paper); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 10px 18px; font-weight: 500; line-height: 1.35; }
.acc summary::-webkit-details-marker { display: none; }
.chev { transition: transform 240ms var(--ease-out); }
.acc[open] .chev { transform: rotate(180deg); }
.acc__a p { padding: 0 18px 16px; max-width: 60ch; }
.faq__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.faq__photo { aspect-ratio: 4 / 5; }

/* ---------- book: photograph and booking card side by side ---------- */
.book { padding-bottom: var(--section); }
.book__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.book__photo { min-height: 560px; }
.book__photo img { object-position: 38% 50%; }
.book__card { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: var(--paper); }
.book__rows { display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.book__rows div { display: flex; justify-content: space-between; gap: 16px; }
.book__rows dt { color: var(--muted); }
.book__rows dd { font-weight: 500; }
.plan { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.plan__guests { display: flex; justify-content: space-between; align-items: center; }
.plan__label { display: block; font-size: var(--s-small); color: var(--muted); margin-bottom: 4px; }
.plan__guests .plan__label { font-size: var(--s-body); color: var(--ink); font-weight: 500; margin: 0; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.stepper__btn:active { transform: scale(0.94); }
.stepper__btn:disabled { opacity: 0.45; cursor: default; }
@media (hover: hover) and (pointer: fine) { .stepper__btn:not(:disabled):hover { background: #d8d7cf; } }
.stepper__n { min-width: 2ch; text-align: center; font-family: var(--f-display); font-size: var(--s-lead); font-variant-numeric: tabular-nums; }
.plan__dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field { min-width: 0; }
.field input { width: 100%; min-width: 0; min-height: 48px; padding: 8px 12px; font: 400 var(--s-small)/1.2 var(--f-text); color: var(--ink); background: var(--surface); border: 0; border-radius: var(--r-sm); }
.plan__sleep { font-size: var(--s-small); color: var(--muted); min-height: 2.6em; }
.plan__alt { font-size: var(--s-small); color: var(--muted); }

/* ---------- footer: the phone number as the headline, in a rounded panel ---------- */
.foot { padding: 0 12px 12px; }
.foot__panel { border-radius: var(--r-frame); background: var(--sage); color: var(--on-sage); padding-block: clamp(40px, 6vw, 88px) 28px; }
.foot ::selection { background: var(--on-sage); color: var(--sage); }
.foot :focus-visible { outline-color: var(--on-sage); }
.foot__inner { display: flex; flex-direction: column; gap: clamp(40px, 7svh, 88px); container-type: inline-size; }
.foot__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: 12px var(--gap); font-size: var(--s-small); align-items: start; }
/* the logo as the footer's headline: its width is 16.47 times its font size, so it is sized from the footer's own width and never wraps */
.foot__logo { align-self: flex-start; font-size: min(5.9vw, 75px); font-size: 5.98cqi; transition: opacity 180ms ease; }
.foot__logo .logo__b::before { width: max(1px, 0.022em); }
@media (hover: hover) and (pointer: fine) { .foot__logo:hover { opacity: 0.88; } }
.foot__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px var(--gap); }
.foot__call { font-size: var(--s-lead); }
.foot__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--paper { background: var(--on-sage); color: var(--sage); }
@media (hover: hover) and (pointer: fine) { .btn--paper:hover { background: #fff; } }
.foot__base { display: flex; flex-direction: column; gap: 16px; }
.foot__meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px; font-size: var(--s-small); }
.foot__made { display: inline-flex; align-items: center; gap: 0.32em; min-height: 32px; }
.foot__heart { flex: none; width: 1.05em; height: 1.05em; fill: #e5484d; }
.foot__privacy { max-width: 120ch; padding-top: 8px; font-size: 12px; line-height: 1.6; text-wrap: pretty; }
.foot__meta p { display: flex; align-items: center; min-height: 32px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 32px; }
.foot__langs, .foot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot__lang { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 32px; }

/* ---------- dock: phone contact bar ---------- */
.dock { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .nav__l { display: none; }
  .gallery { --rh: 170px; }
  .rooms__info { grid-template-columns: minmax(0, 1fr); }
  .near__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- phone ---------- */
@media (max-width: 800px) {
  .hero { padding: 8px; }
  .hero__frame { height: calc(100svh - 16px); min-height: 580px; max-height: 900px; }
  .hero__bg img { object-position: 30% 50%; }
  .hero__frame::before { background: linear-gradient(180deg, rgba(14, 17, 13, 0.5) 0%, rgba(14, 17, 13, 0) 16%, rgba(14, 17, 13, 0.06) 40%, rgba(14, 17, 13, 0.62) 64%, rgba(14, 17, 13, 0.86) 100%); } /* taste-skill-ignore: legibility scrim */
  .nav { padding: 12px 14px; }
  .nav__mark { font-size: var(--s-small); }
  .nav__wa { padding: 0; width: 44px; min-height: 44px; }
  .nav__wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero__content { gap: 16px; padding: 0 20px 22px; }
  .hero__lead { font-size: var(--s-body); }
  .hero__actions { flex-direction: column; align-self: stretch; gap: 10px; margin-top: 4px; }
  .hero__actions .btn { width: 100%; }

  .intro__grid, .arrive__grid, .faq__grid, .book__grid, .near__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__text { max-width: none; }
  .intro__photo { aspect-ratio: 4 / 5; }

  .rooms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 8px; }
  .rooms__p--1 { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .rooms__p--2, .rooms__p--3 { aspect-ratio: 1; }
  .rooms__p--4 { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
  .rooms__list { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  .gallery { --rh: 112px; }
  .sheet { gap: 6px; }
  .sheet__end { flex-basis: 220px; }
  .lb__stage { padding: 60px 8px 8px; }
  .lb__prev, .lb__next { top: auto; bottom: 64px; transform: none; }
  .lb__cap { padding: 12px 64px 24px; }

  .near__map { top: 8px; z-index: 5; height: 44svh; min-height: 300px; }
  .pois__i { scroll-margin-top: calc(44svh + 24px); }
  .poi { min-height: 60px; padding: 12px 14px; }
  .poi__d > div { padding: 0 14px; }
  .map__open { display: none; }
  /* compact place card on the phone map: photo, name, time, directions (the description is in the list below);
     it stays clear of the map provider's logo and attribution along the bottom edge */
  .card, .near__map[data-engine='google'] .card { left: 8px; right: 8px; bottom: 30px; width: auto; grid-template-columns: 108px minmax(0, 1fr); border-radius: 14px; box-shadow: 0 8px 24px rgba(30, 36, 28, 0.22); } /* taste-skill-ignore: map interface, inside [data-ui] */
  .card:has(.card__media:empty), .near__map[data-engine='google'] .card:has(.card__media:empty) { grid-template-columns: minmax(0, 1fr); }
  .card__media { min-height: 108px; }
  .card__dots { bottom: 6px; }
  .card__body { padding: 10px 46px 10px 12px; gap: 1px; justify-content: center; }
  .card__name { font-size: var(--s-body); line-height: 1.2; padding-right: 0; }
  .card__cat, .card__desc { display: none; }
  .card__time { margin-top: 2px; }
  .card__dir { margin-top: 2px; min-height: 28px; display: inline-flex; align-items: center; }
  .card__close { top: 4px; right: 4px; width: 40px; height: 40px; background: transparent; }
  .card__media:empty + .card__close { background: transparent; }

  .arrive__photo .media { aspect-ratio: 4 / 3; }
  .arrive__tile { aspect-ratio: 3 / 2; }

  .faq__grid { padding: 28px 20px; gap: 32px; border-radius: var(--r); }
  .faq__actions .btn { width: 100%; }
  .faq__photo { aspect-ratio: 4 / 3; }

  .book__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .book__card { padding: 24px 20px; }

  .foot { padding: 0 8px 8px; }
  .foot__panel { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r); }
  .foot__top { display: flex; flex-direction: column; }
  .foot__btns { width: 100%; flex-direction: column; }
  .foot__btns .btn { width: 100%; }
  .foot__meta { flex-direction: column; align-items: flex-start; }

  .dock { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px max(12px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px)); background: var(--bg); transform: translateY(110%); transition: transform 300ms var(--ease-out); }
  .dock .btn { flex: 1; min-height: 50px; font-size: var(--s-body); }
  .dock.is-on { transform: none; }
}

/* Logo: single-line lockup (as published in the preview, 2026-10-23 13:18) */
.logo { display: inline-flex; align-items: center; gap: 0.62em; white-space: nowrap; line-height: 1; text-decoration: none; letter-spacing: 0; }
.logo__emblem { flex: none; width: 1.3em; height: 1.55em; margin-top: -0.12em; }
.logo__a { font-family: var(--f-text); font-weight: 500; font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.22em; margin-right: -0.22em; }
.logo__b { display: inline-flex; align-items: center; gap: 0.62em; font-family: var(--f-display); font-weight: 300; font-size: 1.14em; letter-spacing: 0.01em; }
.logo__b::before { content: ""; flex: none; width: 1px; height: 0.95em; background: currentColor; opacity: 0.5; }
.nav__mark.logo { font-size: 15px; letter-spacing: 0; }
@media (max-width: 800px) {
  .nav__mark.logo { font-size: clamp(10.5px, 3.1vw, 14px); gap: 0.5em; }
  .nav__mark.logo .logo__b { gap: 0.5em; }
  .nav__mark.logo .logo__a { letter-spacing: 0.16em; margin-right: -0.16em; }
}
@media (max-width: 560px) {
  .nav .lang__code, .nav .lang__btn > .ico { display: none; }
  .nav__mark.logo { font-size: clamp(10.5px, 3.4vw, 14px); }
}
