/* made by Filip K */
:root {
  color-scheme: light;
  --page: #f5f7f2;
  --surface: #ffffff;
  --surface-soft: #eef2e9;
  --text: #20352c;
  --muted: #78877d;
  --line: #e4e9e1;
  --green: #2e7454;
  --green-dark: #225b41;
  --green-light: #e5f1e8;
  --accent: #d9e8ca;
  --shadow: 0 20px 60px rgba(34, 65, 48, .08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); transition: background .25s, color .25s; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.page-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 12px 12px 12px 5px; background: var(--green); color: #fff; font-family: Georgia, serif; font-size: 19px; font-weight: 700; letter-spacing: -1.5px; padding-right: 2px; transform: rotate(-2deg); }
.brand-mark span { color: #c8dfb4; }
.brand-name { font-size: 16px; font-weight: 750; letter-spacing: -.5px; }
.brand-name span { color: var(--green); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .map-locate { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; cursor: pointer; transition: .2s; }
.icon-button:hover, .map-locate:hover { color: var(--green); transform: translateY(-2px); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button { border: 0; border-radius: 13px; padding: 12px 17px; font-weight: 650; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-outline { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.button-outline:hover { border-color: #b7cbbd; }
.button-primary { background: var(--green); color: white; box-shadow: 0 7px 18px rgba(46, 116, 84, .16); }
.button-primary:hover { background: var(--green-dark); box-shadow: 0 9px 22px rgba(46, 116, 84, .24); }
.intro { min-height: 270px; margin: 28px 0 32px; border-radius: 26px; background: #e9f0e2; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 38px 48px; }
.intro-copy { position: relative; z-index: 1; width: min(600px, 70%); }
.eyebrow { color: var(--green); font-size: 10px; line-height: 1.4; letter-spacing: 1.65px; font-weight: 750; margin: 0 0 12px; }
.eyebrow-dot { width: 7px; height: 7px; background: #76a876; border-radius: 50%; display: inline-block; margin: 0 7px 1px 0; box-shadow: 0 0 0 4px rgba(118, 168, 118, .14); }
h1, h2, p { margin-top: 0; }
.intro h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -2px; font-weight: 770; }
.intro h1 span { color: var(--green); }
.intro-text { max-width: 460px; margin: 15px 0 0; color: #69786d; font-size: 14px; line-height: 1.7; }
.intro-stats { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; margin: 30px 135px 0 20px; }
.stat { display: grid; gap: 5px; white-space: nowrap; }
.stat strong { font-size: 26px; letter-spacing: -1px; }
.stat span { color: #718075; font-size: 11px; }
.stat-divider { height: 36px; width: 1px; background: #cbd9c7; }
.intro-decoration { position: absolute; width: 360px; height: 230px; right: 0; bottom: -1px; opacity: .76; }
.sun { position: absolute; width: 94px; height: 94px; right: 92px; top: 17px; border-radius: 50%; background: #f7e6b1; }
.hill { position: absolute; bottom: -95px; border-radius: 50% 50% 0 0; transform: rotate(-12deg); }
.hill-back { right: -54px; width: 370px; height: 210px; background: #d3e2c6; }
.hill-front { right: 73px; bottom: -142px; width: 330px; height: 235px; background: #c1d7b4; transform: rotate(12deg); }
.map-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.map-toolbar { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 18px; }
.map-heading { display: flex; align-items: center; gap: 12px; }
.map-heading-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--green); background: var(--green-light); }
.map-heading-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-heading h2 { font-size: 15px; margin: 0 0 4px; letter-spacing: -.3px; }
.map-heading p { font-size: 11px; color: var(--muted); margin: 0; }
.search-box { height: 40px; width: min(280px, 42%); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 9px; padding: 0 10px; color: var(--muted); background: var(--page); }
.search-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #9aa49c; }
kbd { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; font: 10px ui-monospace, monospace; color: #929d95; padding: 2px 5px; }
.map-wrap { position: relative; height: 480px; background: #e6ede1; }
#map { width: 100%; height: 100%; z-index: 0; }
.leaflet-container { font-family: inherit; background: #e5ece0; }
.leaflet-control-attribution { font-size: 9px !important; }
.map-legend { position: absolute; z-index: 400; left: 16px; bottom: 14px; background: var(--surface); color: var(--muted); border-radius: 10px; padding: 10px 12px; box-shadow: 0 4px 16px rgba(20, 45, 28, .12); font-size: 10px; pointer-events: none; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.legend-dot-cleanup { background: #d66b3e; }
.legend-dot-village { background: #70867b; }
.legend-separator { color: #b8c2ba; padding: 0 4px; }
.map-locate { position: absolute; z-index: 400; bottom: 14px; right: 14px; box-shadow: 0 4px 16px rgba(20, 45, 28, .12); }
.map-locate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map-footer { display: flex; justify-content: flex-start; align-items: center; gap: 15px; padding: 16px 22px; }
.map-footer p { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 11px; }
.map-footer p svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cleanup-empty { display: flex; align-items: flex-start; gap: 14px; margin: 0 18px 18px; padding: 17px 19px; border: 1px dashed var(--line); border-radius: 15px; background: var(--page); }
.cleanup-empty-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: #f8ece5; color: #b4613d; }
.cleanup-empty-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cleanup-empty h3 { margin: 1px 0 5px; font-size: 12px; }
.cleanup-empty p { max-width: 600px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.nearby-section { padding: 52px 0 46px; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 19px; }
.section-title .eyebrow { margin-bottom: 6px; }
.section-title h2 { font-size: 24px; letter-spacing: -.9px; margin: 0; }
.section-note { color: var(--muted); font-size: 11px; padding-bottom: 4px; }
.village-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.village-card { text-align: left; min-height: 85px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 16px; cursor: pointer; transition: .2s; }
.village-card:hover, .village-card:focus-visible { transform: translateY(-3px); border-color: #bed0c2; box-shadow: 0 9px 24px rgba(34, 65, 48, .07); outline: none; }
.village-card strong { display: block; font-size: 13px; margin-bottom: 5px; }
.village-card span { font-size: 10px; color: var(--muted); }
.village-card .card-arrow { float: right; color: var(--green); font-size: 15px; margin-top: -2px; }
.footer { min-height: 78px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand-mark { width: 29px; height: 29px; font-size: 15px; border-radius: 10px 10px 10px 4px; }
.footer .brand-name { font-size: 13px; }
.footer p, .footer-map-link { font-size: 10px; color: var(--muted); margin: 0; }
.footer p span { padding-left: 8px; color: #a0aaa2; }
.footer-map-link { text-decoration: none; }
.footer-map-link:hover { color: var(--green); }

/* made by Filip K */
.cleanup-marker-wrap, .village-marker-wrap { background: none; border: 0; }
.cleanup-marker { width: 32px; height: 40px; position: relative; filter: drop-shadow(0 3px 4px rgba(20, 48, 30, .28)); transition: transform .2s; }
.cleanup-marker:hover { transform: translateY(-4px) scale(1.08); }
.cleanup-marker svg { width: 32px; height: 40px; overflow: visible; }
.cleanup-marker .pin-core { fill: #d66b3e; stroke: white; stroke-width: 2; }
.cleanup-marker .trash-icon { fill: none; stroke: white; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.village-marker { display: block; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: #70867b; box-shadow: 0 1px 5px rgba(20, 48, 30, .42); }
.pin-popup { width: 250px; overflow: hidden; border-radius: 13px; color: #20352c; background: #fff; }
.pin-popup img { display: block; width: 100%; height: 132px; object-fit: cover; background: #e6ede1; }
.pin-popup .no-photo { height: 78px; display: grid; place-items: center; background: linear-gradient(135deg, #dce9d5, #eef2e9); color: #63846d; font-size: 11px; }
.cleanup-popup .no-photo { height: 105px; background: linear-gradient(135deg, #f1e4dc, #f8f2ed); color: #a56a4c; }
.pin-popup-content { padding: 12px 13px 13px; }
.popup-label { display: block; margin-bottom: 5px; color: #718075; font-size: 8px; font-weight: 750; letter-spacing: 1.1px; }
.cleanup-label { color: #b65b35; }
.pin-popup h3 { margin: 0 0 5px; font-size: 14px; }
.pin-popup p { margin: 0 0 9px; font-size: 11px; line-height: 1.45; color: #6d7a70; }
.pin-popup .coords { margin: 0; padding-top: 8px; border-top: 1px solid #edf0eb; font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; color: #8a968e; }
.directions-link { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 9px 10px; border-radius: 9px; background: #d66b3e; color: #fff; font-size: 10px; font-weight: 700; text-decoration: none; }
.directions-link:hover { background: #bd5830; }
.leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; box-shadow: 0 8px 26px rgba(18, 38, 25, .2); overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 250px !important; }
.leaflet-popup-tip { background: #fff; }
.leaflet-popup-close-button { z-index: 2; color: #27382e !important; background: rgba(255,255,255,.9) !important; border-radius: 0 11px 0 9px; }
/* made by Filip K */
body.dark {
  color-scheme: dark;
  --page: #151d19;
  --surface: #202b25;
  --surface-soft: #29372f;
  --text: #e5eee7;
  --muted: #a1afa5;
  --line: #344239;
  --green: #82b997;
  --green-dark: #6ea783;
  --green-light: #293c30;
  --accent: #344c39;
  --shadow: 0 20px 60px rgba(0, 0, 0, .2);
}
body.dark .intro { background: #26372d; }
body.dark .intro-text, body.dark .stat span { color: #a9b8ad; }
body.dark .stat-divider { background: #44594a; }
body.dark .sun { background: #82724e; }
body.dark .hill-back { background: #344a39; }
body.dark .hill-front { background: #3c5742; }
body.dark .map-wrap, body.dark .leaflet-container { background: #27352d; }
body.dark .leaflet-tile { filter: brightness(.68) saturate(.72) hue-rotate(15deg); }
body.dark .leaflet-popup-content-wrapper, body.dark .leaflet-popup-tip { background: #fff; }
body.dark .cleanup-empty-icon { background: #493328; color: #ed9b73; }

/* made by Filip K */
@media (max-width: 760px) {
  .page-shell { width: min(100% - 30px, 620px); }
  .topbar { height: 72px; }
  .intro { min-height: 300px; padding: 28px 25px; align-items: flex-start; margin-top: 20px; }
  .intro-copy { width: 100%; }
  .intro h1 { font-size: 39px; }
  .intro-text { max-width: 370px; font-size: 12px; }
  .intro-stats { position: absolute; left: 25px; bottom: 26px; margin: 0; gap: 17px; }
  .intro-stats .stat strong { font-size: 21px; }
  .intro-decoration { width: 210px; height: 170px; right: -35px; opacity: .48; }
  .sun { width: 65px; height: 65px; right: 70px; top: 16px; }
  .hill-back { width: 250px; }
  .hill-front { width: 235px; right: 35px; }
  .map-toolbar { padding: 15px; }
  .search-box { width: 41%; }
  .search-box kbd { display: none; }
  .map-wrap { height: 430px; }
  .map-footer { padding: 14px 15px; align-items: flex-start; }
  .map-footer p { max-width: 100%; font-size: 10px; line-height: 1.5; }
  .cleanup-empty { margin: 0 12px 12px; padding: 14px; }
  .village-list { grid-template-columns: repeat(2, 1fr); }
  .nearby-section { padding: 39px 0; }
  .footer { flex-wrap: wrap; padding: 16px 0; }
  .footer p { order: 3; width: 100%; }
}
@media (max-width: 430px) {
  .page-shell { width: calc(100% - 24px); }
  .brand-name { font-size: 14px; }
  .top-actions { gap: 7px; }
  .intro { padding: 24px 19px; }
  .intro h1 { font-size: 35px; }
  .intro-stats { left: 19px; }
  .map-heading-icon { width: 36px; height: 36px; }
  .map-heading h2 { font-size: 13px; }
  .map-heading p { font-size: 9px; }
  .search-box { height: 37px; gap: 5px; padding: 0 7px; }
  .search-box input { font-size: 10px; }
  .map-wrap { height: 390px; }
  .map-footer { flex-direction: row; align-items: center; }
  .map-footer p { max-width: none; }
  .section-note { display: none; }
  .village-card { padding: 13px; min-height: 76px; }
  .footer-map-link { font-size: 9px; }
}
