.civic-places { margin-top: 22px; border-top: 1px solid #59464d; padding-top: 18px; }
.civic-places h3 { font: 400 20px/1.25 var(--serif); color: #e5cfb6; }
.civic-place-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 340px; overflow-y: auto; scrollbar-color: #695a55 #211a22; }
.civic-place-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #493b3d; }
.civic-place-row:last-child { border-bottom: 0; }
.civic-place-action { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; min-height: 58px; padding: 8px 0; border: 0; color: #e4d4bf; background: transparent; text-align: left; cursor: pointer; }
.civic-place-action:disabled { opacity: .55; cursor: default; }
.civic-place-action:focus-visible, .om-canvas .civic-map-marker:focus-visible { outline: 2px solid #f0d5ad; outline-offset: 3px; }
.civic-place-copy { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.civic-place-copy strong { font: 500 13px/1.4 var(--sans, system-ui); overflow-wrap: anywhere; }
.civic-place-copy small { font: 11px/1.4 var(--sans, system-ui); color: #bbaaa2; }
.civic-place-range { font: 11px/1.4 var(--sans, system-ui); color: #bbaaa2; white-space: nowrap; }
.civic-place-symbol, .civic-map-frame { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: var(--civic-colour); border: 1px solid var(--civic-colour); border-radius: 9px; background: #241c28; box-shadow: inset 0 0 0 3px #211b24, 0 3px 10px #0006; }
.civic-place-symbol svg { width: 24px; height: 24px; }
.civic-tone--hospital { --civic-colour: #a9d2c5; }
.civic-tone--shopping-centre { --civic-colour: #d1b58e; }
.civic-tone--city-hall { --civic-colour: #dfc37d; }
.civic-tone--graveyard { --civic-colour: #afa7cf; }
.civic-tone--church { --civic-colour: #c4b5a3; }
.om-canvas .civic-map-marker { background: none; border: 0; border-radius: 10px; }
.civic-map-frame { width: 40px; height: 40px; margin: 4px; border-radius: 8px; transform: rotate(45deg); background: linear-gradient(135deg, #332534, #19151e); }
.civic-map-frame svg { width: 25px; height: 25px; transform: rotate(-45deg); }
.om-canvas .civic-map-marker[aria-disabled=true] { opacity: .55; }
/* Leaflet's positioned tooltip pane must not shrink names to one character. */
.om-canvas .civic-map-label { padding: 3px 6px; width: max-content; max-width: 180px; white-space: normal; overflow-wrap: break-word; word-break: normal; text-align: center; border: 1px solid #655349; border-radius: 3px; background: #201922ec; color: #dcc8ad; box-shadow: 0 2px 6px #0008; font: 10px/1.4 var(--sans, system-ui); }
.civic-panel { margin-block: 20px; padding: 24px; border: 1px solid #80634a; border-radius: 10px; background: radial-gradient(ellipse at 0 0, #49313e55, transparent 70%), linear-gradient(135deg, #2c232d, #1b171f); box-shadow: inset 0 1px #b7946030, 0 14px 40px #0003; color: #e8d8c3; scroll-margin-top: 16px; }
.civic-panel-heading { display: flex; gap: 15px; align-items: center; margin-bottom: 18px; }
.civic-panel-emblem { display: grid; place-items: center; flex: none; width: 54px; height: 62px; color: var(--civic-colour); border: 1px solid #8b7151; background: linear-gradient(135deg, #392b38, #1e1922); border-radius: 9px 9px 22px 22px; box-shadow: inset 0 0 0 4px #281f29; }
.civic-panel-emblem svg { width: 31px; height: 31px; }
.civic-panel-heading-copy { flex: 1; min-width: 0; }
.civic-panel h2 { margin-top: 4px; font: 400 28px/1.2 var(--serif); overflow-wrap: anywhere; color: #f0dbc1; }
.civic-panel .gw-eyebrow { margin: 0; }
.civic-description, .civic-action-card p, .civic-action-note { font-size: 13px; line-height: 1.7; color: #c2b2aa; }
.civic-range { display: inline-block; padding: 8px 12px; margin-block: 14px; border: 1px solid #67544d; border-radius: 5px; color: #e3bf9d; font-size: 12px; line-height: 1.5; }
.civic-range[data-in-range=true] { color: #b4d1be; border-color: #526b5d; }
.civic-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.civic-action-card { padding: 16px; background: #15121866; border: 1px solid #59454d; border-radius: 7px; min-width: 0; }
.civic-action-card .gw-button { min-height: 46px; width: 100%; white-space: normal; }
.civic-action-card p { margin-top: 10px; }
.civic-action-card strong { font-size: 14px; color: #ddc6a7; }
.civic-health { margin-bottom: 18px; display: grid; gap: 9px; }
.civic-health[hidden] { display: none; }
.civic-health-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(70px, 2fr) auto; gap: 12px; align-items: center; font-size: 12px; }
.civic-health-row meter { width: 100%; accent-color: #b7caaf; }
.civic-status { min-height: 1.5em; margin-top: 16px; color: #c9d6b2; font-size: 13px; line-height: 1.7; }
.civic-footnote { border-top: 1px solid #49383f; padding-top: 14px; margin-top: 12px; font-size: 11px; color: #aa9795; line-height: 1.7; }
.civic-coming-later { display: flex; gap: 10px; align-items: center; color: #cdbb9f; font: 400 19px/1.4 var(--serif); }
.civic-coming-later svg { width: 26px; height: 26px; }
@media (max-width: 600px) {
  .civic-panel { padding: 17px; border-radius: 7px; }
  .civic-panel-heading { gap: 10px; align-items: flex-start; }
  .civic-panel-emblem { width: 42px; height: 50px; }
  .civic-panel-emblem svg { width: 26px; height: 26px; }
  .civic-panel h2 { font-size: 23px; }
  .civic-panel-heading .gw-button { min-width: 48px; padding: 9px; }
  .civic-actions { grid-template-columns: 1fr; }
  .civic-health-row { gap: 8px; }
}

/* The drawer belongs to the map frame, leaving the location controls free. */
.civic-filters { position: absolute; z-index: 650; top: 76px; right: 12px; bottom: 12px; width: min(290px, calc(100% - 24px)); pointer-events: none; font: 13px/1.45 var(--sans, system-ui); color: #e7d4b9; }
.civic-filters [hidden] { display: none !important; }
.civic-filters-toggle { pointer-events: auto; position: absolute; top: 0; right: 0; display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid #a0815c; border-radius: 5px; background: linear-gradient(135deg, #382837fa, #211b25fa); color: #ead6b6; box-shadow: inset 0 1px #d2af7833, 0 3px 12px #0006; font: 600 12px/1.4 var(--sans, system-ui); }
.civic-filters-count { border-left: 1px solid #81654b; padding-left: 9px; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; color: #c9b39a; }
.civic-filters-menu { pointer-events: auto; position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; border: 1px solid #a18460; border-radius: 7px; background: radial-gradient(ellipse at 0 0, #5336414d, transparent 65%), #211a24fa; box-shadow: inset 0 1px #d1ae6b33, 0 8px 28px #0008; text-align: left; }
.civic-filters-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 10px 10px 10px 15px; border-bottom: 1px solid #655044; }
.civic-filters-heading-copy { min-width: 0; }
.civic-filters-eyebrow { margin: 0 0 3px; color: #b59b81; font: 9px/1.3 var(--sans, system-ui); letter-spacing: .12em; text-transform: uppercase; }
.civic-filters-heading h3 { margin: 0; color: #eed5b4; font: 400 20px/1.2 var(--serif, Georgia, serif); }
.civic-filters-close { flex: none; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid #7b6252; border-radius: 4px; background: #2b222bf2; color: #dec7ab; font: 12px/1.4 var(--sans, system-ui); }
.civic-filters-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #8c715c #211a24; padding: 4px 10px; }
.civic-filter-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 3px 5px; margin: 0; border-bottom: 1px solid #4b3a43; box-sizing: border-box; cursor: pointer; }
.civic-filter-option:last-child { border-bottom: 0; }
.civic-filter-option--all { color: #ecd3ad; font-weight: 600; border-bottom-color: #80624c; margin-bottom: 2px; }
.civic-filter-option input { flex: none; appearance: auto; -webkit-appearance: checkbox; width: 19px; height: 19px; margin: 0; padding: 0; accent-color: #c7aa7b; cursor: pointer; }
.civic-filter-symbol { display: grid; place-items: center; flex: none; width: 29px; height: 30px; color: var(--civic-colour); }
.civic-filter-symbol svg { display: block; width: 24px; height: 24px; }
.civic-filter-label { min-width: 0; overflow-wrap: break-word; }
.civic-filters-note { flex: none; margin: 0; padding: 10px 15px; border-top: 1px solid #655044; color: #bca99c; font: 10px/1.5 var(--sans, system-ui); }
.civic-filters-toggle:hover, .civic-filters-close:hover, .civic-filter-option:hover { background-color: #49333f; }
.civic-filters :is(button, input):focus-visible { outline: 2px solid #f0d3a5; outline-offset: 3px; }
@media (max-width: 600px) {
  .civic-filters { top: 70px; right: 10px; bottom: 10px; width: min(276px, calc(100% - 20px)); }
  .civic-filters-heading { padding-left: 12px; }
  .civic-filters-heading h3 { font-size: 19px; }
}
