.client-map-page {max-width: 1600px; margin: 0 auto;}
.client-map-heading {display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px;}
.client-map-heading h1 {margin: 5px 0 10px; font-size: 30px; letter-spacing: -.04em;}
.client-map-heading p {margin-bottom: 0;}
.client-map-actions {display: flex; flex-wrap: wrap; gap: 8px;}
.client-map-options {display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13px; color: #657369;}
.client-map-options label {display: flex; gap: 8px; align-items: center; color: #805610;}
.client-map-options input {accent-color: var(--wot-brand);}
.client-map-city {font-size: 12px; color: #5d705a; white-space: nowrap; text-shadow: 0 1px white, 1px 0 white, -1px 0 white, 0 -1px white; pointer-events: none;}
.client-map-counts {display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px;}
.client-map-counts > div {padding: 19px 24px; border: 1px solid var(--line); background: var(--wot-surface); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px;}
.client-map-counts span {color: #56665c; font-size: 13px;}
.client-map-counts strong {font-size: 28px; color: var(--wot-brand, #205c3b);}
.client-map-counts small {font-size: 12px; margin-left: 6px; font-weight: 400;}
.client-map-workspace {display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 16px;}
.client-map-directory, .client-map-detail {background: var(--wot-surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;}
.client-map-directory {height: 580px; display: flex; flex-direction: column;}
.client-map-search {padding: 18px; border-bottom: 1px solid #e6ebe7;}
.client-map-search label {display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px;}
.client-map-search input, .client-map-search select {width: 100%; min-height: 40px; border: 1px solid #d9e2dc; border-radius: 6px; padding: 8px; background: var(--wot-surface); margin-bottom: 8px; color: #26382c;}
.client-map-search p {margin: 2px 0 0; font-size: 12px; color: #657369;}
#map-client-list {overflow: auto; flex: 1;}
#map-client-list button {display: block; width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid #edf0ed; text-align: left; background: var(--wot-surface); cursor: pointer; font: inherit;}
#map-client-list button:hover, #map-client-list button[aria-pressed=true] {background: var(--wot-brand-soft);}
#map-client-list strong, #map-client-list span, #map-client-list small {display: block; overflow-wrap: anywhere;}
#map-client-list strong {font-size: 14px; color: #243c2c; margin-bottom: 6px;}
#map-client-list span {font-size: 12px; color: #657369; line-height: 1.5;}
#map-client-list small {font-size: 11px; color: var(--wot-brand, #205c3b); margin-top: 9px;}
#map-client-list small.approximate {color: #8c6018;}
.client-map-canvas-wrap {position: relative; min-width: 0; height: 580px; border-radius: 12px; overflow: hidden; border: 1px solid #d9e2dc; isolation: isolate;}
#client-map-canvas {width: 100%; height: 100%; background: #edf2ec; z-index: 0;}
.client-map-legend {position: absolute; z-index: 1; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 10px; max-width: calc(100% - 70px); padding: 8px 10px; border-radius: 6px; background: #fffffff2; color: #305e3e; font-size: 11px; box-shadow: 0 2px 8px #0001; pointer-events: none;}
#map-tile-warning {position: absolute; z-index: 1; bottom: 28px; left: 12px; right: 12px; padding: 10px; margin: 0; background: #fff4dd; color: #725315; font-size: 12px; border-radius: 6px;}
.client-map-marker {display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--wot-brand, #205c3b); border: 3px solid white; color: white; font-weight: 700; box-shadow: 0 2px 9px #0004;}
.client-map-marker.approximate {background: #fff7e7; color: #805610; border: 2px dashed #a67a2b;}
.client-map-popup {min-width: 190px; max-height: 260px; overflow: auto;}
.client-map-popup button {display: block; width: 100%; text-align: left; margin-top: 8px; padding: 9px; border: 1px solid #dce6dd; border-radius: 5px; background: #f6f9f5; cursor: pointer; color: #205c3b;}
.client-map-detail {grid-column: 1 / -1; padding: 24px;}
.client-map-detail h2 {margin: 0 0 14px; font-size: 21px;}
.client-map-detail dl {display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0;}
.client-map-detail dt {font-size: 12px; color: #68796d; margin-bottom: 7px;}
.client-map-detail dd {font-size: 14px; margin: 0; overflow-wrap: anywhere;}
.client-map-accuracy {margin: 20px 0 0; font-size: 13px; color: #8c6018;}
.client-map-footnote, .client-map-empty {font-size: 12px; line-height: 1.7; color: #67776a; padding: 12px 0;}
.client-map-empty {padding: 20px;}
.client-map-page button:focus-visible, .client-map-page input:focus-visible, .client-map-page select:focus-visible {outline: 3px solid #609b73; outline-offset: 2px;}
@media (max-width: 900px) {
    .client-map-workspace {grid-template-columns: 250px minmax(0, 1fr);}
    .client-map-detail dl {grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 640px) {
    .client-map-heading {align-items: flex-start; flex-direction: column;}
    .client-map-heading h1 {font-size: 25px;}
    .client-map-counts {gap: 6px;}
    .client-map-counts > div {padding: 12px 10px; flex-direction: column; align-items: flex-start;}
    .client-map-counts span {font-size: 11px;}
    .client-map-workspace {grid-template-columns: minmax(0, 1fr);}
    .client-map-canvas-wrap {grid-row: 1; height: 420px;}
    .client-map-directory {height: 340px;}
    .client-map-detail {padding: 18px;}
}
