/* Fonts are served from this site (no Google request = no visitor IP sent to Google). SIL Open Font License.
   Variable fonts, latin subset (covers Italian, English and the euro sign).
   Bodoni Moda for headings (Giambattista Bodoni was born in Saluzzo, Piedmont), Jost for the text. */
@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/bodoni-moda-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(fonts/bodoni-moda-italic-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/jost-latin.woff2) format('woff2');
}
/* Handwritten script for the greeting in the hero only (one word, large: small script text is hard to read) */
@font-face {
  font-family: 'Pinyon Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/pinyon-script-latin.woff2) format('woff2');
}

/* Dark and quiet, like Turin in the evening: a deep green-black ground, ivory text and one brass accent
   (the colour of the lit domes in the evening photographs). */
:root {
  color-scheme: dark;
  --paper: #111817;
  --card: #1c2725;
  --surface: #0d1312;
  --line: #2c3a38;
  --ink: #ece5d8;
  --ink-2: #b4ad9f;
  --field: #0c1211;
  --field-ink: #ece5d8;
  --field-2: #b4ad9f;
  --signal: #c9a96e;
  --signal-2: #dcc08c;
  --on-signal: #121a19;
  --range: #3a3427;
  --taken: #26322f;
  --input: #10191a;
  --input-line: #34433f;
  --error-bg: #3f1d1a;
  --error-ink: #f2b8b0;
  --radius: 6px;
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --step-script: clamp(3.75rem, 2.9rem + 4.2vw, 7rem);
  --shade: 10 15 14; /* --surface as RGB numbers, for the see-through shade over the hero photos */
  --step-small: 0.8125rem;
  --step-body: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --step-lead: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-head: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  --step-hero: clamp(2rem, 1.55rem + 1.7vw, 3.25rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* class rules like .price { display: grid } must not show hidden elements */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--signal); color: var(--on-signal); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: 0; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step-small); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 24px;
  background: var(--signal); color: var(--on-signal);
  border: 0; border-radius: var(--radius);
  font: 500 .8125rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: var(--signal-2); color: var(--on-signal); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { background: var(--taken); color: var(--ink-2); cursor: not-allowed; transform: none; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--card); color: var(--ink); }
.btn-light { background: var(--signal); color: var(--on-signal); }
.btn-light:hover { background: var(--signal-2); color: var(--on-signal); }
.link-arrow { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.link-arrow::after { content: '↓'; display: inline-block; margin-left: .5em; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateY(3px); }
.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: var(--radius);
  background: var(--taken); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.icon-btn:hover:not(:disabled) { background: var(--range); }
.icon-btn:active:not(:disabled) { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { font: 400 1.25rem/1 var(--serif); letter-spacing: 0; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 28px; font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; color: var(--signal); }
.lang-switch { display: inline-flex; background: var(--taken); border-radius: var(--radius); padding: 4px; }
/* round flags like Booking.com; the chosen language has a gold ring, the other one is dimmed */
.lang-switch button {
  display: inline-flex; border: 0; background: transparent; padding: 6px; border-radius: 50%; cursor: pointer;
  opacity: .55; transition: opacity .15s, transform .12s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button:active { transform: scale(.92); }
.lang-switch img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; display: block; }
.lang-switch button[aria-pressed='true'] { opacity: 1; }
.lang-switch button[aria-pressed='true'] img { box-shadow: 0 0 0 2px var(--signal); }

/* ---------- hero: full-screen slideshow of Turin, the text on a dark shade over the photos ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: max(560px, min(calc(100svh - 72px), 900px));
}
.hero-slides { position: absolute; inset: 0; z-index: -1; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* dark on the left and at the bottom, where the text sits; the photo stays clear on the right */
.hero-slides::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(var(--shade) / .9) 0%, rgb(var(--shade) / .62) 42%, rgb(var(--shade) / .08) 78%),
    linear-gradient(0deg, rgb(var(--shade) / .8) 0%, rgb(var(--shade) / 0) 46%);
}
.hero-text { padding-block: 120px 112px; }
.hero h1 { font-size: var(--step-hero); line-height: 1.1; margin-bottom: .55em; max-width: 13em; }
.hero h1 .script { display: block; font: 400 var(--step-script)/1 var(--script); color: var(--signal-2); margin: 0 0 .08em -.04em; }
.hero h1 .light { font-weight: 400; font-style: italic; color: var(--ink-2); }
.hero .lead { font-size: var(--step-lead); line-height: 1.6; max-width: 34em; color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; }

/* round buttons with a small picture of the previous / next photo, on the left and right edges */
.hero-thumb {
  position: absolute; top: 50%; z-index: 1; width: 76px; height: 76px; padding: 0;
  border: 2px solid rgb(236 229 216 / .75); border-radius: 50%; overflow: hidden;
  background: var(--card); cursor: pointer; transform: translateY(-50%);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); transition: filter .25s var(--ease); }
.hero-thumb::after {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 1.75rem/1 var(--sans); color: var(--ink);
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-prev::after { content: '‹'; }
.hero-next::after { content: '›'; }
.hero-thumb:hover { border-color: var(--signal); transform: translateY(-50%) scale(1.08); }
.hero-thumb:hover img { filter: brightness(.9); }
.hero-thumb:active { transform: translateY(-50%) scale(.96); }
.hero-bar {
  position: absolute; right: 32px; bottom: 32px; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  font-size: var(--step-small); color: var(--ink-2);
}
.hero-caption { text-align: right; }
.hero-count { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--ink); }
.hero-pause {
  width: 44px; height: 44px; border: 1px solid rgb(236 229 216 / .4); border-radius: 50%;
  background: transparent; color: var(--ink); font: 600 .75rem/1 var(--sans); cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.hero-pause::before { content: '❚❚'; letter-spacing: -.1em; }
.hero-pause[aria-pressed='true']::before { content: '▶'; letter-spacing: 0; }
.hero-pause:hover { border-color: var(--signal); }
.hero-pause:active { transform: scale(.94); }
/* Below 1600px the left edge is taken by the text: the round buttons move into the bottom bar */
@media (max-width: 1599px) {
  .hero-thumb { top: auto; bottom: 28px; width: 52px; height: 52px; transform: none; }
  .hero-thumb:hover { transform: scale(1.06); }
  .hero-thumb:active { transform: scale(.96); }
  .hero-prev { left: auto; right: 88px; }
  .hero-next { right: 24px; }
  .hero-thumb::after { font-size: 1.375rem; }
  .hero-bar { right: 156px; bottom: 32px; }
}

/* ---------- sections ---------- */
.section { padding: 112px 16px; }
.section > .container { width: min(1240px, 100%); }
@media (max-width: 900px) { .section { padding-block: 88px; } }
@media (max-width: 600px) { .section { padding-block: 72px; } }
.surface { background: var(--surface); }
/* "field" = a whole section on the darkest ground (form labels also use .field, so only sections and the footer) */
section.field, footer.field { background: var(--field); color: var(--field-ink); }
section.field a:hover, footer.field a:hover { color: var(--field-2); }
.section-head { max-width: 46em; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head h2 { margin: 0 0 .5em; }
.section-head p { margin: 0; line-height: 1.65; color: var(--ink-2); }


/* ---------- apartments ---------- */
/* One card under the other, under the search bar: photo on the left, facts, details on request, price and button */
.apartments { margin-top: clamp(40px, 5vw, 64px); }
.apartments > h3 { font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem); margin: 0 0 .4em; }
.apartments > p { max-width: 46em; margin: 0 0 24px; line-height: 1.65; }
.cards { display: grid; gap: 16px; max-width: 920px; }
.card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--card); border-radius: var(--radius); overflow: hidden; }
/* all the photos of the apartment in one row (gallery.js): swipe, arrows on hover or keys; one photo per screen.
   The row is laid over the box (position: absolute), so the size of the photos never makes the card taller. */
.card-photos { position: relative; min-height: 230px; background: var(--surface); }
.gallery-track { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.gal-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(13, 19, 18, .72); color: var(--ink); cursor: pointer; transition: opacity .2s, background-color .2s; }
.gal-btn:hover { background: rgba(13, 19, 18, .92); }
.gal-btn[hidden] { display: none; }
.gal-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow { position: absolute; top: 50%; margin-top: -20px; opacity: 0; z-index: 1; }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.card-photos:hover .gallery-arrow, .card-photos:focus-within .gallery-arrow { opacity: 1; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; margin: 0; padding: 2px 10px; border-radius: 999px; background: rgba(13, 19, 18, .72); color: var(--ink); font-size: .8125rem; pointer-events: none; }
/* phones and tablets: swipe; the arrows would only hide the photo */
@media (hover: none) { .gallery-arrow { display: none; } }
/* full screen view */
.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: rgba(5, 8, 8, .95); }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; top: 64px; right: 72px; bottom: 56px; left: 72px; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -20px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-count { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: var(--ink-2); font-size: .9375rem; }
body.lb-open { overflow: hidden; }
@media (max-width: 640px) { .lb-stage { right: 0; left: 0; } }
.card-body { display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 2vw, 24px); }
.card h4 { font-size: clamp(1.25rem, 1.15rem + .3vw, 1.5rem); line-height: 1.15; margin: 0 0 12px; }
.card-more { margin: -6px 0 14px; font-size: .9375rem; }
.card-more summary { min-height: 36px; display: inline-flex; align-items: center; cursor: pointer; color: var(--signal); font-weight: 500; }
.card-more summary:hover { color: var(--signal-2); }
.card-more p { color: var(--ink-2); margin: 6px 0 14px; }
.card .card-footer { margin-top: auto; }
.card-price p { margin: 0; }
.unavailable { color: var(--ink-2); font-weight: 500; }
.icon { width: 20px; height: 20px; flex: none; color: var(--signal); }
/* the key facts, with a small symbol each (like Booking) */
.specs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .875rem; }
.specs li, .amenities li { display: flex; align-items: center; gap: 10px; }
.amenities-title { font: 500 .75rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 12px; }
.amenities { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; font-size: .8125rem; }
.amenities .icon { width: 18px; height: 18px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- what is included: every service with its symbol and a short description ---------- */
.services-block { margin-top: clamp(72px, 9vw, 128px); }
.services-block h3 { font-size: clamp(1.375rem, 1.2rem + .5vw, 1.75rem); margin-bottom: 28px; }
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 40px; font-size: .9375rem; }
.services li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 16px; align-items: start; align-content: start; }
.services .icon { width: 24px; height: 24px; grid-row: span 2; }
.services strong { font-weight: 500; }
.services span { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }
.from strong { font: 400 1.5rem/1 var(--serif); }

/* ---------- search bar (like Booking.com): dates, guests, search; each opens a small panel under it ---------- */
.search {
  position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto; gap: 4px;
  max-width: 920px; padding: 4px; background: var(--signal); border-radius: calc(var(--radius) + 2px);
}
.search-part { position: relative; }
.search-btn {
  width: 100%; min-height: 62px; display: flex; flex-direction: column; justify-content: center; gap: 3px;
  padding: 8px 18px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); border: 0; border-radius: var(--radius); font: inherit;
  transition: background-color .15s;
}
.search-btn:hover, .search-btn[aria-expanded="true"] { background: var(--taken); }
.search-label { font-size: var(--step-small); color: var(--ink-2); }
.search-btn strong { font: 400 1.0625rem/1.25 var(--serif); }
.search .search-go { min-height: 62px; padding-inline: 32px; background: var(--surface); color: var(--signal); }
.search .search-go:hover { background: var(--paper); color: var(--signal-2); }
#search-error { max-width: 920px; margin-top: 12px; }
.popover {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 5;
  padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgb(0 0 0 / .45);
}
.dates-pop { width: min(680px, calc(100vw - 32px)); }
.guests-pop { width: 300px; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pop-hint { margin: 0; font-weight: 500; }
.pop-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.cal-nav { display: flex; gap: 8px; }
.popover .error, #today-closed { margin: 12px 0 0; }
.edit-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; color: var(--ink-2); }
.edit-note[hidden] { display: none; }
.stepper { display: grid; grid-template-columns: 1fr 44px 2.5em 44px; align-items: center; gap: 8px; }
.stepper output { text-align: center; font: 400 1.375rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.guests-pop .small { margin: 12px 0 0; }
@media (max-width: 760px) {
  .search { grid-template-columns: 1fr; }
  .search-part { position: static; }
  .popover { left: 0; right: 0; width: auto; }
  .search-btn strong { font-size: 1rem; }
}

/* ---------- booking (calendar in the search bar; the form is page 2, booking.html) ---------- */
.booking-form { background: var(--card); border-radius: var(--radius); padding: 28px; }
@media (max-width: 900px) { .booking-form { padding: 24px; } }
.calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.calendar.loading { opacity: .45; }
.month h4 { font-size: 1.125rem; text-transform: capitalize; min-height: 44px; display: flex; align-items: center; margin: 0 0 8px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.day {
  aspect-ratio: 1; border: 0; border-radius: 4px; background: transparent; color: var(--ink);
  font: 500 .875rem/1 var(--sans); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .12s, transform .12s;
}
.day:hover:not(:disabled) { background: var(--taken); }
.day:active:not(:disabled) { transform: scale(.92); }
.day:disabled { color: #5d6966; cursor: default; }
.day.taken { background: var(--taken); color: var(--ink-2); text-decoration: line-through; }
.day.checkout-only { background: var(--taken); text-decoration: none; color: var(--ink); }
.day.today { color: var(--signal); font-weight: 700; }
.day.in-range { background: var(--range); border-radius: 0; }
.day.start, .day.end { background: var(--signal); color: var(--on-signal); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 18px 0 0; font-size: var(--step-small); color: var(--ink-2); }
.dot { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.dot-free { background: var(--card); box-sizing: border-box; border: 1px solid var(--line); }
.dot-taken { background: var(--taken); }
.dot-selected { background: var(--signal); }
.dot + span { margin-right: 10px; }

.booking-form { display: grid; gap: 12px; }
.dates-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px; }
.dates-edit[hidden] { display: none; }
.dates-edit-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.stay-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stay-summary > div { background: var(--taken); border-radius: var(--radius); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.stay-summary span { font-size: var(--step-small); color: var(--ink-2); }
.stay-summary strong { font: 400 1.125rem/1.2 var(--serif); }
.field { display: grid; gap: 6px; }
.field > span { font-size: .875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 12px;
  background: var(--input); color: var(--ink);
  border: 2px solid var(--input-line); border-radius: var(--radius);
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.price { background: var(--taken); border-radius: var(--radius); padding: 10px 14px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.price .row { display: flex; justify-content: space-between; gap: 12px; }
.price .total { font: 400 1.25rem/1.2 var(--serif); padding-top: 6px; }
/* rate choice (booking page): one box per rate, the chosen one has a coloured border */
.rates { display: grid; gap: 8px; }
.rate { display: flex; gap: 12px; align-items: flex-start; background: var(--taken); border: 2px solid transparent; border-radius: var(--radius); padding: 10px 14px; cursor: pointer; }
.rate:has(input:checked) { border-color: var(--signal); }
.rate input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--signal); flex: none; }
.rate-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rate-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rate-text { font-size: var(--step-small); color: var(--ink-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--signal); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.error { background: var(--error-bg); color: var(--error-ink); border-radius: var(--radius); padding: 12px 14px; margin: 0; font-size: .9375rem; }
/* a wrong field: red border and a red message under it (guests.js check()) */
.field-error { color: var(--error-ink); font-size: .8125rem; font-weight: 500; line-height: 1.35; }
.has-error input:not([type="checkbox"]):not([type="radio"]), .has-error select, .has-error textarea { border-color: var(--error-ink); }
.check.has-error { flex-wrap: wrap; }
.check .field-error { flex-basis: 100%; padding-left: 34px; }
fieldset.has-error > .field-error { display: block; margin-top: 6px; }

/* guest data (booking.html and registration.html) */
.form-step { display: grid; gap: 12px; }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.step-head h2, .step-head h3 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); margin: 0; }
.guest-type { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.guest-type legend { font-size: .875rem; font-weight: 500; padding: 0; margin-bottom: 8px; }
.guest { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; display: grid; gap: 12px; }
.guest legend { font: 400 1.125rem/1.2 var(--serif); padding: 0 6px; }
.guest p { margin: 0; }
.guest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.registration { padding-block: clamp(48px, 7vw, 96px); }
.registration .booking-form { max-width: 760px; margin-inline: auto; }
.registration .stay-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }

/* ---------- location ---------- */
.location { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: start; }
.lead-sm { line-height: 1.65; color: var(--ink-2); }
.table-wrap { margin: 32px 0 16px; }
.routes { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.routes thead th { text-align: left; font-size: var(--step-small); font-weight: 500; color: var(--ink-2); padding: 0 18px 4px; }
.routes tbody th, .routes td { background: var(--card); padding: 18px; vertical-align: top; text-align: left; }
.routes tbody th { font: 400 1.0625rem/1.3 var(--serif); border-radius: var(--radius) 0 0 var(--radius); width: 30%; }
.routes td:nth-child(2) { white-space: nowrap; font-weight: 500; }
.routes td:last-child { border-radius: 0 var(--radius) var(--radius) 0; font-size: .875rem; color: var(--ink-2); }
.photo { margin: 0 0 28px; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption { font-size: var(--step-small); color: var(--ink-2); margin-top: 10px; }
.info-card { background: var(--card); border-radius: var(--radius); padding: 28px; }
.info-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 20px; }
.info-card dt { color: var(--ink-2); font-size: .875rem; }
.info-card dd { margin: 0; font-size: .875rem; }
/* Google map: the frame is added by site.js after the click (Google sets cookies, so nothing loads before) */
.map { position: relative; aspect-ratio: 16 / 10; margin: 8px 0 16px; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.map-pin { width: 40px; height: 40px; color: var(--signal); }
.map-address { font: 400 1.25rem/1.3 var(--serif); margin: 0 0 6px; }
.gmaps { width: 18px; height: 18px; flex: none; vertical-align: -4px; margin-right: 8px; }

/* ---------- nearby: photographs of uneven sizes ---------- */
.places { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 24px; }
.place { grid-column: span 2; }

.place:nth-child(1) { grid-column: span 4; }
.place:nth-child(7) { grid-column: span 4; }
.place img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: var(--card); }
.place:nth-child(1) img, .place:nth-child(7) img { aspect-ratio: 16 / 10; }
.place-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.place-head h3 { margin-bottom: .3em; }
.place-time { font: 500 .8125rem/1 var(--sans); letter-spacing: .04em; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.place p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.faq h2 { position: sticky; top: 104px; }
#faq-list { display: grid; gap: 8px; }
#faq-list details { background: var(--card); border-radius: var(--radius); }
#faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 56px 22px 24px; position: relative;
  font: 400 1.125rem/1.35 var(--serif);
}
#faq-list summary::-webkit-details-marker { display: none; }
#faq-list summary::after {
  content: '+'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font: 400 1.75rem/1 var(--sans); transition: transform .2s var(--ease);
}
#faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
#faq-list summary:hover { color: var(--ink-2); }
#faq-list details p { padding: 0 24px 22px; margin: 0; max-width: 40em; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 112px) 48px; }
.footer-inner { display: grid; gap: 48px 72px; }
.footer-name { font: 400 1.5rem/1.2 var(--serif); margin-bottom: .6em; }
.footer-whatsapp { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 20px 8px 14px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); color: var(--field-ink); transition: background .2s, color .2s, transform .2s; }
.footer-whatsapp svg { width: 24px; height: 24px; }
footer.field .footer-whatsapp:hover { background: var(--signal); color: var(--on-signal); }
.footer-whatsapp:active { transform: scale(.94); }

/* ---------- result and legal pages ---------- */
.result { padding-block: clamp(56px, 8vw, 120px); }
.result .panel { max-width: 640px; background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.result .icon { display: none; }
.result h1 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 24px 0 32px; background: var(--taken); padding: 20px; border-radius: var(--radius); }
.result dt { color: var(--ink-2); }
.result dd { margin: 0; font-weight: 600; }
#manage .btn { margin: 0 12px 12px 0; }
.legal { padding-block: clamp(48px, 7vw, 96px); max-width: 760px; }
.legal h1 { font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem); }
.legal h2 { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); margin-top: 1.6em; }
.legal table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.legal th, .legal td { background: var(--card); padding: 10px 14px; text-align: left; vertical-align: top; }
.narrow { max-width: 760px; }

/* ---------- motion (transform and opacity only) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero h1 { animation: rise .8s var(--ease) .05s both; }
.hero .lead { animation: rise .8s var(--ease) .15s both; }
.hero-actions { animation: rise .8s var(--ease) .25s both; }
.hero-slide.is-active img { animation: drift 8s linear both; }
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease) var(--delay, 0ms), transform .7s var(--ease) var(--delay, 0ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.place img { transition: transform .5s var(--ease); }
.place:hover img { transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .location { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .photo { margin: 0; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-text { padding-block: 96px 120px; }
  .hero-slides::after {
    background: linear-gradient(0deg, rgb(var(--shade) / .92) 0%, rgb(var(--shade) / .7) 55%, rgb(var(--shade) / .25) 100%);
  }
  .section-head, .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place, .place:nth-child(1), .place:nth-child(7) { grid-column: span 1; }
  .place:nth-child(1), .place:nth-child(7) { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  .header-inner { gap: 10px; min-height: 64px; }
  .brand { font-size: 1.0625rem; }
  .site-header .btn-small { padding: 0 14px; }
  .hero { min-height: max(600px, calc(100svh - 64px)); }
  .hero-text { padding-block: 72px 112px; }
  .hero-thumb { bottom: 24px; width: 44px; height: 44px; }
  .hero-prev { right: 68px; }
  .hero-next { right: 16px; }
  .hero-bar { left: 16px; right: 124px; bottom: 24px; gap: 10px; }
  .hero-caption { flex: 1; text-align: left; line-height: 1.35; }
  .calendar { grid-template-columns: 1fr; }
  .calendar .month + .month { display: none; }
  .location-side { grid-template-columns: 1fr; }
  .services, .amenities { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .card-photos { min-height: 0; aspect-ratio: 3 / 2; }
  .places { grid-template-columns: 1fr; }
  .place, .place:nth-child(1), .place:nth-child(7) { grid-column: auto; }
  .routes, .routes tbody, .routes tr, .routes th, .routes td { display: block; width: auto; }
  .routes thead { display: none; }
  .routes tr { margin-bottom: 8px; }
  .routes tbody th { border-radius: var(--radius) var(--radius) 0 0; padding-bottom: 4px; width: auto; }
  .routes td { padding-top: 6px; }
  .routes td:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .routes td:nth-child(2) { white-space: normal; }
}
