:root {
  --bg: #f3efe7;
  --surface: rgba(255, 250, 242, 0.9);
  --surface-strong: #fffaf2;
  --text: #1d2b28;
  --muted: #556764;
  --line: rgba(29, 43, 40, 0.12);
  --accent: #0f766e;
  --accent-2: #d97706;
  --shadow: 0 18px 40px rgba(28, 42, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 242, 0.82);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__eyebrow {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.brand__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.9;
  font-weight: 600;
}

.brand__subtitle {
  font-size: 14px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav__link {
  text-decoration: none;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.3);
}

.nav__link.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fffaf2;
}

.nav__link.is-disabled {
  opacity: 0.72;
}

.page {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 24px 28px;
}

.page--map {
  max-width: none;
  padding: 16px;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__card,
.content-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero__card {
  padding: 18px 20px;
}

.hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.95;
  font-weight: 600;
}

.hero__copy {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-size: 13px;
}

.map-shell {
  position: relative;
  min-height: calc(100vh - 220px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

#map {
  width: 100%;
  height: min(72vh, 920px);
  min-height: 560px;
}

.legend,
.filter-bar,
.info-box {
  position: absolute;
  z-index: 999;
  background: rgba(255, 250, 242, 0.94);
  border: 1px solid rgba(29, 43, 40, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.legend {
  bottom: 22px;
  left: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.9;
  max-height: 76vh;
  overflow-y: auto;
}

.legend h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.legend hr {
  border: 0;
  border-top: 1px solid rgba(29, 43, 40, 0.12);
  margin: 8px 0;
}

.filter-bar {
  top: 16px;
  left: 16px;
  right: 112px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
}

.filter-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-bar input[type="checkbox"] {
  accent-color: var(--accent);
}

.filter-bar strong {
  margin-right: 4px;
}

.info-box {
  top: 16px;
  right: 16px;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--muted);
}

.dot,
.sq {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
}

.dot {
  border-radius: 50%;
}

.sq {
  border-radius: 2px;
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-card {
  padding: 22px;
}

.content-card h2,
.content-card h3 {
  margin-top: 0;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: #9a5b05;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.6;
}

.content-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

@media (max-width: 880px) {
  .page--map {
    padding: 12px;
  }

  .map-shell {
    min-height: auto;
  }

  #map {
    height: 72vh;
    min-height: 520px;
  }

  .filter-bar {
    right: 16px;
  }

  .info-box {
    top: auto;
    right: 16px;
    bottom: 16px;
  }

  .legend {
    left: 12px;
    right: 12px;
    bottom: 70px;
    max-height: 30vh;
  }
}

@media (max-width: 640px) {
  .topbar__inner,
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page--map {
    padding: 10px;
  }

  #map {
    min-height: 480px;
  }

  .filter-bar,
  .legend,
  .info-box {
    font-size: 12px;
  }

  .filter-bar {
    left: 10px;
    right: 10px;
    top: 10px;
    gap: 8px 10px;
  }

  .info-box {
    left: 10px;
    right: auto;
    bottom: 10px;
  }

  .legend {
    left: 10px;
    right: 10px;
    bottom: 58px;
  }
}
