/* KidsMap Interactive Map Explorer · Concept-aligned layout & animations */
:root {
  --home-green: #136f38;
  --home-ink: #143c2d;
  --home-muted: #587166;
  --home-line: #d8e6dc;
  --home-paper: #f5f8f2;
}

body.page-home .home-map-panel.home-map-explorer {
  padding: 24px 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--home-line, #dbe6d7);
  box-shadow: 0 4px 24px rgba(20, 60, 45, 0.04);
}

/* Head */
body.page-home .home-map-explorer .home-map-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}
body.page-home .home-map-explorer .home-map-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.page-home .home-map-explorer .home-map-eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
body.page-home .home-map-explorer .home-map-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(19, 111, 56, 0.08);
  color: var(--home-green, #136f38);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
body.page-home .home-map-explorer .home-map-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--home-ink, #143c2d);
}
body.page-home .home-map-explorer .home-map-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--home-muted, #587166);
}
body.page-home .home-map-explorer .home-map-head-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
body.page-home .home-map-explorer .home-map-catalog-link {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Toolbar (Filters) */
body.page-home .home-map-explorer .home-map-toolbar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
body.page-home .home-map-explorer .home-map-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--home-ink, #143c2d);
}
body.page-home .home-map-explorer .home-map-field select,
body.page-home .home-map-explorer .home-map-field input {
  height: 44px;
  border: 1px solid var(--home-line, #d8e6dc);
  border-radius: 12px;
  padding: 8px 14px;
  background: #fff;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--home-ink, #143c2d);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
body.page-home .home-map-explorer .home-map-field select:focus-visible,
body.page-home .home-map-explorer .home-map-field input:focus-visible {
  outline: 2px solid var(--brand-turf, #136f38);
  outline-offset: 1px;
  border-color: var(--brand-turf, #136f38);
}
body.page-home .home-map-explorer .home-map-field--cat {
  flex: 1 1 220px;
  max-width: 280px;
  min-width: 170px;
}
body.page-home .home-map-explorer .home-map-field--age {
  width: 95px;
}
body.page-home .home-map-explorer .home-map-filter-reset {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--home-line, #d8e6dc);
  border-radius: 12px;
  background: #fff;
  color: var(--home-ink, #143c2d);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
body.page-home .home-map-explorer .home-map-filter-reset:hover {
  background: #edf5e9;
  border-color: var(--brand-turf, #136f38);
}
body.page-home .home-map-explorer .home-map-result-status {
  font-size: 13px;
  color: var(--home-muted, #587166);
  margin: 0 0 16px;
}

/* Tabs for mobile */
body.page-home .home-map-explorer .home-explorer-tabs {
  display: none;
}
body.page-home .home-map-explorer .home-explorer-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f2f7ed;
  color: var(--home-muted, #587166);
  font-size: 13px;
  line-height: 1.6;
}
body.page-home .home-map-explorer[data-explorer-status=error] .home-explorer-status {
  background: #fff5eb;
  color: #7b4c24;
}
body.page-home .home-map-explorer[data-explorer-status=loading] .home-explorer-list {
  opacity: 0.65;
}

/* 2-Column Workspace */
body.page-home .home-map-explorer .home-explorer-workspace {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}
body.page-home .home-map-explorer .home-explorer-list-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
body.page-home .home-map-explorer .home-explorer-map-panel {
  min-width: 0;
}
body.page-home .home-map-explorer .home-map-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  height: 100%;
}
body.page-home .home-map-explorer .home-map {
  height: 520px;
  min-height: 420px;
  width: 100%;
  border-radius: 16px;
}

/* Cards List */
body.page-home .home-map-explorer .home-explorer-list {
  list-style: none;
  padding: 2px 4px 2px 1px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bfceb9 transparent;
}
body.page-home .home-map-explorer .home-explorer-card {
  border: 1px solid var(--home-line, #d8e6dc);
  border-radius: 14px;
  background: #fff;
  position: relative;
  flex: none;
  min-width: 0;
  transition: border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
body.page-home .home-map-explorer .home-explorer-card:hover {
  border-color: var(--brand-turf, #136f38);
  background: #edf5e9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(19, 111, 56, 0.08);
}
body.page-home .home-map-explorer .home-explorer-card.is-selected {
  border: 2px solid var(--brand-turf, #136f38);
  background: #edf5e9;
  box-shadow: 0 4px 16px rgba(19, 111, 56, 0.14);
}
body.page-home .home-map-explorer .home-explorer-select {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--home-ink, #143c2d);
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: none;
  transform: none;
}
body.page-home .home-map-explorer .home-explorer-card.is-selected .home-explorer-select {
  padding: 12px 13px;
}
body.page-home .home-map-explorer .home-explorer-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  background: var(--swatch, #edf5e9);
  color: var(--ink, #136f38);
  font-size: 22px;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.page-home .home-map-explorer .home-explorer-card:hover .home-explorer-symbol {
  transform: scale(1.05);
}
body.page-home .home-map-explorer .home-explorer-symbol svg {
  width: 24px;
  height: 24px;
  display: block;
}
body.page-home .home-map-explorer .home-explorer-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
  background: #f1f5ee;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.page-home .home-map-explorer .home-explorer-card:hover .home-explorer-thumb {
  transform: scale(1.05);
}
body.page-home .home-map-explorer .home-explorer-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
body.page-home .home-map-explorer .home-explorer-name {
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--home-ink, #143c2d);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-home .home-map-explorer .home-explorer-meta {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--brand-turf, #136f38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-home .home-map-explorer .home-explorer-category {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--brand-turf, #136f38);
}
body.page-home .home-map-explorer .home-explorer-location,
body.page-home .home-map-explorer .home-explorer-age {
  font-size: 12px;
  line-height: 1.4;
  color: var(--home-muted, #587166);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-home .home-map-explorer .home-explorer-price {
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.4;
  color: var(--home-ink, #143c2d);
}
body.page-home .home-map-explorer .home-explorer-matched-group {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--home-muted, #587166);
}
body.page-home .home-map-explorer .home-explorer-fallback {
  font-size: 11px;
  line-height: 1.4;
  color: var(--home-muted, #587166);
}
body.page-home .home-map-explorer .home-explorer-details {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 14px 8px;
  color: var(--home-green, #136f38);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 8px;
  margin-top: -4px;
}
body.page-home .home-map-explorer .home-explorer-details:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Empty State */
body.page-home .home-map-explorer .home-explorer-empty {
  padding: 24px 16px;
  border: 1px dashed var(--home-line, #dbe6d7);
  border-radius: 14px;
  text-align: center;
  background: #f8faf5;
  color: var(--home-muted, #587166);
  font-size: 14px;
  line-height: 1.6;
}
body.page-home .home-map-explorer .home-explorer-empty img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 12px;
}
body.page-home .home-map-explorer .home-explorer-empty p {
  margin: 0 0 12px;
}
body.page-home .home-map-explorer .home-explorer-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-green, #136f38);
  font-weight: 650;
}

/* Mappy Floating Map Assistant in Bottom-Left Corner */
body.page-home .home-map-explorer .home-map-assistant {
  position: absolute;
  bottom: 28px;
  left: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  max-width: 250px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(19, 111, 56, 0.18);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(19, 111, 56, 0.08);
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), width 0.25s ease, max-width 0.25s ease, padding 0.2s ease, border-radius 0.2s ease;
  box-sizing: border-box;
}

body.page-home .home-map-explorer .home-map-assistant:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(19, 111, 56, 0.35);
  box-shadow: 0 6px 20px rgba(19, 111, 56, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

body.page-home .home-map-explorer .home-map-assistant.has-selection {
  border-color: var(--brand-turf, #136f38);
  background: rgba(245, 252, 243, 0.96);
}

/* Mascot figure */
body.page-home .home-map-explorer .home-map-assistant-figure {
  position: relative;
  flex: none;
  width: 34px;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

body.page-home .home-map-explorer .home-map-assistant-figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 26px;
  height: 5px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(19, 111, 56, 0.3) 0%, rgba(19, 111, 56, 0.08) 50%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.page-home .home-map-explorer .home-map-assistant:hover .home-map-assistant-figure::after {
  transform: translateX(-50%) scale(1.15);
  opacity: 0.85;
}

body.page-home .home-map-explorer .home-map-assistant img {
  width: 34px;
  height: 44px;
  object-fit: contain;
  flex: none;
  transform-origin: 50% 92%;
  display: block;
  animation: mappy-guide-breathe 4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

/* Animations on assistant */
body.page-home .home-map-explorer .home-map-assistant.is-guide-entering img {
  animation: mappy-guide-arrive 700ms cubic-bezier(.22, 1, .36, 1) 1;
}

body.page-home .home-map-explorer .home-map-assistant:hover img,
body.page-home .home-map-explorer .home-map-assistant.is-guide-greeting img {
  animation: mappy-guide-happy-bounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

body.page-home .home-map-explorer .home-map-assistant.is-reacting img {
  animation: mappy-guide-nod 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1;
}

/* Assistant Copy */
body.page-home .home-map-explorer .home-map-assistant-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
}

body.page-home .home-map-explorer .home-map-assistant-title {
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.2;
  color: var(--home-ink, #143c2d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.page-home .home-map-explorer .home-map-assistant.has-selection .home-map-assistant-title {
  color: var(--brand-turf, #136f38);
}

body.page-home .home-map-explorer .home-map-assistant.has-selection .home-map-assistant-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-turf, #136f38);
  box-shadow: 0 0 5px rgba(19, 111, 56, 0.45);
  flex: none;
}

body.page-home .home-map-explorer .home-map-assistant-text {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--home-muted, #587166);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-home .home-map-explorer .home-map-assistant.has-selection .home-map-assistant-text {
  color: var(--home-ink, #143c2d);
  font-weight: 600;
}

/* Toggle / minimize button */
body.page-home .home-map-explorer .home-map-assistant-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 60, 45, 0.05);
  color: var(--home-muted, #587166);
  cursor: pointer;
  padding: 0;
  flex: none;
  margin-left: 2px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

body.page-home .home-map-explorer .home-map-assistant-toggle:hover {
  background: rgba(19, 111, 56, 0.14);
  color: var(--brand-turf, #136f38);
}

/* Minimized state: shrinks to a cute corner mascot button */
body.page-home .home-map-explorer .home-map-assistant.is-minimized {
  max-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(19, 111, 56, 0.16);
}

body.page-home .home-map-explorer .home-map-assistant.is-minimized .home-map-assistant-copy,
body.page-home .home-map-explorer .home-map-assistant.is-minimized .home-map-assistant-toggle {
  display: none !important;
}

body.page-home .home-map-explorer .home-map-assistant.is-minimized .home-map-assistant-figure {
  width: 30px;
  height: 38px;
}

body.page-home .home-map-explorer .home-map-assistant.is-minimized img {
  width: 30px;
  height: 38px;
}

/* Bottom Popup Drawer disabled - single balloon card used instead */
body.page-home .home-map-explorer .home-map-popup-drawer {
  display: none !important;
}

/* Guide Keyframe Animations */
@keyframes mappy-guide-breathe {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  50% {
    transform: translateY(-2px) scale(0.985, 1.02);
  }
}

@keyframes mappy-guide-happy-bounce {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: translateY(2px) scale(1.06, 0.94); }
  50% { transform: translateY(-6px) scale(0.95, 1.06); }
  75% { transform: translateY(-1px) scale(1.02, 0.98); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes mappy-guide-nod {
  0% { transform: translateY(0) scale(1, 1) rotate(0deg); }
  28% { transform: translateY(-4px) scale(1.03, 1.03) rotate(-3deg); }
  58% { transform: translateY(1px) scale(0.98, 0.98) rotate(2deg); }
  82% { transform: translateY(-1px) scale(1.01, 1.01) rotate(-1deg); }
  100% { transform: translateY(0) scale(1, 1) rotate(0deg); }
}

@keyframes mappy-guide-arrive {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  65% { opacity: 1; transform: translateY(-3px) scale(1.02); }
  to { opacity: 1; transform: none; }
}
@keyframes popup-slide-up {
  0% { opacity: 0; transform: translateY(14px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Marker glow & animation */
body.page-home .home-map-explorer .custom-leaflet-marker {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
body.page-home .home-map-explorer .custom-leaflet-marker.is-home-map-selected > svg {
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #136f38cc) !important;
}

/* Focus */
body.page-home .home-map-explorer .home-explorer-select:focus-visible,
body.page-home .home-map-explorer .home-explorer-details:focus-visible,
body.page-home .home-map-explorer .home-explorer-tabs button:focus-visible {
  outline: 3px solid var(--brand-turf, #136f38);
  outline-offset: 2px;
}
body.page-home .home-map-explorer [hidden] {
  display: none !important;
}
body.page-home .home-map-explorer .home-explorer-select:disabled {
  cursor: progress;
}

/* Pagination */
body.page-home .home-map-explorer .home-map-pagination {
  margin-top: 14px;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-home .home-map-explorer .home-explorer-workspace {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 14px;
  }
  body.page-home .home-map-explorer .home-map {
    height: 480px;
  }
  body.page-home .home-map-explorer .home-explorer-list {
    max-height: 400px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body.page-home .home-map-panel.home-map-explorer {
    padding: 14px 12px 16px;
    border-radius: 20px;
  }

  /* Compact 2-row head: (Pill + Catalog Link) on top, (Title) underneath */
  body.page-home .home-map-explorer .home-map-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
    margin-bottom: 8px;
  }
  body.page-home .home-map-explorer .home-map-copy {
    display: contents;
  }
  body.page-home .home-map-explorer .home-map-eyebrow-row {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }
  body.page-home .home-map-explorer .home-map-eyebrow {
    display: none;
  }
  body.page-home .home-map-explorer .home-map-head-action {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    margin: 0;
  }
  body.page-home .home-map-explorer .home-map-catalog-link {
    min-height: 32px;
    height: 32px;
    padding: 5px 11px;
    border-radius: 9px;
    font-size: 12.5px;
    gap: 5px;
  }
  body.page-home .home-map-explorer .home-map-catalog-link .home-btn-icon svg {
    width: 14px;
    height: 14px;
  }
  body.page-home .home-map-explorer .home-map-head h2 {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 20px;
    line-height: 1.25;
    margin: 2px 0 0;
    letter-spacing: -0.02em;
  }
  body.page-home .home-map-explorer .home-map-subtitle {
    display: none;
  }

  /* Search block - compact single row */
  body.page-home .home-map-explorer > .home-hero-search-area {
    margin: 0 0 8px;
  }
  body.page-home .home-map-explorer .home-search-head {
    display: none;
  }
  body.page-home .home-map-explorer .home-search-primary-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  body.page-home .home-map-explorer .home-search-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
  body.page-home .home-map-explorer .home-search-input-wrap input[type="search"] {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 32px 0 38px !important;
    font-size: 14px;
    border-radius: 12px;
    background: #ffffff;
    border-color: #dce8df;
  }
  body.page-home .home-map-explorer .home-search-input-icon {
    left: 12px;
  }
  body.page-home .home-map-explorer .home-search-input-icon svg {
    width: 18px;
    height: 18px;
  }
  body.page-home .home-map-explorer .home-search-show-map-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-weight: 700;
    gap: 6px;
    white-space: nowrap;
    background: var(--home-green, #136f38);
    color: #fff;
  }
  body.page-home .home-map-explorer .home-search-show-map-btn svg {
    width: 16px;
    height: 16px;
  }

  /* Refine search summary and filters */
  body.page-home .home-map-explorer .home-search-refine {
    margin-top: 0;
    margin-bottom: 8px;
  }
  body.page-home .home-map-explorer .home-search-refine > summary {
    min-height: 38px;
    height: 38px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    gap: 6px;
  }
  body.page-home .home-map-explorer .home-refine-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
  }
  body.page-home .home-map-explorer .home-refine-hint {
    font-size: 11.5px;
  }
  body.page-home .home-map-explorer .home-refine-chevron {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }
  body.page-home .home-map-explorer .home-search-refine .home-search-filters-row {
    padding: 10px;
    gap: 8px;
    border-radius: 12px;
    margin-top: 6px;
  }
  body.page-home .home-map-explorer .home-search-refine :is(.km-tree-trigger, .km-category-trigger) {
    min-height: 40px;
    padding: 6px 28px 6px 10px !important;
    font-size: 13px;
  }
  body.page-home .home-map-explorer .home-search-refine .home-age-field {
    height: 38px;
    font-size: 12px;
  }
  body.page-home .home-map-explorer .home-search-refine .home-age-field input {
    height: 34px;
    font-size: 13px;
  }
  body.page-home .home-map-explorer .home-search-refine .home-search-reset-btn {
    min-height: 36px;
    height: 36px;
    font-size: 12px;
    padding: 6px 10px;
  }

  /* Visually hide verbose status sentence on mobile (retaining screen reader polite announcement) */
  body.page-home .home-map-explorer .home-map-result-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.page-home .home-map-explorer .home-explorer-workspace {
    display: block;
  }

  /* Compact tabs */
  body.page-home .home-map-explorer .home-explorer-tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    margin: 0 0 8px;
    background: #edf4e7;
    border-radius: 10px;
  }
  body.page-home .home-map-explorer .home-explorer-tabs button {
    flex: 1;
    min-height: 36px;
    height: 36px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--home-green, #136f38);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
  }
  body.page-home .home-map-explorer .home-explorer-tabs button[aria-selected=true] {
    background: #fff;
    color: var(--brand-turf, #136f38);
    box-shadow: 0 1px 4px rgba(23, 60, 37, 0.1);
  }

  /* Generous, high-reach map on mobile */
  body.page-home .home-map-explorer .home-map {
    height: clamp(380px, 56vh, 480px);
    min-height: 360px;
    border-radius: 14px;
  }

  /* List on mobile */
  body.page-home .home-map-explorer .home-explorer-list {
    max-height: 480px;
    gap: 8px;
  }
  body.page-home .home-map-explorer .home-explorer-card {
    border-radius: 14px;
  }
  body.page-home .home-map-explorer .home-explorer-select {
    padding: 10px 12px;
    gap: 10px;
  }
  body.page-home .home-map-explorer .home-explorer-thumb,
  body.page-home .home-map-explorer .home-explorer-symbol {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }

  body.page-home .home-map-explorer .home-map-assistant {
    bottom: 24px;
    left: 10px;
    max-width: 220px;
    padding: 5px 8px 5px 5px;
  }
}

@media (max-width: 360px) {
  body.page-home .home-map-explorer .home-search-show-map-btn {
    padding: 0 10px !important;
    font-size: 12.5px !important;
  }
  body.page-home .home-map-explorer .home-search-input-wrap input[type="search"] {
    font-size: 13px;
    padding-left: 34px !important;
  }
  body.page-home .home-map-explorer .home-map-assistant {
    max-width: 195px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  body.page-home .home-map-explorer *,
  body.page-home .home-map-explorer *::before,
  body.page-home .home-map-explorer *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* One search form belongs to the map/list workspace. Keep the established
   form controls and autocomplete, while dropping the separate hero deck. */
body.page-home .home-map-explorer > .home-hero-search-area {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  position: relative;
  z-index: 6;
}
body.page-home .home-map-explorer .home-hero-search-deck {
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.page-home .home-map-explorer .home-search-head { margin-bottom: 8px; }
body.page-home .home-map-explorer .home-search-show-map-btn > span { display: inline; }


/* Keep the larger guide and map aligned; only the results list scrolls. */
@media (min-width: 768px) {
  body.page-home .home-map-explorer .home-explorer-list-panel { height: 520px; }
  body.page-home .home-map-explorer .home-explorer-list {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
  body.page-home .home-map-explorer .home-explorer-guide { flex: none; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body.page-home .home-map-explorer .home-explorer-list-panel { height: 480px; }
}


/* ============================================================
   Clear & Distinct Interactive Controls (Mobile & Desktop)
   ============================================================ */

/* 1. Mobile Segmented Tabs: Map vs List */
@media (max-width: 820px) {
  body.page-home .home-map-explorer .home-explorer-tabs {
    display: flex !important;
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 0 12px 0 !important;
    background: #edf5ee !important;
    border: 1.5px solid #d1ded5 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }

  body.page-home .home-map-explorer .home-explorer-tabs button {
    flex: 1 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #374151 !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    transition: all 0.15s ease !important;
    outline: none !important;
  }

  body.page-home .home-map-explorer .home-explorer-tabs button svg {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
  }

  body.page-home .home-map-explorer .home-explorer-tabs button[aria-selected="false"]:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    color: #111827 !important;
  }

  body.page-home .home-map-explorer .home-explorer-tabs button[aria-selected="true"] {
    background: #009a4e !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(0, 154, 78, 0.35) !important;
  }

  body.page-home .home-map-explorer .home-explorer-tabs button[aria-selected="true"] svg {
    stroke: #ffffff !important;
  }
}

/* 2. Distinct Reset Button */
body.page-home :is(.home-hero, .home-map-explorer, .home-map-panel) .home-search-reset-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #c9d8ce !important;
  border-radius: 10px !important;
  color: #2c3e35 !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(18, 32, 26, 0.06) !important;
  transition: all 0.18s ease !important;
  width: auto !important;
  min-width: 110px !important;
  box-sizing: border-box !important;
  outline: none !important;
}

body.page-home :is(.home-hero, .home-map-explorer, .home-map-panel) .home-search-reset-btn svg {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  color: #009a4e !important;
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, color 0.18s ease !important;
}

body.page-home :is(.home-hero, .home-map-explorer, .home-map-panel) .home-search-reset-btn:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
  box-shadow: 0 3px 10px rgba(185, 28, 28, 0.18) !important;
  transform: translateY(-1px) !important;
}

body.page-home :is(.home-hero, .home-map-explorer, .home-map-panel) .home-search-reset-btn:hover svg {
  color: #b91c1c !important;
  transform: rotate(-45deg) !important;
}

body.page-home :is(.home-hero, .home-map-explorer, .home-map-panel) .home-search-reset-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

/* 3. Filter Accordion Toggle Button & Compact Animated Body */
body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine {
  margin-top: 10px;
  width: 100%;
  border: none;
  background: transparent;
}

body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine > summary.home-refine-toggle {
  display: none !important;
}

body.page-home .home-refine-toggle__left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body.page-home .home-refine-toggle__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #eaf8ee !important;
  color: #0d8a52 !important;
  flex: 0 0 28px !important;
}

body.page-home .home-refine-toggle__title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #15221b !important;
  white-space: nowrap !important;
}

body.page-home .home-refine-toggle__tags {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  margin-left: 2px !important;
}

body.page-home .home-refine-tags-hint {
  font-size: 12px !important;
  color: #6b7e75 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 500 !important;
}

body.page-home .home-refine-active-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: #0d8a52 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  box-shadow: 0 1px 4px rgba(13, 138, 82, 0.25) !important;
  white-space: nowrap !important;
}

body.page-home .home-refine-toggle__right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

body.page-home .home-refine-toggle__action-text {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #0d8a52 !important;
}

body.page-home .home-search-refine:not([open]) .home-refine-text-open {
  display: none !important;
}

body.page-home .home-search-refine:not([open]) .home-refine-text-closed {
  display: inline !important;
}

body.page-home .home-search-refine[open] .home-refine-text-closed {
  display: none !important;
}

body.page-home .home-search-refine[open] .home-refine-text-open {
  display: inline !important;
}

body.page-home .home-refine-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  color: #0d8a52 !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.page-home .home-search-refine[open] .home-refine-chevron {
  transform: rotate(180deg) !important;
}

/* Accordion Smooth Body Animation */
body.page-home .home-search-refine:not([open]):not(.is-closing) .home-search-refine-body {
  display: none !important;
}

body.page-home .home-search-refine[open] .home-search-refine-body,
body.page-home .home-search-refine.is-closing .home-search-refine-body {
  display: grid !important;
}

body.page-home .home-search-refine[open]:not(.is-closing) .home-search-refine-body {
  animation: refine-expand 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

body.page-home .home-search-refine.is-closing .home-search-refine-body {
  animation: refine-collapse 0.22s ease forwards !important;
}

@keyframes refine-expand {
  0% {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes refine-collapse {
  0% {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-6px);
  }
}

body.page-home .home-search-refine-body > .home-search-filters-row {
  overflow: hidden !important;
  min-height: 0 !important;
}

/* In-closing animation helper */
body.page-home .home-search-refine.is-closing .home-refine-chevron {
  transform: rotate(0deg) !important;
}

body.page-home .home-search-refine.is-closing .home-refine-text-closed {
  display: inline !important;
}

body.page-home .home-search-refine.is-closing .home-refine-text-open {
  display: none !important;
}

/* Compact controls on desktop */
body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .home-search-filters-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
  border: 1.5px solid #dce8df !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 4px 12px rgba(18, 32, 26, 0.05) !important;
}

body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine :is(.km-tree-trigger, .km-category-trigger, .km-age-trigger) {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 13px !important;
  padding: 0 28px 0 10px !important;
  border-radius: 9px !important;
}

body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .home-search-reset-btn {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  border: 1.5px solid #dce8df !important;
  background: #f7faf8 !important;
  color: #52675d !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
}

body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .home-search-reset-btn:hover {
  background: #ebf5ee !important;
  border-color: #0d8a52 !important;
  color: #0d8a52 !important;
}

/* Compact controls on mobile */
@media (max-width: 768px) {
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine > summary.home-refine-toggle {
    display: none !important;
  }
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .home-search-filters-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    padding: 7px !important;
  }
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .km-location-tree {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .km-category-select {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine :is(.km-age-select, .home-age-range) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine .home-search-reset-btn {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
    min-height: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
  }
  body.page-home :is(.home-hero, .home-map-explorer) .home-search-refine :is(.km-tree-trigger, .km-category-trigger, .km-age-trigger) {
    min-height: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 22px 0 8px !important;
  }
}

@media (max-width: 480px) {
  body.page-home .home-refine-tags-hint {
    display: none !important;
  }
}

/* 4. Primary Search Button */
body.page-home .home-search-submit-btn {
  min-height: 46px !important;
  height: 46px !important;
  background: #009a4e !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0, 154, 78, 0.3) !important;
  transition: all 0.18s ease !important;
  border: none !important;
}

body.page-home .home-search-submit-btn:hover {
  background: #087b43 !important;
  box-shadow: 0 4px 14px rgba(0, 154, 78, 0.4) !important;
}

body.page-home .home-search-submit-btn:active {
  transform: scale(0.98) !important;
}

/* 5. Age Range Inputs Crisp Framing */
body.page-home .home-search-refine .home-age-range {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page-home .home-search-refine .home-age-range legend {
  font-size: 12.5px !important;
  font-weight: 750 !important;
  color: #314038 !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
}

body.page-home .home-search-refine .home-age-field {
  height: 42px !important;
  min-height: 42px !important;
  border: 1.5px solid #d1ded5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

body.page-home .home-search-refine .home-age-field span {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #4b5563 !important;
}

body.page-home .home-search-refine .home-age-field input {
  height: 38px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #12201a !important;
  border: none !important;
  background: transparent !important;
  width: 48px !important;
  padding: 0 !important;
  text-align: center !important;
  outline: none !important;
}

body.page-home .home-search-refine .home-age-field:focus-within {
  border-color: #009a4e !important;
  box-shadow: 0 0 0 3px rgba(0, 154, 78, 0.15) !important;
}
