/* Surfbooker destination guide template — shares the Westward Ho! benchmark design language. */
:root {
  --ink: #0f2a33;
  --ink-2: #173b46;
  --paper: #f5f4ef;
  --paper-2: #ebece6;
  --white: #fff;
  --muted: #5b6e73;
  --line: #d8ddda;
  --accent: #dce9e8;
  --sand: #efe6d3;
  --radius: 20px;
  --shadow: 0 16px 45px rgba(7, 28, 35, 0.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; background: var(--paper); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(1180px, 92%); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #4fa3b4; outline-offset: 2px; }

/* HERO */
.dg-hero { position: relative; min-height: min(78vh, 760px); color: #fff; display: flex; flex-direction: column; overflow: hidden; background: var(--ink); }
.dg-hero-media { position: absolute; inset: 0; margin: 0; }
.dg-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.dg-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4, 18, 23, 0.45) 0%, rgba(4, 18, 23, 0.12) 30%, rgba(4, 18, 23, 0.78) 100%); pointer-events: none; }
.dg-hero.no-photo { background: radial-gradient(circle at 20% 20%, #285c68 0, transparent 55%), linear-gradient(135deg, #0f2a33, #1f4a55); }
.dg-topbar, .dg-hero-inner, .dg-hero-credit { position: relative; z-index: 2; }
.dg-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 4%; }
.dg-brand { display: inline-flex; background: transparent; border-radius: 0; padding: 0; box-shadow: none; }
.dg-brand img { width: 150px; height: auto; display: block; }
.dg-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; font-weight: 600; }
.dg-nav a { text-decoration: none; padding: 9px 13px; border-radius: 999px; color: #fff; }
.dg-nav a:hover, .dg-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
.dg-hero-inner { width: min(1180px, 92%); margin: auto auto 0; padding: 40px 0 96px; }
.dg-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; margin: 0 0 18px; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.85); }
.dg-crumbs li + li::before { content: "›"; margin-right: 6px; opacity: 0.7; }
.dg-crumbs a { text-decoration: none; }
.dg-crumbs a:hover { text-decoration: underline; }
.dg-eyebrow { font-size: 12px; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 700; margin: 0 0 10px; }
.dg-hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(54px, 9vw, 118px); line-height: 0.9; margin: 0 0 20px; text-wrap: balance; }
.dg-hero-intro { font-size: clamp(17px, 2vw, 21px); line-height: 1.55; max-width: 680px; margin: 0 0 26px; color: rgba(255, 255, 255, 0.94); }
.dg-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dg-hero-credit { position: absolute; right: 12px; bottom: 62px; font-size: 11px; color: rgba(255, 255, 255, 0.78); max-width: 60%; text-align: right; }
.dg-hero-credit a { color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }

/* AT A GLANCE */
.dg-glance-wrap { margin-top: -54px; position: relative; z-index: 3; }
.dg-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.dg-glance div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dg-glance dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 6px; }
.dg-glance dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }

/* JUMP NAV */
.dg-jump { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 239, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-top: 26px; }
.dg-jump .shell { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.dg-jump .shell::-webkit-scrollbar { display: none; }
.dg-jump a { flex: 0 0 auto; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 13px; font-weight: 600; }
.dg-jump a:hover { border-color: var(--ink); }

/* SECTIONS */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 780px; margin-bottom: 30px; }
.section-head .dg-eyebrow { color: var(--ink-2); }
.section.dark .dg-eyebrow { color: #a9cfd6; }
.section-head h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(38px, 5.4vw, 62px); line-height: 1; margin: 0 0 14px; text-wrap: balance; }
.section-head p { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0; }
.section.dark .section-head p { color: rgba(255, 255, 255, 0.75); }
.prose { font-size: 17px; line-height: 1.8; color: #3d555c; max-width: 760px; }
.prose p { margin: 0 0 1em; }
.prose strong { color: var(--ink); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 34px; align-items: start; }
.note-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.note-card h3 { margin: 0 0 12px; font-size: 20px; }
.note-card p, .note-card li { color: var(--muted); line-height: 1.6; }
.note-card ul { padding-left: 18px; margin: 0; }
.note-card li + li { margin-top: 8px; }

/* FIGURES */
.dg-figure { margin: 34px 0 0; }
.dg-figure img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 16 / 9; background: var(--paper-2); }
.dg-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.dg-figure figcaption a { color: inherit; }
.dg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 34px; }
.dg-split .dg-figure { margin: 0; }
.dg-split h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 34px; margin: 0 0 12px; }
.dg-photo-needed { border: 2px dashed #b9c7c6; border-radius: var(--radius); padding: 26px; color: var(--muted); background: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 1.6; }

/* CARDS */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.info-card { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid rgba(15, 42, 51, 0.06); }
.section.alt .info-card { border-color: transparent; }
.info-card .small-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.info-card h3 { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.info-card p { margin: 0; color: #4b6268; line-height: 1.6; font-size: 15px; }
.info-card p + p { margin-top: 8px; }
.info-card a { font-weight: 600; }

/* LISTINGS */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.listing-card { background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(15, 42, 51, 0.06); text-decoration: none; }
.listing-card .lc-media { aspect-ratio: 3 / 2; background: var(--paper-2); position: relative; }
.listing-card .lc-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .lc-media .lc-area-note { position: absolute; left: 8px; bottom: 8px; background: rgba(15, 42, 51, 0.78); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 999px; }
.listing-card .lc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing-card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.listing-card p { margin: 0; color: #4b6268; font-size: 14.5px; line-height: 1.55; }
.listing-card .lc-meta { font-size: 13px; color: var(--muted); }
.listing-card .lc-action { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.badge { display: inline-flex; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); }
.badge.reviewed { background: #ffe7b3; }
.badge.partner { background: #d6f0d8; }
.badge.listed { background: var(--accent); }
.badge.researched { background: #eceff0; color: #43585e; }
.dg-rows { display: grid; gap: 10px; }
.dg-row { background: #fff; border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: start; border: 1px solid rgba(15, 42, 51, 0.06); }
.dg-row h3 { margin: 0; font-size: 16px; }
.dg-row p { margin: 0; color: #4b6268; font-size: 14.5px; line-height: 1.55; grid-column: 1 / -1; }
.dg-row .dg-row-type { font-size: 12px; color: var(--muted); font-weight: 600; }
.dg-row a.dg-row-link { font-size: 13px; font-weight: 700; white-space: nowrap; }
.section-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.6; max-width: 820px; }
.section-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* NEARBY */
.nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.nearby-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 20px; text-decoration: none; display: block; }
.nearby-card h3 { margin: 0 0 6px; font-size: 18px; }
.nearby-card p { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 14.5px; line-height: 1.55; }
.nearby-card .nb-dist { display: block; font-size: 12px; color: #a9cfd6; margin-bottom: 6px; font-weight: 700; letter-spacing: 0.04em; }
a.nearby-card:hover { background: rgba(255, 255, 255, 0.12); }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-list details { background: #fff; border-radius: 14px; border: 1px solid rgba(15, 42, 51, 0.07); }
.faq-list summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 20px 18px; color: #4b6268; line-height: 1.65; }

/* SOURCES */
.dg-sources { font-size: 14px; color: var(--muted); line-height: 1.7; }
.dg-sources ul { padding-left: 18px; margin: 8px 0 0; columns: 2 280px; }
.dg-sources a { color: var(--ink-2); }
.dg-credits { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* REGION HUB */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.hub-card { transition: transform .15s ease, box-shadow .15s ease; color: inherit; }
.hub-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 42, 51, 0.12); }
.lc-media-empty { display: flex; align-items: flex-end; padding: 16px; background: radial-gradient(circle at 20% 20%, #285c68 0, transparent 60%), linear-gradient(135deg, #0f2a33, #1f4a55); }
.lc-media-empty span { color: rgba(255, 255, 255, 0.85); font-family: "Instrument Serif", Georgia, serif; font-size: 26px; }
.hub-az { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 24px; }
.hub-az li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid rgba(15, 42, 51, 0.08); }
.hub-az a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.hub-az a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .intro-grid, .dg-split { grid-template-columns: 1fr; }
  .dg-topbar { flex-direction: column; gap: 8px; padding-bottom: 0; }
  .dg-nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; justify-content: flex-start; scrollbar-width: none; font-size: 13px; }
  .dg-nav::-webkit-scrollbar { display: none; }
  .dg-nav a { flex: 0 0 auto; padding: 7px 11px; background: rgba(255, 255, 255, 0.12); }
}
@media (max-width: 600px) {
  .section { padding: 46px 0; }
  .dg-hero { min-height: 540px; }
  .dg-hero-inner { padding: 30px 0 84px; }
  .dg-glance { grid-template-columns: 1fr 1fr; }
  .dg-glance div { padding: 14px; }
  .dg-glance dd { font-size: 14px; }
  .section-head p, .prose { font-size: 16px; }
  .dg-row { grid-template-columns: 1fr; }
  .dg-hero-credit { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hub tweaks */
.hub-page .dg-hero-credit { bottom: 10px; }
.hub-page .dg-hero-inner { padding-bottom: 64px; }
@media (max-width: 600px) {
  .dg-brand img { width: 124px; }
  .dg-brand { padding: 0; }
  .hub-page .dg-hero { min-height: 0; }
  .hub-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hub-grid .lc-body { padding: 12px 12px 14px; }
  .hub-grid .listing-card h3 { font-size: 16px; }
  .hub-grid .listing-card p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 380px) { .hub-grid { grid-template-columns: 1fr; } }
