:root {
    --ink: #172033;
    --muted: #667085;
    --brand: #c03a68;
    --brand-dark: #98274f;
    --soft: #fff2f6;
    --line: #e8e9ee;
    --surface: #ffffff;
    --shadow: 0 18px 50px rgba(23, 32, 51, .09);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f7f8fb; font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.hero { padding: 48px 0 40px; color: #fff; background: linear-gradient(125deg, #8d2348, #d44b78 62%, #ed789b); }
.hero h1 { margin: 4px 0 2px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; }
.hero p { margin: 8px 0 0; font-size: 1.12rem; opacity: .9; }
.eyebrow { font-weight: 750; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; opacity: .82; }
.layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); gap: 24px; align-items: start; margin-top: -18px; padding-bottom: 48px; }
.map-card, .form-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(255,255,255,.8); border-radius: 20px; box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px 18px; }
h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.section-heading p, .muted { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.count { flex: none; padding: 7px 10px; color: var(--brand-dark); background: var(--soft); border-radius: 999px; font-size: .78rem; font-weight: 700; }
#map { position: relative; width: 100%; height: 620px; background: #e7ecf0; }

/* Critical Leaflet layout fallback. It also prevents global/site CSS from
   changing the dimensions and absolute positioning of map tiles. */
#map.leaflet-container { position: relative; overflow: hidden; isolation: isolate; outline: 0; }
#map .leaflet-pane,
#map .leaflet-tile,
#map .leaflet-marker-icon,
#map .leaflet-marker-shadow,
#map .leaflet-tile-container,
#map .leaflet-pane > svg,
#map .leaflet-pane > canvas,
#map .leaflet-zoom-box,
#map .leaflet-image-layer,
#map .leaflet-layer { position: absolute; left: 0; top: 0; }
#map .leaflet-tile { width: 256px; height: 256px; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-sizing: content-box !important; image-rendering: auto; }
#map .leaflet-tile-loaded { visibility: inherit; }
#map .leaflet-zoom-animated { transform-origin: 0 0; }
#map .leaflet-map-pane { z-index: 2; }
#map .leaflet-tile-pane { z-index: 200; }
#map .leaflet-overlay-pane { z-index: 400; }
#map .leaflet-shadow-pane { z-index: 500; }
#map .leaflet-marker-pane { z-index: 600; }
#map .leaflet-tooltip-pane { z-index: 650; }
#map .leaflet-popup-pane { z-index: 700; }
#map .leaflet-top,
#map .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
#map .leaflet-top { top: 0; }
#map .leaflet-right { right: 0; }
#map .leaflet-bottom { bottom: 0; }
#map .leaflet-left { left: 0; }
#map .leaflet-control { position: relative; z-index: 800; pointer-events: auto; }
.form-card { padding: 24px; }
.form-card > .muted { margin: 8px 0 20px; }
form { display: grid; gap: 9px; }
label { margin-top: 5px; font-size: .88rem; font-weight: 700; }
input[type="text"], input[type="number"], input[type="password"] { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #ccd0da; border-radius: 10px; font: inherit; }
input:focus { outline: 3px solid rgba(192,58,104,.15); border-color: var(--brand); }
.checkbox-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 10px 0; font-weight: 500; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: 10px 16px; color: #fff; background: var(--brand); border: 0; border-radius: 10px; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
button:hover, .button:hover { background: var(--brand-dark); }
button:active, .button:active { transform: translateY(1px); }
.privacy-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }
.notice { margin: 14px 0; padding: 11px 13px; border-radius: 10px; font-size: .9rem; }
.notice.success { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.notice.error { color: #9f1239; background: #fff1f2; border: 1px solid #fecdd3; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.marker-popup { display: grid; gap: 3px; min-width: 130px; }
.marker-popup strong { font-size: 1rem; }
.marker-popup span { color: var(--muted); }
.map-error { position: absolute; z-index: 1000; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px; background: #fff; border-radius: 8px; }
footer { padding: 24px 0; color: var(--muted); text-align: center; font-size: .82rem; }

@media (max-width: 820px) {
    .hero { padding-top: 36px; }
    .layout { grid-template-columns: 1fr; }
    #map { height: 52vh; min-height: 390px; max-height: 560px; }
}

@media (max-width: 480px) {
    .container { width: min(100% - 20px, 1180px); }
    .section-heading { align-items: flex-start; padding: 18px; }
    .count { white-space: nowrap; }
    .form-card { padding: 20px 18px; }
}
