/* Facility map ----------------------------------------------------------- */
.wmfm { margin: 52px 0 0; }
.wmfm__head { text-align: center; max-width: 720px; margin: 0 auto 18px; }
.wmfm__head p { color: var(--whs-grey-mid); }
/* Draft marker, same red as .whs-pending in style.css. */
.wmfm__pending { color: #b02a2a; font-size: 14px; }
.wmfm__pending-tag {
	display: inline-block; margin-right: 6px; padding: 2px 8px; border: 1px solid #b02a2a; border-radius: 999px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px;
}

.wmfm__bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wmfm__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wmfm__chip, .wmfm__view {
	font: inherit; font-size: 14px; font-weight: 700; line-height: 1;
	padding: 9px 14px; border-radius: var(--whs-btn-radius); cursor: pointer;
	border: 1px solid var(--whs-grey); background: #fff; color: var(--whs-ink);
}
.wmfm__chip:hover, .wmfm__view:hover { border-color: var(--whs-green); }
.wmfm__chip.is-on, .wmfm__view.is-on { background: var(--whs-green); border-color: var(--whs-green); color: #fff; }
.wmfm__chip-kind { font-weight: 400; opacity: .8; margin-left: 4px; }
.wmfm__chip-n {
	display: inline-block; min-width: 20px; margin-left: 6px; padding: 2px 6px; border-radius: 10px;
	background: var(--whs-bg-soft); color: var(--whs-green); font-size: 12px; text-align: center;
}
.wmfm__chip-n.is-full { color: var(--whs-grey-mid); }
.wmfm__chip.is-on .wmfm__chip-n { background: rgba(255,255,255,.22); color: #fff; }
.wmfm__views { display: inline-flex; border-radius: var(--whs-btn-radius); overflow: hidden; }
.wmfm__views .wmfm__view { border-radius: 0; }
.wmfm__views .wmfm__view:first-child { border-radius: var(--whs-btn-radius) 0 0 var(--whs-btn-radius); }
.wmfm__views .wmfm__view:last-child { border-radius: 0 var(--whs-btn-radius) var(--whs-btn-radius) 0; margin-left: -1px; }

.wmfm__stage { position: relative; border: 1px solid var(--whs-grey); border-radius: var(--whs-radius); background: var(--whs-bg-soft); overflow: hidden; }
.wmfm__plan { padding: 10px; }
.wmfm__plan[hidden], .wmfm__sat[hidden] { display: none; }
.wmfm-svg { display: block; width: 100%; height: auto; max-height: 520px; }

/* Units. Colour is the whole message, so the stroke stays quiet. */
.wmfm-u rect { stroke: #fff; stroke-width: .35; cursor: pointer; transition: opacity .15s; }
.wmfm-u text { font: 700 3px "Helvetica Neue", Helvetica, Arial, sans-serif; fill: #fff; pointer-events: none; user-select: none; }
.wmfm-u.is-available rect { fill: var(--whs-green); }
.wmfm-u.is-reserved rect { fill: #d9a400; }
.wmfm-u.is-occupied rect { fill: #b9bfc6; }
.wmfm-u.is-unavailable rect { fill: #7d848b; }
.wmfm-u.is-occupied text, .wmfm-u.is-unavailable text { fill: #fff; }
.wmfm-u:hover rect, .wmfm-u:focus rect { stroke: var(--whs-ink); stroke-width: .6; }
.wmfm-u:focus { outline: none; }
.wmfm-u.is-available:hover rect { fill: var(--whs-green-light); }
.wmfm-svg.has-filter .wmfm-u:not(.is-match) rect { opacity: .22; }
.wmfm-svg.has-filter .wmfm-u:not(.is-match) text { opacity: .3; }

/* Office, gate, buildings without units. */
.wmfm-shape rect { fill: #fff; stroke: var(--whs-ink); stroke-width: .4; }
.wmfm-shape text { font: 700 3px "Helvetica Neue", Helvetica, Arial, sans-serif; fill: var(--whs-ink); pointer-events: none; }
.wmfm-shape--building rect { fill: rgba(255,255,255,.55); stroke-dasharray: 2 1.2; }
.wmfm-shape--parking rect { fill: #e9ecef; stroke: var(--whs-grey-mid); stroke-dasharray: 1.5 1; }
.wmfm-shape--parking text { fill: var(--whs-grey-mid); }
.wmfm-shape--fence rect { fill: none; stroke: var(--whs-ink); stroke-width: .6; stroke-dasharray: 3 1.5; }
.wmfm-shape--gate rect { fill: #d9a400; stroke: var(--whs-ink); stroke-width: .3; }
.wmfm-shape--gate text { fill: var(--whs-ink); }
.wmfm-north path { fill: var(--whs-ink); }
.wmfm-north text { font: 700 3px "Helvetica Neue", Helvetica, Arial, sans-serif; fill: var(--whs-ink); }

/* Satellite: tiles in image pixels, scaled to fit; the same SVG on top. */
.wmfm__sat { position: relative; width: 100%; overflow: hidden; background: #2b2f33; }
.wmfm__satinner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wmfm__tiles { position: absolute; inset: 0; }
.wmfm__tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.wmfm-svg--sat { position: absolute; left: 0; top: 0; max-height: none; }
.wmfm-svg--sat .wmfm-u rect { fill-opacity: .82; }
.wmfm-svg--sat .wmfm-shape rect { fill: rgba(255,255,255,.18); stroke: #fff; }
.wmfm-svg--sat .wmfm-shape text { fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .6; }
.wmfm-svg--sat .wmfm-shape--parking rect { fill: rgba(255,255,255,.12); stroke: #fff; }
.wmfm-svg--sat .wmfm-shape--fence rect { fill: none; stroke: #fff; stroke-width: .8; stroke-dasharray: 3 1.5; }
.wmfm-svg--sat .wmfm-shape--gate rect { fill: #ffcc33; stroke: #fff; }
.wmfm-svg--sat .wmfm-north path, .wmfm-svg--sat .wmfm-north text { fill: #fff; }

/* Tooltip: follows the pointer, or pins on tap/keyboard. */
.wmfm__tip {
	position: absolute; z-index: 5; min-width: 150px; max-width: 240px; padding: 10px 12px;
	background: #fff; border: 1px solid var(--whs-grey); border-radius: var(--whs-radius);
	box-shadow: 0 6px 20px rgba(0,0,0,.15); font-size: 14px; line-height: 1.4; pointer-events: none;
}
.wmfm__tip.is-pinned { pointer-events: auto; }
.wmfm__tip[hidden] { display: none; }
.wmfm__tip strong { font-size: 16px; }
.wmfm__tip-size { color: var(--whs-grey-mid); margin-left: 4px; }
.wmfm__tip-status { display: block; font-weight: 700; margin-top: 2px; }
.wmfm__tip-status.is-available { color: var(--whs-green); }
.wmfm__tip-status.is-reserved { color: #9a7400; }
.wmfm__tip-status.is-occupied, .wmfm__tip-status.is-unavailable { color: var(--whs-grey-mid); }
.wmfm__tip-rate { display: block; color: var(--whs-ink); }
.wmfm__tip-btn {
	display: block; width: 100%; margin-top: 8px; padding: 9px 12px; border: 0; border-radius: var(--whs-btn-radius);
	background: var(--whs-green); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.wmfm__tip-btn:hover { background: var(--whs-green-dark); }

.wmfm__legend { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; }
.wmfm__swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.wmfm__swatch--available { background: var(--whs-green); }
.wmfm__swatch--reserved { background: #d9a400; }
.wmfm__swatch--occupied { background: #b9bfc6; }
.wmfm__swatch--unavailable { background: #7d848b; }
.wmfm__unmapped, .wmfm__note { text-align: center; font-size: 13px; color: var(--whs-grey-mid); margin: 12px 0 0; }
.wmfm__attrib { display: block; margin-top: 4px; font-size: 12px; }
.wmfm__attrib[hidden] { display: none; }
.wmfm__noscript { padding: 30px; text-align: center; }

@media (max-width: 640px) {
	.wmfm-svg { max-height: none; }
	.wmfm__plan { padding: 6px; }
}
