:root {
  --map-target-stroke: 3px;
  --map-label-halo: 4px;
  --map-entrance-halo: 9px;
}
.floorplan > .floor-button {margin-bottom: var(--s12)}
.floor-button:disabled {color: var(--muted); opacity: .5; cursor: default}
.floor-search {display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s8); margin-block: var(--s12) var(--s8)}
.floor-search input {min-height: var(--tap); width: 100%; border: var(--border) solid var(--line); border-radius: var(--radius-pill); padding-inline: var(--s12); background: var(--surface)}
.floor-matches {list-style: none; margin-block: var(--s8); padding: 0; display: grid; gap: var(--s4)}
.floor-matches .floor-button {width: 100%; justify-content: flex-start; text-align: left}
.floor-selection {margin-block: var(--s12) var(--s8); font-size: var(--text); font-weight: 700; overflow-wrap: anywhere}
.floor-zones {display: flex; gap: var(--s4); overflow-x: auto; padding-block: var(--s4); margin-bottom: var(--s4); scrollbar-width: thin}
.floor-canvas {position: relative; overflow: hidden; background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--radius-card); margin-bottom: var(--s8)}
#floor-svg {display: block; width: 100%; height: clamp(310px, 58vh, 570px); touch-action: none; cursor: grab; user-select: none}
#floor-svg.is-overview-scale {touch-action: pan-y}
#floor-svg:active {cursor: grabbing}
.floor-zoom {position: absolute; display: flex; gap: var(--s4); left: var(--s8); bottom: var(--s8)}
.floor-zoom .floor-button {padding: var(--s4); font-size: var(--text-lg); background: var(--surface)}
.floor-shape rect {fill: var(--line); stroke: var(--surface); stroke-width: var(--border); rx: var(--radius-booth)}
.floor-shape[data-zone="A"] rect {fill: var(--zone-a)}
.floor-shape[data-zone="B"] rect {fill: var(--zone-b)}
.floor-shape[data-zone="C"] rect {fill: var(--zone-c)}
.floor-shape[data-zone="D"] rect {fill: var(--zone-d)}
.floor-shape[data-zone="E"] rect {fill: var(--zone-e)}
.floor-shape.is-selected rect {fill: var(--ink); stroke: var(--accent); stroke-width: var(--map-target-stroke); vector-effect: non-scaling-stroke}
.floor-shape text, .floor-landmark text {fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-weight: 700}
.floor-shape text {font-family: ui-monospace, monospace}
.floor-shape.is-selected text {fill: var(--accent)}
.floor-landmark rect {fill: var(--bg); stroke: var(--line); stroke-width: var(--border); rx: var(--radius-booth)}
.floor-landmark.is-selected rect {stroke: var(--brand)}
.is-overview-scale .floor-landmark text {display: none}
.floor-overview-labels, .floor-target-ring {pointer-events: none}
.floor-overview-labels text {fill: var(--ink); stroke: var(--surface); stroke-width: var(--map-label-halo); paint-order: stroke; vector-effect: non-scaling-stroke; font-weight: 700; dominant-baseline: central}
.floor-overview-labels .floor-entrance-label {fill: var(--on-brand); stroke: var(--brand); stroke-width: var(--map-entrance-halo); stroke-linejoin: round}
.floor-target-ring {fill: none; stroke: var(--accent); stroke-width: var(--map-target-stroke)}
#floor-landmarks {flex-wrap: wrap; overflow: visible}
@media (max-width: 700px) {
  #floor-svg {height: clamp(270px, 44svh, 360px)}
}
