@charset "UTF-8";
/* ==========================================================================
   Apartment Nerja Medina — site stylesheet
   A single, dependency-free stylesheet. No web fonts, no frameworks,
   no third-party requests: the site works offline straight from disk.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette drawn from the apartment and its surroundings */
  --clay: #b4552f;
  --clay-dark: #8e3f20;
  --clay-soft: #f8e9e1;
  --clay-line: #e7cdbc;

  --ochre: #e8a33d;
  --ochre-dark: #b97c1d;
  --ochre-soft: #fbf1dc;

  --sea: #2b6c8f;
  --sea-dark: #1d4e68;
  --sea-soft: #e4eff6;

  --olive: #2f6b57;
  --olive-soft: #e4efe9;

  --plum: #3b2a5a;

  /* Neutrals */
  --ink: #2a2420;
  --ink-2: #574d45;
  --ink-3: #7e736a;
  --cream: #fbf7f0;
  --sand: #f4ecdf;
  --line: #e6dbc9;
  --line-strong: #d6c7ad;
  --white: #fff;

  /* Type */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Layout */
  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(70, 46, 28, .05), 0 4px 14px rgba(70, 46, 28, .06);
  --shadow-2: 0 2px 6px rgba(70, 46, 28, .07), 0 16px 40px rgba(70, 46, 28, .12);

  --header-h: 72px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--plum);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.18rem, 1.08rem + .45vw, 1.4rem); }
h4 { font-size: 1.06rem; }

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

a { color: var(--clay-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--clay); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

blockquote {
  margin: 1.5rem 0;
  padding: .3rem 0 .3rem 1.2rem;
  border-left: 4px solid var(--ochre);
  color: var(--ink-2);
  font-style: italic;
}

address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

/* Centre-align the whole document column: the classic "margin: 0 auto" shell */
.site-main { display: block; }

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .6rem;
}

.lede { font-size: clamp(1.08rem, 1rem + .5vw, 1.28rem); color: var(--ink-2); line-height: 1.6; }

.prose { max-width: 68ch; }
.prose > h2 { margin-top: 2.2em; }
.prose > h3 { margin-top: 1.7em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--plum);
  color: var(--white);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .16s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* --------------------------------------------------------------------------
   4. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, .94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  padding-block: .5rem;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__eyebrow {
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -.01em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }

.site-nav a {
  display: block;
  padding: .5rem .62rem;
  border-radius: var(--radius-sm);
  font-size: .855rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.site-nav a:hover { background: var(--clay-soft); color: var(--clay-dark); }

.site-nav a[aria-current="page"] {
  background: var(--plum);
  color: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 999px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    flex-basis: 100%;
    display: none;
    padding-bottom: .75rem;
  }
  .js .site-nav.is-open { display: block; }

  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .js .site-nav a {
    padding: .7rem .8rem;
    font-size: .98rem;
    border: 1px solid transparent;
  }
  .js .site-nav a[aria-current="page"] { border-color: var(--plum); }
}

@media (max-width: 420px) {
  .brand__name { font-size: 1.15rem; }
  .brand__mark { width: 38px; height: 38px; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover { background: var(--clay-dark); color: var(--white); box-shadow: var(--shadow-2); }

.btn--secondary {
  background: var(--plum);
  color: var(--white);
}
.btn--secondary:hover { background: #2c1f45; color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--clay-dark);
  border-color: var(--clay-line);
}
.btn--ghost:hover { background: var(--white); border-color: var(--clay); color: var(--clay-dark); }

.btn--on-dark {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .22); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   6. Hero (homepage)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--sand);
  background-image:
    linear-gradient(45deg, rgba(180, 85, 47, .055) 25%, transparent 25%, transparent 75%, rgba(180, 85, 47, .055) 75%),
    linear-gradient(45deg, rgba(180, 85, 47, .055) 25%, transparent 25%, transparent 75%, rgba(180, 85, 47, .055) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--clay) 0 33.3%, var(--ochre) 33.3% 66.6%, var(--olive) 66.6% 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--white);
  border: 1px solid var(--clay-line);
  border-radius: var(--radius-pill);
  padding: .35rem .85rem;
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: .5em; }
.hero__lede { font-size: clamp(1.06rem, 1rem + .5vw, 1.24rem); color: var(--ink-2); max-width: 54ch; }

.hero__figure { margin: 0; position: relative; }
.hero__figure img {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  border: 6px solid var(--white);
}
.hero__figure figcaption {
  max-width: 620px;
  margin: .75rem auto 0;
  font-size: .85rem;
  color: var(--ink-3);
  text-align: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { order: -1; }
}

/* --------------------------------------------------------------------------
   7. Page head (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--plum);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .05) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .05) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  color: var(--white);
  position: relative;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--clay) 0 33.3%, var(--ochre) 33.3% 66.6%, var(--olive) 66.6% 100%);
}
.page-head__inner { padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-head h1 { color: var(--white); margin-bottom: .35em; }
.page-head p { color: rgba(255, 255, 255, .84); max-width: 66ch; margin-bottom: 0; }
.page-head .eyebrow { color: var(--ochre); }

/* --------------------------------------------------------------------------
   8. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs { font-size: .84rem; margin-bottom: 1rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: rgba(255, 255, 255, .62); }

.breadcrumbs--on-light a { color: var(--clay-dark); }
.breadcrumbs--on-light [aria-current="page"] { color: var(--ink-3); }
.breadcrumbs--on-light li + li::before { color: var(--ink-3); opacity: 1; }

/* --------------------------------------------------------------------------
   9. Cards and grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-1);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-2); font-size: .97rem; }
.card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--clay-soft);
  color: var(--clay-dark);
  margin-bottom: .9rem;
}
.card__icon svg { width: 24px; height: 24px; }

.card--sea .card__icon { background: var(--sea-soft); color: var(--sea-dark); }
.card--olive .card__icon { background: var(--olive-soft); color: var(--olive); }
.card--ochre .card__icon { background: var(--ochre-soft); color: var(--ochre-dark); }

/* Feature list with tick marks */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.tick-list li { position: relative; padding-left: 1.85rem; margin: 0; color: var(--ink-2); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--olive-soft);
  border: 1.5px solid var(--olive);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: .3rem; top: .66em;
  width: .42rem; height: .2rem;
  border-left: 2px solid var(--olive);
  border-bottom: 2px solid var(--olive);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   10. Split image + text
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
@media (max-width: 720px) {
  .split--flip .split__media { order: 0; }
}

.split__media { margin: 0; }
.split__media img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.split__media figcaption {
  max-width: 420px;
  margin: .7rem auto 0;
  font-size: .84rem;
  color: var(--ink-3);
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Photo gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(.85rem, 2vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery li { margin: 0; }

.gallery figure { margin: 0; }

.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gallery img { width: 100%; height: auto; display: block; }

.gallery figcaption {
  margin-top: .6rem;
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.gallery figcaption strong { display: block; color: var(--plum); font-family: var(--serif); }

/* Lightbox dialog */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1000px);
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(24, 18, 12, .82); }
.lightbox__inner { background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2); }
.lightbox img { display: block; width: 100%; height: auto; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  background: var(--cream);
}
.lightbox__caption { font-size: .92rem; color: var(--ink-2); margin: 0; }
.lightbox__close {
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: .45rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   12. Spec / fact tables
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.facts > div { background: var(--white); padding: 1.1rem 1.25rem; }
.facts dt {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .25rem;
}
.facts dd { margin: 0; font-size: 1.02rem; color: var(--ink); }
.facts dd span { color: var(--ink-3); font-size: .88rem; }

/* Pricing table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-1); }

.rates { width: 100%; border-collapse: collapse; min-width: 460px; }
.rates caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem .9rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--plum);
  border-bottom: 1px solid var(--line);
}
.rates th, .rates td { padding: .95rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line); }
.rates tbody tr:last-child th, .rates tbody tr:last-child td { border-bottom: 0; }
.rates thead th {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--sand);
  font-weight: 700;
}
.rates tbody th { font-weight: 700; color: var(--plum); font-family: var(--serif); font-size: 1.04rem; }
.rates tbody th span { display: block; font-family: var(--sans); font-weight: 400; font-size: .86rem; color: var(--ink-3); }
.rates td { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.rates .rates__note { font-weight: 400; font-size: .88rem; color: var(--ink-3); font-variant-numeric: normal; }

@media (max-width: 620px) {
  .rates { min-width: 0; }
  .rates thead { display: none; }
  .rates, .rates tbody, .rates tr, .rates th, .rates td { display: block; width: 100%; }
  .rates tr { padding: .35rem 0 .9rem; border-bottom: 6px solid var(--sand); }
  .rates tbody tr:last-child { border-bottom: 0; }
  .rates th, .rates td { border-bottom: 0; padding: .3rem 1.1rem; }
  .rates tbody th { padding-top: .8rem; }
  .rates td::before {
    content: attr(data-season) " ";
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
}

/* --------------------------------------------------------------------------
   13. Callouts, notices, FAQ
   -------------------------------------------------------------------------- */
.callout {
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  border: 1px solid var(--clay-line);
  background: var(--clay-soft);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout--sea { background: var(--sea-soft); border-color: #c3dbe8; }
.callout--olive { background: var(--olive-soft); border-color: #c6ddd2; }
.callout--ochre { background: var(--ochre-soft); border-color: #ecd8ae; }

.notice {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  border-left: 4px solid var(--ochre);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--ochre-dark); margin-top: .2rem; }
.notice p { margin: 0; font-size: .96rem; color: var(--ink-2); }

.faq { display: grid; gap: .75rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
.faq details[open] { border-color: var(--clay-line); box-shadow: var(--shadow-1); }
.faq summary {
  cursor: pointer;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--plum);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem; top: 50%;
  width: .6rem; height: .6rem;
  border-right: 2.5px solid var(--clay);
  border-bottom: 2.5px solid var(--clay);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--clay-dark); }
.faq .faq__body { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Contents list / link lists
   -------------------------------------------------------------------------- */
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.toc h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.toc li { margin: 0; }
.toc a { text-decoration: none; font-weight: 600; color: var(--clay-dark); font-size: .95rem; }
.toc a:hover { text-decoration: underline; }

.link-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.link-list li { margin: 0; }
.link-list a { font-weight: 600; }

/* Curated outbound link list */
.external-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.external-links li { background: var(--white); padding: 1.15rem 1.35rem; margin: 0; }
.external-links a {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--plum);
  text-decoration: none;
}
.external-links a::after { content: "\2197"; font-family: var(--sans); font-size: .8em; color: var(--clay); }
.external-links a:hover { color: var(--clay-dark); text-decoration: underline; }
.external-links span { display: block; margin-top: .3rem; font-size: .95rem; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--plum);
  color: rgba(255, 255, 255, .78);
  padding-block: clamp(2.25rem, 5vw, 3.5rem) 1.5rem;
  font-size: .93rem;
  border-top: 5px solid var(--clay);
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: .8rem;
}
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: .5rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer li { margin: 0; }
.site-footer address { line-height: 1.7; }

.footer-legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}
.footer-legal p { margin: 0; }

/* --------------------------------------------------------------------------
   16. Misc components
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat-row > div { background: var(--cream); padding: 1.4rem 1rem; text-align: center; }
.stat-row b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  color: var(--clay);
  line-height: 1.1;
}
.stat-row span { font-size: .82rem; color: var(--ink-3); letter-spacing: .04em; }

/* Six stats — pin the column count in the ranges where auto-fit would
   otherwise leave a single empty track at the end of the last row. */
@media (min-width: 760px) and (max-width: 960px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 619px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.map-figure { margin: 0; }
.map-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-1);
}
.map-figure figcaption { margin-top: .7rem; font-size: .85rem; color: var(--ink-3); }

.caption-note { font-size: .85rem; color: var(--ink-3); margin-top: .75rem; }

.top-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .87rem;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
}
.top-link:hover { color: var(--clay-dark); }

.contact-block { display: grid; gap: 1.1rem; }
.contact-block dt {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay);
}
.contact-block dd { margin: .2rem 0 0; font-size: 1.05rem; }
.contact-block a { font-weight: 700; text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Motion and print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .gallery button:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link, .btn-row, .hero::after, .page-head::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head { background: none; color: #000; }
  .page-head h1 { color: #000; }
  .page-head p { color: #333; }
  .card, .facts, .toc, .callout, .table-wrap { box-shadow: none; border: 1px solid #bbb; }
  a { color: #000; text-decoration: underline; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
