@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  font-family: "Manrope", sans-serif;
  color: oklch(31% 0.035 55);
  background:
    radial-gradient(circle at top left, rgba(205, 141, 80, 0.17), transparent 26%),
    radial-gradient(circle at right, rgba(44, 80, 61, 0.16), transparent 22%),
    linear-gradient(180deg, #efe4cf 0%, #e8dbc1 100%);
  --ink: oklch(31% 0.035 55);
  --muted: oklch(44% 0.03 62);
  --panel: rgba(245, 239, 225, 0.84);
  --panel-strong: rgba(255, 250, 240, 0.9);
  --line: rgba(81, 58, 38, 0.14);
  --accent: #234d3c;
  --accent-soft: #e1b866;
  --signal: #d9724c;
  --paper: rgba(255, 252, 246, 0.95);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) 0 56px;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.62);
  box-shadow: 0 24px 80px rgba(94, 68, 45, 0.06);
}

.site-header {
  border-radius: 24px;
  padding: 12px 16px;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.site-header__brand,
.site-nav,
.site-footer__links {
  display: flex;
  align-items: center;
}

.site-header__brand {
  gap: 10px;
  font-weight: 800;
}

.site-header .brand-mark {
  width: 42px;
  border-radius: 15px;
}

.site-nav,
.site-footer__links {
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a,
.site-footer__links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer__links a:hover {
  background: rgba(120, 97, 68, 0.08);
  color: var(--ink);
}

.site-footer {
  border-radius: 24px;
  padding: 18px;
  margin-top: 28px;
}

.site-footer p {
  color: var(--muted);
  line-height: 1.55;
  margin: 6px 0 0;
}

.masthead {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  padding-bottom: 30px;
}

.home-masthead {
  align-items: start;
}

.home-intro {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
  margin: 22px 0 0;
}

.home-actions {
  margin-top: 24px;
}

.home-stats,
.county-grid {
  display: grid;
  gap: 16px;
}

.home-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-stat,
.county-card,
.home-panel {
  border: 1px solid var(--line);
  background: rgba(255, 248, 236, 0.7);
  box-shadow: 0 24px 80px rgba(94, 68, 45, 0.06);
}

.home-stat {
  border-radius: 24px;
  padding: 20px;
}

.home-stat__value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.home-stat__label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.county-grid {
  margin-top: 24px;
}

.county-card {
  border-radius: 28px;
  padding: 24px;
}

.county-card--featured h2 {
  margin-bottom: 10px;
}

.county-card p {
  color: var(--muted);
  max-width: 40rem;
}

.county-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.county-meta span {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(120, 97, 68, 0.08);
  color: #6e614e;
  font-size: 0.82rem;
}

.home-panel {
  border-radius: 28px;
  padding: 22px;
  margin-top: 20px;
}

.seo-intro {
  max-width: 860px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
}

.seo-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-mark {
  width: clamp(68px, 8vw, 90px);
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(225, 184, 102, 0.9), transparent 34%),
    linear-gradient(180deg, rgba(35, 77, 60, 0.97), rgba(31, 60, 48, 0.94));
  box-shadow: 0 18px 50px rgba(35, 77, 60, 0.24);
}

.brand-mark svg {
  width: 74%;
  height: 74%;
  stroke: rgba(245, 239, 225, 0.95);
  fill: rgba(245, 239, 225, 0.95);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.masthead-note {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.56);
  box-shadow: 0 24px 80px rgba(94, 68, 45, 0.06);
}

.eyebrow,
.section-label,
.search-field span,
.filter-field span {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #7b6b53;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  color: var(--ink);
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.masthead-note p,
.detail-copy,
.empty-state p,
.card-city,
.fishery-meta {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  margin-bottom: 0;
}

.control-bar,
.detail-panel,
.fishery-card,
.list-column,
.map-frame {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(94, 68, 45, 0.08);
}

.control-bar {
  border-radius: 28px;
  padding: 22px;
}

.filter-form {
  display: grid;
  gap: 16px;
}

.search-field input,
.filter-field select {
  width: 100%;
  border: 1px solid rgba(64, 55, 40, 0.15);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  min-height: 52px;
  padding: 0 16px;
}

.search-field input::placeholder {
  color: #9b8b75;
}

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

.toolbar-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.summary-strip,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.summary-strip span,
.reset-button,
.secondary-button {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.summary-strip span {
  background: rgba(120, 97, 68, 0.08);
  color: #6e614e;
}

.reset-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.reset-button {
  background: var(--accent);
  color: #f8f0e4;
}

.secondary-button {
  background: rgba(120, 97, 68, 0.08);
  color: var(--ink);
}

.reset-button:hover,
.secondary-button:hover,
.fishery-card:hover,
.fishery-card.is-active {
  transform: translateY(-1px);
}

.status-banner {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid rgba(123, 45, 38, 0.2);
}

.status-banner.error {
  background: rgba(217, 114, 76, 0.12);
  color: #6f2d22;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
}

.fishery-masthead h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: 0;
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb-row a {
  color: var(--accent);
  font-weight: 700;
}

.fishery-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: start;
}

.list-column {
  border-radius: 28px;
  padding: 18px;
  position: sticky;
  top: 16px;
}

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

.fishery-list {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding-right: 4px;
}

.fishery-list--static {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.fishery-card {
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  display: block;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.fishery-card:hover,
.fishery-card.is-active {
  background: var(--panel-strong);
  border-color: rgba(35, 77, 60, 0.24);
}

.fishery-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #7a6a53;
  font-size: 0.9rem;
}

.fishery-card-top p,
.fishery-card-top span {
  margin-bottom: 0;
}

.fishery-card h2,
.detail-panel h2 {
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  margin-bottom: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(56, 82, 57, 0.08);
  color: var(--ink);
  font-size: 0.84rem;
}

.chip.species {
  background: rgba(217, 114, 76, 0.12);
}

.chip-row.muted .chip {
  background: rgba(120, 97, 68, 0.08);
  color: #695a46;
}

.map-column {
  display: grid;
  gap: 20px;
}

.map-frame {
  border-radius: 32px;
  overflow: hidden;
  min-height: 520px;
}

.map-canvas {
  height: 520px;
  width: 100%;
  background: rgba(255, 250, 240, 0.42);
}

.detail-panel {
  border-radius: 28px;
  padding: 24px;
}

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

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}

.copy-stack {
  display: grid;
  gap: 10px;
}

.copy-stack p,
.trust-note p,
.content-copy {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.ticket-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticket-list li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(80, 57, 37, 0.08);
}

.ticket-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

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

.link-row a {
  color: var(--accent);
  font-weight: 700;
}

.signal-grid,
.report-question-list {
  display: grid;
  gap: 10px;
}

.signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signal-card,
.report-question-list span {
  border-radius: 18px;
  background: rgba(120, 97, 68, 0.08);
}

.signal-card {
  padding: 14px;
}

.signal-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.signal-card strong {
  display: block;
}

.visit-report-card {
  position: sticky;
  top: 16px;
}

.visit-report-card p:not(.section-label) {
  color: var(--muted);
  line-height: 1.65;
}

.report-question-list {
  margin-top: 18px;
}

.report-question-list span {
  padding: 12px 14px;
  font-weight: 700;
}

.empty-state {
  padding: 20px;
  background: rgba(255, 251, 243, 0.9);
  border-radius: 22px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(255, 250, 240, 0.96);
  color: var(--ink);
}

.venue-marker-shell {
  background: transparent;
  border: 0;
}

.venue-marker {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.venue-marker__halo,
.venue-marker__core,
.venue-marker__dot {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.venue-marker__halo {
  inset: -8px;
  background: rgba(217, 114, 76, 0.18);
  border: 2px solid rgba(123, 45, 38, 0.18);
  opacity: 0.75;
}

.venue-marker__core {
  background: radial-gradient(circle at 35% 30%, #ffe2af 0 28%, #e1b866 29%, #c78537 68%, #7b2d26 100%);
  border: 3px solid rgba(35, 77, 60, 0.92);
  box-shadow:
    0 0 0 2px rgba(255, 249, 238, 0.92),
    0 10px 22px rgba(82, 57, 39, 0.24);
}

.venue-marker__dot {
  inset: 8px;
  background: rgba(35, 77, 60, 0.9);
  border: 2px solid rgba(255, 249, 238, 0.88);
}

.venue-marker.is-active {
  width: 34px;
  height: 34px;
}

.venue-marker.is-active .venue-marker__halo {
  inset: -11px;
  background: rgba(217, 114, 76, 0.26);
  border-color: rgba(123, 45, 38, 0.34);
  animation: marker-pulse 1.8s ease-out infinite;
}

.venue-marker.is-active .venue-marker__core {
  border-color: rgba(123, 45, 38, 0.96);
  box-shadow:
    0 0 0 3px rgba(255, 248, 236, 0.98),
    0 14px 28px rgba(123, 45, 38, 0.3);
}

.venue-marker.is-active .venue-marker__dot {
  background: rgba(123, 45, 38, 0.96);
}

@keyframes marker-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.popup-name {
  font-family: "Fraunces", serif;
  font-size: 1rem;
}

.popup-city {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .masthead,
  .dashboard,
  .fishery-page-grid {
    grid-template-columns: 1fr;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .list-column {
    position: static;
  }

  .fishery-list--static {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-report-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 18px, 1480px);
  }

  .brand-lockup,
  .toolbar-row,
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .site-footer__links {
    width: 100%;
  }

  .filter-grid,
  .detail-grid,
  .signal-grid,
  .fishery-list--static {
    grid-template-columns: 1fr;
  }

  .toolbar-row {
    align-items: stretch;
  }

  .map-canvas {
    height: 420px;
  }
}
