.marker-garden-shape i {
  position: absolute;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--light-green);
  animation: gardenPop 2.5s ease-in-out infinite;
  transform-origin: center;
}

.marker-garden-shape i:nth-child(1) {
  left: 18%;
  top: 18%;
}

.marker-garden-shape i:nth-child(2) {
  right: 18%;
  top: 18%;
  background: var(--yellow);
  animation-delay: 0.2s;
}

.marker-garden-shape i:nth-child(3) {
  left: 18%;
  bottom: 18%;
  background: var(--pink);
  animation-delay: 0.35s;
}

.marker-garden-shape i:nth-child(4) {
  right: 18%;
  bottom: 18%;
  background: var(--lavender);
  animation-delay: 0.5s;
}

.marker-garden-shape b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 18%;
  border-radius: 50%;
  background: var(--dark-green);
  transform: translate(-50%, -50%);
  opacity: 0.7;
}

.marker-bed-shape {
  position: relative;
  width: 72%;
  height: 72%;
  border-radius: 18% 18% 28% 28%;
  background: linear-gradient(180deg, var(--gb-orange), #c84f20);
  box-shadow: inset 0 -7px 0 rgba(66, 113, 45, 0.22);
}

.marker-bed-shape i {
  position: absolute;
  width: 20%;
  height: 44%;
  top: 15%;
  border-radius: 20px 20px 6px 6px;
  background: var(--light-green);
  transform: rotate(-26deg);
}

.marker-bed-shape i:nth-child(1) {
  left: 26%;
}

.marker-bed-shape i:nth-child(2) {
  right: 26%;
  transform: rotate(26deg);
}

.marker-bed-shape b {
  position: absolute;
  left: 50%;
  bottom: 31%;
  width: 22%;
  height: 38%;
  border-radius: 20px 20px 8px 8px;
  background: var(--yellow);
  transform: translateX(-50%);
}

.marker-yard-shape {
  position: relative;
  width: 72%;
  height: 72%;
  border: 3px solid var(--dark-green);
  background: rgba(255, 255, 255, 0.58);
}

.marker-yard-shape i,
.marker-yard-shape b {
  position: absolute;
  border-radius: 999px;
  background: var(--dark-green);
}

.marker-yard-shape i {
  left: 26%;
  top: 35%;
  width: 34%;
  height: 24%;
  transform: rotate(38deg);
}

.marker-yard-shape b {
  right: 20%;
  bottom: 24%;
  width: 28%;
  height: 22%;
  transform: rotate(-44deg);
}

.marker-other-shape {
  position: relative;
  width: 72%;
  height: 72%;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--yellow) 0 32%,
    var(--pink) 32% 60%,
    var(--lavender) 60% 100%
  );
  overflow: hidden;
}

.marker-other-shape i {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 45%,
    rgba(255, 255, 255, 0.65) 45% 55%,
    transparent 55%
  );
}

@keyframes gardenPop {
  0%,
  100% {
    scale: 0.92;
  }

  50% {
    scale: 1.08;
  }
}

.map-type-marker {
  width: var(--marker-size);
  height: var(--marker-size);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform-origin: 50% 100%;
  transition: transform 0.16s ease;
}

.map-type-marker:hover {
  transform: translateY(-4px);
}

.leaflet-marker-icon {
  overflow: visible !important;
}

.leaflet-marker-icon .map-type-marker {
  width: var(--marker-size) !important;
  height: var(--marker-size) !important;
  max-width: 70px !important;
  max-height: 70px !important;
}

.marker-body {
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 50%;
  background: color-mix(in srgb, var(--marker-color), white 18%);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.marker-body > * {
  transform: none;
}

.marker-halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--marker-color), white 30%);
  opacity: 0;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.map-type-marker:hover .marker-halo {
  opacity: 0.4;
  transform: scale(1.15);
}

.map-size-tooltip {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--white);
  color: #102415;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.map-size-tooltip::before {
  display: none;
}

.map-type-marker .marker-img {
  width: calc(var(--marker-size) - 8px);
  height: calc(var(--marker-size) - 8px);
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
}

.map-type-marker .marker-garden-shape {
  width: 70%;
  height: 70%;
}

.marker-garden-shape {
  width: 70%;
  height: 70%;
  position: relative;
  border-radius: 10px;
  border: 2px solid rgba(66, 113, 45, 0.72);
  background:
    linear-gradient(
      90deg,
      transparent 48%,
      rgba(66, 113, 45, 0.35) 48% 52%,
      transparent 52%
    ),
    linear-gradient(
      0deg,
      transparent 48%,
      rgba(66, 113, 45, 0.35) 48% 52%,
      transparent 52%
    ),
    rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 0 0 3px rgba(191, 210, 127, 0.38);
}

.gb-map-marker {
  width: 58px;
  height: 58px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--gb-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.15s;
  color: var(--gb-orange);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.gb-map-marker:hover {
  transform: scale(1.1);
}

.gb-map-marker svg {
  width: 24px;
  height: 24px;
}

.garage-map-marker {
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(106, 162, 77, 0.42);
  box-shadow: 0 5px 14px rgba(66, 113, 45, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
}

.garage-map-marker svg {
  width: 40px;
  height: 40px;
  display: block;
}

.map-scroll-hint {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  background: rgba(28, 28, 28, 0.42);
  color: var(--white);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 900;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.18s ease;
}

.map-scroll-hint.visible {
  opacity: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 2px solid var(--light-green) !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: auto !important;
}

.custom-popup {
  min-width: 175px;
  padding: 1rem 1.2rem;
}

.custom-popup-icon-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--dark-green);
}

.custom-popup-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.custom-popup-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.custom-popup-sqm {
  font-size: 13px;
  font-weight: 900;
  color: var(--dark-green);
}

.custom-popup-type {
  margin-top: 0.25rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
}

.gb-popup {
  overflow: hidden;
  border-radius: var(--radius);
  min-width: 250px;
}

.gb-popup-images {
  height: 112px;
}

.gb-popup-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gb-popup-body {
  padding: 1rem 1.1rem;
  background: var(--white);
}

.gb-popup-kicker {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gb-orange);
}

.gb-popup-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--dark);
  margin: 0.2rem 0 0.5rem;
}

.gb-popup-address {
  font-size: 13px;
  font-weight: 800;
  color: var(--grey);
  line-height: 1.35;
}

.garage-popup {
  overflow: hidden;
  border-radius: var(--radius);
  min-width: 250px;
}

.garage-popup-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 112px;
}

.garage-popup-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.garage-popup-body {
  padding: 1rem 1.1rem;
  background: var(--white);
}

.garage-popup-kicker {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gb-orange);
}

.garage-popup-title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--dark);
  margin: 0.2rem 0 0.5rem;
}

.garage-popup-address {
  font-size: 13px;
  font-weight: 800;
  color: var(--grey);
  line-height: 1.35;
}

footer {
  background: var(--dark-green);
  padding: 3rem clamp(1.5rem, 8vw, 6rem);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--light-green);
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--light-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--light-green);
}

.dataset-cluster {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark-green);
  border: 3px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 18px rgba(66, 113, 45, 0.38);
}
.dataset-cluster span {
  line-height: 1;
}
.selected-map-marker .map-type-marker {
  animation: selectedMarkerPop 0.72s ease-in-out infinite alternate;
}
.selected-map-marker .marker-halo {
  opacity: 0.85;
  border-width: 4px;
}
:root {
  --dark-green: #42712d;
  --light-green: #bfd27f;
  --text-dark: #1c1c1c;
  --text-muted: #6b6b6b;
  --radius-lg: 12px;
  --shadow-md: 0 4px 16px #0002;
}
.school-lockup .nav-htl-logo {
  width: 44px;
  height: 40px;
  flex: none;
}
#map-container {
  height: min(68dvh, 640px);
  min-height: 260px;
}
#map-container.expanded {
  height: 80dvh;
  min-height: 260px;
}
#map {
  touch-action: pan-x pan-y;
}
#map .leaflet-marker-icon,
#map .leaflet-interactive {
  touch-action: pan-x pan-y;
}
#mini-map {
  height: calc(100% - 79px);
}
.mini-map-link .leaflet-control-attribution {
  bottom: 0;
  font-size: 8px !important;
}
.map-key {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 800;
  width: 224px;
  max-width: calc(100% - 76px);
  max-height: calc(100% - 50px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  background: #fffffff5;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 3px 14px #0002;
  font-size: 0.85rem;
}
.map-key:not([open]) { width: 126px; }
.map-key summary {
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  list-style: none;
}
.map-key summary::-webkit-details-marker { display: none; }
.map-key[open] .legend-toggle-mark { transform: rotate(180deg); }
.map-legend-content { padding: 0 14px 12px; }
.map-legend-content > p { display: flex; align-items: center; gap: 8px; font-size: .76rem; margin: 12px 0 0; }
.map-legend-content .boundary-key { flex: none; }
.cluster-key { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: white; font-weight: 900; }
.map-key-items {
  display: grid;
  gap: 7px;
  margin: 0;
}
.map-key-items > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-key-items .category-icon {
  width: 32px;
  height: 32px;
}
.office-key {
  color: #e8612a;
}
.garage-key {
  color: var(--green);
  font-size: 1.8rem;
}
.boundary-key {
  display: inline-block;
  width: 30px;
  border-top: 2px dashed var(--green);
  vertical-align: middle;
}
.district-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.85rem;
}
.district-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.footer-links {
  padding: 0;
  margin: 0;
}
.hero-duck {
  bottom: -25px;
}
.mini-caption {
  min-height: 79px;
  padding-left: 110px;
}
.project-visual {
  padding-bottom: 160px;
}
.project-photo-wrap { position: relative; }
.magazine-note {
  position: absolute;
  right: -25px;
  bottom: -150px;
  margin: 0;
  background: var(--lavender);
  color: var(--ink);
  box-shadow: none;
}
.photo-label {
  max-width: calc(100% - 270px);
  padding-bottom: 0;
}
@media (max-width: 760px) {
  .hero-topline {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-topline span:last-child {
    display: block;
  }
  .hero-visual {
    padding-bottom: 125px;
  }
  .hero-duck {
    bottom: 0;
    left: 0;
    width: 140px;
  }
  .duck-bubble {
    left: 120px;
    bottom: 20px;
    white-space: normal;
    width: min(165px, 40vw);
  }
  .mini-caption {
    padding-left: 18px;
  }
  .mini-caption strong {
    max-width: 100%;
  }
  .project-visual {
    padding-bottom: 0;
  }
  .magazine-note {
    width: 225px;
    right: 5px;
    margin: 0;
  }
  .photo-label {
    max-width: none;
    padding-top: 0;
    margin-top: 175px;
    padding-bottom: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    align-items: flex-start;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
  }
  .hero h1 {
    font-size: clamp(2.9rem, 12.7vw, 6.3rem);
  }
  .speech-label {
    right: 0;
  }
}

.office-key,
.garage-key {
  display: inline-flex;
  width: 30px;
  height: 30px;
}
.map-key-items img {
  object-fit: contain;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .category-fan {
    flex-wrap: wrap;
  }
  .category-card,
  .category-card.active {
    flex: 1 1 calc(33.333% - 10px);
  }
  .category-trigger .category-name {
    writing-mode: horizontal-tb;
    min-height: 0;
  }
  .category-trigger {
    min-height: 180px;
  }
}

:root {
  --dark: #1c1c1c;
  --gb-orange: #e8612a;
  --radius: 12px;
  --shadow-lg: 0 8px 28px #0002;
}
.dataset-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .dataset-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .stat,
  .stat:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Review corrections: branding, focused actions and cooperative map interaction. */
.brand .nav-htl-logo {
  width: 42px;
  height: 38px;
  flex: none;
}
.brand .brand-title {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  line-height: 1.25;
}
.brand-title strong {
  font-size: 18px;
  letter-spacing: 0;
}
.brand-title small {
  font-size: 14px;
  font-weight: 400;
  color: var(--grey);
}
.text-link {
  text-decoration: none;
  gap: 8px;
}
.text-link:hover {
  text-decoration: underline;
}
.actions .text-link,
.section-intro .text-link {
  border-bottom: 1px solid currentColor;
}
.actions .text-link:hover,
.section-intro .text-link:hover {
  text-decoration: none;
}
.search-field {
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 2px #42712d18;
}
.search-field input:focus,
.search-field input:focus-visible {
  outline: none;
  box-shadow: none;
}
.search-status {
  font-size: 0.85rem;
  color: var(--green);
  margin: 0 0 12px;
}
.search-status:empty {
  display: none;
}
.street-results {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.street-results button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px 12px;
  text-align: left;
  font-weight: 800;
}
.street-results small {
  display: block;
  font-weight: 400;
  color: var(--grey);
}
.map-caption {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.map-help-toggle {
  background: none;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green);
  cursor: pointer;
}
.map-help-toggle:hover {
  text-decoration: underline;
}
.map-gesture-note {
  position: absolute;
  bottom: 28px;
  left: 14px;
  z-index: 800;
  padding: 7px 12px;
  border-radius: 6px;
  background: #fffffff2;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  max-width: calc(100% - 28px);
}
.map-gesture-note.visible {
  opacity: 1;
}
.touch-map-help {
  display: none;
}
.partner-map-marker.gb-map-marker,
.partner-map-marker.garage-map-marker {
  width: 44px;
  height: 52px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
}
.partner-map-marker img {
  width: 44px;
  height: 52px;
}
.partner-map-marker:hover {
  transform: translateY(-2px);
}
.selected-map-marker .map-type-marker {
  animation: none;
}
.project-photo {
  height: auto;
  aspect-ratio: 4/3;
}
.menu-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 18px;
}
.menu-bars i {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.15s,
    top 0.2s;
}
.menu-bars i:nth-child(1) {
  top: 1px;
}
.menu-bars i:nth-child(2) {
  top: 8px;
}
.menu-bars i:nth-child(3) {
  top: 15px;
}
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.menu-toggle[aria-expanded="true"] .menu-bars i:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}
@media (any-hover: hover) and (any-pointer: fine) {
  body {
    cursor:
      url("img/EnteCursor.png") 2 2,
      auto;
  }
  input,
  textarea,
  [contenteditable="true"] {
    cursor: text;
  }
}
@media (max-width: 760px) {
  .nav-wrap {
    gap: 0 10px;
  }
  .brand {
    gap: 10px;
  }
  .brand .brand-title {
    padding-left: 10px;
  }
  .brand-title strong {
    font-size: 15px;
  }
  .brand-title small {
    font-size: 12px;
  }
  .brand .nav-htl-logo {
    width: 34px;
    height: 32px;
  }
  .menu-toggle {
    gap: 8px;
  }
  .nav-wrap #main-nav {
    display: flex;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    transform: translateY(-7px);
    transition:
      max-height 0.22s ease,
      padding 0.22s ease,
      opacity 0.18s ease,
      transform 0.22s ease,
      visibility 0s 0.22s;
  }
  .nav-wrap #main-nav.open {
    max-height: 320px;
    visibility: visible;
    opacity: 1;
    padding: 8px 0 18px;
    transform: none;
    transition:
      max-height 0.22s ease,
      padding 0.22s ease,
      opacity 0.18s ease,
      transform 0.22s ease;
  }
  .map-preview-wrap {
    margin-left: 12px;
    width: calc(100% - 12px);
  }
  .map-sticker {
    right: 0;
  }
  .desktop-map-help {
    display: none;
  }
  .touch-map-help {
    display: block;
  }
}
@media (pointer: coarse) {
  .desktop-map-help {
    display: none;
  }
  .touch-map-help {
    display: block;
  }
}
@media (max-width: 400px) {
  .menu-label {
    display: none;
  }
  .menu-toggle {
    width: 44px;
    padding: 10px;
    justify-content: center;
  }
  .brand-title strong {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-bars i,
  .nav-wrap #main-nav {
    transition: none;
  }
}

/* Text decoration belongs to the label, never to its arrow. */
.text-link,
.text-link:hover,
.text-link:focus-visible,
.actions .text-link,
.section-intro .text-link {
  text-decoration: none;
  border-bottom: 0;
}
.text-link .link-label {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.text-link .link-arrow {
  text-decoration: none;
  display: inline-block;
}
.section-intro .text-link { color: var(--green); }
.primary:hover {
  background: #355d24;
  border-color: #355d24;
  box-shadow: 0 4px 12px #42712d25;
}
.primary:hover span {
  transform: translate(2px, -2px);
}
.button span {
  transition: transform 0.18s;
}
.nav-cta {
  transition:
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.nav-wrap nav > a.nav-cta:hover {
  background: #e9b83f;
  box-shadow: 0 3px 10px #42712d18;
  transform: translateY(-2px);
}
.participate-duck {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.participate-duck .speech-label {
  position: static;
  align-self: flex-end;
  margin: 0 0 26px;
  transform: rotate(6deg);
}
.participate-duck .duck {
  transform: none;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding-bottom: 0;
}
.hero-duck {
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  width: auto;
  margin: -25px 0 0 -45px;
}
.hero-duck .duck {
  width: 180px;
  flex: none;
}
.hero-duck .duck-bubble {
  position: static;
  inset: auto;
  white-space: normal;
  width: auto;
  max-width: 230px;
  flex: 0 1 auto;
}
.hero-duck:hover .duck-bubble,
.hero-duck:focus-visible .duck-bubble {
  transform: none;
}
@media (max-width: 760px) {
  .hero-visual {
    padding: 25px 0 10px;
  }
  .hero-duck {
    margin: 5px 0 0 -10px;
    gap: 12px;
  }
  .hero-duck .duck {
    width: 130px;
  }
  .hero-duck .duck-bubble {
    max-width: calc(100% - 142px);
    font-size: 0.72rem;
  }
  .participate-duck .speech-label {
    margin: 0 0 22px;
    align-self: center;
  }
  #map-container {
    height: 440px;
    max-height: 70svh;
    min-height: 220px;
  }
}

.street-name-label { border:1px solid #42712d;background:white;color:#355d24;border-radius:6px;font-weight:900;box-shadow:0 2px 5px #0001; }

/* Keep the fan's height stable and avoid rewrapping text on every animation frame. */
@media (min-width: 1101px) {
  .category-fan { min-height: 420px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .category-card { min-height: 330px; }
}
#category-fan { overflow-anchor: none; }
.map-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 0 14px;
  margin: 0;
  border: 0;
  background: none;
}
.map-actions-bar button,
.map-actions-bar label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: .88rem;
  font-weight: 800;
}
.map-actions-bar button:hover { background: #e7eed4; border-color: var(--green); }
.map-actions-bar button[aria-pressed="true"] { background: var(--lime); border-color: var(--green); }
.map-actions-bar button:disabled { opacity: .5; cursor: default; }
.map-actions-bar input { width: 18px; height: 18px; accent-color: var(--green); }
.map-action-status { margin: 0 0 12px; font-size: .85rem; color: var(--green); }
.map-action-status:empty { display: none; }
.user-location-marker span { display: block; width: 22px; height: 22px; border: 3px solid white; border-radius: 50%; background: #205eb0; box-shadow: 0 0 0 2px #205eb0, 0 2px 6px #0004; }
#map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
@media (max-width: 760px) {
  .map-actions-bar { padding: 0 0 14px; gap: 8px; }
  .map-actions-bar > button, .map-actions-bar > label { flex: 1 1 140px; }
  .map-key { width: 210px; }
}
@media (max-width: 380px) {
  .magazine-note { width: 195px; right: 0; padding: 20px; }
}

@media(max-width:760px) {
  .nav-wrap { position:relative; }
  .nav-wrap #main-nav { position:absolute;top:100%;left:0;right:0;background:var(--paper);border-radius:0 0 8px 8px;box-shadow:0 8px 14px #0001; }
  .nav-wrap #main-nav.open { padding:8px 12px 18px; }
}

/* The map and category cards share the same icon sprite. */
.marker-body > .category-icon { width: 100%; height: 100%; }
.custom-popup-icon > .category-icon { width: 100%; height: 100%; }
