:root {
  color-scheme: light;
  --ink: #17313b;
  --muted: #61747b;
  --paper: #fffaf2;
  --white: #ffffff;
  --reef: #007f8a;
  --reef-dark: #075b63;
  --leaf: #2d6a4f;
  --sun: #f4b942;
  --line: rgba(23, 49, 59, 0.16);
  --shadow: 0 18px 50px rgba(23, 49, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--reef-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: min(320px, 64vw);
  max-height: 42px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--leaf);
}

.nav-group {
  position: relative;
}

.primary-nav > .nav-item,
.primary-nav > .nav-group > summary,
.primary-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.primary-nav > .nav-item:hover,
.primary-nav > .nav-group > summary:hover,
.primary-nav > a:hover {
  background: rgba(0, 127, 138, 0.07);
  border-color: var(--line);
}

.nav-group summary {
  color: var(--reef-dark);
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker { display: none; }

.nav-group summary[aria-current="page"] {
  color: var(--leaf);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 230px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.nav-menu a {
  padding: 11px 12px;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(0, 127, 138, 0.08);
}

.nav-menu-wide { min-width: 260px; }

.nav-menu-label {
  padding: 4px 12px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.breadcrumbs {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
  font-size: 14px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  min-height: 520px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  align-self: center;
  padding: clamp(42px, 7vw, 96px) clamp(24px, 6vw, 92px);
}

.eyebrow,
.panel-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-image {
  min-height: 420px;
  overflow: hidden;
  background: var(--ink);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.byline {
  width: min(1180px, calc(100vw - 36px));
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 64px);
  width: min(1180px, calc(100vw - 36px));
  margin: 56px auto;
}

.main-copy,
.side-rail {
  min-width: 0;
}

.highlights,
.content-section,
.affiliate-panel,
.quick-guide,
.email-capture,
.planning-notes,
.related {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 34px;
}

.highlights:first-child {
  margin-top: 0;
}

.content-subsection {
  margin-top: 28px;
}

.content-subsection h3 {
  font-size: 21px;
}

.section-links ul {
  padding: 18px 22px 18px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-wrap {
  max-width: 100%;
  margin-top: 24px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--white);
}

caption {
  padding: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

th,
td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: #f4fbfa;
}

ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

li {
  margin: 10px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.affiliate-panel {
  padding: 28px;
  background: #f4fbfa;
  border: 1px solid rgba(0, 127, 138, 0.18);
  border-radius: 8px;
}

.affiliate-panel button,
.affiliate-panel .affiliate-link,
.email-capture button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--reef-dark);
  font-weight: 800;
  cursor: pointer;
}

.affiliate-panel .affiliate-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  text-decoration: none;
}

.affiliate-panel button:disabled,
.email-capture button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.affiliate-choices,
.stay22-map,
.trip-planner {
  margin-top: 32px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f5ed;
}

.stay22-map-stage {
  min-height: 380px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin: 18px 0 12px;
  padding: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  text-align: center;
}

.stay22-map-stage button { min-height: 44px; }
.stay22-map-stage p { max-width: 58ch; margin: 0; }
.stay22-map-frame { width: 100%; height: clamp(380px, 52vw, 460px); border: 0; border-radius: 8px; background: var(--white); }
.stay22-fallback { display: inline-flex; align-items: center; min-height: 44px; }

.journey-diagram {
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef8f7;
}
.journey-diagram figcaption { display: grid; gap: 4px; margin-bottom: 18px; }
.journey-diagram figcaption strong { font-size: 1.25rem; }
.journey-diagram figcaption span { color: var(--muted); }
.journey-diagram ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-diagram li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 130px;
  margin: 0;
  padding: 16px;
  border-radius: 9px;
  background: var(--white);
}
.journey-diagram li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -11px;
  top: 50%;
  z-index: 1;
  color: var(--reef-dark);
  font-weight: 800;
}
.diagram-step {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--reef-dark);
  font-size: 0.82rem;
}
.journey-diagram small { color: var(--muted); line-height: 1.4; }

.affiliate-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.affiliate-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.affiliate-choice h3 { margin: 6px 0 9px; }
.affiliate-choice p { margin: 6px 0; }
.affiliate-choice .affiliate-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border-radius: 6px;
  color: var(--white);
  background: var(--reef-dark);
  font-weight: 800;
  text-decoration: none;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.planner-grid label { display: grid; gap: 6px; font-weight: 800; }
.planner-grid small { font-weight: 400; color: var(--muted); }
.planner-grid input,
.planner-grid textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
}

.planner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.planner-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--reef-dark);
  border-radius: 6px;
  color: var(--white);
  background: var(--reef-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.planner-actions .button-secondary { color: var(--reef-dark); background: transparent; }

.side-rail {
  align-self: start;
  position: sticky;
  top: 96px;
}

.quick-guide,
.email-capture {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-capture form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.email-capture label {
  font-weight: 800;
}

.email-capture input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.form-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.planning-notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  width: min(1180px, calc(100vw - 36px));
  margin: 56px auto;
}

code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.92em;
}

.related {
  width: min(1180px, calc(100vw - 36px));
  margin: 56px auto 84px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-card span {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.related-card strong {
  font-size: 20px;
}

.site-footer {
  padding: 32px clamp(18px, 4vw, 52px);
  background: var(--ink);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px 20px;
  margin-top: 18px;
}

.utility-page {
  width: min(820px, calc(100vw - 36px));
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.utility-page h1 {
  font-size: clamp(42px, 7vw, 72px);
}

.utility-page .utility-intro {
  color: var(--ink);
  font-size: clamp(20px, 3vw, 25px);
}

.utility-page > .byline {
  width: auto;
  margin: 24px 0 48px;
}

.utility-page > section {
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.utility-form {
  max-width: 620px;
  padding: 28px;
}

.form-note {
  font-size: 14px;
}

.affiliate-disclosure {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.66);
}

.affiliate-context {
  margin: 1rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.consent-panel {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  width: min(26rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(20, 63, 67, 0.2);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(14, 45, 48, 0.2);
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 1rem;
}

.consent-panel[hidden] { display: none; }
.consent-panel h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.consent-panel p { margin: 0; font-size: 0.9rem; }
.consent-actions { display: flex; gap: 0.6rem; }
.consent-actions button { min-height: 44px; flex: 1 1 0; }

.site-search { margin-top: 2rem; }
.site-search label { display: block; margin-bottom: 0.5rem; font-weight: 800; }
.search-controls { display: flex; gap: 0.65rem; }
.search-controls input { flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0.75rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
.search-controls button { min-height: 48px; }
.search-results { display: grid; gap: 1rem; margin-top: 1.5rem; }
.search-result { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.search-result span { color: var(--reef); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.search-result h2 { margin: 0.25rem 0 0.35rem; font-size: 1.25rem; }
.search-result p { margin: 0; }

.source-citations { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.source-citations a { font-weight: 700; }
.planning-glossary { width: min(1180px, calc(100% - 40px)); margin: 0 auto 2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.planning-glossary summary { color: var(--reef-dark); font-weight: 800; cursor: pointer; }
.planning-glossary dl { display: grid; grid-template-columns: minmax(8rem, 0.25fr) 1fr; gap: 0.5rem 1rem; }
.planning-glossary dt { font-weight: 800; }
.planning-glossary dd { margin: 0; }
.plan-brief { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.65); }
.plan-brief[hidden] { display: none; }
.plan-brief h3 { margin-top: 0; }
.plan-brief dl { display: grid; grid-template-columns: minmax(9rem, 0.3fr) 1fr; gap: 0.55rem 1rem; }
.plan-brief dt { font-weight: 800; }
.plan-brief dd { margin: 0; white-space: pre-wrap; }

@media (max-width: 700px) {
  .consent-panel { right: 0.65rem; bottom: 0.65rem; width: calc(100vw - 1.3rem); }
  .consent-panel p { font-size: 0.82rem; line-height: 1.35; }
  .consent-actions { flex-wrap: wrap; }
  .consent-actions button { flex: 1 1 10rem; }
  .affiliate-choice-grid,
  .planner-grid { grid-template-columns: 1fr; }
  .journey-diagram ol { grid-template-columns: 1fr; }
  .journey-diagram li { min-height: auto; }
  .journey-diagram li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -13px; }
  .search-controls { align-items: stretch; flex-direction: column; }
  .planning-glossary dl,
  .plan-brief dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .planning-glossary dd,
  .plan-brief dd { margin-bottom: 0.65rem; }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 68px;
    padding: 10px 18px;
  }

  nav {
    justify-content: flex-start;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100vh - 68px);
    gap: 8px;
    padding: 18px;
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .primary-nav { display: none; }
  .js.nav-open .primary-nav { display: grid; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    color: var(--reef-dark);
    font: inherit;
    font-weight: 800;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
  }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 160ms ease;
  }

  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before { position: absolute; top: -6px; }
  .nav-toggle-icon::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

  .primary-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .primary-nav > .nav-item,
  .primary-nav > .nav-group > summary,
  .primary-nav > a {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    background: var(--white);
    border-color: var(--line);
    border-radius: 10px;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group summary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  .nav-menu {
    position: static;
    gap: 2px;
    margin: 8px 0 4px;
    padding: 8px 8px 10px;
    background: #eef8f6;
    border-radius: 10px;
    box-shadow: none;
  }

  .nav-menu a { padding: 10px 12px; }

  .hero,
  .page-grid,
  .planning-notes {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 320px;
    order: -1;
  }

  .hero-image img {
    min-height: 320px;
  }

  .side-rail {
    position: static;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.orientation-map { margin: 2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #eef8f6; }
.orientation-map img { display: block; width: 100%; height: auto; }
.orientation-map figcaption { margin-top: .75rem; color: var(--muted); font-size: .92rem; }
.transport-actions { margin: 2.5rem 0; }
.transport-action { padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.transport-action h3 { margin: .35rem 0 .75rem; }
.primary-action { display: inline-block; min-height: 44px; padding: .75rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.spatial-anchor { display: grid; grid-template-columns: minmax(0, .8fr) minmax(280px, 1.2fr); gap: 1.25rem; align-items: center; margin: 2.25rem 0; padding: 1.25rem; overflow: hidden; border: 1px solid rgba(0, 127, 138, .24); border-radius: 18px; background: linear-gradient(135deg, #f7fcfb, #e8f7f4); }
.spatial-anchor img { display: block; width: 100%; height: auto; min-width: 0; border-radius: 12px; }
.spatial-anchor-copy p { margin-top: .75rem; font-size: 1rem; }
.spatial-region-links { justify-content: flex-start; gap: .45rem; margin-top: 1rem; }
.spatial-region-links a { display: inline-flex; min-height: 36px; align-items: center; padding: .4rem .65rem; border: 1px solid rgba(0, 127, 138, .24); border-radius: 999px; background: #fff; font-size: .78rem; }
.spatial-region-links a[aria-current="location"] { color: #fff; background: var(--reef-dark); border-color: var(--reef-dark); }
.journey-connections { margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.journey-connection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.journey-connection-grid a { display: flex; min-height: 148px; flex-direction: column; gap: .55rem; padding: 1rem; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.journey-connection-grid a:hover { border-color: var(--reef); box-shadow: 0 8px 24px rgba(23, 49, 59, .08); }
.journey-connection-grid strong { color: var(--reef-dark); font-size: 1rem; }
.journey-connection-grid span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

@media (max-width: 700px) {
  .spatial-anchor { grid-template-columns: 1fr; padding: 1rem; }
  .spatial-anchor img { order: -1; }
  .journey-connection-grid { grid-template-columns: 1fr; }
  .journey-connection-grid a { min-height: 0; }
}

@media print {
  .site-header,
  .side-rail,
  .site-footer,
  .consent-panel,
  .affiliate-panel,
  .affiliate-choices,
  .related,
  .planner-actions { display: none !important; }
  .page-grid { display: block; }
  .trip-planner { border: 0; padding: 0; }
}
