/* ------------------------------------------------------------------
   Visit Girvan · visitgirvan.co.uk
   Palette: the Ayrshire coast — wet sand, sea foam, Firth slate,
   gorse on the brae, the grey-green of Ailsa Craig granite.
------------------------------------------------------------------- */
:root{
  --sand:       #ECE7DC;   /* page ground            */
  --foam:       #F6F3EC;   /* raised surfaces        */
  --ink:        #20303A;   /* Firth slate text       */
  --ink-soft:   #4E5E66;   /* secondary text         */
  --firth:      #1B2B36;   /* dark section band      */
  --firth-edge: #2B3F4C;   /* rules on dark          */
  --sea:        #2B6A6B;   /* links / accent         */
  --sea-deep:   #1F5253;   /* accent hover           */
  --sea-mist:   #9FC9C6;   /* accent on dark         */
  --gorse:      #B8923C;   /* fine rules             */
  --gorse-soft: rgba(184,146,60,.45);
  --gorse-faint:rgba(184,146,60,.22);
  --cream-dark: #EDE9E0;   /* text on firth          */
  --mist-dark:  #A6B4B9;   /* muted text on firth    */
  --granite:    #8C9A9A;   /* image placeholder tone */

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body:    "Lora", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 64ch;
  --wrap: 1120px;
  color-scheme: light;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  background:var(--sand); color:var(--ink);
  font-family:var(--body); font-size:1.0625rem; line-height:1.75;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img, svg{ display:block; max-width:100%; }
strong{ font-weight:500; }
a{ color:var(--sea); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; transition:color 150ms ease; -webkit-tap-highlight-color:transparent; }
a:hover{ color:var(--sea-deep); }
:focus-visible{ outline:2px solid var(--sea); outline-offset:3px; border-radius:2px; }
::selection{ background:var(--sea); color:var(--foam); }
h1,h2,h3,h4{ text-wrap:balance; font-family:var(--display); font-weight:500; line-height:1.12; }
.skip{ position:absolute; left:-999px; top:8px; background:var(--foam); padding:.5rem 1rem; z-index:100; }
.vh{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.search-link svg{ width:16px; height:16px; flex:0 0 auto; }
.skip:focus{ left:8px; }

/* ---------- shared ---------- */
.eyebrow{ font-family:var(--display); font-weight:600; font-size:.8125rem; letter-spacing:.32em; text-transform:uppercase; color:var(--ink-soft); }
.section{ padding:clamp(3.25rem, 7vw, 5.25rem) 1.5rem; }
.section-inner{ max-width:var(--wrap); margin-inline:auto; }
.section-head{ text-align:center; margin-bottom:clamp(2.2rem, 5vw, 3.4rem); }
.section-head h2{ font-size:clamp(2rem, 4.4vw, 3rem); margin-top:.8rem; }
.section-head p{ max-width:var(--measure); margin:1rem auto 0; color:var(--ink-soft); }
.ornament{ display:flex; justify-content:center; align-items:center; gap:.75rem; margin-top:1.2rem; color:var(--gorse); }
.ornament::before,.ornament::after{ content:""; width:52px; height:1px; background:var(--gorse-soft); }
.ornament svg{ width:12px; height:12px; }
.band{ background:var(--firth); color:var(--cream-dark); }
.band .eyebrow{ color:var(--mist-dark); }
.band h2,.band h3{ color:var(--foam); }
.band p{ color:var(--mist-dark); }
.band a{ color:var(--sea-mist); }
.band a:hover{ color:var(--foam); }
.band .ornament::before,.band .ornament::after{ background:var(--firth-edge); }
.prose{ max-width:var(--measure); }
.prose p + p, .prose ul + p, .prose p + ul{ margin-top:1.1rem; }
.prose h2{ font-size:clamp(1.7rem, 3.2vw, 2.2rem); margin-top:2.6rem; margin-bottom:.9rem; }
.prose h3{ font-size:1.4rem; margin-top:2rem; margin-bottom:.6rem; }
.prose ul{ padding-left:1.2rem; }
.prose li + li{ margin-top:.35rem; }
.prose li::marker{ color:var(--gorse); }
.muted{ color:var(--ink-soft); font-size:.95rem; }
.btn{ display:inline-block; font-family:var(--display); font-weight:600; font-size:.8rem; letter-spacing:.24em; text-transform:uppercase; text-decoration:none; padding:.85rem 1.6rem; border:1px solid var(--gorse-soft); color:var(--ink); background:transparent; transition:background 160ms ease,color 160ms ease,border-color 160ms ease; }
.btn:hover{ background:var(--ink); color:var(--foam); border-color:var(--ink); }
.btn-sea{ background:var(--sea); color:var(--foam); border-color:var(--sea); }
.btn-sea:hover{ background:var(--sea-deep); border-color:var(--sea-deep); }
.band .btn{ color:var(--cream-dark); border-color:var(--firth-edge); }
.band .btn:hover{ background:var(--foam); color:var(--ink); border-color:var(--foam); }

/* ---------- reveal ----------
   Hiding is gated on .rv, which site.js adds to <html> only once it is running
   and has set up the observer that brings sections back. If the script is
   blocked, slow or errors (content blockers, Lockdown Mode, in-app browsers,
   weak signal), .rv is never added and every section simply stays visible. */
.rv .reveal{ opacity:0; transform:translateY(10px); transition:opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.rv .reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .rv .reveal{ transform:none; transition:opacity 300ms ease; } }

/* ---------- header & nav ---------- */
.top{ position:sticky; top:0; z-index:50; background:rgba(236,231,220,.94); backdrop-filter:blur(8px); border-bottom:1px solid var(--gorse-faint); }
.top-inner{ max-width:var(--wrap); margin-inline:auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.75rem 1.5rem; }
.brand{ display:flex; align-items:center; gap:.7rem; text-decoration:none; color:var(--ink); }
.brand svg{ width:34px; height:26px; }
.brand .name{ font-family:var(--display); font-weight:600; font-size:1.25rem; letter-spacing:.08em; }
.brand .name small{ display:block; font-size:.62rem; letter-spacing:.32em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; }
.nav-toggle{ display:none; background:none; border:1px solid var(--gorse-soft); padding:.5rem .8rem; font-family:var(--display); font-weight:600; letter-spacing:.2em; text-transform:uppercase; font-size:.72rem; color:var(--ink); cursor:pointer; }
.nav{ display:flex; align-items:center; gap:.2rem; }
.nav > li{ list-style:none; position:relative; }
.nav > li > a, .nav > li > button{ display:block; white-space:nowrap; padding:.6rem .8rem; font-family:var(--display); font-weight:600; font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink); text-decoration:none; background:none; border:0; cursor:pointer; }
.nav > li > a:hover, .nav > li > button:hover{ color:var(--sea); }
.mega{ position:absolute; left:0; top:100%; min-width:560px; background:var(--foam); border:1px solid var(--gorse-faint); box-shadow:0 14px 34px rgba(27,43,54,.16); padding:1.4rem 1.6rem 1.6rem; display:none; grid-template-columns:repeat(3,1fr); gap:1.2rem 1.8rem; }
.nav > li:hover .mega, .nav > li:focus-within .mega{ display:grid; }
.nav > li:nth-last-child(-n+2) .mega{ left:auto; right:0; }
.mega h4{ font-size:.72rem; letter-spacing:.28em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; margin-bottom:.6rem; padding-bottom:.45rem; border-bottom:1px solid var(--gorse-faint); }
.mega ul{ list-style:none; }
.mega li a{ display:block; padding:.22rem 0; font-size:.95rem; text-decoration:none; color:var(--ink); }
.mega li a:hover{ color:var(--sea); }
.mega .view-all a{ margin-top:.4rem; font-style:italic; font-family:var(--display); font-size:1.02rem; color:var(--sea); }
.search-link{ display:flex; align-items:center; gap:.5rem; flex-wrap:nowrap; white-space:nowrap; }
.search-link .vh-desktop{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:980px){
  .search-link .vh-desktop{ position:static; width:auto; height:auto; margin:0; clip-path:none; }
  .nav a.search-link{ display:flex !important; align-items:center; gap:.5rem; }
}
/* affordance: mark nav items that open a submenu */
.nav > li > button::after{ content:""; display:inline-block; width:.32em; height:.32em; margin-left:.38em; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-.15em) rotate(45deg); transition:transform 160ms cubic-bezier(.23,1,.32,1); }
.nav > li > button[aria-expanded="true"]::after{ transform:translateY(.05em) rotate(-135deg); }
.search-link svg{ width:15px; height:15px; }
@media (max-width:980px){
  .nav-toggle{ display:block; }
  .nav{ display:none; position:absolute; left:0; right:0; top:100%; background:var(--foam); border-bottom:1px solid var(--gorse-faint); flex-direction:column; align-items:stretch; padding:.6rem 1rem 1.2rem; max-height:calc(100vh - 70px); overflow:auto; }
  .nav.open{ display:flex; }
  .nav > li > button, .nav > li > a{ padding:.8rem .4rem; border-bottom:1px solid var(--gorse-faint); width:100%; text-align:left; }
  .mega{ position:static; display:grid; grid-template-columns:1fr; box-shadow:none; border:0; min-width:0; padding:.6rem .4rem 1rem; gap:.8rem; }
  .nav > li:not(.open) .mega{ display:none; }
  .nav > li.open .mega{ display:grid; }
}

/* ---------- breadcrumbs ---------- */
.crumbs{ max-width:var(--wrap); margin:0 auto; padding:1rem 1.5rem 0; font-size:.85rem; color:var(--ink-soft); }
.crumbs ol{ list-style:none; display:flex; flex-wrap:wrap; gap:.4rem; }
.crumbs li + li::before{ content:"›"; margin-right:.4rem; color:var(--gorse); }
.crumbs a{ color:var(--ink-soft); text-decoration:none; }
.crumbs a:hover{ color:var(--sea); }

/* ---------- hero (home) ---------- */
.hero{ position:relative; min-height:92svh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:5rem 1.5rem 4.5rem; overflow:hidden; color:var(--foam); }
.hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.hero::before{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(110% 85% at 50% 50%,
      rgba(16,27,35,.62) 0%,   rgba(16,27,35,.58) 34%,  rgba(16,27,35,.50) 58%,
      rgba(16,27,35,.44) 78%,  rgba(16,27,35,.42) 100%),
    linear-gradient(to top,
      rgba(16,27,35,.52) 0%,   rgba(16,27,35,.38) 26%,  rgba(16,27,35,.24) 52%,
      rgba(16,27,35,.20) 74%,  rgba(16,27,35,.28) 100%); }
.hero::after{ content:""; position:absolute; z-index:2; inset:22px; border:1px solid rgba(237,233,224,.35); pointer-events:none; }
@media (min-width:700px){ .hero::after{ inset:30px; } }
.hero > *:not(.hero-img){ position:relative; z-index:2; }
.hero .eyebrow{ color:var(--sea-mist); margin-bottom:1.6rem; }
.hero h1{ font-size:clamp(3rem, 10vw, 6.4rem); line-height:1; letter-spacing:.01em; color:var(--foam); }
.hero h1 em{ display:block; font-style:italic; font-weight:400; font-size:.42em; margin-top:.6rem; color:var(--cream-dark); }
.hero-rule{ width:min(300px, 56vw); height:1px; background:var(--gorse-soft); margin:2.3rem 0 1.8rem; }
.hero p.lead{ max-width:44ch; font-size:1.1rem; color:var(--cream-dark); }
.hero-actions{ margin-top:2rem; display:flex; flex-wrap:wrap; gap:.8rem; justify-content:center; }
.hero .btn{ color:var(--foam); border-color:rgba(237,233,224,.5); }
.hero .btn:hover{ background:var(--foam); color:var(--ink); border-color:var(--foam); }
.craig{ width:92px; height:46px; margin-bottom:1.4rem; opacity:.9; }
.hero .rise{ opacity:0; transform:translateY(10px); animation:rise 520ms var(--ease-out) forwards; }
.hero .rise:nth-child(2){ animation-delay:70ms; } .hero .rise:nth-child(3){ animation-delay:140ms; }
.hero .rise:nth-child(4){ animation-delay:210ms; } .hero .rise:nth-child(5){ animation-delay:280ms; }
.hero .rise:nth-child(6){ animation-delay:350ms; } .hero .rise:nth-child(7){ animation-delay:420ms; }
@keyframes rise{ to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .hero .rise{ transform:none; animation:fade 400ms ease forwards; } }
@keyframes fade{ to{ opacity:1; } }

/* ---------- page hero (inner) ---------- */
.page-hero{ position:relative; min-height:clamp(300px, 46vh, 480px); display:flex; align-items:flex-end; overflow:hidden; color:var(--foam); }
.page-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero::before{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(100% 118% at 0% 100%,
      rgba(16,27,35,.62) 0%,   rgba(16,27,35,.52) 22%,  rgba(16,27,35,.39) 40%,
      rgba(16,27,35,.26) 56%,  rgba(16,27,35,.15) 70%,  rgba(16,27,35,.07) 82%,
      rgba(16,27,35,.02) 92%,  rgba(16,27,35,0) 100%),
    linear-gradient(to top,
      rgba(16,27,35,.52) 0%,   rgba(16,27,35,.47) 14%,  rgba(16,27,35,.40) 28%,
      rgba(16,27,35,.31) 42%,  rgba(16,27,35,.22) 56%,  rgba(16,27,35,.14) 70%,
      rgba(16,27,35,.07) 82%,  rgba(16,27,35,.02) 92%,  rgba(16,27,35,0) 100%); }
.page-hero .inner{ position:relative; z-index:2; max-width:var(--wrap); width:100%; margin-inline:auto; padding:3rem 1.5rem 2.4rem; }
.page-hero .eyebrow{ color:var(--foam); opacity:.9; }
.hero h1, .hero .eyebrow, .hero p.lead,
.page-hero h1, .page-hero .eyebrow, .page-hero .sub{
  text-shadow: 0 1px 2px rgba(8,16,22,.30), 0 2px 14px rgba(8,16,22,.20); }
.page-hero h1{ font-size:clamp(2.3rem, 6vw, 4.2rem); color:var(--foam); margin-top:.6rem; max-width:18ch; }
.page-hero .sub{ margin-top:.9rem; max-width:58ch; color:var(--cream-dark); font-size:1.05rem; }
.hero-credit{ margin-top:1.1rem; font-size:.74rem; letter-spacing:.02em; color:var(--foam); opacity:.8; text-shadow:0 1px 3px rgba(8,16,22,.5); max-width:60ch; }
.hero-credit a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
.hero-credit a:hover{ opacity:1; }
.tags{ display:flex; flex-wrap:wrap; gap:.45rem; margin-top:1.1rem; }
.tag{ font-family:var(--display); font-weight:600; font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; padding:.3rem .65rem; border:1px solid rgba(237,233,224,.45); color:var(--cream-dark); }
.tag.free{ border-color:var(--sea-mist); color:var(--sea-mist); }
.card .tag{ border-color:var(--gorse-faint); color:var(--ink-soft); font-size:.62rem; }

/* ---------- layout: article + aside ---------- */
.layout{ max-width:var(--wrap); margin-inline:auto; padding:clamp(2.4rem, 5vw, 4rem) 1.5rem; display:grid; grid-template-columns:1fr; gap:2.6rem; }
@media (min-width:900px){ .layout{ grid-template-columns:minmax(0,1fr) 330px; gap:4rem; } }
.glance{ background:var(--foam); border:1px solid var(--gorse-faint); padding:1.6rem 1.7rem; position:sticky; top:84px; }
.glance h3{ font-size:.72rem; letter-spacing:.3em; text-transform:uppercase; color:var(--ink-soft); font-weight:600; margin-bottom:1rem; }
.glance dl div{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:.6rem 0; border-bottom:1px solid var(--gorse-faint); }
.glance dl div:last-child{ border-bottom:0; }
.glance dt{ font-size:.85rem; color:var(--ink-soft); flex:0 0 auto; }
.glance dd{ font-family:var(--display); font-weight:500; font-size:1.08rem; text-align:right; }
.glance .note{ margin-top:1rem; font-size:.8rem; color:var(--ink-soft); font-style:italic; }
.glance .btn{ display:block; text-align:center; margin-top:1.2rem; }
.dist-badge{ display:inline-flex; align-items:center; gap:.45rem; font-family:var(--display); font-style:italic; font-size:1.02rem; color:var(--sea); }
.dist-badge svg{ width:14px; height:14px; }
.band .dist-badge{ color:var(--sea-mist); }

/* ---------- cards ---------- */
.grid{ display:grid; grid-template-columns:1fr; gap:1.6rem; }
@media (min-width:640px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px){ .grid-3{ grid-template-columns:repeat(3,1fr); } .grid-4{ grid-template-columns:repeat(4,1fr); } }
.card{ background:var(--foam); border:1px solid var(--gorse-faint); padding:10px; display:flex; flex-direction:column; transition:transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
@media (hover:hover){ .card:hover{ transform:translateY(-3px); box-shadow:0 14px 30px rgba(27,43,54,.12); } }
.card img{ width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; background:var(--granite); }
.card .body{ padding:1rem .6rem .5rem; display:flex; flex-direction:column; flex:1; }
.card h3{ font-size:1.42rem; }
.card h3 a{ text-decoration:none; color:var(--ink); }
.card h3 a::after{ content:""; position:absolute; inset:0; }
.card{ position:relative; }
.card p{ margin-top:.5rem; font-size:.95rem; color:var(--ink-soft); flex:1; }
.card .meta{ margin-top:.8rem; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:.4rem; }
.band .card{ background:var(--firth); border-color:var(--firth-edge); }
.band .card h3 a{ color:var(--foam); }
.band .card p{ color:var(--mist-dark); }
.band .card .tag{ border-color:var(--firth-edge); color:var(--mist-dark); }
.card.wide img{ aspect-ratio:16/9; }

/* ---------- link lists (related) ---------- */
.linklist{ list-style:none; border-top:1px solid var(--gorse-faint); }
.linklist a{ display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:.85rem .2rem; border-bottom:1px solid var(--gorse-faint); text-decoration:none; color:var(--ink); }
.linklist .go{ color:var(--sea); font-family:var(--display); font-size:1.05rem; transition:transform 200ms var(--ease-out); }
.linklist a:hover{ color:var(--sea); } .linklist a:hover .go{ transform:translateX(4px); }
.band .linklist{ border-color:var(--firth-edge); }
.band .linklist a{ color:var(--cream-dark); border-color:var(--firth-edge); }
.band .linklist a:hover{ color:var(--sea-mist); }

/* ---------- FAQ ---------- */
.faq details{ border-top:1px solid var(--gorse-faint); }
.faq details:last-child{ border-bottom:1px solid var(--gorse-faint); }
.faq summary{ cursor:pointer; list-style:none; padding:1rem .2rem; font-family:var(--display); font-weight:500; font-size:1.3rem; display:flex; justify-content:space-between; gap:1rem; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--gorse); font-weight:400; }
.faq details[open] summary::after{ content:"–"; }
.faq .a{ padding:0 .2rem 1.2rem; color:var(--ink-soft); max-width:var(--measure); }

/* ---------- figures / gallery ---------- */
.figure{ border:1px solid var(--gorse-faint); background:var(--foam); padding:10px; margin:1.8rem 0; }
.figure img{ width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; background:var(--granite); }
.figure figcaption{ padding:.75rem .2rem .1rem; text-align:center; font-family:var(--display); font-style:italic; font-size:1.05rem; color:var(--ink-soft); }
.split{ display:grid; grid-template-columns:1fr; gap:2.4rem; align-items:center; }
@media (min-width:860px){ .split{ grid-template-columns:1.05fr .95fr; gap:4rem; } .split.flip > :first-child{ order:2; } }
.split .figure{ margin:0; }

/* ---------- tables ---------- */
.table{ width:100%; border-collapse:collapse; font-size:.95rem; margin:1.2rem 0; }
.table th,.table td{ text-align:left; padding:.65rem .5rem; border-bottom:1px solid var(--gorse-faint); vertical-align:top; }
.table th{ font-family:var(--display); font-weight:600; font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-soft); }
.table td:first-child{ font-family:var(--display); font-weight:500; font-size:1.08rem; }

/* ---------- notice ---------- */
.notice{ background:var(--foam); border-left:3px solid var(--gorse); padding:1rem 1.2rem; font-size:.95rem; color:var(--ink-soft); margin:1.6rem 0; }

/* ---------- itinerary ---------- */
.itin{ list-style:none; max-width:var(--measure); }
.itin li{ display:grid; grid-template-columns:84px 1fr; gap:1rem; padding:1rem 0; border-top:1px solid var(--gorse-faint); }
.itin .when{ font-family:var(--display); font-weight:600; font-size:.72rem; letter-spacing:.22em; text-transform:uppercase; color:var(--ink-soft); padding-top:.35rem; }
.itin .what{ font-family:var(--display); font-weight:500; font-size:1.25rem; }
.itin p{ font-size:.95rem; color:var(--ink-soft); margin-top:.2rem; }

/* ---------- search ---------- */
.search-box{ display:flex; gap:.6rem; max-width:640px; margin:0 auto; }
.search-box input{ flex:1; font:inherit; padding:.85rem 1rem; border:1px solid var(--gorse-soft); background:var(--foam); color:var(--ink); }
.results{ list-style:none; max-width:760px; margin:2rem auto 0; }
.results li{ padding:1rem 0; border-top:1px solid var(--gorse-faint); }
.results h3{ font-size:1.3rem; }
.results p{ color:var(--ink-soft); font-size:.95rem; }
.filters{ display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-bottom:2rem; }
.filters button{ font:inherit; font-family:var(--display); font-weight:600; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; padding:.45rem .9rem; border:1px solid var(--gorse-faint); background:transparent; color:var(--ink-soft); cursor:pointer; }
.filters button[aria-pressed="true"]{ background:var(--ink); color:var(--foam); border-color:var(--ink); }

/* ---------- map ---------- */
.map-section{ position:relative; height:clamp(340px, 50vh, 520px); background:var(--firth); }
.map-embed{ position:absolute; inset:0; width:100%; height:100%; border:0; filter:grayscale(.85) contrast(1.02); }
.map-card{ position:absolute; z-index:1; top:clamp(1rem,4vw,2.5rem); left:clamp(1rem,4vw,2.5rem); max-width:300px; background:var(--foam); border:1px solid var(--gorse-soft); padding:1.3rem 1.5rem; box-shadow:0 8px 24px rgba(27,43,54,.16); }
.map-card .lbl{ font-family:var(--display); font-weight:600; font-size:.7rem; letter-spacing:.28em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:.7rem; }
.map-card address{ font-style:normal; font-family:var(--display); font-weight:500; font-size:1.12rem; line-height:1.5; }

/* ---------- footer ---------- */
footer{ background:var(--firth); color:var(--mist-dark); padding:3.6rem 1.5rem 2.6rem; }
.foot-grid{ max-width:var(--wrap); margin-inline:auto; display:grid; grid-template-columns:1fr; gap:2rem; }
@media (min-width:760px){ .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; } }
footer h4{ font-family:var(--display); font-weight:600; font-size:.72rem; letter-spacing:.3em; text-transform:uppercase; color:var(--cream-dark); margin-bottom:.9rem; }
footer ul{ list-style:none; }
footer li a{ color:var(--mist-dark); text-decoration:none; font-size:.93rem; display:block; padding:.18rem 0; }
footer li a:hover{ color:var(--sea-mist); }
footer .brand{ color:var(--foam); }
footer .brand .name small{ color:var(--mist-dark); }
footer .about{ margin-top:1rem; font-size:.92rem; max-width:40ch; }
/* Social links. The icons are 20px glyphs in a 40px tap target, so they clear
   the 44px guideline once the row's own padding is counted, and they inherit
   the footer link colour rather than carrying brand colours of their own. */
.foot-social{ display:flex; gap:.4rem; margin-top:1.3rem; margin-left:-.5rem; }
.foot-social a{ display:inline-flex; align-items:center; justify-content:center;
  width:2.5rem; height:2.5rem; border-radius:999px; color:var(--mist-dark);
  transition:color .18s ease, background-color .18s ease; }
.foot-social a:hover, .foot-social a:focus-visible{ color:var(--foam); background:var(--firth-edge); }
.foot-social svg{ width:1.25rem; height:1.25rem; display:block; }
.foot-bottom{ max-width:var(--wrap); margin:2.6rem auto 0; padding-top:1.4rem; border-top:1px solid var(--firth-edge); font-size:.8rem; display:flex; flex-wrap:wrap; justify-content:space-between; gap:.6rem; }

/* ---------------------------------------------- homepage: the apartment */
.prop-hero{ min-height:clamp(460px, 82svh, 780px); }
.factstrip{ padding-block:2.6rem; border-bottom:1px solid var(--rule); }
.facts{ display:grid; grid-template-columns:repeat(6,1fr); gap:1.8rem 1.2rem; margin:0; }
@media (max-width:1000px){ .facts{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .facts{ grid-template-columns:repeat(2,1fr); } }
.facts .fact{ display:flex; flex-direction:column; align-items:center; justify-content:flex-start; }
.facts dd{ display:flex; align-items:center; min-height:2.9em; }
.facts .fact{ text-align:center; }
.facts dt{ font-family:var(--sans); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--ink-soft); margin-bottom:.45rem; }
.facts dd{ margin:0; font-size:1.02rem; line-height:1.4; }
.roomlist{ list-style:none; padding:0; margin:0 auto; max-width:60ch;
  display:grid; gap:.1rem; }
.roomlist li{ padding:1rem 0; border-bottom:1px solid var(--rule); font-size:1.02rem; }
.roomlist li:last-child{ border-bottom:0; }
.roomlist strong{ display:inline-block; min-width:11rem; }
#the-apartment .prose{ max-width:60ch; margin-inline:auto; }
@media (max-width:640px){ .roomlist strong{ display:block; min-width:0; margin-bottom:.15rem; } }

/* ==========================================================================
   Interaction polish — motion, press states, focus, modern CSS
   Tuned to the site's character: calm, ease-out, nothing over 300ms.
   ========================================================================== */

:root{
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --press: 160ms;
}

/* --- sticky-header offset for in-page anchors (#enquire, #the-apartment) --- */
:where([id]){ scroll-margin-top: 6.5rem; }

/* --- press feedback: the interface should feel like it heard you ---------- */
.btn{ transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
                  transform var(--press) var(--ease-out); }
.btn:active{ transform: scale(0.97); }

.card{ transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.card:active{ transform: scale(0.985); transition-duration: var(--press); }

.faq summary{ transition: color 140ms ease, transform var(--press) var(--ease-out); }
.faq summary:active{ transform: scale(0.99); }
.faq summary::after{ transition: transform 200ms var(--ease-out), color 140ms ease; }
.faq details[open] summary::after{ transform: rotate(180deg); }

.nav-toggle, .search-link, .tags span, .tag{
  transition: transform var(--press) var(--ease-out), background 160ms ease,
              color 160ms ease, border-color 160ms ease; }
.nav-toggle:active, .search-link:active{ transform: scale(0.96); }

/* --- gate hover behind real pointers so touch taps don't stick ------------ */
@media (hover: hover) and (pointer: fine){
  .card:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(27,43,54,.12); }
  .faq summary:hover{ color: var(--sea); }
  .faq summary:hover::after{ color: var(--sea); }
}
@media (hover: none){
  .card:hover{ transform: none; box-shadow: none; }
}

/* --- stagger cards into view: 45ms apart, decorative, never blocking ------ */
.rv .reveal .grid > *{
  opacity: 0; transform: translateY(10px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.rv .reveal.is-in .grid > *{ opacity: 1; transform: none; }
.rv .reveal.is-in .grid > *:nth-child(1){ transition-delay: 0ms; }
.rv .reveal.is-in .grid > *:nth-child(2){ transition-delay: 45ms; }
.rv .reveal.is-in .grid > *:nth-child(3){ transition-delay: 90ms; }
.rv .reveal.is-in .grid > *:nth-child(4){ transition-delay: 135ms; }
.rv .reveal.is-in .grid > *:nth-child(5){ transition-delay: 180ms; }
.rv .reveal.is-in .grid > *:nth-child(n+6){ transition-delay: 215ms; }

/* reveal itself: tightened from 420ms, and it no longer double-fades cards */
.rv .reveal{ transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }

/* --- smooth accordion open, where the browser supports it ----------------- */
@supports (interpolate-size: allow-keywords){
  :root{ interpolate-size: allow-keywords; }
  .faq details::details-content{
    block-size: 0; overflow: hidden;
    transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete;
    transition-behavior: allow-discrete; }
  .faq details[open]::details-content{ block-size: auto; }
}

/* --- cross-page view transitions: an MPA that moves like an app ----------- */
@view-transition{ navigation: auto; }
@media (prefers-reduced-motion: no-preference){
  ::view-transition-old(root){ animation: vt-out 140ms var(--ease-out) both; }
  ::view-transition-new(root){ animation: vt-in 220ms var(--ease-out) both; }
}
@keyframes vt-out{ to{ opacity: 0; } }
@keyframes vt-in{ from{ opacity: 0; transform: translateY(6px); } }

/* --- typography niceties ------------------------------------------------- */
h1, h2, .card h3, .hero h1{ text-wrap: balance; }
.prose p, .card p, .lead, .sub{ text-wrap: pretty; }

/* --- reduced motion: fewer and gentler, not zero -------------------------- */
@media (prefers-reduced-motion: reduce){
  .rv .reveal, .rv .reveal .grid > *{ transform: none !important; transition: opacity 240ms ease; }
  .rv .reveal.is-in .grid > *{ transition-delay: 0ms !important; }
  .btn:active, .card:active, .faq summary:active,
  .nav-toggle:active, .search-link:active{ transform: none; }
  .card:hover{ transform: none; }
  ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
}

/* --- content stays visible if the reveal script never runs: see .rv above - */

/* ---------------------------------------------------------- contact form */
.cform{ max-width:34rem; margin:2.4rem auto 0; text-align:left; }
.cform-row{ margin-bottom:1.1rem; }
.cform label{ display:block; font-family:var(--sans); font-size:.7rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--cream-dark); margin-bottom:.45rem; }
.cform input, .cform textarea{
  width:100%; font:inherit; font-size:1rem; color:var(--ink);
  background:var(--foam); border:1px solid var(--firth-edge); border-radius:2px;
  padding:.75rem .85rem;
  transition:border-color 160ms ease, box-shadow 160ms ease; }
.cform textarea{ resize:vertical; min-height:8rem; }
.cform input:focus-visible, .cform textarea:focus-visible{
  outline:none; border-color:var(--gorse); box-shadow:0 0 0 3px rgba(184,146,60,.28); }
.cform button{ width:100%; margin-top:.4rem; cursor:pointer; }
.cform-note{ margin-top:.9rem; font-size:.8rem; color:var(--cream-dark); opacity:.75; text-align:center; }
.cform-msg{ margin:0 0 1.2rem; padding:.8rem 1rem; border-radius:2px; font-size:.95rem;
  background:rgba(184,146,60,.16); border:1px solid var(--gorse); color:var(--foam); }
/* honeypot: off-screen for people, still fillable by bots */
.cform-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.cform-captcha{ margin:1.2rem 0 .4rem; min-height:78px; }
@media (max-width:560px){ .cform{ margin-top:2rem; } }

/* enquiry text was left-anchored inside a wide container while the form below
   was centred — match both to the same 34rem column so they line up */
#enquire .prose{ max-width:34rem; margin-inline:auto; }
#enquire .prose p{ max-width:none; }

/* ------------------------------------------ home page vertical rhythm
   Three paddings were stacking between the fact strip and the first
   content section: the strip's own 41.6px, the section's 84px, and the
   h2's 41.6px top margin — 168px of nothing before "Where it is". */
.factstrip + .section{ padding-top: 3.25rem; }
.split .prose > :first-child{ margin-top: 0; }
/* top-align the picture with its heading instead of centring it against a
   taller text column, which left a 56px ragged step */
.split{ align-items: start; }
.split .figure{ margin-top: .35rem; }
@media (max-width: 860px){
  .factstrip + .section{ padding-top: 2.4rem; }
  .split .figure{ margin-top: 0; }
}

/* ---- home page vertical rhythm ------------------------------------------
   Inner pages alternate band colours, so 84px top + 84px bottom between
   sections reads as deliberate. The property sections all share one
   background, where the same numbers stack into a 180px hole. Tighten the
   whole page and let the dark bands keep a little more room. */
.home .section{ padding-block: 2.75rem; }
.home .section.band{ padding-block: 4rem; }
.home .factstrip{ padding-block: 2.4rem; }
.home .section-head{ margin-bottom: 2.2rem; }
.home .section-head .eyebrow{ margin-top: 0; }
.home .section:first-of-type{ padding-top: 2.4rem; }
@media (max-width: 860px){
  .home .section{ padding-block: 2.2rem; }
  .home .section.band{ padding-block: 3rem; }
}
}

/* ---------------------------------------------------- "stay nearby" card
   One quiet card near the foot of each guide page. Deliberately not a
   banner, not sticky, not repeated — it should read as a useful aside. */
.stay .section-inner{ max-width: 62rem; }
.stay-card{
  display: grid; grid-template-columns: 15rem 1fr; align-items: stretch;
  background: var(--foam); border: 1px solid var(--rule); border-radius: 3px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
.stay-card img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.stay-body{ padding: 1.7rem 1.9rem; }
.stay-body .eyebrow{ margin: 0 0 .5rem; }
.stay-body h2{ font-size: 1.35rem; margin: 0 0 .55rem; line-height: 1.25; }
.stay-body p{ margin: 0 0 1rem; font-size: .97rem; line-height: 1.6; color: var(--ink-soft); }
.stay-cta{
  font-family: var(--sans); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sea); border-bottom: 1px solid currentColor;
  padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine){
  .stay-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27,43,54,.10); }
}
.stay-card:active{ transform: scale(.995); transition-duration: var(--press); }
.stay-card:focus-visible{ outline: 2px solid var(--gorse); outline-offset: 3px; }
@media (max-width: 680px){
  .stay-card{ grid-template-columns: 1fr; }
  .stay-card img{ height: 11rem; }
  .stay-body{ padding: 1.4rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce){
  .stay-card, .stay-card:hover, .stay-card:active{ transform: none; }
}

/* -------------------------------------------------- property photo gallery */
.shots{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1.4rem; margin-top:3rem; }
/* the living-room pair sits on the light background, directly under its section */
.shots-only{ padding-top:0; }
.shots-only .shots{ margin-top:0; }
.shots-only .shots figcaption{ color:var(--ink-soft); opacity:1; }
.shots .shot{ margin:0; }
/* same cream mount as .figure, applied to the image so captions stay outside it */
.shots .shot img{ width:100%; height:auto; display:block; box-sizing:border-box;
  border:1px solid var(--gorse-faint); background:var(--foam); padding:10px;
  border-radius:0; }
.shots figcaption{ margin-top:.7rem; font-family:var(--sans); font-size:.72rem;
  letter-spacing:.08em; text-transform:uppercase; color:var(--cream-dark); opacity:.85;
  text-align:center; }
@media (max-width:820px){ .shots{ grid-template-columns:repeat(2,1fr); gap:1.1rem; } }
@media (max-width:520px){ .shots{ grid-template-columns:1fr; } }

/* full-width outlook photograph */
.outlook .figure.wide{ margin:0; }
.outlook .figure.wide img{ width:100%; height:auto; display:block; }
.outlook figcaption{ margin-top:.8rem; text-align:center; font-size:.9rem;
  color:var(--ink-soft); font-style:italic; }
