/* D13 : trois vrais aperçus et options groupées. */
.country-view #layersPanel {background:#F2F3F5;color:#171B20;border:0;border-radius:20px;padding:18px;box-shadow:0 8px 36px #10182820}
.country-view #layersPanel header {align-items:center;gap:12px;margin:0 0 18px}
.country-view #layersPanel header h2 {color:inherit;font-size:22px;line-height:1.2;font-weight:800;margin:0}
.country-view #layersPanel header small {display:none}
.country-view #layersPanel header button {position:relative;isolation:isolate;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:0;border:0;background:none;border-radius:50%;color:#4B5563;font-size:20px;box-shadow:none}
.country-view #layersPanel header button::before {content:"";position:absolute;inset:6px;background:#E3E6EB;border-radius:50%;z-index:-1}
.country-view #layersPanel .public-layer-choices {display:block;margin:0;padding:0}
.country-view #layersPanel .map-types-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 22px}
.country-view #layersPanel .map-type {display:flex;min-width:0;flex-direction:column;align-items:center;gap:7px;padding:0;border:0;background:none;box-shadow:none}
.country-view #layersPanel .map-type img {display:block;width:100%;height:auto;aspect-ratio:1.18;object-fit:cover;border:1px solid #D1D8E3;border-radius:12px;box-sizing:border-box}
.country-view #layersPanel .map-type.active img {outline:none;border:3px solid #2169E8}
.country-view #layersPanel .map-type b {font-size:15px;font-weight:750;line-height:1.25;color:#171B20}
.country-view #layersPanel .map-type.active b {color:#1764D8}
.country-view #layersPanel .map-type small {display:none}
.country-view #layersPanel .map-types-label {margin:0 3px 8px;font-size:12.5px;letter-spacing:.05em;font-weight:700;text-transform:uppercase;color:#7B8492;border:0;padding:0}
.country-view #layersPanel .map-options {color:inherit;background:#fff;border-radius:14px;overflow:hidden;padding:0 14px}
.country-view #layersPanel .atlas-map-buildings {color:inherit;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:12px 0!important;border:0;min-height:64px;box-sizing:border-box}
.country-view #layersPanel .atlas-map-buildings span {min-width:0}
.country-view #layersPanel .atlas-map-buildings b {display:block;font-size:16px;line-height:1.25;font-weight:700;color:inherit}
.country-view #layersPanel .atlas-map-buildings small {display:block;font-size:12.5px;line-height:1.3;color:#7B8492;margin-top:3px}
.country-view #layersPanel input[role=switch] {-webkit-appearance:none;appearance:none;position:relative;display:block;flex:none;width:51px;height:31px;min-height:31px;margin:0;border:0;border-radius:20px;background:#C7CDD5;cursor:pointer;transition:background .15s}
.country-view #layersPanel input[role=switch]::before {content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #0003;transition:transform .15s}
.country-view #layersPanel input[role=switch]:checked {background:#2AA66A}
.country-view #layersPanel input[role=switch]:checked::before {transform:translateX(20px)}
.country-view #layersPanel input[role=switch]:focus-visible {outline:3px solid #80ADFF;outline-offset:3px}
.country-view #layersPanel .map-appearance {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #D5DBE4;min-height:56px;padding:10px 0;box-sizing:border-box}
.country-view #layersPanel .map-appearance>span {font-size:16px;font-weight:700}
.country-view #layersPanel .map-appearance-choices {display:flex;gap:0;padding:2px;background:#E8EBEF;border-radius:10px}
.country-view #layersPanel .map-appearance-choices button {display:grid;place-items:center;min-height:36px;height:36px;width:48px;flex:0 0 48px;min-width:0;max-width:none;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#535C68;font:700 14px/1.2 Inter,system-ui,sans-serif;box-shadow:none}
.country-view #layersPanel .map-appearance-choices button[aria-pressed=true] {background:#fff;color:#171B20;box-shadow:0 1px 4px #10182824}
html[data-atlas-theme=night] .country-view #layersPanel {background:#151D27;color:#F2F4F7}
html[data-atlas-theme=night] .country-view #layersPanel header button {color:#D5DBE4}
html[data-atlas-theme=night] .country-view #layersPanel header button::before {background:#303C4B}
html[data-atlas-theme=night] .country-view #layersPanel .map-type b {color:#F2F4F7}
html[data-atlas-theme=night] .country-view #layersPanel .map-type.active b {color:#8DB4FF}
html[data-atlas-theme=night] .country-view #layersPanel .map-type.active img {border-color:#8DB4FF}
html[data-atlas-theme=night] .country-view #layersPanel .map-options {background:#242E3B}
html[data-atlas-theme=night] .country-view #layersPanel .atlas-map-buildings small {color:#B5BFCC}
html[data-atlas-theme=night] .country-view #layersPanel .map-appearance {border-color:#465162}
html[data-atlas-theme=night] .country-view #layersPanel .map-appearance-choices {background:#111923}
html[data-atlas-theme=night] .country-view #layersPanel .map-appearance-choices button {color:#BCC4D0}
html[data-atlas-theme=night] .country-view #layersPanel .map-appearance-choices button[aria-pressed=true] {background:#435166;color:#fff}
@media(max-width:779px),(max-width:1024px) and (pointer:coarse){
 .country-view:not([data-sheet=peek]) #layersPanel {left:0;right:0;bottom:0;width:100%;max-width:100%;height:auto;max-height:min(82dvh,660px);border-radius:22px 22px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom))}
 .country-view #layersPanel .atlas-sheet-body {padding:0 2px 4px;overflow:auto}
 .country-view #layersPanel header {margin-bottom:18px}
}
