/* ==========================================================================
   Atlantic Road Seaside Housing — shared stylesheet
   Design tokens + base + header/nav + footer, used by every page.
   Page-specific styles live in css/<page>.css and load after this file.
   ========================================================================== */

/* Self-hosted fonts — see fonts/README.md for how to regenerate.
   These are Google's VARIABLE woff2 files: one per family/style/subset,
   covering the whole weight axis, so the eight files below replace the twelve
   static faces the old <link href="fonts.googleapis.com"> requested — and drop
   two DNS/TLS handshakes plus a render-blocking stylesheet with them.
   latin-ext is downloaded only if a character in its range is actually
   rendered, so on English/Norwegian copy it costs nothing.
   Only fonts/inter-var-latin.woff2 and fonts/playfair-var-latin.woff2 are
   preloaded in each page's <head>. */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/inter-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Josefin Sans';font-style:normal;font-weight:100 700;font-display:swap;src:url(../fonts/josefin-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Josefin Sans';font-style:normal;font-weight:100 700;font-display:swap;src:url(../fonts/josefin-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400 900;font-display:swap;src:url(../fonts/playfair-var-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400 900;font-display:swap;src:url(../fonts/playfair-var-italic-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/playfair-var-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/playfair-var-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}

:root{
  /* Colour */
  --fjord:#132B3A;
  --petrol:#1F5C56;
  --brass:#B18A54;      /* decoration/borders + text on DARK bg (4.6:1 on fjord) */
  --brass-ink:#8A6A3C;  /* text on LIGHT bg — WCAG AA 4.6:1 on mist/linen */
  --brass-soft:#C9A876;
  --linen:#EDE7DC;
  --sand:#EDE7DC;   /* alias of --linen */
  --mist:#F6F5F1;
  --slate:#4A5A5E;
  --ink:#1A2830;
  --white:#FDFCFA;
  --line:rgba(19,43,58,.14);
  --line-dark:rgba(237,231,220,.18);
  --success:#2E6E54;
  --error:#96473C;
  /* Type */
  --display:'Playfair Display', Georgia, serif;
  --body:'Inter', system-ui, -apple-system, sans-serif;
  --accent:'Josefin Sans', sans-serif;
  /* Motion */
  --ease:cubic-bezier(.22,.61,.36,1);
  /* Breakpoints — documentation + JS use only.
     Custom properties cannot be used inside @media conditions, so the literal
     value is repeated in every query. These five are the ONLY allowed widths;
     min-width complements are always token+1px. */
  --bp-xs:480px;    /* small phone      */
  --bp-sm:640px;    /* phone            */
  --bp-md:820px;    /* tablet portrait  */
  --bp-lg:1024px;   /* tablet landscape */
  --bp-xl:1280px;   /* desktop          */
  --bp-short:700px; /* viewport HEIGHT — landscape phones (only height query) */
  /* Aspect ratios — documentation only, used as literals in the page sheets
     (like the breakpoints above). The sanctioned set:
       4/5  portrait cards (home/other/experience cards)
       4/3  landscape photos, boat cards, maps, experience gallery
       3/4  featured portraits (experiences featured, boats fishing)
       9/16 tall strips (seasons, included)
       16/9 media/embeds (booking unit media)
     UI-only, not photography: 1/1 (.dr-day) and 2/1 (.curtain-glow).
     Do not introduce a new ratio without adding it here. */
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--body);
  font-weight:300;
  color:var(--fjord);
  background:var(--mist);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--display);font-weight:500;line-height:1.15}
.wrap{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,56px)}

/* ---------- Accessibility utilities ---------- */
main{display:block}   /* pre-Chromium Edge does not know the element */
/* Off-screen but still announced — used by the skip link and the lightbox
   live region in js/unit.js. Both clip properties are needed: the modern
   clip-path plus the legacy clip for older assistive tech. */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
/* First element in <body> on every page, so the fixed header and its overlay
   menu are never an unavoidable first tab stop. z-index clears everything we
   own: header 100, overlay menu / loading curtain 200, lightbox 300. */
.skip-link{
  position:fixed;
  top:0;left:0;   /* corner, not centred — it would sit on top of the wordmark */
  transform:translateY(-120%);
  z-index:400;
  background:var(--fjord);
  color:var(--mist);
  font-family:var(--accent);
  font-size:.78rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  padding:.9em 1.8em;
  border:1px solid var(--brass);
  border-top:none;
  border-left:none;
  transition:transform .25s var(--ease);
}
.skip-link:focus{transform:translateY(0)}
main:focus{outline:none}   /* tabindex="-1" landing target, not interactive */

.eyebrow{
  font-family:var(--accent);
  font-size:.78rem;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--brass-ink);
  display:block;
  margin-bottom:1.4rem;
}
.eyebrow--soft{color:var(--linen);opacity:.7}
.btn{
  display:inline-block;
  font-family:var(--accent);
  font-size:.8rem;
  letter-spacing:.26em;
  text-transform:uppercase;
  padding:1em 2.6em;
  border:1px solid currentColor;
  transition:background .35s var(--ease),color .35s var(--ease),border-color .35s var(--ease);
  cursor:pointer;
  background:transparent;
}
.btn:hover{background:var(--brass);border-color:var(--brass);color:var(--fjord)}
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.btn--solid{background:var(--brass);border-color:var(--brass);color:var(--fjord)}
.btn--solid:hover{background:var(--petrol);border-color:var(--petrol);color:var(--mist)}
/* Compact variant for dense UI (booking sidebar, calendar controls) */
.btn--compact{font-size:11px;letter-spacing:.28em;padding:14px 24px}
.btn--compact.btn--small{padding:11px 18px;font-size:10px}
/* Full-width variant for narrow columns (booking sidebar, availability card).
   Replaces the per-page width:100% duplicates this system had grown. */
.btn--block{display:block;width:100%;text-align:center}
.btn:disabled{opacity:.4;cursor:default}
.btn:disabled:hover{background:none;color:var(--fjord)}
.btn--solid:disabled:hover{background:var(--brass);color:var(--fjord)}
/* Petrol submit shared by the three search bars (index booking bar,
   booking.html results bar, unit-page availability bar — the last adds the
   .avail-search icon modifier in css/unit.css). Deliberately outside the .btn
   system: borderless, fills its grid cell, hovers to fjord. */
.search-submit{
  display:flex;align-items:center;justify-content:center;
  padding:0 2.6rem;
  background:var(--petrol);
  color:var(--mist);
  font-family:var(--accent);
  font-size:.78rem;letter-spacing:.26em;text-transform:uppercase;
  border:none;cursor:pointer;
  transition:background .35s var(--ease);
}
.search-submit:hover{background:var(--fjord)}
.img-slot{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(160deg, rgba(19,43,58,.92) 0%, rgba(31,92,86,.85) 55%, rgba(74,90,94,.9) 100%);
}
.img-slot img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.img-slot::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid rgba(177,138,84,.45);
  pointer-events:none;
}
.img-slot--light{
  background:linear-gradient(150deg, var(--linen) 0%, #e0d8c8 60%, #d3c9b5 100%);
}
.img-slot--light::before{border-color:rgba(177,138,84,.5)}
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  padding:1.1rem clamp(20px,4vw,56px);
  color:var(--mist);
  transition:background .4s var(--ease),color .4s var(--ease),padding .4s var(--ease),box-shadow .4s var(--ease);
}
.site-header.scrolled{
  background:var(--mist);
  color:var(--fjord);
  padding-top:.7rem;
  padding-bottom:.7rem;
  box-shadow:0 1px 0 rgba(19,43,58,.08);
}
.menu-toggle{
  justify-self:start;
  display:flex;
  align-items:center;
  gap:.8rem;
  background:none;border:none;
  color:inherit;
  font-family:var(--accent);
  font-size:.78rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  cursor:pointer;
}
.menu-toggle .lines{display:inline-flex;flex-direction:column;gap:5px}
.menu-toggle .lines span{width:26px;height:1px;background:currentColor;transition:transform .3s var(--ease)}
.menu-toggle:hover .lines span:first-child{transform:translateY(-1px)}
.menu-toggle:hover .lines span:last-child{transform:translateY(1px)}
.brand{
  text-align:center;
  font-family:var(--display);
  font-size:1.05rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  line-height:1.3;
}
.brand small{
  display:block;
  font-family:var(--accent);
  font-size:.58rem;
  letter-spacing:.5em;
  color:var(--brass-ink);
}
.header-book{
  justify-self:end;
  font-family:var(--accent);
  font-size:.78rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  padding:.7em 1.8em;
  border:1px solid currentColor;
  transition:background .3s,color .3s,border-color .3s;
}
.header-book:hover{background:var(--brass);border-color:var(--brass);color:var(--fjord)}
/* Over a photo/video hero the header sits on unpredictable luminance. This
   scrim is what actually buys WCAG AA — text-shadow does not count as
   contrast. .68 fjord composited over a white sky puts --mist text at 4.78:1,
   which covers the wordmark, "Menu" and the "Book" border alike. It is owned
   by the header so every page inherits it; pages that declare their own solid
   header cancel it (css/faq.css, css/booking.css).
   z-index:-1 paints it above the header's own background but below its in-flow
   content — .site-header is position:fixed with z-index:100, so it is already
   a stacking context and the pseudo-element cannot escape it. That is also why
   the scrolled state must fade it out: it would otherwise cover the mist fill. */
.site-header::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:220%;   /* % of the padding box — same ramp at every breakpoint */
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,
    rgba(19,43,58,.72) 0%,
    rgba(19,43,58,.70) 30%,
    rgba(19,43,58,.68) 46%,   /* ~the bottom of the header box */
    rgba(19,43,58,.44) 64%,
    rgba(19,43,58,.19) 82%,
    rgba(19,43,58,0) 100%);
  transition:opacity .4s var(--ease);
}
.site-header.scrolled::before{opacity:0}
/* Kept for perception, not for the contrast maths above. */
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .menu-toggle,
.site-header:not(.scrolled) .header-book{
  text-shadow:0 1px 12px rgba(19,43,58,.55);
}
/* --brass-soft cannot reach 4.5:1 against anything lighter than itself, and
   these small-caps are ~9px, so they go mist over the hero. The brass returns
   the moment the header goes solid (--brass-ink on mist, 4.6:1). */
.site-header:not(.scrolled) .brand small{color:var(--mist)}
@media (max-width:820px){
  .site-header{padding-left:16px;padding-right:16px;column-gap:.6rem}
  .brand{font-size:.82rem;letter-spacing:.14em;white-space:nowrap}
  .brand small{font-size:.5rem;letter-spacing:.24em}
  .menu-toggle{font-size:.68rem;letter-spacing:.18em;gap:.5rem}
  .menu-toggle .lines span{width:20px}
  .header-book{font-size:.68rem;letter-spacing:.16em;padding:.6em 1.1em}
}
@media (max-width:480px){
  /* Three items + padding no longer fit: the burger drops its label (the
     button keeps aria-label="Open menu") and the wordmark drops its line 2. */
  .brand small{display:none}
  .menu-toggle-label{
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip-path:inset(50%);white-space:nowrap;
  }
  .menu-toggle{gap:0}
  .header-book{font-size:.64rem;letter-spacing:.12em;padding:.55em .9em}
}
.overlay-menu{
  position:fixed;
  inset:0;
  z-index:200;
  background:var(--fjord);
  color:var(--linen);
  display:flex;
  flex-direction:column;
  padding:1.4rem clamp(20px,4vw,56px) 3rem;
  opacity:0;
  visibility:hidden;
  /* Stepped visibility: delayed to the end of the fade when closing, immediate
     when opening. With a plain `visibility .5s` the menu stayed computed as
     hidden through the transition, so the closeBtn.focus() in js/main.js hit a
     hidden element and the overlay opened with focus still on <body>. */
  transition:opacity .5s var(--ease),visibility 0s .5s;
}
.overlay-menu.open{opacity:1;visibility:visible;transition:opacity .5s var(--ease),visibility 0s}
.overlay-top{display:flex;justify-content:space-between;align-items:center}
.overlay-close{
  background:none;border:none;color:var(--linen);
  font-family:var(--accent);font-size:.78rem;letter-spacing:.28em;text-transform:uppercase;
  cursor:pointer;display:flex;align-items:center;gap:.7rem;
}
.overlay-close::before{content:"×";font-size:1.6rem;font-family:var(--display);line-height:1}
.overlay-body{
  flex:1;
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:4rem;
  align-items:center;
  max-width:1240px;
  width:100%;
  margin:0 auto;
}
.overlay-nav a{
  display:block;
  font-family:var(--display);
  font-size:clamp(2rem,4.6vw,3.6rem);
  padding:.28em 0;
  color:var(--linen);
  transition:color .3s,transform .4s var(--ease);
}
.overlay-nav a:hover{color:var(--brass);transform:translateX(12px)}
.overlay-aside{font-size:.95rem;color:rgba(237,231,220,.75)}
/* Group labels, not headings: this block sits before the page <h1> in the DOM
   on every page, so real headings here would open the outline at level 4.
   Keep the .overlay-aside prefix — it has to outrank .overlay-aside p below. */
.overlay-aside .overlay-aside-label{
  font-family:var(--accent);
  font-size:.72rem;letter-spacing:.32em;text-transform:uppercase;
  color:var(--brass);margin:2.2rem 0 .7rem;font-weight:400;
}
.overlay-aside p{margin-bottom:.3rem}
.overlay-aside a:hover{color:var(--brass)}
.crumb{font-family:var(--accent);font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;color:rgba(237,231,220,.75)}
.crumb a:hover{color:var(--brass)}
/* CTA band — base lives here; pages opt into the petrol variant */
.cta-band{
  background:var(--fjord);
  color:var(--linen);
  text-align:center;
  padding:clamp(4.5rem,9vw,8rem) 0;
}
.cta-band .eyebrow{color:var(--brass)} /* brass reads better than brass-ink on dark */
.cta-band h2{font-size:clamp(2rem,4.4vw,3.4rem);max-width:18ch;margin:0 auto 1.4rem}
.cta-band p{max-width:52ch;margin:0 auto 2.4rem;color:rgba(237,231,220,.72)}

.cta-band--petrol{background:var(--petrol);padding:clamp(4.5rem,9vw,7rem) 0}
.cta-band--petrol h2{font-size:clamp(1.9rem,4vw,3rem);max-width:20ch;color:var(--linen)}
.cta-band--petrol p{color:rgba(237,231,220,.75)}
footer{
  background:var(--fjord);
  color:rgba(237,231,220,.8);
  padding:4.5rem 0 2.5rem;
  border-top:1px solid rgba(237,231,220,.1);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:3rem;
  margin-bottom:3.5rem;
}
.footer-brand{
  font-family:var(--display);
  font-size:1.2rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--linen);
  line-height:1.5;
}
.footer-brand small{
  display:block;font-family:var(--accent);
  font-size:.6rem;letter-spacing:.5em;color:var(--brass);
}
/* Link-group labels, not headings — as <h4> they skipped a level after the
   preceding <h2>. padding:0 undoes .footer-grid p, which they now match. */
.footer-grid .footer-label{
  font-family:var(--accent);
  font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--brass);
  margin-bottom:1.1rem;font-weight:400;
  padding:0;
}
.footer-grid p, .footer-grid a{font-size:.92rem;display:block;padding:.2rem 0}
.footer-grid a:hover{color:var(--brass)}
.footer-bottom{
  border-top:1px solid rgba(237,231,220,.12);
  padding-top:1.8rem;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;
  font-size:.78rem;color:rgba(237,231,220,.5);
}
/* The privacy link is the only link down here — it has to read as one against
   the 50%-opacity legal line it sits between. */
.footer-bottom a{text-decoration:underline;text-underline-offset:3px;transition:color .3s var(--ease)}
.footer-bottom a:hover{color:var(--brass)}
.reveal{opacity:0;transform:translateY(28px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.in{opacity:1;transform:none}

/* Footer helpers (replaces old inline styles) */
.footer-tagline{margin-top:1.2rem;max-width:34ch}
.footer-grid .footer-label.spaced{margin-top:1.6rem}

/* ==========================================================================
   Leaflet map — markers and popups (js/places-map.js)
   Shared by the two maps on the site: #locMap (index.html) and #expMap
   (experiences.html). The containers themselves keep their own size/border
   in css/home.css and css/experiences.css; only the marker and popup skin
   lives here, because both maps are drawn by the same code.
   ========================================================================== */
#locMap .leaflet-tile-pane,#expMap .leaflet-tile-pane{filter:grayscale(.85) contrast(.92) brightness(1.04) sepia(.08)}
#locMap .leaflet-popup-content-wrapper,#expMap .leaflet-popup-content-wrapper{background:var(--mist);color:var(--fjord);border-radius:0;box-shadow:0 8px 28px rgba(19,43,58,.25)}
#locMap .leaflet-popup-tip,#expMap .leaflet-popup-tip{background:var(--mist)}
#locMap .leaflet-popup-content,#expMap .leaflet-popup-content{margin:18px 20px;font-family:var(--body);font-weight:300;line-height:1.55}
/* Markers — .mk--home is the house itself, .mk--tip an unlinked local favourite */
.mk{width:16px;height:16px;border-radius:50%;background:var(--brass);border:2px solid var(--mist);box-shadow:0 0 0 1px rgba(19,43,58,.3);transition:transform .2s}
.mk:hover{transform:scale(1.25)}
.mk--tip{background:var(--mist);border:2px solid var(--petrol);box-shadow:0 0 0 1px rgba(31,92,86,.25)}
.mk--home{width:22px;height:22px;background:var(--fjord);border:3px solid var(--brass);box-shadow:0 2px 8px rgba(19,43,58,.35)}
/* Popup contents, built as DOM nodes in js/places-map.js */
.pop-cat{font-family:var(--accent);font-size:.6rem;letter-spacing:.26em;text-transform:uppercase;color:var(--brass-ink);display:block;margin-bottom:4px}
.pop-name{font-family:var(--display);font-size:1.1rem;font-weight:500;display:block;margin-bottom:6px}
.pop-blurb{font-size:.84rem;color:var(--slate);display:block}
.pop-link{font-family:var(--accent);font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;color:var(--fjord);text-decoration:none;display:inline-block;margin-top:10px;border-bottom:1px solid var(--brass);padding-bottom:2px}
.pop-link:hover{color:var(--brass)}

/* ---------- Scroll cue (experience heroes + gallery hero) ---------- */
.scroll-cue{position:absolute;z-index:2;right:clamp(20px,4vw,48px);bottom:34px;font-family:var(--accent);font-size:.68rem;letter-spacing:.3em;text-transform:uppercase;writing-mode:vertical-rl;color:rgba(246,245,241,.75)}
.scroll-cue::after{content:"";display:block;width:1px;height:44px;background:var(--brass);margin:14px auto 0;animation:cue 2.2s ease-in-out infinite}
@keyframes cue{0%,100%{transform:scaleY(.4);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}}

/* ==========================================================================
   Date-range picker (js/daterange.js) — used by all three search bars:
   index booking bar, booking.html results bar, unit-page availability bar.
   ========================================================================== */
.dr{position:relative}
.dr-trigger{
  width:100%;text-align:left;border:none;background:none;padding:0;
  font-family:var(--body);font-weight:300;font-size:.95rem;
  color:var(--fjord);cursor:pointer;line-height:1.5;
}
.dr:not(.has-value) .dr-value{color:var(--slate);opacity:.75}
.dr-trigger:focus-visible{outline:2px solid var(--brass);outline-offset:4px}

.dr-pop{
  position:absolute;top:calc(100% + 14px);left:-1rem;z-index:80;
  /* max-content, or an absolutely positioned box would shrink to the width
     of a narrow field (the unit-page sidebar) and the months would overflow */
  width:max-content;max-width:calc(100vw - 28px);
  background:var(--white);border:1px solid var(--line);
  box-shadow:0 28px 70px rgba(19,43,58,.22);
  padding:1.4rem 1.6rem 1.1rem;
}
.dr[data-align="right"] .dr-pop{left:auto;right:-1rem}
.dr-pop[hidden]{display:none}
.dr-head{position:relative;height:0}
.dr-nav{
  position:absolute;top:-.35rem;width:34px;height:34px;
  border:1px solid var(--line);background:var(--white);color:var(--fjord);
  font-size:1rem;line-height:1;cursor:pointer;transition:background .25s var(--ease),color .25s var(--ease);
}
.dr-prev{left:0}
.dr-next{right:0}
.dr-nav:hover:not(:disabled){background:var(--fjord);color:var(--sand)}
.dr-nav:disabled{opacity:.3;cursor:default}
.dr-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.4rem}
.dr-month{min-width:270px}
.dr-month h4{
  font-family:var(--display);font-weight:500;font-size:1.05rem;
  color:var(--fjord);text-align:center;margin:0 0 1rem;
}
.dr-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.dr-dow{
  font-family:var(--accent);font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--slate);text-align:center;padding:.2rem 0 .5rem;
}
.dr-day{
  aspect-ratio:1/1;min-width:38px;border:1px solid var(--line);border-radius:50%;
  background:none;font-family:var(--body);font-size:.85rem;color:var(--fjord);
  cursor:pointer;transition:background .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease);
}
.dr-day:hover:not(:disabled):not(.is-sel){background:var(--mist);border-color:var(--fjord)}
.dr-day:disabled{border-color:transparent;color:rgba(74,90,94,.32);cursor:default}
.dr-day.is-mid{background:var(--linen);border-color:transparent}
.dr-day.is-sel{background:var(--fjord);border-color:var(--fjord);color:var(--sand)}
.dr-day.is-today:not(.is-sel){border-color:var(--brass)}
.dr-day:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.dr-foot{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-top:1.1rem;padding-top:.9rem;border-top:1px solid var(--line);
}
.dr-clear{
  border:none;background:none;color:var(--slate);font-family:var(--body);font-size:.78rem;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.dr-clear:hover{color:var(--fjord)}
.dr-done{
  border:1px solid var(--fjord);background:var(--fjord);color:var(--sand);
  font-family:var(--accent);font-size:.68rem;letter-spacing:.24em;text-transform:uppercase;
  padding:.7rem 1.6rem;cursor:pointer;transition:background .25s var(--ease),color .25s var(--ease);
}
.dr-done:hover{background:var(--brass);border-color:var(--brass);color:var(--fjord)}

@media (max-width:820px){
  /* Bottom sheet — the popover would otherwise be wider than the viewport.
     Keep in sync with the 1-vs-2 month test in js/daterange.js. */
  .dr-pop,.dr[data-align="right"] .dr-pop{
    position:fixed;left:10px;right:10px;top:auto;bottom:10px;
    width:auto;max-width:none;max-height:82vh;overflow-y:auto;
  }
  .dr-months{grid-template-columns:1fr}
}

/* ==========================================================================
   Loading curtain — full-screen fjord overlay
   Used while the booking page waits for /api/availability, and on departure
   from the index booking bar so the navigation reads as one continuous
   screen. Markup exists twice (no templating): static in booking.html, and
   built by ARSHCurtain() in js/main.js for the departure case — keep the two
   in sync. Everything below is decoration on a dark ground, so plain --brass
   is the correct brass here.
   ========================================================================== */
.curtain{
  position:fixed;inset:0;z-index:200;
  background:var(--fjord);color:var(--sand);
  display:flex;align-items:center;justify-content:center;
  opacity:1;transition:opacity .78s var(--ease),transform .78s var(--ease);
}
/* Departure copy starts transparent and fades IN over the page it leaves —
   fast, because the navigation follows right behind it (js/main.js) and the
   arriving page's curtain is opaque from its first frame. */
.curtain.curtain--enter{opacity:0;transition-duration:.3s}
.curtain.curtain--enter.is-in{opacity:1}
/* The departure copy lives for ~300 ms, so it leaves the bridge out: the
   arriving page draws it once, instead of the stroke visibly restarting. */
.curtain--enter .cu-arch,
.curtain--enter .cu-deck,
.curtain--enter .cu-pier,
.curtain--enter .cu-spark{visibility:hidden}
/* Lift: the screen drifts up and dissolves, revealing the results beneath */
.curtain.is-lifting{opacity:0;transform:translateY(-1.5%) scale(1.015);pointer-events:none}
.curtain.is-gone{visibility:hidden}
html.curtain-open,html.curtain-open body{overflow:hidden}

/* Petrol glow rising off the horizon */
.curtain-glow{
  position:absolute;left:50%;top:56%;translate:-50% -50%;
  width:min(1180px,150vw);aspect-ratio:2/1;pointer-events:none;
  background:radial-gradient(closest-side,rgba(31,92,86,.5),rgba(31,92,86,0) 70%);
  animation:cu-breathe 6s var(--ease) infinite;
}
@keyframes cu-breathe{0%,100%{opacity:.55}50%{opacity:.95}}

.curtain-inner{
  position:relative;width:min(700px,88vw);text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:26px;
}
.curtain-brand{
  font-family:var(--display);font-size:clamp(22px,3.4vw,30px);font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;line-height:1.1;
  animation:cu-rise .9s .1s var(--ease) both;
}
.curtain-brand small{
  display:block;font-family:var(--accent);font-weight:300;
  font-size:.36em;letter-spacing:.52em;color:var(--brass);margin-top:.7em;
}
@keyframes cu-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* ---- the coast: horizon, the bridge arch, drifting swell ---- */
.curtain-art{width:100%;height:auto;display:block;overflow:visible}
/* Sea and horizon dissolve sideways into the fjord instead of stopping
   at a hard edge; the bridge keeps its full contrast in the middle. */
.cu-waves,.cu-horizon{
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);
}
.cu-horizon{stroke:rgba(237,231,220,.22);stroke-width:1}
.cu-waves path{stroke:rgba(237,231,220,.20);stroke-width:1.2;fill:none}
.cu-waves g{animation:cu-drift 9s linear infinite}
.cu-waves g:nth-child(2){animation-duration:13s;opacity:.7}
.cu-waves g:nth-child(3){animation-duration:17s;opacity:.45}
@keyframes cu-drift{from{transform:translateX(0)}to{transform:translateX(-160px)}}
.cu-pier{stroke:rgba(237,231,220,.30);stroke-width:1}
.cu-arch{stroke:var(--brass);stroke-width:2;fill:none;stroke-linecap:round}
.cu-deck{stroke:var(--brass-soft);stroke-width:1;fill:none;opacity:.55}
/* A single light crossing the bridge — the Atlantic Road at night.
   Hidden unless it can travel: without its path animation the circle would
   just sit in the corner of the artwork. */
.cu-spark{display:none;fill:var(--brass-soft);filter:drop-shadow(0 0 6px rgba(201,168,118,.9))}

/* Status line + indeterminate progress */
.curtain-status{
  font-family:var(--accent);font-size:.74rem;letter-spacing:.26em;
  text-transform:uppercase;color:rgba(237,231,220,.78);
  animation:cu-rise .9s .45s var(--ease) both;
}
.curtain-bar{
  width:min(260px,60vw);height:1px;background:rgba(237,231,220,.18);
  overflow:hidden;animation:cu-rise .9s .55s var(--ease) both;
}
.curtain-bar i{
  /* The width below is the reduced-motion resting state; cu-fill animates
     over it from 0 when motion is allowed. */
  display:block;height:100%;width:38%;
  background:linear-gradient(90deg,transparent,var(--brass),var(--brass-soft));
  animation:cu-fill 2.6s var(--ease) forwards;
}
/* Eases towards 88 % while waiting; the lift completes it */
@keyframes cu-fill{from{width:0}to{width:88%}}
.curtain.is-lifting .curtain-bar i{width:100%;transition:width .3s var(--ease)}

@media(prefers-reduced-motion:no-preference){
  /* Drawn only when motion is welcome — otherwise the dash offset would
     leave the arch invisible, since reduced motion kills the animation. */
  /* Sized to finish inside CURTAIN_MIN_MS in js/booking.js (1.3 s) */
  .cu-arch{stroke-dasharray:760;stroke-dashoffset:760;animation:cu-draw 1.05s .12s var(--ease) forwards}
  .cu-deck{stroke-dasharray:760;stroke-dashoffset:760;animation:cu-draw 1.05s .3s var(--ease) forwards}
  .cu-spark{
    display:block;
    offset-path:path("M56 188C176 58 464 58 584 188");
    offset-rotate:0deg;animation:cu-travel 2.8s .8s var(--ease) infinite;
  }
  @keyframes cu-draw{to{stroke-dashoffset:0}}
  @keyframes cu-travel{
    0%{offset-distance:0%;opacity:0}
    12%{opacity:1}
    88%{opacity:1}
    100%{offset-distance:100%;opacity:0}
  }
}
@media (max-width:640px){
  .curtain-inner{gap:20px}
  .curtain-status{font-size:.62rem;letter-spacing:.2em}
}

/* ==========================================================================
   Cookie consent banner
   Injected by js/main.js on EVERY page (never copy-pasted into the HTML), so
   it is styled here rather than in a page sheet. Deliberately a polite bottom
   bar, not a modal: it does not trap focus and does not block the page, and
   "Decline" carries exactly the same weight as "Accept" — a reject button that
   is harder to find than accept is not valid consent under GDPR/ePrivacy.
   z-index sits ABOVE the sticky header (100) but BELOW the overlay menu and
   the loading curtain (both 200) and the gallery lightbox (300) — a consent
   bar floating over an open menu or a page transition is a bug, not a nag.
   ========================================================================== */
.cc-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:150;
  background:var(--fjord);color:var(--linen);
  border-top:1px solid var(--brass);
  box-shadow:0 -12px 40px rgba(19,43,58,.28);
  padding:1.4rem clamp(20px,4vw,56px);
}
.cc-inner{
  max-width:1240px;margin:0 auto;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1.2rem 2.4rem;
}
.cc-text{max-width:62ch;font-size:.9rem;color:rgba(237,231,220,.82)}
.cc-text strong{
  display:block;margin-bottom:.35rem;
  font-family:var(--accent);font-size:.74rem;letter-spacing:.24em;text-transform:uppercase;
  font-weight:400;color:var(--brass);
}
.cc-text a{color:var(--brass-soft);text-decoration:underline;text-underline-offset:3px}
.cc-text a:hover{color:var(--linen)}
.cc-actions{display:flex;gap:.8rem;flex-shrink:0}
/* Both buttons share one size and one shape; only the fill differs. */
.cc-btn{
  font-family:var(--accent);font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;
  padding:.85rem 1.6rem;border:1px solid var(--brass);border-radius:0;
  background:transparent;color:var(--linen);cursor:pointer;
  transition:background .3s var(--ease),color .3s var(--ease);
}
.cc-btn:hover{background:rgba(177,138,84,.18)}
.cc-btn--accept{background:var(--brass);color:var(--fjord)}
.cc-btn--accept:hover{background:var(--brass-soft)}
@media (max-width:640px){
  .cc-inner{flex-direction:column;align-items:stretch}
  .cc-actions{flex-direction:column}
  .cc-btn{width:100%}
}

/* Shared responsive rules */
@media (max-width:820px){
  .overlay-body{grid-template-columns:1fr;align-content:start;gap:2rem;overflow-y:auto;padding-top:3rem}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  /* .32em tracking on a .78rem word breaks uppercase eyebrows mid-phrase
     on a 390px screen — tighten once, globally (no page overrides tracking). */
  .eyebrow{font-size:.72rem;letter-spacing:.2em;text-wrap:balance}
  .overlay-aside .overlay-aside-label{letter-spacing:.2em}
}
@media (max-width:480px){
  /* The longest eyebrow ("Direct with your host · Best rate") needs one more
     step down to stay on a single line at 390px. */
  .eyebrow{font-size:.66rem;letter-spacing:.16em}
}
/* NOTE: the --bp-short (max-height:700px) hero rules cannot live here — the
   page stylesheets load after main.css and would win. They sit at the end of
   css/home.css, css/unit.css and css/gallery.css instead. */

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