/* Fonts are self-hosted (latin only) so visitors' IPs never go to Google. Files in assets/fonts/. */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500.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: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/public-sans.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: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/public-sans.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: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/public-sans.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: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/public-sans.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: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/young-serif-400.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;
}

/* Beach Haven San Remo — shared styles.
   Look: salt-washed white, deep harbour ink, Western Port teal; Young Serif headings, Public Sans body, Plex Mono labels. */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --ink: #12303a;
  --muted: #557079;
  --line: #d7e2e4;
  --sea: #0f6e7c;
  --sea-dark: #0b5562;
  --sea-ink: #ffffff;
  --sea-soft: #e3f1f2;
  --sand: #ece4d3;
  --sold: #8a9599;
  --flag: #b5502a;
  --flag-bg: #fbeee7;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d1a1f; --surface: #13252b; --ink: #e4eef0; --muted: #93abb1; --line: #24414a;
  --sea: #4fb3c0; --sea-dark: #7ccbd5; --sea-ink: #062026; --sea-soft: #173840; --sand: #1c2a2a; --sold: #6d7c80;
  --flag: #f0946d; --flag-bg: #2e1d16; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0d1a1f; --surface: #13252b; --ink: #e4eef0; --muted: #93abb1; --line: #24414a;
  --sea: #4fb3c0; --sea-dark: #7ccbd5; --sea-ink: #062026; --sea-soft: #173840; --sand: #1c2a2a; --sold: #6d7c80;
  --flag: #f0946d; --flag-bg: #2e1d16; color-scheme: dark }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
a { color: var(--sea); }
.eyebrow { font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.lede { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section { padding-block: clamp(52px, 7vw, 92px); }
.sec-head { display: grid; gap: 10px; margin-bottom: 30px; }
.sec-head.split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 24px; }
.sec-head.split > * { grid-column: 1; }
.sec-head.split > :last-child { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 720px) { .sec-head.split { grid-template-columns: 1fr; } .sec-head.split > :last-child { grid-column: 1; grid-row: auto; justify-self: start; } }

/* buttons */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font: 600 .95rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--sea); color: var(--sea-ink); }
.btn.primary:hover { background: var(--sea-dark); }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn.light { background: #fff; color: #0b2a33; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.link { font-weight: 600; color: var(--sea); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand strong { display: block; font: 400 1.3rem/1 var(--display); }
.brand small { display: block; font: 500 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .93rem; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--line); }
.nav a[aria-current="page"] { border-color: var(--sea); font-weight: 600; }
.nav .btn { padding: 9px 16px; border: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: 600 .9rem var(--body); color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { color: var(--sea); border-color: var(--line); }
  .nav .btn { margin-top: 12px; padding: 12px; border-bottom: 0; }
}

/* page hero (inner pages) */
.page-hero { position: relative; color: #fff; background-color: #0b2a33; background-position: center; background-size: cover; background-repeat: no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,28,35,.84), rgba(6,28,35,.4) 70%, rgba(6,28,35,.15)); }
.page-hero .wrap { position: relative; padding-block: clamp(64px, 10vw, 128px); display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); max-width: 17ch; }
.page-hero p { max-width: 54ch; font-size: 1.08rem; color: #e4f0f2; }
.page-hero .eyebrow { color: #9fe0e8; }

/* booking bar */
.bookbar { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1.2fr)) repeat(2, minmax(0, .8fr)) auto; gap: 10px; align-items: end; box-shadow: 0 18px 40px -24px rgba(6,28,35,.55); }
.bookbar label { display: grid; gap: 4px; font: 500 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.bookbar input, .bookbar select { font: 500 1rem var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 10px; width: 100%; min-width: 0; letter-spacing: 0; text-transform: none; }
.bookbar .btn { height: 46px; white-space: nowrap; }
.bookbar .note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.bookbar .err { grid-column: 1 / -1; font-size: .85rem; color: var(--flag); }
@media (max-width: 860px) { .bookbar { grid-template-columns: repeat(2, minmax(0,1fr)); } .bookbar .btn { grid-column: 1 / -1; } }

/* cards: stay */
.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.stay-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1100px) { .stay-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .stay-grid, .stay-grid.four { grid-template-columns: 1fr; } }
.stay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.stay-card .media { position: relative; aspect-ratio: 3 / 2; max-width: 100%; }
.stay-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stay-card .badge { position: absolute; left: 12px; top: 12px; background: var(--surface); color: var(--ink); font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 4px; }
.stay-card .body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; }
.stay-card p { color: var(--muted); font-size: .94rem; }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 .8rem var(--mono); color: var(--ink); }
.facts-row span b { font-weight: 500; color: var(--muted); margin-right: 4px; }

/* icon list */
.icons { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px 24px; }
.icons div { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 12px; align-items: start; }
.icons svg { width: 36px; height: 36px; padding: 7px; border-radius: 8px; background: var(--sea-soft); color: var(--sea); }
.icons b { display: block; font-weight: 600; }
.icons span { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .icons { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px) { .icons { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.3rem/1 var(--display); color: var(--sea); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 66ch; }

/* band + cta */
.band { background: var(--sand); }
.cta { background: var(--ink); color: var(--bg); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta .eyebrow { color: var(--sea-soft); opacity: .8; }
.cta dl { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 24px; margin: 0; }
.cta dt { font: 500 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.cta dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.cta dd a { color: inherit; text-decoration: none; }
.cta .btn.primary { background: var(--bg); color: var(--ink); }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cta dl { grid-template-columns: 1fr; } }

/* gallery + lightbox */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.thumbs button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.thumbs button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5,18,22,.94); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 84vh; max-width: 100%; margin: auto; display: block; border-radius: 6px; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox figcaption { color: #cfe7ea; font: 500 .8rem var(--mono); }
.lightbox button { background: rgba(255,255,255,.1); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .close { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.site-footer .grid { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 28px; padding-block: 44px 28px; }
.site-footer h4 { margin: 0 0 10px; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--sea); }
.site-footer .ack { border-top: 1px solid var(--line); padding-block: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.site-footer .ack p { max-width: 70ch; }
@media (max-width: 820px) { .site-footer .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .site-footer .grid > :first-child { grid-column: 1 / -1; } }

/* mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .mobile-bar .btn { padding: 12px; }
  body { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .thumbs img { transition: none; } }

/* Legal pages (privacy, accessibility) */
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal .wrap > * { max-width: 72ch; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .updated { font: 500 .8rem var(--mono); color: var(--muted); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
