/* ==========================================================================
   Alojamientos para viajeros · Miquel Silvestre
   Mobile-first. Breakpoints: 640px (tablet), 960px (desktop), 1280px (wide)
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Base palette */
  --paper: #fafaf8;
  --ink: #1c232b;
  --ink-soft: #4a545e;
  --stone: #d9dcdc;
  --white: #ffffff;

  /* Per-property worlds */
  --alps: #24323d;        /* glacier slate */
  --alps-ice: #cfe0ea;
  --pine: #26301f;        /* Guadarrama pine */
  --brick: #8e3524;       /* Nootka shutters */
  --snow: #f1f3f1;
  --sea: #0f3a4c;         /* Dénia bay */
  --sun: #e7b567;         /* Mediterranean late light */

  /* Type */
  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.8rem + 4vw, 5.2rem);
  --step-5: clamp(3.2rem, 1.6rem + 7.4vw, 8.4rem);

  /* Spacing (4pt based) */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.25rem;
  --space-2xl: 3.5rem;
  --space-3xl: clamp(4rem, 3rem + 5vw, 7.5rem);

  --gutter: 1rem;
  --container: 76rem;
  --header-h: 4rem;

  --radius-s: 4px;
  --radius-m: 10px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
  --shadow-lift: 0 24px 48px -24px rgba(16, 24, 32, 0.45);
}

@media (min-width: 640px) {
  :root { --gutter: 2rem; --header-h: 4.5rem; }
}
@media (min-width: 1280px) {
  :root { --gutter: 3rem; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important; /* utility must win over component styles */
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: var(--space-s);
  left: var(--space-s);
  z-index: 100;
  padding: var(--space-xs) var(--space-m);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-s);
  transform: translateY(-200%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--btn-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--small { min-height: 2.5rem; padding: 0.5rem 1.15rem; }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--white); }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--ink); }
.btn--sun:hover { --btn-bg: #f0c47e; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.55);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.12); --btn-border: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.site-header:not(.is-solid):not(.menu-open) {
  background: linear-gradient(180deg, rgba(14, 20, 26, 0.5) 0%, rgba(14, 20, 26, 0) 100%);
}
.site-header.is-solid {
  background: rgba(250, 250, 248, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(28, 35, 43, 0.08);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  text-decoration: none;
  white-space: nowrap;
}
.brand__name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1; }
.brand__sub { font-size: var(--step--1); opacity: 0.8; }

.menu-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 2.75rem;
  padding: 0 var(--space-s);
  margin-right: calc(var(--space-s) * -1);
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--step--1);
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out);
}
.menu-toggle__bars { position: relative; transform: translateY(-3px); }
.menu-toggle__bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

/* Mobile menu: full-screen sheet */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-xl);
  padding: calc(var(--header-h) + var(--space-l)) var(--gutter) var(--space-2xl);
  background: var(--ink);
  color: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.site-nav.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur) var(--ease-out);
}
.site-header.menu-open { color: var(--paper); background: transparent; box-shadow: none; }

.site-nav__list { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.site-nav__list a {
  display: block;
  padding-block: var(--space-2xs);
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.15;
  text-decoration: none;
}
.site-nav__cta { --btn-bg: var(--paper); --btn-fg: var(--ink); align-self: flex-start; }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    color: inherit;
    visibility: visible;
    opacity: 1;
  }
  .site-nav__list { display: flex; gap: var(--space-l); }
  .site-nav__list a {
    position: relative;
    font-family: var(--font-text);
    font-size: var(--step--1);
    font-weight: 500;
    padding-block: var(--space-xs);
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0.2rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease-out);
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__cta { --btn-bg: transparent; --btn-fg: currentColor; --btn-border: currentColor; }
  .site-nav__cta:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--paper); }
  .is-solid .site-nav__cta { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-border: var(--ink); }
  .is-solid .site-nav__cta:hover { --btn-bg: var(--alps); }
}

/* ==========================================================================
   Hero — triptych of the three bases
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  background: var(--ink);
  color: var(--white);
  isolation: isolate;
}

.hero__panels {
  display: flex;
  flex-direction: column;
  height: 62svh;
  min-height: 26rem;
}

.panel {
  position: relative;
  flex: 1 1 0;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  transition: flex-grow 0.8s var(--ease-out);
}
.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter 0.8s var(--ease-out);
}
.panel--susa img { object-position: 50% 62%; }
.panel--nootka img { object-position: 50% 55%; }
.panel--denia img { object-position: 50% 45%; }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 20, 26, 0.55), rgba(14, 20, 26, 0) 60%);
  pointer-events: none;
}
.panel + .panel { border-top: 1px solid rgba(255, 255, 255, 0.25); }

.panel__label {
  position: absolute;
  left: var(--gutter);
  bottom: var(--space-s);
  z-index: 1;
  display: grid;
  line-height: 1.2;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.panel__name { font-family: var(--font-display); font-size: var(--step-2); }
.panel__place { font-size: var(--step--1); opacity: 0.88; }

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--gutter) var(--space-2xl);
}
.hero__byline { font-size: var(--step--1); color: rgba(255, 255, 255, 0.82); margin-bottom: var(--space-s); }
.hero__byline span { margin-inline: 0.35em; }
.hero__title {
  font-size: var(--step-5);
  line-height: 0.92;
  letter-spacing: -0.025em;
  max-width: 10ch;
}
.hero__lede {
  margin-top: var(--space-l);
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-xl);
}

@media (min-width: 960px) {
  .hero {
    display: block;
    height: 100svh;
    min-height: 40rem;
    max-height: 70rem;
  }
  .hero__panels {
    position: absolute;
    inset: 0;
    flex-direction: row;
    height: auto;
  }
  .panel + .panel { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.28); }
  .panel::after {
    background: linear-gradient(180deg, rgba(14, 20, 26, 0.5) 0%, rgba(14, 20, 26, 0) 28%);
  }
  .panel__label {
    top: calc(var(--header-h) + var(--space-xl));
    bottom: auto;
    left: var(--space-xl);
  }
  .panel__place { opacity: 0; transform: translateY(-4px); transition: opacity var(--dur), transform var(--dur) var(--ease-out); }

  .hero__panels:hover .panel { flex-grow: 0.8; }
  .hero__panels .panel:hover,
  .hero__panels .panel:focus-visible { flex-grow: 1.5; }
  .panel:hover img, .panel:focus-visible img { transform: scale(1.04); }
  .panel:hover .panel__place, .panel:focus-visible .panel__place { opacity: 0.9; transform: none; }
  .panel:focus-visible { outline-offset: -6px; }

  .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 78%;
    background: linear-gradient(0deg, rgba(14, 20, 26, 0.9) 0%, rgba(14, 20, 26, 0.62) 50%, rgba(14, 20, 26, 0) 100%);
    pointer-events: none;
  }
  .hero__content {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding: 0 var(--gutter) var(--space-2xl);
    pointer-events: none;
  }
  .hero__content > * { pointer-events: auto; }
  .hero__title { max-width: none; }
}

/* Page-load sequence: one orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .panel { clip-path: inset(100% 0 0 0); }
  .js .hero .hero__content > * { opacity: 0; transform: translateY(14px); }
  .js .hero.is-ready .panel {
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.1s var(--ease-out), flex-grow 0.8s var(--ease-out);
  }
  .js .hero.is-ready .panel--nootka { transition-delay: 0.12s, 0s; }
  .js .hero.is-ready .panel--denia { transition-delay: 0.24s, 0s; }
  .js .hero.is-ready .hero__content > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .js .hero.is-ready .hero__content > :nth-child(1) { transition-delay: 0.55s; }
  .js .hero.is-ready .hero__content > :nth-child(2) { transition-delay: 0.65s; }
  .js .hero.is-ready .hero__content > :nth-child(3) { transition-delay: 0.8s; }
  .js .hero.is-ready .hero__content > :nth-child(4) { transition-delay: 0.95s; }
}

/* ==========================================================================
   Bases — at-a-glance comparison along the route
   ========================================================================== */
.bases { padding-block: var(--space-3xl); }

.bases__head {
  display: grid;
  gap: var(--space-l);
  margin-bottom: var(--space-2xl);
}
.bases__title { font-size: var(--step-4); max-width: 14ch; }
.bases__intro { max-width: 46ch; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

.route {
  position: relative;
  display: grid;
  gap: var(--space-2xl);
  padding-left: var(--space-xl);
}
/* the route line: vertical on mobile, horizontal from tablet up */
.route::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 0.4rem;
  border-left: 1.5px dashed rgba(28, 35, 43, 0.35);
}

.route__stop { position: relative; display: flex; flex-direction: column; }
.route__stop::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: calc(var(--space-xl) * -1);
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--stop, var(--ink));
  box-shadow: 0 0 0 5px var(--paper);
}
.route__stop--susa { --stop: var(--alps); }
.route__stop--nootka { --stop: var(--brick); }
.route__stop--denia { --stop: var(--sea); }

.route__place { font-size: var(--step--1); color: var(--ink-soft); }
.route__name { font-size: var(--step-2); margin-top: var(--space-2xs); }
.route__line { margin-top: var(--space-xs); color: var(--ink-soft); font-size: var(--step--1); max-width: 34ch; }

.facts {
  display: grid;
  margin-block: var(--space-l);
  border-top: 1px solid var(--stone);
}
.facts > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: var(--space-s);
  padding-block: var(--space-s);
  border-bottom: 1px solid var(--stone);
  font-size: var(--step--1);
}
.facts dt { color: var(--ink-soft); }
.facts dd { font-weight: 600; }

.route__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: underline;
  text-decoration-color: var(--stop);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  transition: text-underline-offset var(--dur) var(--ease-out);
}
.route__link:hover { text-underline-offset: 0.55em; }

@media (min-width: 640px) {
  .bases__head { grid-template-columns: 1.2fr 1fr; align-items: end; }
}
@media (min-width: 960px) {
  .route {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    padding-left: 0;
    padding-top: var(--space-xl);
  }
  .route::before {
    top: 0.42rem;
    bottom: auto;
    left: 0.4rem;
    right: 0;
    border-left: 0;
    border-top: 1.5px dashed rgba(28, 35, 43, 0.35);
  }
  .route__stop::before { top: calc(var(--space-xl) * -1); left: 0; }
}

/* ==========================================================================
   Property sections
   ========================================================================== */
.property {
  --bg: var(--alps);
  --fg: #eef2f4;
  --muted: #a9b8c2;
  --accent: var(--alps-ice);
  --line: rgba(255, 255, 255, 0.16);
  --btn-accent-fg: var(--alps);
  background: var(--bg);
  color: var(--fg);
}
.property--nootka {
  --bg: var(--snow);
  --fg: var(--pine);
  --muted: #59624f;
  --accent: var(--brick);
  --line: rgba(38, 48, 31, 0.16);
  --btn-accent-fg: var(--white);
}
.property--denia {
  --bg: var(--sea);
  --fg: #f3f1ea;
  --muted: #a9c3cc;
  --accent: var(--sun);
  --line: rgba(255, 255, 255, 0.16);
  --btn-accent-fg: var(--sea);
}

.property__cover {
  position: relative;
  height: 72svh;
  min-height: 26rem;
  max-height: 56rem;
  overflow: hidden;
  color: var(--white);
}
.property__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property--susa .property__cover-img { object-position: 50% 40%; }
.property--denia .property__cover-img { object-position: 75% 50%; }
.property__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 16, 20, 0.82) 0%, rgba(10, 16, 20, 0.2) 50%, rgba(10, 16, 20, 0.05) 100%);
}
.property__heading {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--space-2xl);
  z-index: 2;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}
.property__region { font-size: var(--step--1); opacity: 0.85; margin-bottom: var(--space-xs); }
.property__title { font-size: var(--step-4); max-width: 16ch; }
.property__loc { margin-top: var(--space-s); font-size: var(--step-0); opacity: 0.9; max-width: 48ch; }

.property__body {
  display: grid;
  gap: var(--space-2xl);
  padding-block: var(--space-2xl) var(--space-3xl);
}

.property__text { max-width: 36rem; }
.property__text > p + p { margin-top: var(--space-m); }
.property__text p { color: var(--fg); }
.property__lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.28;
  margin-top: var(--space-l);
}
.property__quote {
  padding-left: var(--space-m);
  border-left: 2px solid var(--accent);
  font-style: normal;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent);
}
.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.property__sub {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-m);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.01em;
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-xs) var(--space-l);
}
.features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--step--1);
  line-height: 1.5;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 1.5px;
  background: var(--accent);
}
@media (min-width: 640px) {
  .features { grid-template-columns: 1fr 1fr; }
}

.rates { border-top: 1px solid var(--line); }
.rates__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-m);
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--line);
}
.rates dt { font-weight: 500; }
.rates dt span { display: block; margin-top: 2px; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.rates dd {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}
.rates dd small { font-family: var(--font-text); font-size: var(--step--1); margin-left: 2px; color: var(--muted); }
.rates__ask a { font-size: var(--step-1); }
.property__text .rates__note { margin-top: var(--space-m); font-size: var(--step--1); color: var(--muted); }

.property__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-l);
  margin-top: var(--space-xl);
}
.property__actions .btn { --btn-bg: var(--accent); --btn-fg: var(--btn-accent-fg); }
.property__actions .btn:hover { filter: brightness(1.08); }
.property__text .property__hint { font-size: var(--step--1); color: var(--muted); }
.property__hint a { color: var(--fg); font-weight: 600; }

/* ---------- Mosaic ---------- */
/* Mobile: horizontal snap strip (thumb-friendly, no tiny grid) */
.mosaic {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: var(--space-s);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.mosaic::-webkit-scrollbar { display: none; }

.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
  scroll-snap-align: start;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.shot:hover img { transform: scale(1.05); }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 640px) {
  .mosaic { grid-auto-columns: 46%; }
}

@media (min-width: 960px) {
  .property__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--space-xl);
    padding-block: var(--space-3xl);
  }
  .property__text { grid-column: 1 / span 5; grid-row: 1; }
  .mosaic {
    grid-column: 7 / -1;
    grid-row: 1;
    align-self: start;
    position: relative;
    z-index: 2;
    margin: calc(var(--space-3xl) * -2) 0 0;
    padding: 0;
    overflow: visible;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
  }
  .shot { box-shadow: var(--shadow-lift); }
  .shot--lead { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .mosaic > .shot:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

  .property--reverse .property__text { grid-column: 8 / -1; }
  .property--reverse .mosaic { grid-column: 1 / span 6; }

  .property__heading {
    bottom: calc(var(--space-3xl) * 2 + var(--space-xl));
    padding-right: 45%;
  }
  .property__cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 16, 20, 0.55) 0%, rgba(10, 16, 20, 0) 55%);
    pointer-events: none;
  }
  .property--reverse .property__cover::before {
    background: linear-gradient(270deg, rgba(10, 16, 20, 0.6) 0%, rgba(10, 16, 20, 0) 55%);
  }
  .property--reverse .property__heading { padding-left: calc(var(--gutter) + 50%); padding-right: var(--gutter); }
  .property__cover { height: 86svh; }
}

.mosaic--trio .shot--lead { aspect-ratio: 16 / 9; }
@media (min-width: 960px) {
  .mosaic--trio .shot:not(.shot--lead) { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding-block: var(--space-3xl); }

.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-l);
  margin-bottom: var(--space-xl);
}
.gallery__title { font-size: var(--step-4); }

.filters {
  display: flex;
  gap: var(--space-xs);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: var(--step--1);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.g-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 9.5rem;
  grid-auto-flow: dense;
  gap: var(--space-xs);
}
.g-item { position: relative; }
.g-item.is-hidden { display: none; }
.g--wide { grid-column: span 2; }
.g--big { grid-column: span 2; grid-row: span 2; }

.g-item__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--stone);
  cursor: zoom-in;
}
.g-item__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.g-item__tag {
  position: absolute;
  left: var(--space-xs);
  bottom: var(--space-xs);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(250, 250, 248, 0.92);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.g-item__btn:hover img { transform: scale(1.05); }
.g-item__btn:hover .g-item__tag,
.g-item__btn:focus-visible .g-item__tag { opacity: 1; transform: none; }
.g-item__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.gallery__more { display: flex; justify-content: center; margin-top: var(--space-xl); }
.gallery__more[hidden],
html:not(.js) .gallery__more { display: none; }

@media (hover: none) {
  .g-item__tag { opacity: 1; transform: none; }
}
@media (min-width: 640px) {
  .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 11rem; gap: var(--space-s); }
}
@media (min-width: 960px) {
  .g-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 13rem; }
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88svh;
  padding-block: var(--space-3xl);
  overflow: hidden;
  color: var(--white);
  background: var(--sea);
  isolation: isolate;
}
.closing__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 22, 30, 0.88) 0%, rgba(10, 22, 30, 0.45) 55%, rgba(10, 22, 30, 0.15) 100%);
}
.closing__title { font-size: var(--step-5); line-height: 0.95; max-width: 9ch; }
.closing__text { margin-top: var(--space-l); max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.closing__mail {
  display: inline-block;
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 0.7rem + 3vw, 2.8rem);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease-out);
}
.closing__mail:hover { color: var(--sun); }
.closing__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-xl); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(250, 250, 248, 0.78);
  font-size: var(--step--1);
  padding-top: var(--space-2xl);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__inner {
  display: grid;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
}
.site-footer__name { font-family: var(--font-display); font-size: var(--step-2); color: var(--white); line-height: 1.1; }
.site-footer__by { margin-top: var(--space-s); }
.site-footer__nav ul { display: grid; gap: var(--space-s); }
.site-footer__nav a { color: var(--white); }
.site-footer__nav span { display: block; color: rgba(250, 250, 248, 0.6); }
.site-footer__contact { display: grid; gap: var(--space-2xs); align-content: start; }
.site-footer__contact p { color: rgba(250, 250, 248, 0.6); }
.site-footer__contact a { color: var(--white); }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-s);
  padding-block: var(--space-l);
  border-top: 1px solid rgba(250, 250, 248, 0.12);
  color: rgba(250, 250, 248, 0.55);
}
@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 16, 20, 0.96);
  color: var(--white);
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(12, 16, 20, 0.6); }
.lightbox[open] { display: grid; place-items: center; }

.lightbox__figure {
  display: grid;
  gap: var(--space-s);
  justify-items: center;
  width: 100%;
  padding: 4rem var(--space-s) var(--space-l);
}
.lightbox__img {
  max-width: min(100%, 110rem);
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-s);
  transition: opacity 0.25s ease;
}
.lightbox__img.is-loading { opacity: 0.25; }
.lightbox__caption { font-size: var(--step--1); color: rgba(255, 255, 255, 0.8); text-align: center; max-width: 60ch; }
.lightbox__count { margin-left: var(--space-xs); color: rgba(255, 255, 255, 0.5); white-space: nowrap; }

.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(12, 16, 20, 0.55);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur), border-color var(--dur);
}
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.lightbox__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: var(--space-s); right: var(--space-s); }
.lightbox__prev, .lightbox__next { bottom: var(--space-l); }
.lightbox__prev { left: var(--space-s); }
.lightbox__next { right: var(--space-s); }

@media (min-width: 960px) {
  .lightbox__figure { padding-inline: 6rem; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__prev { left: var(--space-l); }
  .lightbox__next { right: var(--space-l); }
  .lightbox__close { top: var(--space-l); right: var(--space-l); }
}

body.is-locked { overflow: hidden; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important; /* user preference must override every component */
    animation-duration: 0.01ms !important;
  }
}
