* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f6f8fb;
  color: #16363b;
}
body {
  min-height: 100vh;
}
.page-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
}
.site-header-map,
.controls-card,
.map-card,
.list-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.site-header-map {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.brand-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
}
.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b6b6f;
}
h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}
.subtitle {
  margin: 8px 0 0;
  color: #516167;
}
.mobile-toggle {
  display: none;
  border: 0;
  background: #245a60;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.controls-card {
  padding: 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) 2fr;
  gap: 16px;
  align-items: start;
}
.search-wrap label,
.filter-label {
  display: block;
  font-size: 13px;
  color: #516167;
  margin-bottom: 8px;
}
.search-wrap input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d7dfe3;
  font-size: 15px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  appearance: none;
  border: 1px solid #d7dfe3;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  color: #34464b;
}
.chip.active {
  color: #fff;
  border-color: transparent;
}
.warning-text {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  color: #7c4a03;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
}
.map-card {
  overflow: hidden;
}
#map {
  width: 100%;
  height: 600px;
}
.list-card {
  padding: 16px;
  position: sticky;
  top: 16px;
  max-height: 88vh;
  overflow: auto;
}
.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.list-head h2 {
  margin: 0;
  font-size: 22px;
}
#resultCount {
  color: #5b6b6f;
  font-size: 14px;
}
.org-list {
  display: grid;
  gap: 12px;
}
.org-card {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fcfdff;
}
.org-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.2;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  margin-bottom: 10px;
}
.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.meta {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.action-btn {
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  color: #16363b;
  background: #eaf1f3;
}
.action-btn.primary {
  background: #245a60;
  color: #fff;
}
.custom-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.custom-popup h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.custom-popup p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.45;
}
.empty-state {
  padding: 18px;
  border: 1px dashed #d7dfe3;
  border-radius: 12px;
  color: #516167;
}
.leaflet-popup-content-wrapper {
  border-radius: 14px;
}
.leaflet-container {
  background: #eef3f4;
}
@media (max-width: 1080px) {
  .controls-card,
  .content-grid {
    grid-template-columns: 1fr;
  }
  .list-card {
    position: static;
    max-height: none;
  }
  #map {
    height: 62vh;
    min-height: 460px;
  }
}
@media (max-width: 760px) {
  .site-header-map {
    align-items: flex-start;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .content-grid.mobile-list-open .map-card {
    display: none;
  }
  .content-grid.mobile-list-open .list-card {
    display: block;
  }
  .content-grid .list-card {
    display: none;
  }
  .content-grid.mobile-list-open .list-card,
  .content-grid .map-card {
    display: block;
  }
  h1 {
    font-size: 26px;
  }
  .logo {
    width: 54px;
    height: 54px;
  }
  #map {
    height: 58vh;
    min-height: 400px;
  }
  .brand-wrap {
    display: none;
  }
}
