.site-map-panel { margin: 0 0 1rem; padding: 1rem; border: 1px solid #c9ddcb; border-radius: .75rem; background: #f7fbf7; }
.site-map-panel h4 { margin: 0 0 .25rem; color: #0d3b2e; font-size: 1.05rem; }
.site-map-panel p { margin: .25rem 0 .7rem; color: #60726a; font-size: .86rem; line-height: 1.45; }
.site-map-search-row, .site-map-tool-row { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin: .45rem 0 .65rem; }
.site-map-search-row .field { flex: 1 1 17rem; margin: 0; }
.site-map-tool-row .field { flex: 1 1 11rem; margin: 0; }
.site-map-tool-row .field.compact { flex: 0 1 7.5rem; }
.site-map-tool-row label, .site-map-search-row label { display: block; margin-bottom: .25rem; font-weight: 700; font-size: .78rem; color: #0d3b2e; }
.site-map-panel input, .site-map-panel select { width: 100%; min-height: 2.6rem; padding: .5rem .7rem; border: 1px solid #b9d2be; border-radius: .5rem; background: #fff; color: #13251f; font: inherit; }
.site-map-panel .button { min-height: 2.6rem; }
.site-map-modes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .55rem; }
.site-map-modes .is-active { background: #0d3b2e; border-color: #0d3b2e; color: #fff; }
#siteMap { width: 100%; height: min(56vh, 390px); min-height: 290px; border: 1px solid #a6c0ab; border-radius: .55rem; background: #e3eee5; z-index: 0; }
.site-map-frame-overlay { position: absolute; left: 50%; top: 50%; z-index: 600; width: min(360px, calc(100% - 2rem)); aspect-ratio: 18 / 11; transform: translate(-50%, -50%); border: 3px dashed #b6e64a; border-radius: .3rem; box-shadow: 0 0 0 2px #0d3b2e, 0 0 0 999px rgba(9, 35, 27, .22); pointer-events: none; }
.site-map-frame-overlay::before { content: 'Vue imprimée'; position: absolute; left: .35rem; top: .35rem; padding: .15rem .4rem; border-radius: .25rem; background: #0d3b2e; color: white; font-size: .7rem; font-weight: 700; }
.site-map-frame-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.site-map-frame-status { margin: .2rem 0 !important; color: #0d3b2e !important; font-weight: 600; }
.site-map-panel .site-map-feedback { min-height: 1.2rem; margin: .2rem 0 .5rem; font-weight: 600; color: #175844; }
.site-map-panel .site-map-feedback.is-error { color: #ad3f2f; }
.site-map-panel .site-map-credit { margin: .45rem 0; font-size: .75rem; }
.site-map-position { font-weight: 700; color: #0d3b2e; font-size: .8rem; }
.site-map-legend { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin: .6rem 0 .7rem; }
.site-map-legend button { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.25rem; padding: .28rem .55rem; border: 1px solid #bed3c2; border-radius: 999px; background: #fff; color: #27483c; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.site-map-legend button:hover, .site-map-legend button:focus-visible { border-color: #0d3b2e; outline: 2px solid #b6e64a; outline-offset: 1px; }
.site-map-legend button.is-active { background: #0d3b2e; border-color: #0d3b2e; color: #fff; }
.site-map-dot, .site-map-legend i { display: inline-block; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(10,40,25,.28); }
.site-map-dot.type-roof, .site-map-legend i.type-roof, .print-map-legend span.type-roof { border: 0; border-radius: 0; background: #111 !important; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.site-map-dot.type-access, .site-map-legend i.type-access, .print-map-legend span.type-access { position: relative; width: 17px; flex-basis: 17px; background: #53bdba !important; }
.site-map-dot.type-access::after, .site-map-legend i.type-access::after, .print-map-legend span.type-access::after { content: ''; position: absolute; inset: 0; background: url('access-arrows.svg') center / 88% 88% no-repeat; transform: rotate(var(--access-rotation, 0deg)); }
.site-map-reper { display: flex; gap: .45rem; align-items: center; padding: .3rem 0; border-top: 1px solid #d9e4db; font-size: .82rem; }
.site-map-reper > :nth-child(2) { flex: 1; }
.site-map-reper-select { padding: .25rem; border: 0; border-radius: .35rem; background: transparent; color: #0d3b2e; font: inherit; text-align: left; cursor: pointer; }
.site-map-reper-select:hover, .site-map-reper-select:focus-visible, .site-map-reper-select[aria-pressed="true"] { background: #e6f2e7; outline: 2px solid #b6e64a; }
.site-map-reper .button { min-height: 2rem; padding: .35rem .6rem; }
.site-map-panel .site-map-empty { margin: .45rem 0; }
.site-map-orientation { margin: .55rem 0; padding: .65rem .8rem; border: 1px solid #a7d2cd; border-radius: .55rem; background: #ebf8f6; }
.site-map-orientation label { display: flex; justify-content: space-between; gap: .5rem; color: #0d3b2e; font-weight: 700; font-size: .85rem; }
.site-map-orientation output { color: #175c58; font-variant-numeric: tabular-nums; }
.site-map-panel .site-map-orientation input[type='range'] { display: block; width: 100%; min-height: 2.2rem; margin: .25rem 0; padding: 0; border: 0; background: transparent; accent-color: #0d6a62; cursor: pointer; }
.site-map-orientation small { display: block; color: #506d64; font-size: .75rem; line-height: 1.35; }
.site-map-icon { border: 0; background: transparent; }
.site-map-icon span { display: block; width: 22px; height: 22px; border: 3px solid #0d3b2e; border-radius: 50%; background: var(--pin-color); box-shadow: 0 1px 7px #092a22a8; }
.site-map-icon.is-selected span { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #0d3b2e, 0 2px 10px #092a22a8; cursor: grab; touch-action: none; }
.site-map-icon.is-selected:active span { cursor: grabbing; }
.site-map-icon.type-roof { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 1px 2px #092a22); }
.site-map-icon.type-roof span { width: 28px; height: 28px; border: 0; border-radius: 0; background: #111; clip-path: polygon(50% 2%, 98% 96%, 2% 96%); box-shadow: none; }
.site-map-icon.type-roof.is-selected { filter: drop-shadow(0 0 4px #b6e64a) drop-shadow(0 0 3px #fff); }
.site-map-icon.type-access span { display: grid; place-items: center; width: 28px; height: 28px; border-width: 2px; background: #53bdba; }
.site-map-icon.type-access span::after { content: ''; display: block; width: 23px; height: 23px; background: url('access-arrows.svg') center / contain no-repeat; transform: rotate(var(--access-rotation, 0deg)); }
.site-map-resize-handle { border: 0; background: transparent; }
.site-map-resize-handle span { display: block; width: 28px; height: 28px; border: 4px solid #0d3b2e; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 8px #092a22a8; cursor: grab; touch-action: none; }
.site-map-resize-handle:active span { cursor: grabbing; }
.print-map-block { margin: .35rem 0; break-inside: avoid; font-size: 8pt; }
.print-map-block strong { display: block; margin-bottom: 4px; }
.print-map-block p { margin: 3px 0; }
.print-map-block small { display: block; color: #405149; }
.print-site-map { position: relative; width: 360px; height: 220px; max-width: 100%; overflow: hidden; border: 1px solid #9faf9f; background: #e8efe8; }
.print-site-map > img { position: absolute; display: block; width: 256px; height: 256px; max-width: none; }
.print-site-overlay { position: absolute; inset: 0; }
.print-map-zones { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.print-map-circle { position: absolute; display: block; transform: translate(-50%, -50%); border: 2px solid; border-radius: 50%; }
.print-map-pin { position: absolute; display: grid; place-items: center; width: 20px; height: 20px; transform: translate(-50%, -50%); border: 2px solid #13392f; border-radius: 50%; font-size: 9pt; font-weight: 800; color: #092921; }
.print-map-pin.type-roof { width: 25px; height: 25px; padding-top: 5px; border: 0; border-radius: 0; color: #fff; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.print-map-pin.type-access { width: 26px; height: 26px; }
.print-map-pin.type-access::after { content: ''; display: block; width: 22px; height: 22px; background: url('access-arrows.svg') center / contain no-repeat; transform: rotate(var(--access-rotation, 0deg)); }
.print-map-legend { display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 4px 0; padding: 0; list-style: none; }
.print-map-legend li { display: flex; align-items: center; gap: 3px; }
.print-map-legend span { display: inline-block; width: 9px; height: 9px; border: 1px solid #60726a; border-radius: 50%; }
@media (max-width: 680px) { .site-map-panel { padding: .7rem; } .site-map-search-row > .button, .site-map-tool-row > .button { width: 100%; } #siteMap { min-height: 310px; height: 48vh; } .site-map-reper { align-items: flex-start; } }
@media print { .site-map-panel { display: none !important; } .print-map-block { break-inside: avoid; } .print-site-map, .print-map-pin, .print-map-legend span { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

