html,
body {
  margin: 0;
  height: 100%;
  font-family: "Manrope", system-ui, sans-serif;
  color: #13202d;
  background: #f8f5ef;
}

* {
  box-sizing: border-box;
}

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

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(640px, 40vw, 980px);
  height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.06), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, #f3efe8 100%);
}

.map-wrap {
  position: relative;
  min-width: 0;
}

#map {
  position: absolute;
  inset: 0;
}

.site-brand {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #13202d;
  text-decoration: none;
  line-height: 1;
}

.site-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.02)),
    #ffffff;
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  flex: 0 0 42px;
}

.site-brand-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.map-panel {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 11;
  width: min(300px, calc(100% - 32px));
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 32, 45, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.map-panel h2 {
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.map-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
}

.content {
  display: flex;
  justify-content: center;
  overflow-y: auto;
  border-left: 1px solid #dcd7cf;
  background: rgba(255, 255, 255, 0.9);
}

.inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 44px 40px 34px;
}

.crumbs {
  margin-bottom: 12px;
  font-size: 14px;
  color: #667085;
}

.crumbs a {
  color: #13202d;
}

.crumbs span {
  margin: 0 6px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.lede {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: #475467;
}

.toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  margin: 22px 0 18px;
}

.search-group {
  display: block;
  flex: 0 0 100%;
  width: 100%;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667085;
  font-weight: 800;
}

.search-input {
  width: 100%;
  min-width: 100%;
  max-width: none;
  display: block;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  padding: 0 18px;
  font: inherit;
  background: #ffffff;
  color: #13202d;
}

.search-input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.18);
  outline-offset: 2px;
  border-color: rgba(15, 118, 110, 0.42);
}

.result-meta {
  min-width: 0;
  padding-bottom: 0;
}

.toolbar-meta {
  display: block;
  flex: 0 0 100%;
  width: 100%;
}

.result-count {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #13202d;
}

.result-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: #667085;
}

.results {
  display: grid;
  gap: 14px;
}

.result-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e4e7ec;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.result-card:hover,
.result-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.result-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.result-card h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.result-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475467;
  font-weight: 800;
  white-space: nowrap;
}

.result-subtitle {
  margin: 0 0 10px;
  font-size: 14px;
  color: #0f766e;
  font-weight: 700;
}

.result-excerpt {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #475467;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f5f7fa;
  border: 1px solid #e4e7ec;
  font-size: 12px;
  color: #475467;
  font-weight: 700;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.focus-text {
  font-size: 13px;
  color: #667085;
  font-weight: 600;
}

.view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #182131;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.view-link:hover {
  background: #111827;
}

.empty-state {
  padding: 24px 18px;
  border-radius: 20px;
  border: 1px dashed #d0d5dd;
  background: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  color: #667085;
}

.maplibregl-popup-content {
  padding: 14px 14px 12px;
  border-radius: 14px;
  font-family: "Manrope", system-ui, sans-serif;
  color: #13202d;
}

.popup-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.popup-copy {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #475467;
}

.popup-link {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 10px;
  background: #182131;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .page {
    grid-template-columns: 1fr;
    height: auto;
  }

  .map-wrap {
    min-height: 420px;
    height: 50vh;
  }

  .content {
    display: block;
    border-left: none;
    border-top: 1px solid #dcd7cf;
  }

  .inner {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 26px 36px 36px 30px;
  }
}

@media (max-width: 720px) {
  .map-wrap {
    min-height: 420px;
    height: 42vh;
  }

  .inner {
    width: 100%;
    max-width: none;
    padding: 20px 18px 32px;
  }

  .result-card-top {
    flex-direction: column;
  }

  .result-card h2 {
    font-size: 22px;
  }
}
