.map-dialog {
  width:min(1580px,calc(100% - 48px)); max-width:none; max-height:94dvh;
  padding:24px; border:8px solid #ffffff55; border-radius:26px;
  background:rgb(245 242 235 / 52%); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  color:#28352c; box-shadow:0 30px 120px #14221966,inset 0 0 0 1px #fff;
}
.map-dialog::backdrop { background:rgb(22 37 26 / 35%); backdrop-filter:blur(8px) }
.map-dialog[open] { animation:map-window-in .5s ease-out both }
.map-dialog[open]::backdrop { animation:map-backdrop-in .5s ease-out both }
.map-dialog[open].is-closing { animation:map-window-out .38s ease-in both; pointer-events:none }
.map-dialog[open].is-closing::backdrop { animation:map-backdrop-out .38s ease-in both }
@keyframes map-window-in { from { opacity:0; transform:translateY(12px) scale(.99) } to { opacity:1; transform:none } }
@keyframes map-window-out { from { opacity:1; transform:none } to { opacity:0; transform:translateY(8px) scale(.995) } }
@keyframes map-backdrop-in { from { opacity:0 } to { opacity:1 } }
@keyframes map-backdrop-out { from { opacity:1 } to { opacity:0 } }
.map-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px }
.map-header .eyebrow { font-size:10px; letter-spacing:.18em; color:#856631; margin-bottom:7px }
.map-dialog .map-header h2 { font-size:clamp(32px,3.2vw,48px); padding:0; margin:0 }
.map-header .close-dialog { position:static; flex:0 0 42px; background:#fffc }
.map-toolbar { display:flex; flex-wrap:wrap; gap:14px; justify-content:flex-end; align-items:center; margin-bottom:18px; font-size:12px }
.map-filters { display:flex; padding:4px; gap:4px; background:#ded9cb66; border-radius:10px }
.map-filters button { font-size:12px; border:0; background:transparent; border-radius:7px; padding:8px 14px }
.map-filters button[aria-pressed="true"] { background:#ffffffb3; color:#79581f; box-shadow:0 2px 7px #28352c0c }
.map-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:20px; align-items:stretch }
.map-viewport { position:relative; min-width:0; min-height:380px; height:min(59dvh,650px); overflow:hidden; border:1px solid #fff9; border-radius:16px; background:#536246; isolation:isolate }
#parcel-map { display:block; width:100%; height:100%; touch-action:manipulation; user-select:none }
#parcel-map image { pointer-events:none }
.map-night-image { opacity:0; transition:opacity var(--theme-duration,2.2s) var(--theme-easing,ease) }
[data-theme="night"] .map-night-image { opacity:1 }
[data-theme="night"] .map-viewport { background:#0c1829 }
.parcel-shape { fill:#fff8d408; stroke:#fff1bc66; stroke-width:1; vector-effect:non-scaling-stroke; cursor:pointer; transition:fill .2s,stroke .2s; outline:none }
.parcel-shape:hover,.parcel-shape:focus-visible { fill:#f6d98f40; stroke:#ffe5a1; stroke-width:2 }
.parcel-shape:focus-visible { stroke-width:4; stroke-dasharray:5 3 }
.parcel-shape[aria-pressed="true"] { fill:#ecc26448; stroke:#ffdb75; stroke-width:3; stroke-linejoin:round; filter:drop-shadow(0 0 4px #eab641); animation:parcel-glow 2.6s ease-in-out infinite }
.parcel-label { font:600 14px Manrope,Arial,sans-serif; text-anchor:middle; dominant-baseline:central; fill:white; paint-order:stroke; stroke:#263524; stroke-width:3px; stroke-linejoin:round; pointer-events:none }
.parcel-group.is-selected .parcel-label { fill:#fff2b8; font-weight:800 }
.parcel-group.is-muted { opacity:.16; pointer-events:none }
.map-help { position:absolute; bottom:12px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 24px); padding:7px 13px; border:1px solid #fff5; border-radius:20px; background:#f8f5ecd9; color:#33442e; font-size:10px; text-align:center; pointer-events:none; backdrop-filter:blur(12px) }
.parcel-card { padding:24px; border-radius:16px; border:1px solid #ffffff99; background:linear-gradient(145deg,#ffffff52,#ece7d833); box-shadow:0 6px 25px #273b2210,inset 0 1px #ffffff99; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); align-self:stretch; font-size:12px; line-height:1.7 }
.parcel-card h3 { font-size:35px; line-height:1.08; margin:14px 0 }
.parcel-card .eyebrow { font-size:10px; color:#8b692f; letter-spacing:.12em }
.parcel-symbol { font:50px var(--serif); color:#b38b48; display:block; margin-bottom:20px }
.parcel-overview { display:flex; justify-content:space-between; gap:12px; margin-top:30px; padding-top:22px; border-top:1px solid #b38b4833; font-size:10px }
.parcel-overview strong { display:block; font:32px var(--serif); color:#937036 }
.parcel-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px }
#parcel-clear { width:30px; height:30px; border:1px solid #b38b4844; border-radius:50%; background:#fff6; font-size:20px; line-height:1 }
.parcel-facts { margin:22px 0 }
.parcel-facts>div { padding:11px 0; border-bottom:1px solid #9d997b33 }
.parcel-facts dt { font-size:10px; color:#656b5a }
.parcel-facts dd { margin:3px 0 0; font-size:13px }
.parcel-facts .parcel-area { padding-top:0; padding-bottom:16px }
.parcel-area dd { font:42px var(--serif); color:#866225; letter-spacing:-.025em }
.parcel-card .button { width:100%; font-size:11px; padding:13px 12px; gap:10px; justify-content:space-between; --gold:#ac8544; --gold-dark:#8c682f }
.parcel-card .button img { width:18px }
.parcel-source { margin-top:15px!important; font-size:9px; color:#68705f }
.parcel-contact { padding:12px; margin-top:14px; border:1px solid #b38b4855; border-radius:8px; font-size:11px; background:#ffffff66 }
.parcel-contact p+p { margin-top:8px!important }
.map-status { font-size:11px; margin-top:15px!important; color:#626c59 }
.map-status:empty { display:none }
.map-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:10px; color:#69705f; padding:16px 2px 0 }
.map-footer i { display:inline-block; width:10px; height:10px; border:2px solid #bc9344; border-radius:2px; margin-right:6px; vertical-align:-1px }
@keyframes parcel-glow { 50% { stroke:#fff1b5; filter:drop-shadow(0 0 7px #efc95f); fill:#ecc2642e } }
[data-theme="night"] .map-dialog {
  background:rgb(12 24 41 / 48%); color:#e8e9df;
  border-color:#aabfce44;
  box-shadow:0 30px 120px #02081199,inset 0 0 0 1px #c5d5df22;
}
[data-theme="night"] .map-dialog::backdrop { background:rgb(4 13 27 / 40%) }
[data-theme="night"] .map-header .eyebrow,
[data-theme="night"] .parcel-card .eyebrow,
[data-theme="night"] .parcel-symbol,
[data-theme="night"] .parcel-overview strong,
[data-theme="night"] .parcel-area dd { color:#dfbf85 }
[data-theme="night"] .map-dialog .close-dialog,
[data-theme="night"] #parcel-clear { background:rgb(41 60 80 / 60%); color:#e8e9df; border-color:#c5d5df44 }
[data-theme="night"] .map-dialog .close-dialog img { filter:invert(1) }
[data-theme="night"] .map-filters { background:#08132180 }
[data-theme="night"] .map-filters button { color:#c4d0dc }
[data-theme="night"] .map-filters button[aria-pressed="true"] {
  background:#35496099; color:#f3d7a2; box-shadow:inset 0 0 0 1px #d0af7544;
}
[data-theme="night"] .map-viewport { border-color:#c5d5df33 }
[data-theme="night"] .map-help { background:rgb(18 35 57 / 85%); color:#dce4e9; border-color:#c5d5df44 }
[data-theme="night"] .parcel-card {
  background:linear-gradient(145deg,rgb(41 60 80 / 32%),rgb(18 35 57 / 20%));
  color:#e8e9df; border-color:#c5d5df44;
  box-shadow:0 6px 25px #02081133,inset 0 1px #c5d5df22;
}
[data-theme="night"] .parcel-facts dt,
[data-theme="night"] .parcel-source,
[data-theme="night"] .map-status,
[data-theme="night"] .map-footer { color:#b9c8d6 }
[data-theme="night"] .parcel-facts>div,
[data-theme="night"] .parcel-overview { border-color:#c5d5df26 }
[data-theme="night"] .parcel-card .button { color:#fff3dc }
[data-theme="night"] .parcel-contact { background:rgb(12 24 41 / 35%); border-color:#d0af7544 }
[data-theme="night"] .map-footer i { border-color:#dfbf85 }
@media(min-width:1000px) and (max-height:740px) { .map-dialog { padding:16px } .map-header { margin-bottom:10px } .map-toolbar { margin-bottom:10px } .map-viewport { min-height:340px } .parcel-card { padding:17px } .parcel-facts { margin:12px 0 } .parcel-card h3 { font-size:30px } }
@media(max-width:1000px) { .map-layout { grid-template-columns:minmax(0,1fr) 245px; gap:12px } .parcel-card { padding:18px } .map-dialog { padding:18px } }
@media(max-width:760px) {
  .map-dialog { width:calc(100% - 16px); max-height:96dvh; padding:14px; border-width:5px; border-radius:20px }
  .map-header .eyebrow { font-size:8px } .map-dialog .map-header h2 { font-size:32px }
  .map-header .close-dialog { flex-basis:36px; width:36px; height:36px }
  .map-toolbar { gap:10px; margin-bottom:12px }
  .map-filters { width:100% } .map-filters button { flex:1; padding:7px 5px; font-size:11px }
  .map-layout { grid-template-columns:1fr; gap:12px }
  .map-viewport { height:43dvh; min-height:260px; max-height:440px }
  .parcel-card { padding:18px } .parcel-card h3 { font-size:30px; margin:8px 0 }
  .parcel-symbol { display:none } .parcel-overview { margin-top:15px; padding-top:12px }
  .parcel-overview strong { display:inline; margin-right:7px; font-size:24px }
  .parcel-facts { display:grid; grid-template-columns:1fr 1fr; gap:0 15px; margin:14px 0 }
  .parcel-facts .parcel-area { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:center; padding-bottom:10px }
  .parcel-area dd { font-size:36px } .map-footer { font-size:9px; padding-top:12px }
  .map-help { font-size:9px } .parcel-label { font-size:16px }
}
@media(prefers-reduced-motion:reduce) { .parcel-shape,.map-night-image { animation:none!important; transition:none!important } }
@media(prefers-reduced-motion:reduce) { .map-dialog[open],.map-dialog[open]::backdrop { animation:none!important } }
