/* Home preview: production design preserved, motion and readability enhanced. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes home-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes home-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(1deg); } }
  @keyframes home-glow { 0%,100% { opacity: .22; } 50% { opacity: .5; } }
  .hero .eyebrow, .hero h1, .hero .hero-copy, .hero .actions, .hero .microcopy { animation: home-rise .65s both; }
  .hero h1 { animation-delay: .08s; }
  .hero .hero-copy { animation-delay: .16s; }
  .hero .actions { animation-delay: .24s; }
  .hero .microcopy { animation-delay: .3s; }
  .hero-art img { animation: home-float 6s ease-in-out infinite; }
  .hero-art::before { animation: home-glow 4s ease-in-out infinite; }
  .news-feature, .feature-grid .card, .story-grid, .guide-grid, .privacy-grid, .comparison-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .news-feature:hover, .story-grid:hover, .guide-grid:hover, .privacy-grid:hover, .comparison-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(12,43,29,.16); }
  .feature-grid .card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(12,43,29,.14); border-color: rgba(194,138,67,.48); }
  .button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
  .button:hover { box-shadow: 0 15px 32px rgba(12,43,29,.22); }
}

/* Tighter rhythm: preserve the production look while making the page faster to scan. */
.wrap { width: min(1160px, calc(100% - 32px)); }
.nav { min-height: 68px; }
.nav-links { gap: 17px; }
.hero-grid { min-height: 600px; gap: 38px; padding: 64px 0; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.9rem); line-height: .96; margin: 16px 0 20px; }
.hero-copy { font-size: 1rem; line-height: 1.5; }
.section { padding: 76px 0; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.02; margin-bottom: 12px; }
.news-feature { gap: 28px; }
.feature-grid { gap: 15px; }
.feature-grid .card { padding: 22px; }
.card h3 { margin: 12px 0 7px; }
.card p { font-size: .93rem; line-height: 1.45; }
.footer { padding: 42px 0; }
@media (max-width: 900px) {
  .nav-links { gap: 13px; }
  .hero-grid { min-height: 0; padding: 56px 0; }
  .section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, 560px); }
  .hero-grid { padding: 44px 0 34px; gap: 22px; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4.5rem); }
  .hero-art { min-height: 360px; }
  .section { padding: 52px 0; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 2.25rem; }
}

/* Interactive map showcase */
.map-showcase { background: #eef1e4; }
.map-heading { max-width: 650px; }
.map-showcase-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 28px; align-items: stretch; }
.map-card { position: relative; min-height: 560px; overflow: hidden; border: 8px solid #fffdf8; border-radius: 22px; box-shadow: 0 22px 60px rgba(12,43,29,.16); }
#bosco-map { min-height: 544px; height: 100%; background: #dfe8d3; }
.map-overlay-title { position: absolute; z-index: 500; top: 18px; left: 18px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(12,43,29,.84); color: white; font-size: .78rem; font-weight: 800; box-shadow: 0 8px 20px rgba(12,43,29,.18); }
.map-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #b8dd6e; box-shadow: 0 0 0 4px rgba(184,221,110,.2); }
.map-legend { display: flex; flex-direction: column; padding: 30px 6px 22px 10px; }
.map-legend h3 { margin: 12px 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.map-legend p { margin: 0 0 22px; color: var(--muted); font-size: .96rem; line-height: 1.5; }
.map-legend-list { display: grid; gap: 12px; margin-bottom: 28px; }
.map-legend-list span { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 700; }
.map-legend-list img { width: 28px; height: 35px; object-fit: contain; }
.map-legend .button { align-self: flex-start; margin-top: auto; }
.leaflet-container { font: inherit; }
.leaflet-control-layers { border: 0 !important; border-radius: 999px !important; background: rgba(12,43,29,.92) !important; box-shadow: 0 8px 24px rgba(12,43,29,.2) !important; overflow: hidden; }
.leaflet-control-layers-list { padding: 5px 8px; }
.leaflet-control-layers-base { display: flex; gap: 4px; }
.leaflet-control-layers label { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 7px 9px; border-radius: 999px; color: rgba(255,255,255,.72); font-size: .74rem; font-weight: 800; white-space: nowrap; transition: background-color .18s ease, color .18s ease; }
.leaflet-control-layers label:has(input:checked) { background: #dfe9c7; color: var(--forest-deep); }
.leaflet-control-layers input { accent-color: var(--gold); }
.leaflet-popup-content-wrapper { border-radius: 16px; overflow: hidden; padding: 0; box-shadow: 0 15px 45px rgba(12,43,29,.2); }
.leaflet-popup-content { width: 260px !important; margin: 0; }
.leaflet-popup-tip { box-shadow: 3px 3px 6px rgba(12,43,29,.08); }
.map-popup { overflow: hidden; background: #fffdf8; }
.map-popup-photo { height: 126px; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: #d9e5c9; }
.map-popup-photo.scene-slide { background-image: url('assets/map-scenes/slide.jpg'); }
.map-popup-photo.scene-river { background-image: url('assets/map-scenes/river.jpg'); }
.map-popup-photo.scene-oak { background-image: url('assets/map-scenes/oak.jpg'); }
.map-popup-photo.scene-view { background-image: url('assets/map-scenes/view.jpg'); }
.map-popup-photo.scene-mushrooms { background-image: url('assets/map-scenes/mushrooms.jpg'); }
.map-popup-photo.scene-herbs { background-image: url('assets/map-scenes/herbs.jpg'); }
.map-popup-body { padding: 14px 15px 16px; }
.map-popup-kicker { display: block; margin-bottom: 4px; color: var(--moss); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.map-popup h4 { margin: 0 0 5px; color: var(--ink); font-family: Georgia, serif; font-size: 1.28rem; font-weight: 500; line-height: 1.05; }
.map-popup p { margin: 0 0 12px; color: var(--muted); font-size: .84rem; line-height: 1.42; }
.map-popup .popup-button { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--forest); color: white; font-size: .76rem; font-weight: 800; text-decoration: none; }
.map-popup .popup-button:hover { background: var(--forest-deep); }
.map-marker { transition: transform .2s ease; }
.map-marker:hover { transform: translateY(-4px) scale(1.06); }
.kml-endpoint { display: flex; align-items: center; gap: 5px; }
.kml-endpoint span { display: block; width: 14px; height: 14px; border: 3px solid #fffdf8; border-radius: 50%; background: var(--endpoint-color); box-shadow: 0 2px 8px rgba(12,43,29,.3); }
.kml-endpoint b { padding: 3px 7px; border-radius: 999px; background: rgba(12,43,29,.88); color: white; font-size: .65rem; white-space: nowrap; }
.kml-recap { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr auto; gap: 22px; align-items: center; margin-top: 18px; padding: 20px 24px; border: 1px solid rgba(23,61,43,.14); border-radius: 16px; background: #fffdf8; box-shadow: 0 14px 34px rgba(12,43,29,.08); }
.kml-recap-title { display: flex; align-items: center; gap: 12px; }
.kml-recap-title h3 { margin: 3px 0 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1; }
.kml-route-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e3ead1; color: var(--forest); font-size: 1.8rem; line-height: 1; }
.kml-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.kml-stats div { padding-left: 14px; border-left: 1px solid var(--line); }
.kml-stats strong { display: block; color: var(--forest); font-size: 1.15rem; line-height: 1; }
.kml-stats small { font-size: .7em; font-weight: 700; }
.kml-stats span { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.kml-open-link { color: var(--forest); font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.kml-open-link:hover { color: var(--gold); }
@media (max-width: 1000px) { .kml-recap { grid-template-columns: 1fr; } .kml-stats { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 640px) { .kml-stats { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; } .kml-stats div:nth-child(odd) { border-left: 0; padding-left: 0; } .kml-open-link { margin-top: 4px; } }
@media (max-width: 800px) { .map-showcase-layout { grid-template-columns: 1fr; } .map-card { min-height: 430px; } #bosco-map { min-height: 414px; } .map-legend { padding: 18px 4px 0; } .map-legend .button { margin-top: 8px; } .leaflet-control-layers { border-radius: 16px !important; } .leaflet-control-layers-base { display: grid; gap: 2px; } .leaflet-control-layers label { justify-content: flex-start; } }
