:root {
  --navy: #06055b;
  --navy-deep: #080122;
  --plum: #1d0938;
  --ink: #191919;
  --white: #ffffff;
  --magenta: #d81f81;
  --jbl: #ff4713;
  --muted: #8b8aa8;
  --line: rgb(255 255 255 / 0.12);
  --line-dark: rgb(6 5 91 / 0.12);
  --card: #10103a;
  --radius: 18px;
  --max: 1120px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Poppins", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--navy-deep);
  line-height: 1.5;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--magenta);
  padding: 0.5rem 1rem;
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(8 1 34 / 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.nav__brands {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav__brands img {
  height: 28px;
  width: auto;
}

.nav__jbl {
  height: 26px;
  background: var(--jbl);
  border-radius: 4px;
  padding: 4px 6px;
}

.nav__plus {
  color: var(--muted);
  font-size: 0.85rem;
}

nav.links {
  display: flex;
  gap: 1.1rem;
  font-size: 0.92rem;
}

nav.links a {
  text-decoration: none;
  color: rgb(255 255 255 / 0.82);
}

nav.links a:hover {
  color: var(--white);
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button {
  font: inherit;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--magenta);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgb(216 31 129 / 0.28), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, var(--navy-deep));
  pointer-events: none;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgb(255 71 19 / 0.45);
  color: #ffc4b3;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin: 0.85rem 0 0;
  font-weight: 700;
}

.hero__lead {
  max-width: 42rem;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  margin-top: 1.1rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn--mag {
  background: var(--magenta);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--white);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.6rem;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.metric b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

section {
  padding-block: clamp(2.5rem, 5vw, 4.2rem);
}

.kicker {
  color: var(--magenta);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.lede {
  color: rgb(255 255 255 / 0.78);
  max-width: 46rem;
  margin-top: 0.7rem;
}

.map-box {
  margin-top: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 420px;
}

#map {
  height: 460px;
  width: 100%;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.dot--city {
  background: var(--magenta);
  box-shadow: 0 0 0 3px rgb(216 31 129 / 0.25);
}

.dot--beach {
  background: var(--jbl);
}

.city-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.city-nav a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  color: rgb(255 255 255 / 0.85);
}

.city-nav a:hover {
  border-color: var(--magenta);
}

.city {
  background: linear-gradient(180deg, rgb(6 5 91 / 0.55), transparent);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 1.4rem;
}

.city__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.city h3 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.city__pop {
  color: var(--muted);
  font-size: 0.9rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.facts article {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
}

.facts h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
}

.facts p {
  margin: 0;
  font-size: 0.95rem;
  color: rgb(255 255 255 / 0.86);
}

.beaches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.beach {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
}

.beach strong {
  display: block;
}

.beach p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgb(255 255 255 / 0.75);
}

.beach a {
  color: #ffb39f;
  font-size: 0.8rem;
}

.radios {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.radio {
  background: #0c0b32;
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  border-left: 3px solid var(--jbl);
}

.radio__top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.radio h4 {
  margin: 0;
  font-size: 1.2rem;
}

.radio__dial {
  color: var(--muted);
  font-size: 0.92rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.55rem 0;
}

.chip {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgb(216 31 129 / 0.16);
  color: #f7b4d6;
}

.chip--warn {
  background: rgb(255 71 19 / 0.16);
  color: #ffb39f;
}

.radio p {
  margin: 0.35rem 0 0;
  color: rgb(255 255 255 / 0.84);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 0.95rem;
}

.stat {
  background: rgb(255 255 255 / 0.04);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat b {
  font-family: var(--display);
  font-size: 1.02rem;
}

.v3note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.55rem;
}

.sources {
  margin-top: 0.9rem;
  font-size: 0.8rem;
}

.sources summary {
  cursor: pointer;
  color: var(--muted);
}

.sources ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.sources a {
  color: #c9c8ea;
}

.invest {
  background: var(--navy);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

td.num {
  font-family: var(--display);
  font-weight: 600;
  white-space: nowrap;
}

.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--plum), var(--navy-deep));
}

.cta h2 {
  max-width: 18ch;
  margin-inline: auto;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.leaflet-container {
  background: #1a1840;
  font-family: var(--font);
}

.leaflet-popup-content-wrapper {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
}

.leaflet-popup-tip {
  background: var(--navy);
}

.leaflet-popup-content a {
  color: #f7b4d6;
}

@media (max-width: 860px) {
  nav.links {
    display: none;
  }
  .metrics,
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .metrics,
  .facts {
    grid-template-columns: 1fr;
  }
  #map {
    height: 360px;
  }
}
