/* ═══════════════════════════════════════════════════════
   COMMUNITY MAP — community-map.css
   Updated header/hero to match advertisements.css style
   Laguna BelAir 4 HOA
═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --green-900: #062e22;
  --green-800: #0a4d3c;
  --green-700: #0e6650;
  --green-600: #138a6a;
  --green-400: #3dbe92;
  --green-200: #a8e6ce;
  --green-100: #d4f3e7;
  --green-50:  #edfaf4;

  --warm-50:   #faf9f6;
  --warm-100:  #f2f0eb;
  --warm-200:  #e4e0d8;

  --neutral-900: #1a1a1a;
  --neutral-700: #3d3d3d;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e9eaec;
  --neutral-100: #f3f4f6;
  --neutral-50:  #f9fafb;

  --red-600:   #c0392b;
  --red-50:    #fef2f2;
  --amber-600: #d97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 12px 40px rgba(10,77,60,.14);

  --radius:    14px;
  --radius-sm: 8px;

  --transition: .2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-50);
  color: var(--neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV (updated to match advertisements.css)
═══════════════════════════════════════════════════════ */
.top-header-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 18px 0;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo-link:hover { opacity: .8; }
.logo-image {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

.header-center-wrapper {
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.navbar-two-rows {
  display: flex;
  flex-direction: column;
  min-width: 680px;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-200);
}

.navbar-top-row a {
  color: var(--green-800);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
}

.navbar-top-row a:hover { background: var(--green-50); }

.nav-sep {
  color: var(--neutral-300);
  font-size: 11px;
}

.navbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.nav-link,
.dropdown-toggle {
  color: var(--green-800);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition);
}

.nav-link:hover,
.dropdown:hover > .dropdown-toggle {
  background: var(--green-50);
}

.nav-link.active,
a.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 8px;
  transition: transform .25s;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--green-800);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .22s ease;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile dropdown toggle via JS */
.dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.dropdown-open .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--neutral-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}

.dropdown-menu a:hover {
  background: var(--neutral-50);
  border-left-color: var(--green-800);
  padding-left: 21px;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION (matching advertisements.css)
═══════════════════════════════════════════════════════ */
.hero-section {
  background-image: url('../assets/BG.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,46,34,.82) 0%, rgba(10,77,60,.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  max-width: 620px;
  letter-spacing: .2px;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTAINER
═══════════════════════════════════════════════════════ */
.main-container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 40px 20px 70px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════
   SECTION TITLE
═══════════════════════════════════════════════════════ */
.section-title {
  color: var(--green-800);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-title i { font-size: 1.8rem; }

/* ═══════════════════════════════════════════════════════
   MAP SECTION
═══════════════════════════════════════════════════════ */
.map-section { margin-bottom: 48px; }
.leaflet-map { height: 520px; width: 100%; z-index: 1; }

/* Map Outer Layout — Legend panel beside map */
.map-outer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}
.map-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

/* Layers Panel */
.map-layers-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.layers-panel-head {
  background: var(--green-800);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
}
.layers-panel-head i { font-size: 14px; }
.layers-panel-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Toggle switch rows */
.map-layers-panel .legend-toggle {
  padding: 8px 4px;
  border-bottom: 1px solid var(--neutral-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-layers-panel .legend-toggle:last-of-type { border-bottom: none; }
.legend-toggle input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.toggle-track {
  width: 32px; height: 18px;
  border-radius: 99px;
  background: var(--neutral-200);
  position: relative; flex-shrink: 0;
  transition: background .2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: left .2s, background .2s;
}
.legend-toggle input:checked ~ .toggle-track {
  background: var(--green-800);
}
.legend-toggle input:checked ~ .toggle-track::after {
  left: 16px;
}
.toggle-content {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--neutral-700);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}

.layers-divider {
  border-top: 1px solid var(--neutral-100);
  margin: 8px 0;
}
.layers-status-key { padding: 4px 0; }
.layers-key-title {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--neutral-500);
  margin-bottom: 7px;
}
.layers-key-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--neutral-600);
  margin-bottom: 5px;
  font-weight: 600;
}
.layers-key-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.layers-key-circle {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(192,57,43,.45);
  background: rgba(192,57,43,.18);
  flex-shrink: 0;
}

/* Live badge in panel */
.map-live-badge-panel {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: var(--green-800);
  margin-top: 4px;
}
.live-dot {
  width: 7px; height: 7px;
  background: #7fff6e;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ═══════════════════════════════════════════════════════
   CUSTOM MAP MARKERS / PINS
═══════════════════════════════════════════════════════ */
.lba4-pin {
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
  border: 2px solid #fff;
}
.lba4-pin i {
  transform: rotate(45deg);
  font-size: 13px; color: #fff;
}
.lba4-pin-hoa    { background: var(--green-800); border-radius: 50%; transform: none; }
.lba4-pin-hoa i  { transform: none; font-size: 15px; }
.lba4-pin-resolved  { background: #5aaa4f; }
.lba4-pin-landmark  { background: #1a5fa8; }
.lba4-pin-project   { background: #c0621a; }
.lba4-pin-sm {
  width: 26px; height: 26px;
}
.lba4-pin-sm i { font-size: 11px; }

/* Pulsing incident circle animation */
.incident-pulse-circle {
  animation: incidentPulse 3s ease-in-out infinite;
}
@keyframes incidentPulse {
  0%, 100% { opacity: .85; }
  50%       { opacity: .45; }
}

/* Leaflet tooltip override */
.cm-tooltip {
  background: rgba(20,20,20,.88) !important;
  border: none !important;
  border-radius: 6px !important;
  color: #fff !important;
  font-size: 12px !important;
  padding: 7px 12px !important;
  font-family: inherit !important;
  box-shadow: 0 3px 12px rgba(0,0,0,.25) !important;
}
.cm-tooltip::before { border-top-color: rgba(20,20,20,.88) !important; }

/* ═══════════════════════════════════════════════════════
   LEGEND REFERENCE SECTION
═══════════════════════════════════════════════════════ */
.legend-section { margin-bottom: 40px; }
.legend-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.legend-ref-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-100);
  transition: all .2s;
}
.legend-ref-item:hover {
  background: var(--green-50);
  border-color: #c5e0d8;
  transform: translateX(4px);
}
.legend-ref-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.legend-ref-item strong {
  display: block;
  font-size: 13px; font-weight: 800;
  color: var(--neutral-900); margin-bottom: 3px;
}
.legend-ref-item p {
  font-size: 12px; color: var(--neutral-600);
  line-height: 1.4; margin: 0;
}

/* Pulse ring for incident dot */
.pulse-ring {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red-600);
  opacity: .4;
  animation: pulseRing 2s ease-out infinite;
}
.incident-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red-600);
  opacity: .7;
}
@keyframes pulseRing {
  0%   { transform: scale(.7); opacity: .5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.privacy-notice {
  font-size: 13px; color: #666;
  background: #fff8e1;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid #f9a825;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.6;
}
.privacy-notice i { color: #856404; flex-shrink: 0; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   STATS SECTION
═══════════════════════════════════════════════════════ */
.summary-section { margin-bottom: 48px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.stat-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--neutral-200);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon i { font-size: 26px; }
.stat-card.stat-red    .stat-icon { background: #feecec; color: var(--red-600);    }
.stat-card.stat-green  .stat-icon { background: #edf7ed; color: #5aaa4f;   }
.stat-card.stat-orange .stat-icon { background: #fef2e8; color: #c0621a; }
.stat-value {
  font-size: 38px; font-weight: 800;
  color: var(--green-800); line-height: 1; margin-bottom: 5px;
}
.stat-label {
  font-size: 13px; color: var(--neutral-600); font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════════ */
.cta-section { margin-bottom: 48px; }
.cta-card {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
  padding: 44px 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-content h3 {
  color: #fff; font-size: 24px; font-weight: 800;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.cta-content p {
  color: rgba(255,255,255,.9); font-size: 15px;
  margin-bottom: 24px; line-height: 1.6;
}
.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--green-800);
  padding: 14px 34px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 15px; font-weight: 800;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* ═══════════════════════════════════════════════════════
   DETAIL MODAL
═══════════════════════════════════════════════════════ */
.cm-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  padding: 20px;
}
.cm-detail-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cm-detail-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  overflow: hidden;
  transform: scale(.94) translateY(12px);
  transition: transform .22s cubic-bezier(.34,1.1,.64,1);
}
.cm-detail-overlay.open .cm-detail-modal {
  transform: scale(1) translateY(0);
}
.cm-detail-header {
  padding: 20px 22px 14px;
  border-bottom: 3px solid var(--green-800);
  background: var(--neutral-50);
}
.cm-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.cm-detail-title-row h3 {
  font-size: 17px;
  font-weight: 900;
  color: var(--neutral-900);
  line-height: 1.3;
  margin: 0;
}
.cm-detail-close {
  background: var(--neutral-100);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  flex-shrink: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--neutral-600);
  transition: background .15s, color .15s;
}
.cm-detail-close:hover { background: var(--neutral-200); color: var(--neutral-900); }
.cm-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cm-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}
.cm-detail-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-detail-desc {
  font-size: 13.5px;
  color: var(--neutral-700);
  line-height: 1.6;
  margin: 0;
  background: var(--neutral-50);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--neutral-200);
}

/* Before / After grid */
.cm-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cm-ba-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cm-ba-label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
}
.cm-ba-before-lbl { background: #e8f0fb; color: #1a5fa8; }
.cm-ba-after-lbl  { background: #edf7ed; color: #2e7a50; }
.cm-ba-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--neutral-200);
  background: var(--neutral-100);
}

/* No photo placeholder */
.cm-detail-no-image {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--neutral-50);
  border-radius: 8px;
  border: 1px dashed var(--neutral-200);
  color: var(--neutral-500);
  font-size: 13px;
}
.cm-detail-no-image i { font-size: 18px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--green-800);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.25);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: .88rem;
  line-height: 1.6;
}

.footer-links li i {
  margin-right: 7px;
  color: rgba(255,255,255,.7);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #b8e6d5;
  padding-left: 4px;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo-link {
  display: block;
  transition: opacity .25s;
}

.footer-logo-link:hover {
  opacity: .8;
}

.footer-logo {
  width: 100px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1060px) {
  .top-header-container {
    flex-direction: column;
    padding: 14px 16px;
  }
  .header-center-wrapper {
    width: 100%;
  }
  .navbar-two-rows {
    min-width: auto;
    width: 100%;
  }
  .navbar-top-row {
    justify-content: center;
  }
  .navbar-bottom-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-logo-section {
    grid-column: 1/-1;
    justify-content: center;
  }
  .map-outer {
    grid-template-columns: 1fr;
  }
  .map-layers-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .layers-panel-head { grid-column: 1 / -1; }
  .layers-panel-body {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 280px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 90%;
  }
  .main-container {
    padding: 28px 16px 50px;
  }
  .nav-sep {
    display: none;
  }
  .navbar-top-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .navbar-bottom-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section h3 {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-logo-section {
    justify-content: center;
  }
  .cm-before-after { grid-template-columns: 1fr; }
  .cm-detail-modal { max-width: 100%; }
  .map-layers-panel { display: block; }
  .layers-panel-body { display: flex; }
  .leaflet-map { height: 400px; }
  .cta-card { padding: 32px 20px; }
  .cta-content h3 { font-size: 20px; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .logo-image {
    width: 100px;
  }
  .navbar-top-row a {
    padding: 3px 6px;
    font-size: 11px;
  }
  .navbar-bottom-row .nav-link,
  .navbar-bottom-row .dropdown-toggle {
    font-size: 11px;
    padding: 5px 7px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-sub {
    font-size: 12px;
  }
  .leaflet-map { height: 350px; }
  .section-title { font-size: 1.5rem; }
}