:root {
  color-scheme: light;
  --bg: #f7f6ef;
  --surface: #ffffff;
  --surface-soft: #edf3e7;
  --text: #1f2a22;
  --muted: #667166;
  --line: #d9dfd1;
  --green: #2f6f43;
  --green-dark: #224f31;
  --gold: #b5822b;
  --blue: #316a80;
  --danger: #8f4b35;
  --shadow: 0 18px 45px rgba(31, 42, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 239, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}

.nav-links a[aria-current="page"] {
  color: var(--green-dark);
}

.button,
button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
}

.button.secondary {
  background: #e8efe2;
  color: var(--green-dark);
}

.button.ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 26px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 850;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

p {
  margin: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--green-dark);
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.map-shell {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #dfe9d6;
  box-shadow: var(--shadow);
}

#map,
#mini-map {
  height: 100%;
  min-height: 520px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  max-width: 680px;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.checks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.check input {
  width: 18px;
  min-height: 18px;
}

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

.company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #e6eadf;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.card-top h3 {
  font-size: 1.05rem;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 850;
  background: #e4f2df;
  color: var(--green-dark);
}

.badge.muted {
  background: #f0eee6;
  color: #716b5f;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 22px;
}

.page-hero .lead {
  margin-top: 14px;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 22px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.fact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.fact strong {
  display: block;
}

.fact span {
  color: var(--muted);
}

.facts a.fact {
  color: inherit;
  display: block;
  text-decoration: none;
}

.facts a.fact:hover strong {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.coverage-table th,
.coverage-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

.coverage-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coverage-table td {
  font-weight: 650;
}

.coverage-table tr:last-child td {
  border-bottom: 0;
}

.coverage-table .number-cell {
  text-align: right;
}

.coverage-table a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration-color: rgba(47, 111, 67, 0.35);
  text-underline-offset: 3px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.leaflet-popup-content a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .card-grid,
  .about-grid,
  .stats,
  .facts {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-shell,
  #map,
  #mini-map {
    min-height: 420px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
  }

  .nav-links .button {
    width: 100%;
  }

  .hero {
    padding-top: 30px;
  }
}
