/* Bonsdorff Villas — pure CSS, no JavaScript (except the maps) */

:root {
  --bg: #f4f0e9;
  --paper: #fbf9f5;
  --ink: #1a1917;
  --body: #3d3934;
  --muted: #6a645b;
  --line: rgba(26, 25, 23, 0.14);
  --accent: #86663c;
  --accent-light: #d2b384;
  --dark: #141311;
  --booked: #d8ccb8;
  --booked-ink: #8b7f6b;
  --on-dark: #f6f2eb;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1320px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: var(--head-weight, 400);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
h1 em, h2 em, h3 em { font-style: italic; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 6.5vw, 5.5rem); }
.section--flush-top { padding-top: 0; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.9rem;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { color: var(--on-dark); }
.btn--light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
}
.link-arrow::after { content: "\2192"; transition: transform 0.3s ease; }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--on-dark);
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(10, 9, 8, 0.7) 0%, rgba(10, 9, 8, 0.35) 65%, rgba(10, 9, 8, 0) 100%);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.site-header .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.6rem;
  padding-block: 1.35rem 1.5rem;
}
/* thin gold rule under the header, fading out at the edges */
.site-header .wrap::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(210, 179, 132, 0), rgba(210, 179, 132, 0.75) 20%, rgba(210, 179, 132, 0.75) 80%, rgba(210, 179, 132, 0));
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
  color: inherit;
}
.site-header .brand { justify-self: center; }
.brand__crown {
  width: clamp(2.6rem, 3.4vw, 3.4rem);
  height: auto;
  color: var(--accent-light);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s ease;
}
.brand:hover .brand__crown { transform: translateY(-3px); }
.brand__name { white-space: nowrap; }
.brand em { font-style: italic; font-weight: 400; }
.brand__since {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.brand__since::before,
.brand__since::after { content: ""; width: 1.3rem; height: 1px; background: currentColor; opacity: 0.8; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.nav--left { justify-self: start; }
.nav--right { justify-self: end; }
.nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { border-color: var(--accent-light); }
.nav a.nav__cta {
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(246, 242, 235, 0.7);
  background: rgba(14, 13, 12, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-shadow: none;
}
.nav a.nav__cta:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* Footer variant of the brand sits left-aligned */
.site-footer .brand { font-size: 1.6rem; }
.site-footer .brand__crown { width: 2.6rem; filter: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  background: var(--dark);
  overflow: hidden;
}
.hero--short { min-height: clamp(26rem, 68vh, 44rem); }

/* Home hero: a slow crossfade through the collection. Eight slides, 6s each
   (a 1.2s fade); each one fades in on top, then sits underneath while the
   next fades in. */
.hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slides .hero__img { opacity: 0; animation: hero-slide 48s linear infinite; }
.hero__slides .hero__img:nth-child(1) { opacity: 1; animation-delay: -1.2s; }
.hero__slides .hero__img:nth-child(2) { animation-delay: 4.8s; }
.hero__slides .hero__img:nth-child(3) { animation-delay: 10.8s; }
.hero__slides .hero__img:nth-child(4) { animation-delay: 16.8s; }
.hero__slides .hero__img:nth-child(5) { animation-delay: 22.8s; }
.hero__slides .hero__img:nth-child(6) { animation-delay: 28.8s; }
.hero__slides .hero__img:nth-child(7) { animation-delay: 34.8s; }
.hero__slides .hero__img:nth-child(8) { animation-delay: 40.8s; }
@keyframes hero-slide {
  0% { opacity: 0; z-index: 2; }
  2.5% { opacity: 1; }
  12.49% { z-index: 2; }
  12.5% { z-index: 1; }
  15% { opacity: 1; }
  15.01% { opacity: 0; }
  100% { opacity: 0; z-index: 1; }
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.45) 35%, rgba(10, 9, 8, 0.05) 70%),
    linear-gradient(to right, rgba(10, 9, 8, 0.4) 0%, rgba(10, 9, 8, 0) 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 9rem clamp(3rem, 8vh, 6rem);
  animation: rise 0.9s 0.1s ease-out both;
}
.hero .eyebrow { color: var(--accent-light); }
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(3rem, 7.5vw, 7rem);
  max-width: 13ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
/* the homepage title: the gold words on a line of their own */
.hero__title em { display: block; }
.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--on-dark);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}
.crumbs {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--accent-light);
}
.crumbs a { text-decoration: none; color: var(--on-dark); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Category entry points on the home hero */
.hero__cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  max-width: 44rem;
  background: rgba(246, 242, 235, 0.25);
  border: 1px solid rgba(246, 242, 235, 0.25);
}
.hero__cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.6rem;
  text-decoration: none;
  background: rgba(14, 13, 12, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.hero__cats a:hover { background: var(--on-dark); color: var(--ink); }
.hero__cats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.hero__cats small { display: block; font-size: 0.8rem; opacity: 0.85; margin-top: 0.25rem; }
.hero__cats a::after { content: "\2192"; font-size: 1.3rem; transition: transform 0.3s ease; }
.hero__cats a:hover::after { transform: translateX(5px); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.intro h2,
.section-title { font-size: clamp(2.4rem, 4.8vw, 4rem); }
.intro h2 em,
.section-title em { color: var(--accent); }
.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.intro__body { max-width: 40rem; }

/* ---------- Home: story ---------- */

.story { overflow: hidden; }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.story__ornament { display: block; width: 3rem; height: auto; color: var(--accent); margin-bottom: 1.5rem; }
.story h2 { font-size: clamp(2.6rem, 5vw, 4.4rem); margin-bottom: 1.75rem; }
.story h2 em { color: var(--accent); }
.story__text > p:not(.eyebrow):not(.lead) { max-width: 36rem; }

.story__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0 2.25rem;
  border-block: 1px solid var(--line);
}
.story__stats div { padding: 1.4rem 1rem 1.4rem 0; }
.story__stats div + div { padding-left: clamp(0.9rem, 2vw, 1.5rem); border-left: 1px solid var(--line); }
.story__stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  color: var(--ink);
}
.story__stats span { display: block; margin-top: 0.6rem; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

.story__media {
  position: relative;
  isolation: isolate;
  padding-bottom: 16%;
}
/* sand block behind the photos */
.story__media::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 9%;
  bottom: 24%;
  left: 34%;
  right: 0;
  background: #e6dac6;
}
.story__media figure { margin: 0; }
.story__media .story__main {
  position: relative;
  width: 70%;
  margin-left: 16%;
}
.story__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* thin gold frame offset from the main photo */
.story__main::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.1rem 1.1rem 1.1rem -1.1rem;
  border: 1px solid var(--accent);
}
.story__inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  border: clamp(6px, 0.8vw, 10px) solid var(--bg);
  box-shadow: 0 30px 50px -30px rgba(26, 25, 23, 0.55);
}
.story__inset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__caption {
  position: absolute;
  right: 0;
  bottom: 3%;
  margin: 0;
  max-width: 45%;
  text-align: right;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Collection: tabs + cards ---------- */

.collection-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

/* CSS-only tabs: radio inputs drive which cards are shown */
.tabs-input { position: absolute; opacity: 0; pointer-events: none; }
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  overflow-x: auto;
}
.tabs label {
  cursor: pointer;
  padding: 0.9rem 0;
  margin-right: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: -1px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.tabs label:hover { color: var(--ink); }
.tabs label span { font-weight: 500; color: var(--accent); margin-left: 0.35rem; }

#tab-all:checked ~ .tabs [for="tab-all"],
#tab-villas:checked ~ .tabs [for="tab-villas"],
#tab-apartments:checked ~ .tabs [for="tab-apartments"] { color: var(--ink); border-color: var(--ink); }

#tab-all:focus-visible ~ .tabs [for="tab-all"],
#tab-villas:focus-visible ~ .tabs [for="tab-villas"],
#tab-apartments:focus-visible ~ .tabs [for="tab-apartments"] { outline: 2px solid var(--accent); outline-offset: 4px; }

#tab-villas:checked ~ .cards .card:not([data-type="villa"]),
#tab-apartments:checked ~ .cards .card:not([data-type="apartment"]) { display: none; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: clamp(2rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
.card { text-decoration: none; display: block; animation: rise 0.5s ease-out both; }
.card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d9d3c8;
  margin-bottom: 1.4rem;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.035); }
.card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(251, 249, 245, 0.94);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card__place {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.card h3 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 0.6rem; }
.bed-icon { width: 1.15rem; height: 1.15rem; flex: none; }
.card__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.card__meta .bed-icon { color: var(--accent); }

/* Bed filter on listing pages — radio inputs drive which cards show */
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.filter label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--body);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.filter label:hover { border-color: var(--ink); color: var(--ink); }
.filter label span { font-size: 0.75rem; color: var(--muted); }
.filter label.filter__reset { border-color: transparent; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
#beds-any:checked ~ .filter .filter__reset { display: none; }

#beds-xs:checked ~ .filter [for="beds-xs"],
#beds-s:checked ~ .filter [for="beds-s"],
#beds-l:checked ~ .filter [for="beds-l"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
#beds-xs:checked ~ .filter [for="beds-xs"] span,
#beds-s:checked ~ .filter [for="beds-s"] span,
#beds-l:checked ~ .filter [for="beds-l"] span { color: var(--accent-light); }

#beds-any:focus-visible ~ .filter [for="beds-any"],
#beds-xs:focus-visible ~ .filter [for="beds-xs"],
#beds-s:focus-visible ~ .filter [for="beds-s"],
#beds-l:focus-visible ~ .filter [for="beds-l"] { outline: 2px solid var(--accent); outline-offset: 3px; }

#beds-xs:checked ~ .cards .card:not([data-beds="xs"]),
#beds-s:checked ~ .cards .card:not([data-beds="s"]),
#beds-l:checked ~ .cards .card:not([data-beds="l"]) { display: none; }

.filter-empty { display: none; max-width: 36rem; padding: 2rem 0; font-size: 1.05rem; }
.filter-empty a { color: var(--accent); }
#beds-xs:checked ~ .filter-empty--xs,
#beds-s:checked ~ .filter-empty--s,
#beds-l:checked ~ .filter-empty--l { display: block; }
.card__text { max-width: 34rem; margin-bottom: 1.25rem; }

/* ---------- Full-bleed image & splits ---------- */

.bleed {
  position: relative;
  margin: 0;
  height: clamp(22rem, 78vh, 54rem);
  overflow: hidden;
  background: #d9d3c8;
}
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed--short { height: clamp(12rem, 39vh, 27rem); }
.bleed figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 1.5rem;
  padding: 0.45rem 0.9rem;
  background: rgba(14, 13, 12, 0.55);
  color: var(--on-dark);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}
.split img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.split--offset > :nth-child(2) { margin-top: clamp(3rem, 10vw, 9rem); }

/* sand-coloured frame around each photo in the pair, as behind the home page story photos */
.split--offset img {
  padding: clamp(0.6rem, 1.3vw, 1.1rem);
  background: #e6dac6;
}

/* ---------- Ethos (home) ---------- */

.dark { background: var(--dark); color: rgba(246, 242, 235, 0.82); }
.dark h2,
.dark h3 { color: var(--on-dark); }
.dark .eyebrow { color: var(--accent-light); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}
.pillar { border-top: 1px solid rgba(246, 242, 235, 0.25); padding-top: 2rem; }
.pillar h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 0.9rem; }

.statement {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.2;
  max-width: 22ch;
  color: var(--on-dark);
}
.statement em { color: var(--accent-light); }

/* ---------- Property page: details ---------- */

.details {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.details h2 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); margin-bottom: 2rem; }
.details h2 em { color: var(--accent); }

/* the facts and the availability button stay in view together */
.details aside { position: sticky; top: 2rem; }
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.25rem;
}
.facts dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.5; }
.facts + .btn { margin-top: 2.25rem; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}
.feature h3 {
  font-size: clamp(1.5rem, 2.1vw, 1.8rem);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.feature ul { list-style: none; margin: 0; padding: 0; }
.feature li { padding-block: 0.35rem; padding-left: 1.6rem; position: relative; }
.feature li::before { content: "\2014"; color: var(--accent); position: absolute; left: 0; }

/* ---------- Gallery ---------- */

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.gallery-head p { color: var(--muted); margin: 0; }

.gallery {
  columns: 3 18rem;
  column-gap: clamp(0.75rem, 1.3vw, 1.25rem);
}
.gallery a {
  display: block;
  margin-bottom: clamp(0.75rem, 1.3vw, 1.25rem);
  overflow: hidden;
  break-inside: avoid;
  background: #d9d3c8;
  cursor: zoom-in;
}
.gallery img { width: 100%; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery a:hover img { transform: scale(1.03); }

/* Lightbox — driven by :target, no script */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0c0b0a;
  overscroll-behavior: contain;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1rem, 6vw, 6rem);
}
/* the dark backdrop appears at once (fading it let the page flash through); only the photo fades */
.lightbox:target { display: flex; }
.lightbox:target img { animation: fade 0.3s ease both; }
/* keep the page still behind an open photo */
html:has(.lightbox:target) { overflow: hidden; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__close { top: calc(0.5rem + env(safe-area-inset-top, 0px)); right: 0.75rem; }
.lightbox__prev,
.lightbox__next { top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 2.6rem; letter-spacing: 0; line-height: 1; }
.lightbox__prev { left: 0.25rem; }
.lightbox__next { right: 0.25rem; }
.lightbox__count {
  position: absolute;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(246, 242, 235, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Availability ---------- */

.availability { background: var(--paper); border-block: 1px solid var(--line); }
.avail-note { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.pill {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.avail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 0.55rem; }
.sw { display: inline-block; width: 1.05rem; height: 1.05rem; border: 1px solid var(--line); }
.sw--free { background: #fff; }
.sw--booked { background: var(--booked); border-color: var(--booked); }
.sw--change { background: linear-gradient(135deg, #fff 50%, var(--booked) 50%); }
.sw--sat { background: #fff; box-shadow: inset 0 -3px 0 var(--accent); }

.months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.5rem) / 3);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.months:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.month { scroll-snap-align: start; }
.month h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}
.month h3 span { color: var(--muted); font-style: italic; }
.month table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.month th {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.35rem;
}
.d {
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding: 0.62rem 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(26, 25, 23, 0.07);
}
.d--sat { box-shadow: inset 0 -3px 0 var(--accent); }
.d--past { background: transparent; color: rgba(26, 25, 23, 0.25); border-color: transparent; box-shadow: none; }
.d--booked { background: var(--booked); color: var(--booked-ink); border-color: var(--booked); text-decoration: line-through; text-decoration-color: rgba(139, 127, 107, 0.5); }
.d--in { background: linear-gradient(135deg, #fff 50%, var(--booked) 50%); }
.d--out { background: linear-gradient(135deg, var(--booked) 50%, #fff 50%); }
.avail__hint { margin-top: 0.5rem; font-size: 0.8rem; color: var(--muted); }

.enquire {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(26, 25, 23, 0.45);
}
.enquire h3 { font-size: 1.7rem; }
.enquire > p { margin: 0; font-size: 0.92rem; }
.enquire__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.enquire label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.enquire label small { font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--muted); }
.enquire input,
.enquire select,
.enquire textarea {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(26, 25, 23, 0.2);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  -webkit-appearance: none;
  appearance: none;
}
.enquire select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}
.enquire textarea { resize: vertical; }
.enquire input:focus,
.enquire select:focus,
.enquire textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.btn--solid { justify-content: center; background: var(--ink); color: var(--paper); border-color: var(--ink); cursor: pointer; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.enquire__fine { font-size: 0.8rem !important; color: var(--muted); }

/* ---------- Enquiry / CTA ---------- */

.cta {
  position: relative;
  color: var(--on-dark);
  background: var(--dark);
  overflow: hidden;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.cta .wrap { position: relative; padding-block: clamp(4rem, 8vw, 6.5rem); }
.cta .eyebrow { color: var(--accent-light); }
.cta__host { margin: 0 auto 1.75rem; display: grid; justify-items: center; gap: 0.7rem; }
.cta__host img {
  width: clamp(6rem, 11vw, 7.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  box-shadow: 0 0 0 6px rgba(246, 242, 235, 0.08);
}
.cta__host figcaption { display: grid; gap: 0.15rem; }
.cta__host strong { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.25rem; color: var(--on-dark); }
.cta__host span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-light); }
.cta h2 { color: var(--on-dark); font-size: clamp(2.4rem, 5.5vw, 4.6rem); max-width: 16ch; margin: 0 auto 1.5rem; }
.cta p { max-width: 36rem; margin: 0 auto 2.25rem; color: var(--on-dark); }
.cta__mail {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-style: italic;
  margin-bottom: 2.25rem;
  word-break: break-word;
}

/* ---------- More homes ---------- */

.next {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.next a {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(18rem, 38vw, 28rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--on-dark);
  text-decoration: none;
  overflow: hidden;
  background: var(--dark);
}
.next img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.next a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.8) 0%, rgba(10, 9, 8, 0.15) 60%);
}
.next a:hover img { transform: scale(1.04); }
.next span { position: relative; z-index: 1; }
.next small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--accent-light);
}
.next strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: rgba(246, 242, 235, 0.78);
  font-size: 0.95rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  border-top: 1px solid rgba(246, 242, 235, 0.12);
}
.site-footer .brand { color: var(--on-dark); margin-bottom: 1rem; }
.site-footer h4 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.25rem; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; transition: color 0.3s ease; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer .legal {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: rgba(246, 242, 235, 0.55);
  padding-top: 2rem;
  border-top: 1px solid rgba(246, 242, 235, 0.12);
}

/* ---------- Map ---------- */

/* No photo hero here: the header sits on a solid bar and the map takes the screen */
.site-header--solid { position: relative; background: var(--dark); }

.mapview {
  position: relative;
  /* the screen, less the header and a strip to scroll on */
  height: max(30rem, calc(100svh - 8.15rem - 3rem));
  background: #e9e2d5;
  overflow: hidden;
}

/* Title panel over the map; the selected home's card takes its place */
.map-intro {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 2.5vw, 2rem);
  left: var(--gutter);
  width: min(23rem, calc(100% - 2 * var(--gutter)));
  padding: 1.5rem 1.6rem 1.6rem;
  background: rgba(251, 249, 245, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px rgba(20, 19, 17, 0.14);
}
.map-intro[hidden] { display: none; }
.map-intro .eyebrow { margin-bottom: 0.7rem; }
.map-intro h1 { font-size: clamp(2rem, 3vw, 2.7rem); margin-bottom: 0.7rem; }
.map-intro h1 em { color: var(--accent); }
.map-intro p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.map-intro .link-arrow { font-size: 0.7rem; }
.map-intro .link-arrow::after { content: "\2193"; }
.map-intro .link-arrow:hover::after { transform: translateY(3px); }
.mapview__map { position: absolute; inset: 0; }
.mapview__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  text-align: center;
  color: var(--muted);
}
.mapview__fallback[hidden] { display: none; }
.mapview__fallback a { color: var(--accent); }

/* Card for the selected home, floating over the map */
.map-card {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 2.5vw, 2rem);
  left: var(--gutter);
  width: min(23rem, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 2 * clamp(1rem, 2.5vw, 2rem));
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(20, 19, 17, 0.2);
  animation: rise 0.35s ease-out both;
}
.map-card[hidden] { display: none; }
.map-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9d3c8;
}
.map-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.map-card__media:hover img { transform: scale(1.035); }
.map-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.map-card .card__place { margin-bottom: 0.4rem; }
.map-card h3 { font-size: 1.85rem; margin-bottom: 0.5rem; }
.map-card .card__meta { margin-bottom: 0.7rem; }
.map-card__text { font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.25rem; }
.map-card__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(251, 249, 245, 0.94);
  color: var(--ink);
  font: 600 0.85rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.map-card__close:hover { background: var(--ink); color: var(--paper); }
.map-card__close:focus-visible,
.map-home__show:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* MapLibre controls, toned to match */
.mapview .maplibregl-ctrl-group { border-radius: 0; box-shadow: 0 6px 20px rgba(20, 19, 17, 0.14); }
.mapview .maplibregl-ctrl-group button { width: 2.25rem; height: 2.25rem; }
.mapview .maplibregl-ctrl-attrib { font-family: var(--sans); font-size: 0.7rem; background: rgba(251, 249, 245, 0.85); }
.mapview .maplibregl-ctrl-attrib a { color: var(--muted); }

/* Every home, listed under the map */
.map-note { max-width: 24rem; margin: 0; color: var(--muted); font-size: 0.95rem; }
.map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.map-home {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.map-home.is-active { border-color: var(--accent); }
.map-home img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.map-home .card__place { font-size: 0.66rem; margin-bottom: 0.3rem; }
.map-home h3 { font-size: 1.4rem; margin-bottom: 0.45rem; }
.map-home h3 a { text-decoration: none; }
.map-home h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.map-home__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.25rem; }
.map-home .card__meta { margin: 0; font-size: 0.7rem; }
.map-home__show {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 600 0.7rem/1.6 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Search by dates ---------- */

.datesearch {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 0.9rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.datesearch .filter__label { align-self: center; margin-right: 0.25rem; }
.datesearch__field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.datesearch__field input {
  min-width: 0;
  width: 11.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(26, 25, 23, 0.2);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 0.95rem/1.4 var(--sans);
  letter-spacing: 0;
}
.datesearch__field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.datesearch__go { padding: 0.85rem 1.4rem; }
.datesearch__clear {
  align-self: center;
  font-size: 0.85rem;
  color: var(--accent);
  text-underline-offset: 4px;
}
.datesearch__note { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); font-size: 0.95rem; color: var(--ink); }
.datesearch__note--error { color: #8a3b2f; }
.datesearch__none { max-width: 38rem; padding: 1.5rem 0 0; font-size: 1.05rem; }
.datesearch__none a { color: var(--accent); white-space: nowrap; }
/* the date search sits above the tabs on the home page */
.datesearch + .tabs-input,
.datesearch__note + .tabs-input { margin-top: 0; }

.enquire__status { margin: 0; padding: 0.7rem 0.85rem; font-size: 0.9rem; line-height: 1.5; border-left: 3px solid; }
.enquire__status--free { border-color: #5b7a4f; background: rgba(91, 122, 79, 0.08); color: #3d5434; }
.enquire__status--taken { border-color: #8a3b2f; background: rgba(138, 59, 47, 0.07); color: #6e2f26; }

/* ---------- Reviews ---------- */

.reviews { background: var(--bg); }
.availability + .reviews,
.reviews + .availability { border-top: 1px solid var(--line); }
.reviews__hint { font-size: 0.85rem; }
.reviews__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.reviews__row--scroll {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * clamp(1rem, 2vw, 1.5rem)) / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.reviews__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(1.75rem, 3vw, 2.4rem) clamp(1.4rem, 2.5vw, 2rem) clamp(1.4rem, 2.5vw, 1.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  scroll-snap-align: start;
}
/* a large, faint opening quote mark behind the text */
.review::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.2rem;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--accent-light);
  opacity: 0.45;
}
.review__stars { margin: 0 0 1rem; color: var(--accent); letter-spacing: 0.2em; font-size: 0.95rem; }
.review__stars span { color: var(--booked); }
.review blockquote { margin: 0 0 1.5rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.review blockquote p { margin-bottom: 0.8em; }
.review figcaption {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.review figcaption strong { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.review figcaption a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- Things to see & do ---------- */

.area { background: var(--paper); border-top: 1px solid var(--line); }
.area .gallery-head p { max-width: 30rem; }
.area__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.area__grid--nomap { grid-template-columns: minmax(0, 1fr); }
.area__map {
  position: sticky;
  top: 2rem;
  aspect-ratio: 1;
  max-height: calc(100vh - 4rem);
  background: #e9e2d5;
  border: 1px solid var(--line);
}
.area__where { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; max-width: 30rem; }
.area__map--where { position: relative; top: auto; aspect-ratio: 21 / 9; max-height: 32rem; }
.area__map .maplibregl-ctrl-group { border-radius: 0; box-shadow: 0 6px 20px rgba(20, 19, 17, 0.14); }
.area__map .maplibregl-ctrl-attrib { font-family: var(--sans); font-size: 0.7rem; background: rgba(251, 249, 245, 0.85); }
.area__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.area__grid--nomap .area__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.area__hint { font-size: 0.85rem; }
/* More than three places: the list scrolls inside a box as tall as the map
   (contain: size keeps the list from making the row taller than the map). */
.area__grid--many { align-items: stretch; }
.area__grid--many .area__map { align-self: start; }
.area__grid--many .area__list,
.area__grid--many.area__grid--nomap .area__list {
  contain: size;
  height: 100%;
  min-height: 24rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.area__grid--many.area__grid--nomap .area__list { contain: none; height: auto; max-height: 36rem; }
.area__list:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.spot {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.spot:not(:has(.spot__media)) { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.1rem; }
.spot.is-active { border-color: var(--accent); }
.spot__media { overflow: hidden; background: #d9d3c8; }
.spot__media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.spot__body { align-self: center; }
.spot .card__place { display: flex; align-items: center; gap: 0.55rem; font-size: 0.66rem; margin-bottom: 0.35rem; }
.spot h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.spot__text { font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.4rem; }
.spot__credit,
.lightbox__credit { font-size: 0.72rem; color: var(--muted); }
.spot__credit a,
.lightbox__credit a { color: inherit; }
.spot__num,
.area-pin {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0;
}
.area-pin {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 2px solid var(--paper);
  box-shadow: 0 4px 12px rgba(20, 19, 17, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.area-pin:hover,
.area-pin.is-active { background: var(--accent); transform: scale(1.15); }
.area-pin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the home: a gold dot in a soft halo, as on the main map */
.area-home {
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--accent);
  box-shadow: 0 0 0 9px rgba(210, 179, 132, 0.45);
  cursor: default;
}
.lightbox__credit {
  position: absolute;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  max-width: 40%;
  text-align: right;
  color: rgba(246, 242, 235, 0.6);
}

/* ---------- Contact page ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__form { position: static; }
.contact__form h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact__form h2 em,
.host h2 em { color: var(--accent); }
.contact__direct { margin: 0.5rem 0 0; font-size: 0.92rem; }
.contact__direct a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }

.host { position: sticky; top: 2rem; }
.host__photo {
  position: relative;
  margin: 0 0 2.25rem;
  width: 82%;
  margin-left: 1.1rem;
}
.host__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* thin gold frame offset from the photo, as on the home page */
.host__photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.1rem 1.1rem 1.1rem -1.1rem;
  border: 1px solid var(--accent);
}
.host__photo--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: #e6dac6;
}
.host__crown { width: 30%; color: var(--accent); }
.host h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1.25rem; }
.host__sign { display: grid; gap: 0.1rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.host__sign strong { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.5rem; color: var(--ink); }
.host__sign span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

/* ---------- Page not found & editor preview ---------- */

.notfound { min-height: 50vh; text-align: center; }
.notfound .story__ornament { margin-inline: auto; }
.notfound h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 1.25rem; }
.notfound h1 em { color: var(--accent); }
.notfound p { max-width: 32rem; margin: 0 auto 2rem; }

.preview-banner {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom, 0px));
  background: #8a3b2f;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}
.preview-banner a { color: #fff; font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-header .wrap {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 0.9rem clamp(1.5rem, 5vw, 3rem);
    padding-block: 1.4rem 1.1rem;
  }
  .site-header .brand { grid-column: 1 / -1; order: -1; }
  .nav--left,
  .nav--right { justify-self: auto; }
  .hero__content { padding-top: 13rem; }
  .mapview { height: max(28rem, calc(100svh - 10.8rem - 2.5rem)); }
}

@media (max-width: 1100px) {
  .avail { grid-template-columns: minmax(0, 1fr); }
  .reviews__row--scroll { grid-auto-columns: calc((100% - clamp(1rem, 2vw, 1.5rem)) / 2); }
  .enquire { position: static; max-width: 40rem; }
  .months { grid-auto-columns: calc((100% - 1.5rem) / 2); }
}

@media (max-width: 900px) {
  .story__grid { grid-template-columns: minmax(0, 1fr); }
  .story__media { max-width: 36rem; width: 100%; margin-inline: auto; }
  .intro,
  .details { grid-template-columns: minmax(0, 1fr); }
  .details aside { position: static; }
  .area__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .area__map { position: relative; top: auto; aspect-ratio: 4 / 3; }
  .area__grid--many .area__list { contain: none; height: auto; max-height: 36rem; }
  .host { position: static; max-width: 36rem; }
  .pillars,
  .features { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.45rem; }
  .brand__crown { width: 2.35rem; }
  .site-header .wrap { gap: 0.75rem 1.25rem; }
  .nav { gap: 1.25rem; }
  .nav a { font-size: 0.68rem; letter-spacing: 0.13em; }
  .nav a.nav__cta { padding: 0.5rem 0.9rem; }
  .months { grid-auto-columns: 86%; }
  .reviews__row--scroll { grid-auto-columns: 86%; }
  .datesearch { padding: 1rem; }
  .datesearch .filter__label { flex-basis: 100%; }
  .datesearch__field { flex: 1 1 8rem; }
  .datesearch__field input { width: 100%; }
  .datesearch__go { flex: 1 1 100%; justify-content: center; }
  /* Phones: the places are a carousel to swipe through, without the map. */
  .area__map { display: none; }
  .area__map--where { display: block; aspect-ratio: 4 / 3; }
  .area__grid--many .area__list,
  .area__list {
    contain: none;
    height: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 0 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .area__list .spot { grid-template-columns: minmax(0, 1fr); align-content: start; scroll-snap-align: start; }
  .spot__media img { aspect-ratio: 4 / 3; }
  .spot__num { display: none; }
  .lightbox__credit { left: 1rem; right: 1rem; bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px)); max-width: none; text-align: center; }
  .story__caption { display: none; }
  .story__media { padding-bottom: 20%; }
  .enquire__row { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__cats { grid-template-columns: minmax(0, 1fr); }
  .hero__cats a { padding: 1.1rem 1.25rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--offset > :nth-child(2) { margin-top: 0; }
  .split img { aspect-ratio: 4 / 3; }
  .facts div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .lightbox__prev,
  .lightbox__next { top: auto; bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px)); transform: none; }
  .mapview { height: max(26rem, calc(100svh - 10rem - 2.5rem)); }
  /* leave room for the zoom buttons on the right */
  .map-intro { top: 0.75rem; left: 0.75rem; width: calc(100% - 4.6rem); padding: 0.9rem 1.1rem 1rem; }
  .map-intro .eyebrow,
  .map-intro .link-arrow { display: none; }
  .map-intro h1 { font-size: 1.65rem; margin-bottom: 0.35rem; }
  .map-intro p { font-size: 0.85rem; line-height: 1.5; margin: 0; }
  .map-card {
    top: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }
  .map-card__media { aspect-ratio: auto; }
  .map-card__media .card__tag,
  .map-card__text { display: none; }
  .map-card__body { padding: 1rem 2.9rem 1.1rem 1rem; }
  .map-card h3 { font-size: 1.4rem; }
  .map-card .link-arrow { font-size: 0.7rem; gap: 0.5rem; }
  .map-home { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.9rem; }
}

@media (max-width: 480px) {
  .nav--right a[href$="#about"] { display: none; }
}

@media (max-width: 380px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
  .enquire__row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}

/* ---------- Skip link, date status ---------- */

.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--paper); color: var(--ink); font-weight: 600; }
.skip:focus { top: 0.5rem; }
.datestatus { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.datestatus .enquire__status { max-width: 40rem; }
.reviews__row:not(.reviews__row--scroll) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.host:not(:has(.host__photo)) .host__text { padding-top: 0; }
