:root {
  --paper: #fff;
  --ink: #243331;
  --muted: #5b6964;
  --line: #e5e9e6;
  --red: #bd4a37;
  --green: #344f46;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f5f6f2;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  overflow: hidden;
}
button,
select,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bd4a37;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -60px;
  z-index: 99;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 0;
}
.atlas-header {
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 25px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  text-decoration: none;
  white-space: nowrap;
}
.logo > span {
  color: var(--red);
  font-size: 29px;
  vertical-align: -2px;
}
.logo b {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.4px;
}
.header-divider {
  height: 24px;
  border-left: 1px solid var(--line);
}
.workspace-title {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.atlas-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.atlas-header nav > a {
  text-decoration: none;
}
.atlas-header button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 13px;
}
.atlas-shell {
  display: flex;
  height: calc(100dvh - 66px);
}
.sidebar {
  width: 316px;
  flex-shrink: 0;
  overflow-y: auto;
  background: white;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  z-index: 4;
}
.sidebar-intro {
  padding: 27px 24px 22px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.65px;
  color: var(--muted);
  margin: 0 0 13px;
}
h1 {
  font-weight: 530;
  letter-spacing: -1.15px;
  line-height: 1.13;
  font-size: 31px;
  margin: 0 0 13px;
}
.sidebar-intro > p:last-child {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.mode-tabs {
  display: flex;
  background: #f2f4f1;
  padding: 4px;
  border-radius: 6px;
  margin: 0 18px 5px;
  gap: 2px;
}
.mode-tabs button {
  flex: 1;
  padding: 9px 3px;
  font-size: 11px;
  font-weight: 600;
  border: 0;
  border-radius: 4px;
  background: transparent;
  white-space: nowrap;
}
.mode-tabs button.active {
  color: white;
  background: var(--green);
}
.control-section {
  margin: 0 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0 0 15px;
  font-size: 12px;
  font-weight: 650;
}
h2 > span {
  float: right;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.layer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 12px;
}
.layer-row input {
  accent-color: var(--green);
  width: 14px;
  height: 14px;
  margin: 0;
}
.layer-row > span {
  flex: 1;
}
.layer-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  padding-top: 3px;
  line-height: 1.35;
}
.swatch {
  background: var(--layer-color, var(--red));
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 2px;
}
.swatch.route {
  height: 3px;
}
.swatch.sites {
  border-radius: 50%;
}
.select-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0 6px;
}
select {
  width: 100%;
  border: 1px solid #dce2dd;
  background: #fff;
  border-radius: 4px;
  padding: 9px 10px;
  font-size: 12px;
  color: var(--ink);
}
.text-button {
  display: block;
  border: 0;
  background: none;
  padding: 12px 0 0;
  text-align: left;
  font-size: 11px;
  color: var(--green);
}
.topic-links {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}
.topic-links button {
  background: #f6f7f4;
  border: 0;
  border-radius: 4px;
  text-align: left;
  font-size: 11px;
  padding: 9px 11px;
}
.help {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 9px 0 0;
}
.base-switch,
.traffic-mode {
  display: flex;
  gap: 5px;
}
.base-switch button,
.traffic-mode button {
  border: 1px solid var(--line);
  background: white;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 11px;
  flex: 1;
}
.base-switch button.active,
.traffic-mode button.active {
  background: #edf2ed;
  border-color: #9bad9f;
}
.sidebar-footer {
  padding: 23px 24px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.map-workspace {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #edf1eb;
  overflow: hidden;
}
#map,
#tunnel-view,
#three-container,
#three-labels {
  position: absolute;
  inset: 0;
}
#three-labels {
  pointer-events: none;
  overflow: hidden;
}
.three-label {
  position: absolute;
  font-size: 11px;
  background: #fffffff0;
  border: 1px solid #d7ded8;
  border-radius: 4px;
  padding: 4px 7px;
  box-shadow: 0 2px 8px #3143360d;
  white-space: nowrap;
  transform: translate(-50%, -110%);
}
.three-label b {
  color: var(--red);
}
.map-top {
  position: absolute;
  top: 22px;
  left: 23px;
  right: 23px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 2;
  gap: 15px;
}
.map-title {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffffff2;
  padding: 12px 16px;
  border: 1px solid #dde4de;
  border-radius: 6px;
  box-shadow: 0 3px 15px #24333106;
}
.map-title strong {
  display: block;
  letter-spacing: 1.05px;
  font-size: 11px;
  font-weight: 650;
}
.map-title span:not(.status-dot) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.status-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--red);
}
.map-actions {
  display: flex;
  gap: 7px;
  pointer-events: auto;
}
.map-actions button {
  width: 38px;
  height: 38px;
  background: white;
  border: 1px solid #dce3dc;
  border-radius: 5px;
  font-size: 21px;
}
.country-key {
  position: absolute;
  left: 24px;
  top: 99px;
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  pointer-events: none;
}
.country-key span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.country-key i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid #0002;
}
.country-key .fr {
  background: #dce8f1;
}
.country-key .ch {
  background: #eedee2;
}
.map-bottom {
  position: absolute;
  left: 24px;
  bottom: 36px;
  pointer-events: none;
}
.legend {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fffffff2;
  padding: 11px 15px;
  border: 1px solid #dce3dc;
  border-radius: 5px;
  font-size: 11px;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-line {
  width: 20px;
  height: 3px;
  background: var(--red);
}
.legend-point {
  height: 8px;
  width: 8px;
  background: var(--red);
  border: 1px solid white;
  outline: 1px solid var(--red);
  border-radius: 50%;
}
#view-hint {
  font-size: 11px;
  color: #56655b;
  margin: 8px 0 0;
  text-shadow: 0 1px white;
}
.maplibregl-ctrl-bottom-right {
  max-width: calc(100% - 14px);
}
.maplibregl-ctrl-attrib {
  font-size: 11px !important;
}
.maplibregl-ctrl-top-right {
  top: 72px;
  right: 14px;
}
.site-marker {
  border: 2px solid white;
  background: var(--red);
  color: white;
  box-shadow: 0 2px 7px #46352533;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
}
.site-marker:hover {
  outline: 3px solid #bd4a3744;
}
.site-marker.logistics {
  background: #a56b2d;
  width: 15px;
  height: 15px;
}
.site-marker.energy {
  background: #85609d;
  width: 25px;
  height: 25px;
}
.marker-label {
  position: absolute;
  top: 29px;
  left: 50%;
  transform: translateX(-50%);
  background: #fffc;
  padding: 1px 4px;
  border-radius: 3px;
  color: #544760;
  font-size: 11px;
  white-space: nowrap;
}
.feature-panel {
  position: absolute;
  z-index: 5;
  right: 20px;
  top: 83px;
  bottom: 34px;
  width: 365px;
  max-width: calc(100% - 40px);
  background: #fffffff9;
  border: 1px solid #dce2dc;
  border-radius: 7px;
  padding: 30px 24px;
  overflow: auto;
  box-shadow: 0 10px 45px #253e301c;
  scrollbar-width: thin;
}
.close {
  position: absolute;
  right: 12px;
  top: 9px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #78877e;
  padding: 0 6px;
}
.feature-panel h2,
dialog h2 {
  font-size: 26px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.65px;
  margin: 8px 0 17px;
}
.feature-panel h3,
dialog h3 {
  font-size: 13px;
  margin: 24px 0 8px;
}
.feature-panel p,
dialog p {
  font-size: 12px;
  line-height: 1.7;
}
.tag {
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: 1.2px;
  color: var(--red);
}
.status {
  display: inline-block;
  background: #edf1e9;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11px !important;
}
.metric {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  margin: 20px 0;
}
.metric strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
}
.metric span {
  font-size: 11px;
  color: var(--muted);
}
.warning {
  padding: 11px 13px;
  background: #f6f1e7;
  border-left: 2px solid #b89961;
  border-radius: 2px;
}
.coords {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.feature-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.feature-actions button,
.primary-button {
  border: 1px solid #d4dfd3;
  background: #edf2ec;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 11px;
}
.primary-button {
  width: 100%;
  background: var(--green);
  color: white;
  margin-top: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 35px;
  max-width: calc(100% - 30px);
  width: 720px;
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #122c2855;
  backdrop-filter: blur(3px);
}
dialog li {
  font-size: 12px;
  line-height: 1.9;
}
#plan-dialog {
  width: 1000px;
}
.official-plan {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  margin-top: 15px;
}
#load-state {
  position: absolute;
  z-index: 7;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  box-shadow: 0 5px 40px #22352922;
  border-radius: 5px;
  padding: 16px 25px;
  text-align: center;
  font-size: 12px;
  max-width: 80%;
}
#load-state.error {
  color: #973d31;
}
#map-message {
  position: absolute;
  bottom: 120px;
  left: 24px;
  right: 24px;
  padding: 12px 18px;
  background: #fff4de;
  border: 1px solid #e3d3ad;
  border-radius: 5px;
  font-size: 11px;
  z-index: 4;
}
#mobile-layers {
  display: none;
}
.traffic-card {
  position: absolute;
  left: 24px;
  bottom: 118px;
  width: 310px;
  background: #fffffff5;
  border: 1px solid #dce3dc;
  border-radius: 7px;
  padding: 16px;
  box-shadow: 0 7px 24px #2433310f;
  z-index: 3;
}
.traffic-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 13px;
}
.traffic-head button {
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--muted);
  padding: 0;
}
.traffic-mode button {
  padding: 6px;
}
.traffic-card #traffic-status {
  font-size: 11px;
  line-height: 1.5;
}
.traffic-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  font-size: 11px;
}
.traffic-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
}
.scene-tabs {
  display: grid;
  gap: 6px;
}
.scene-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 9px 11px;
  border-radius: 5px;
  font-size: 11px;
}
.scene-tabs button.active {
  background: #edf2ec;
  border-color: #a9b9a6;
}
.slider-control {
  margin: 20px 0 0;
}
.slider-control label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.slider-control input {
  width: 100%;
  accent-color: var(--green);
  margin: 10px 0;
}
.scene-caption {
  position: absolute;
  top: 103px;
  left: 24px;
  max-width: 430px;
  background: #ffffffe0;
  padding: 12px 15px;
  border-left: 2px solid #ba8257;
  font-size: 11px;
  line-height: 1.6;
  pointer-events: none;
}
.maplibregl-popup-content {
  padding: 14px 20px 13px 14px;
  font:
    12px/1.5 'Segoe UI',
    Arial,
    sans-serif;
  border-radius: 5px;
}
.maplibregl-popup-close-button {
  font-size: 20px;
}
.source-date {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .sidebar {
    width: 282px;
  }
  .sidebar-intro {
    padding: 22px 20px;
  }
  .control-section {
    margin: 0 20px;
  }
  .workspace-title,
  .header-divider {
    display: none;
  }
  .feature-panel {
    width: 330px;
  }
  .map-title {
    padding: 10px 12px;
  }
  .map-title strong {
    font-size: 11px;
  }
  .traffic-card {
    width: 275px;
  }
  .map-top {
    left: 16px;
    right: 16px;
  }
  .country-key,
  .map-bottom,
  .scene-caption {
    left: 16px;
  }
}
@media (max-width: 700px) {
  .atlas-header {
    height: 58px;
    padding: 0 14px;
    gap: 10px;
  }
  .logo {
    font-size: 19px;
  }
  .logo b {
    font-size: 14px;
  }
  .logo > span {
    font-size: 24px;
  }
  .atlas-header nav {
    gap: 12px;
  }
  .atlas-header nav > a {
    font-size: 12px;
    padding-block: 8px;
    white-space: nowrap;
  }
  .atlas-header nav button {
    font-size: 11px;
    padding: 7px;
  }
  .atlas-shell {
    height: calc(100dvh - 58px);
  }
  .sidebar {
    position: absolute;
    top: 58px;
    bottom: 0;
    left: 0;
    width: min(310px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 8px 0 35px #22352a22;
    z-index: 9;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .map-top {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 7px;
  }
  .map-title {
    padding: 9px 11px;
    gap: 7px;
  }
  .map-title strong {
    font-size: 11px;
    letter-spacing: 0.6px;
  }
  .map-title span:not(.status-dot) {
    font-size: 11px;
  }
  .map-actions button {
    height: 34px;
    width: 34px;
  }
  .map-actions #fullscreen {
    display: none;
  }
  .country-key {
    top: 83px;
    left: 14px;
    font-size: 11px;
  }
  .map-bottom {
    bottom: 82px;
    left: 12px;
  }
  .legend {
    padding: 8px 11px;
    font-size: 11px;
    gap: 12px;
  }
  #view-hint {
    display: none;
  }
  #mobile-layers {
    display: block;
    position: absolute;
    bottom: 33px;
    left: 12px;
    border: 0;
    background: var(--green);
    color: white;
    padding: 10px 17px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
  }
  .feature-panel {
    top: 68px;
    right: 12px;
    bottom: 80px;
    max-width: calc(100% - 24px);
    padding: 28px 20px;
  }
  .traffic-card {
    left: 12px;
    bottom: 125px;
    width: calc(100% - 62px);
    max-width: 310px;
    padding: 12px;
  }
  .traffic-card .help {
    max-height: 32px;
    overflow: auto;
  }
  .scene-caption {
    top: 81px;
    left: 12px;
    right: 12px;
    font-size: 11px;
    padding: 9px 11px;
    max-width: unset;
  }
  #map-message {
    left: 12px;
    right: 12px;
    bottom: 130px;
  }
  .maplibregl-ctrl-top-right {
    right: 3px;
    top: 66px;
  }
  dialog {
    padding: 30px 20px;
  }
  .three-label {
    font-size: 11px;
    padding: 3px 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .maplibregl-user-location-dot:before {
    animation: none;
  }
}
.theme-picker {
  padding: 20px 24px 17px;
  border-bottom: 1px solid var(--line);
}
.theme-picker h2 {
  font-size: 11px;
  margin-bottom: 10px;
}
.theme-picker > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.theme-picker button {
  border: 1px solid #e0e6df;
  background: white;
  border-radius: 4px;
  font-size: 11px;
  padding: 8px 6px;
  text-align: left;
}
.theme-picker button.active {
  background: #edf2ec;
  border-color: #94aa98;
  font-weight: 600;
}
.theme-picker > a {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 11px;
}
.theme-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 9px;
  margin: 18px 0;
}
.theme-metrics > div {
  border: 1px solid var(--line);
  background: #f7f8f4;
  border-radius: 5px;
  padding: 12px;
}
.theme-metrics strong {
  display: block;
  font-size: 21px;
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
.theme-metrics span {
  font-size: 11px;
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}
.theme-metrics small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.theme-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 15px 18px 0;
}
.theme-map-actions button {
  background: #edf2ec;
  border: 1px solid #dce5d9;
  font-size: 11px;
  border-radius: 4px;
  padding: 7px 9px;
}
.inline-sources {
  font-size: 11px;
  color: #52715c;
  line-height: 1.7;
  margin: 8px 0 15px;
}
.inline-sources a {
  overflow-wrap: anywhere;
}
.read-dossier {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #345a44;
  margin: 20px 0;
}
.traffic-site-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.traffic-site-grid button {
  border: 1px solid var(--line);
  background: #fafaf6;
  border-radius: 4px;
  padding: 9px;
}
.traffic-site-grid b,
.traffic-site-grid span {
  display: block;
  font-size: 11px;
}
.traffic-site-grid b {
  color: var(--red);
}
.traffic-site-grid span {
  font-size: 11px;
  margin-top: 4px;
}
.compact-debate {
  border-left: 3px solid #b47f49;
  background: #f8f3e9;
  padding: 13px;
  margin: 20px 0;
}
.compact-debate h3 {
  margin: 0 0 10px !important;
  font-size: 13px !important;
}
.compact-debate details {
  padding: 9px 0;
  border-top: 1px solid #e5d9c5;
}
.compact-debate summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.6;
}
.compact-debate p {
  font-size: 11px !important;
}
.compact-photo {
  margin: 20px 0;
  background: #f5f5ef;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 4px;
}
.compact-photo img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.compact-photo figcaption {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}
.water-stages {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}
.water-stages button {
  font-size: 11px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: white;
  text-align: left;
}
.water-stages button.active {
  background: #dcebf0;
  border-color: #5f9fae;
}
.overlay-summary {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.overlay-legend {
  position: absolute;
  right: 18px;
  bottom: 54px;
  background: #ffffffec;
  border: 1px solid #d9e1d8;
  border-radius: 4px;
  padding: 10px 13px;
  max-width: 250px;
  font-size: 11px;
  z-index: 2;
}
.overlay-legend span {
  display: block;
  margin: 3px 0;
}
.overlay-legend i {
  display: inline-block;
  width: 15px;
  height: 7px;
  margin-right: 7px;
  vertical-align: middle;
}
.logistics-label {
  font-size: 11px;
  position: absolute;
  left: 17px;
  top: -5px;
  background: #fffe;
  color: #754b28;
  padding: 2px 5px;
  white-space: nowrap;
  border-radius: 3px;
}
.three-label.city {
  background: #f8fcf5e8;
  color: #365242;
  border-color: #acb9a6;
  font-weight: 600;
}
.three-label.city.major {
  font-size: 14px;
  padding: 6px 10px;
  letter-spacing: 1px;
}
.three-label.hydro {
  border-left: 3px solid #2893b3;
  color: #25687c;
}
.scene-caption {
  max-width: 510px;
}
.carbon-bars {
  background: white;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 5px;
  margin: 20px 0;
}
.carbon-bars h3 {
  font-size: 15px !important;
  margin: 0 0 15px !important;
}
.carbon-bar {
  margin: 14px 0;
  font-size: 11px;
}
.carbon-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}
.carbon-bar i {
  display: block;
  height: 13px;
  background: #bc7860;
  min-width: 2px;
}
.carbon-bar small {
  font-size: 11px;
}
.carbon-unknown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}
.carbon-unknown span {
  padding: 5px 7px;
  border: 1px dashed #c7cbbf;
  border-radius: 3px;
  font-size: 11px;
  background: #f7f7f1;
}
@media (max-width: 700px) {
  .overlay-legend {
    right: 12px;
    bottom: 84px;
    max-width: 190px;
    padding: 7px;
    font-size: 11px;
  }
  .scene-caption {
    max-width: unset;
  }
  .three-label.city.major {
    font-size: 11px;
  }
  .three-label.city {
    font-size: 11px;
  }
  .logistics-label {
    max-width: 160px;
    white-space: normal;
  }
  .carbon-bars {
    padding: 12px;
  }
}

/* Compact accessible 3D markers: details on hover, tap or keyboard focus. */
.three-label {
  pointer-events: auto;
  cursor: pointer;
  font-family: inherit;
}
.three-label.hover-marker:not(.expanded) {
  font-size: 0 !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  width: 9px;
  height: 9px;
  min-width: 0;
  border: 2px solid white !important;
  border-radius: 50%;
  background: #597362;
  box-shadow: 0 0 0 1px #59736280;
}
.three-label.hover-marker.hydro:not(.expanded) {
  background: #087da3;
}
.three-label.expanded {
  z-index: 3;
  max-width: 260px;
  white-space: normal;
}
.three-label:focus-visible {
  outline: 3px solid #168caa;
  outline-offset: 3px;
}
.three-label[hidden] {
  display: none !important;
}
@media (pointer: coarse) {
  .three-label.hover-marker:not(.expanded) {
    width: 16px;
    height: 16px;
  }
}

.map-actions #north-view {
  width: 48px;
  white-space: nowrap;
  font-size: 12px;
}

.address-box {
  position: absolute;
  top: 92px;
  right: 24px;
  width: 320px;
  max-width: calc(100% - 48px);
  z-index: 6;
  background: #fffffff5;
  border: 1px solid #d6dfd4;
  border-radius: 6px;
  padding: 5px 9px;
  box-shadow: 0 3px 12px #26382a12;
}
.address-box form {
  display: flex;
  align-items: center;
  gap: 7px;
}
.address-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font:
    12px 'Segoe UI',
    sans-serif;
}
.address-box button {
  border: 0;
  background: transparent;
  color: #375b4a;
  padding: 6px;
  cursor: pointer;
}
.address-box p {
  font-size: 11px;
  color: #617366;
  margin: 2px 0 4px;
}
.address-box #address-results button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 11px;
  border-top: 1px solid #e4e9e0;
  padding: 10px 4px;
}
.address-box #address-results button:hover {
  background: #eaf0e5;
}
@media (max-width: 700px) {
  .address-box {
    top: 77px;
    right: 12px;
    max-width: calc(100% - 24px);
    width: 310px;
  }
  .scene-caption {
    top: 170px;
    max-height: 64px;
    overflow: auto;
  }
  .country-key {
    top: 151px;
  }
}

.rotation-pivot {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 27px;
  color: #c63229;
  text-shadow: 0 0 3px white;
  pointer-events: none;
  z-index: 8;
}
.rotation-pivot[hidden] {
  display: none;
}

/* Shared search and compact navigation, with optional scene information. */
.map-title {
  display: none;
}
.map-top {
  pointer-events: none;
  justify-content: flex-end;
}
.map-actions {
  pointer-events: auto;
  display: flex;
  gap: 6px;
}
.address-box {
  top: 24px;
  left: 24px;
  right: auto;
  width: min(420px, calc(100% - 340px));
  max-width: none;
}
.country-key {
  top: 107px;
}
#scene-info {
  position: absolute;
  top: 110px;
  left: 24px;
  max-width: 480px;
  width: calc(100% - 48px);
  z-index: 7;
  background: #fffffff5;
  border: 1px solid #d6dfd4;
  border-radius: 6px;
  padding: 13px 36px 13px 14px;
  box-shadow: 0 3px 12px #26382a12;
}
#scene-info[hidden] {
  display: none;
}
#scene-info .scene-caption {
  position: static;
  background: none;
  border: 0;
  padding: 0;
  max-width: none;
  max-height: 180px;
  overflow: auto;
  pointer-events: auto;
}
#close-scene-info {
  position: absolute;
  right: 6px;
  top: 5px;
  border: 0;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.map-workspace:not(.is-3d) #tilt-up,
.map-workspace:not(.is-3d) #tilt-down,
.map-workspace:not(.is-3d) #scene-info-toggle {
  display: none;
}
.depth-toggle {
  padding: 12px 0;
}
.depth-toggle input {
  accent-color: #286b58;
}
@media (max-width: 900px) {
  .address-box {
    width: calc(100% - 48px);
  }
  .map-top {
    top: 102px;
  }
  .country-key {
    top: 151px;
  }
  #scene-info {
    top: 151px;
  }
}
@media (max-width: 700px) {
  .address-box {
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
    max-width: none;
  }
  .map-top {
    top: 95px;
  }
  #scene-info {
    left: 12px;
    top: 143px;
    width: calc(100% - 62px);
  }
  .map-actions button {
    width: 38px;
    height: 38px;
  }
  .country-key {
    top: 145px;
  }
}

#three-container canvas {
  touch-action: none;
  overscroll-behavior: contain;
}
#three-container canvas:focus-visible {
  outline: 2px solid #618a72;
  outline-offset: -2px;
}
.map-workspace:not(.is-3d) #altitude-up,
.map-workspace:not(.is-3d) #altitude-down {
  display: none;
}
.map-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 390px;
}
@media (max-width: 700px) {
  .map-actions {
    gap: 4px;
  }
  .map-actions button {
    width: 34px;
    height: 36px;
  }
  .map-actions #north-view {
    width: 38px;
  }
}
#tunnel-view {
  touch-action: none;
  overscroll-behavior: contain;
}

.material-pin {
  width: 30px;
  height: 34px;
  border: 2px solid white;
  border-radius: 12px 12px 12px 2px;
  background: #866139;
  color: white;
  box-shadow: 0 2px 6px #0005;
  cursor: pointer;
  font-size: 18px;
}
.material-pin.research {
  background: #397466;
}
.material-pin.closed {
  background: #6f6770;
}
.material-pin span {
  display: none;
  position: absolute;
  left: 34px;
  top: 0;
  background: white;
  color: #293d35;
  border: 1px solid #cdd6cf;
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 12px;
  border-radius: 4px;
}
.material-pin:hover span,
.material-pin:focus span {
  display: block;
}
.country-key .ch {
  background: #d65c65 !important;
}

.material-pin.storage {
  background: #8b4b29;
}
.capacity-info {
  padding: 14px;
  background: #f5f1e9;
  border-left: 3px solid #8b4b29;
  margin: 16px 0;
}
.capacity-info dt {
  font-size: 12px;
  color: #566158;
}
.capacity-info dd {
  margin: 2px 0 10px;
  font-weight: 600;
}
.capacity-info meter {
  display: block;
  width: 100%;
}

.material-pin.concrete {
  background: #596c82;
  border-color: #fff;
  color: #fff;
}
.material-pin.recycling {
  background: #47745b;
  color: #fff;
}
.material-pin.treatment {
  background: #8c623b;
  color: #fff;
}

.concrete-flows label:not(.layer-row) {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
.concrete-flows input[type='number'],
.concrete-flows select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 9px;
  border: 1px solid #b7c0bc;
  border-radius: 5px;
  background: white;
  color: #24342d;
  margin-top: 5px;
}
.concrete-flows summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 0;
}
.concrete-flow-card {
  border-left: 3px dashed #995a20;
  padding: 10px;
  margin: 12px 0;
  background: #faf4eb;
  font-size: 12px;
}
.concrete-flows h3 {
  font-size: 14px;
}

.concrete-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.concrete-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.concrete-table-wrap th,
.concrete-table-wrap td {
  padding: 7px 4px;
  border-bottom: 1px solid #d7ded9;
  text-align: left;
}
.concrete-table-wrap td {
  font-variant-numeric: tabular-nums;
}
.concrete-table-wrap caption {
  text-align: left;
  font-weight: 600;
  padding: 6px 0;
}
.concrete-preset-buttons {
  display: grid;
  gap: 5px;
}
.concrete-preset-buttons [aria-pressed='true'] {
  background: #f5e5cf;
  border-left: 3px solid #995a20;
  padding: 8px;
}
.concrete-scenario-badge {
  position: absolute;
  top: 102px;
  left: 24px;
  max-width: calc(100% - 48px);
  z-index: 2;
  pointer-events: none;
  background: #fff4de;
  border: 1px dashed #995a20;
  padding: 7px 10px;
  color: #713d10;
  font-size: 11px;
}
.concrete-scenario-badge[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .concrete-scenario-badge {
    top: 112px;
    left: 8px;
    max-width: calc(100% - 16px);
    font-size: 11px;
  }
}

.concrete-scenario-badge {
  top: 140px;
}
@media (max-width: 900px) {
  .concrete-scenario-badge {
    top: 180px;
  }
}

.congestion-simulation {
  margin: 18px 0;
  border-top: 1px solid #d8ded8;
}
.congestion-map-legend {
  position: absolute;
  bottom: 74px;
  left: 24px;
  max-width: min(460px, calc(100% - 48px));
  padding: 8px 10px;
  background: #fffffff5;
  border: 1px solid #abbab2;
  border-radius: 4px;
  z-index: 2;
  font-size: 11px;
  pointer-events: none;
}
@media (max-width: 700px) {
  .congestion-map-legend {
    bottom: 145px;
    left: 12px;
    max-width: calc(100% - 24px);
    font-size: 11px;
  }
}

.feature-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.feature-panel > #close-feature {
  position: static;
  align-self: flex-end;
  flex-shrink: 0;
  margin: 8px 10px;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  background: #f1f4f0;
  border: 1px solid #d0d9d0;
  border-radius: 5px;
  font-size: 26px;
}
.feature-panel > #feature-content {
  overflow-y: auto;
  padding: 0 24px 28px;
  min-height: 0;
}
dialog > .close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
  background: white;
  border: 1px solid #c8d2ca;
  border-radius: 5px;
}
.maplibregl-popup-close-button {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #ccd6cf;
  border-radius: 4px;
  font-size: 24px;
}
.maplibregl-popup-content {
  padding: 48px 16px 16px;
  max-height: 60vh;
  overflow: auto;
}
#close-scene-info,
.easy-close {
  min-width: 44px;
  min-height: 44px;
  background: white;
  border: 1px solid #c8d2ca;
  border-radius: 4px;
}
.easy-close {
  display: block;
  margin-left: auto;
}
#close-all-popups {
  width: auto !important;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 9px;
  font-size: 11px;
}
.map-actions {
  max-width: 490px;
}
#nearby-controls summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}
#nearby-controls label:not(.layer-row) {
  display: block;
  font-size: 12px;
}
#scene-info {
  padding-top: 50px;
}
.three-label.nearby-poi {
  border-radius: 50%;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .feature-panel > #feature-content {
    padding: 0 18px 24px;
  }
  .map-actions {
    max-width: 320px;
  }
  .map-actions #close-all-popups {
    font-size: 11px;
  }
}

.maplibregl-popup-close-button {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
}
.maplibregl-popup-content {
  padding: 8px 12px 16px;
}
.maplibregl-popup-content:after {
  content: '';
  display: block;
  clear: both;
}

.concrete-scenario-badge,
.congestion-map-legend {
  pointer-events: auto;
  padding-right: 52px;
  min-height: 44px;
}
.banner-close {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid #c9cec7;
  background: #fffdf4;
  color: #34463b;
  border-radius: 3px;
  font-size: 26px;
  cursor: pointer;
  touch-action: manipulation;
}
#restore-map-banners {
  margin: 12px 24px 24px;
}

.overlay-legend {
  position: absolute;
  padding-right: 52px;
  min-height: 44px;
  pointer-events: auto;
}
#map-message {
  padding-right: 52px;
  min-height: 44px;
  pointer-events: auto;
}
.map-navigation-rail {
  position: absolute;
  top: 24px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 1px 5px #26382a30;
  border-radius: 5px;
  overflow: hidden;
}
.map-navigation-rail button {
  width: 44px;
  height: 44px;
  border: 0;
  border-bottom: 1px solid #dce2dd;
  background: #fff;
  color: #344f46;
  font-size: 24px;
  touch-action: manipulation;
}
.map-navigation-rail #north-view {
  font-size: 12px;
}
.map-navigation-rail button:last-child {
  border-bottom: 0;
}
.map-top {
  right: 72px;
}
@media (max-width: 900px) {
  .map-navigation-rail {
    top: 102px;
  }
}
@media (max-width: 700px) {
  .map-navigation-rail {
    top: 95px;
  }
  .map-top {
    right: 72px;
  }
  .map-actions {
    max-width: 260px;
  }
}

/* Keep the right-hand navigation column clear of information overlays. */
.map-navigation-rail {
  gap: 8px;
  padding: 4px 0;
  overflow: visible;
  box-shadow: none;
  z-index: 8;
}
.map-navigation-rail button,
.map-navigation-rail button:last-child {
  border: 1px solid #dce2dd;
  border-radius: 5px;
  box-shadow: 0 1px 4px #26382a18;
}
.map-navigation-rail #home-view {
  font-size: 22px;
}
.map-actions {
  gap: 8px;
}
.feature-panel {
  right: 72px;
  max-width: calc(100% - 84px);
}
.concrete-scenario-badge {
  left: 12px;
  right: 72px;
  max-width: calc(100% - 84px);
  width: fit-content;
}
.congestion-map-legend {
  left: 12px;
  max-width: min(460px, calc(100% - 84px));
}
.overlay-legend {
  right: 72px;
  max-width: calc(100% - 84px);
}
#scene-info {
  left: 12px;
  width: calc(100% - 84px);
  max-width: 480px;
}
#map-message {
  left: 12px;
  right: 72px;
  max-width: calc(100% - 84px);
}
#three-labels {
  clip-path: inset(0 72px 0 0);
}
.maplibregl-popup {
  max-width: min(300px, calc(100% - 88px)) !important;
}
@media (max-width: 900px) {
  .address-box {
    left: 12px;
    right: 72px;
    width: auto;
    max-width: calc(100% - 84px);
  }
}

.country-key {
  background: #fffffff5;
  border: 1px solid #d6dfd4;
  border-radius: 5px;
  box-shadow: 0 1px 5px #26382a18;
  padding: 8px 10px;
  width: fit-content;
  max-width: calc(100% - 84px);
  left: 12px;
  color: #243331;
  z-index: 2;
}
.banner-body {
  display: block;
}
.banner-reduced {
  padding: 0 !important;
  min-height: 44px;
  width: fit-content !important;
}
.banner-reduced > .banner-body {
  display: none !important;
}
.banner-reduced > .banner-close {
  position: static;
  width: auto;
  min-width: 44px;
  max-width: 100%;
  height: auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  font-size: 11px;
  white-space: normal;
}
.map-navigation-rail button:disabled {
  opacity: 0.6;
  cursor: wait;
}
@media (max-width: 700px) {
  .country-key {
    top: 88px;
    left: 12px;
    font-size: 11px;
    padding: 7px 9px;
  }
}
#map-info-dock {
  position: absolute;
  left: 12px;
  right: 72px;
  bottom: 76px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  scrollbar-width: thin;
}
#map-info-dock > * {
  position: relative !important;
  inset: auto !important;
  flex-shrink: 0;
  pointer-events: auto;
  max-width: 100% !important;
  width: fit-content;
  margin: 0;
  transform: none !important;
  translate: none !important;
}
#map-info-dock > #feature-panel {
  width: 100%;
  max-height: 70vh;
  min-height: 100px;
}
#map-info-dock > #scene-info,
#map-info-dock > #traffic-card,
#map-info-dock > #map-message {
  width: 100%;
  max-height: 55vh;
  overflow-y: auto;
}
#map-info-dock > .maplibregl-popup {
  width: 100%;
  display: block;
  max-height: 55vh;
}
#map-info-dock .maplibregl-popup-tip {
  display: none;
}
#map-info-dock .maplibregl-popup-content {
  max-height: 50vh;
  box-shadow: 0 1px 5px #26382a20;
}
#map-info-dock .banner-close {
  inset: 0 0 auto auto;
}
#map-info-dock .banner-reduced {
  width: fit-content !important;
}
.map-bottom {
  display: none;
}
.country-key {
  right: 72px;
  max-width: calc(100% - 84px);
}
@media (max-width: 700px) {
  #map-info-dock {
    bottom: 78px;
  }
  #map-info-dock > #feature-panel {
    max-height: 55vh;
  }
  .logistics-label {
    display: none;
  }
  .site-marker:hover .logistics-label,
  .site-marker:focus .logistics-label {
    display: block;
  }
}
@media (max-width: 400px) {
  .wide-only {
    display: none;
  }
}

/* Fiche de détail : panneau latéral qui laisse la carte visible sur ordinateur, feuille basse sur mobile. */
.map-workspace > #feature-panel {
  top: 12px;
  right: 72px;
  bottom: 24px;
  width: min(380px, calc(100% - 96px));
  max-width: none;
  z-index: 8;
}
.map-workspace.panel-open #map-info-dock {
  right: calc(84px + min(380px, 100% - 96px));
}
.sheet-toggle {
  display: none;
}
#map-message.compact {
  width: fit-content;
  padding: 8px 40px 8px 12px;
  font-size: 12px;
}
#map-message.compact .text-button {
  margin-left: 6px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .map-workspace > #feature-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 55%;
    border-radius: 14px 14px 0 0;
    padding: 30px 18px 20px;
    box-shadow: 0 -8px 30px #253e3026;
    background: #fff;
    z-index: 30;
  }
  .map-workspace > #feature-panel.expanded {
    max-height: calc(100% - 12px);
  }
  .map-workspace.panel-open #map-info-dock {
    right: 72px;
    bottom: calc(55% + 8px);
  }
  .map-workspace.panel-open #mobile-layers {
    display: none;
  }
  .sheet-toggle {
    display: block;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 24px;
    border: 0;
    background: transparent;
    padding: 0;
  }
  .sheet-toggle::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 10px auto;
    border-radius: 2px;
    background: #b9c2bc;
  }
}

.advanced-settings {
  margin: 16px 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.advanced-settings summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 0;
}
.maplibregl-ctrl-scale {
  font-size: 11px !important;
}

/* ---------- Outils de carte : colonne de droite, fenêtres de calques, panneau repliable, recherche ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.map-right {
  position: absolute;
  top: 24px;
  right: 12px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100% - 70px);
  pointer-events: none;
}
.map-right > * {
  pointer-events: auto;
}
.map-right .map-navigation-rail {
  position: static;
}
.map-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-tools[hidden] {
  display: none;
}
.map-tool {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #dce2dd;
  border-radius: 5px;
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 4px #26382a18;
  cursor: pointer;
  touch-action: manipulation;
}
.map-tool:hover {
  background: #f1f5f1;
}
.map-tool[aria-expanded='true'],
.map-tool[aria-pressed='true'] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.map-tool:focus-visible,
.sidebar-toggle:focus-visible,
.map-popover-close:focus-visible {
  outline: 3px solid #618a72;
  outline-offset: 2px;
}
.map-popover {
  position: absolute;
  top: 24px;
  right: 68px;
  z-index: 9;
  width: 340px;
  max-width: calc(100% - 92px);
  max-height: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d6dfd4;
  border-radius: 8px;
  box-shadow: 0 8px 28px #20313a30;
}
.map-popover[hidden] {
  display: none;
}
.map-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 8px 6px 16px;
  border-bottom: 1px solid var(--line);
}
.map-popover-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
.map-popover-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.map-popover-close:hover {
  background: #eef2ee;
}
.map-popover-body {
  overflow: auto;
  padding: 6px 16px 16px;
  overscroll-behavior: contain;
}
.map-popover-body .base-switch {
  flex-wrap: wrap;
  margin-top: 8px;
}
.map-popover-body .base-switch button {
  min-height: 40px;
  font-size: 12px;
}
.map-popover-body #restore-map-banners {
  margin-top: 14px;
}
.popover-loading {
  margin: 10px 0;
}
/* Panneau latéral repliable (ordinateur) */
.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dce2dd;
  border-radius: 5px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
}
.sidebar-toggle:hover {
  background: #f1f5f1;
}
#sidebar-collapse {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px 0 0;
  z-index: 2;
}
#sidebar-expand {
  display: none;
  position: absolute;
  top: 24px;
  left: 12px;
  z-index: 8;
  width: 44px;
  height: 44px;
  box-shadow: 0 1px 4px #26382a18;
}
.atlas-shell.sidebar-collapsed .sidebar {
  display: none;
}
.atlas-shell.sidebar-collapsed #sidebar-expand {
  display: grid;
}
.atlas-shell.sidebar-collapsed .address-box {
  left: 68px;
}
/* Recherche : un seul champ, propositions pendant la saisie */
.address-box {
  top: 24px;
  left: 24px;
  width: 320px;
  max-width: calc(100% - 100px);
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.address-box form {
  position: relative;
  display: block;
}
.address-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 12px;
  border: 1px solid #c6d0d6;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  box-shadow: 0 2px 10px #20313a20;
}
.address-box input:focus-visible {
  outline: 3px solid #618a72;
  outline-offset: 1px;
}
.address-box input::-webkit-search-cancel-button {
  display: none;
}
.address-box #clear-address {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  font-size: 20px;
  color: var(--muted);
  border-radius: 6px;
}
.address-box #clear-address[hidden] {
  display: none;
}
.address-box #address-results:not(:empty) {
  margin-top: 6px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px #20313a30;
  max-height: 290px;
  overflow: auto;
}
.address-box #address-results button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  border-radius: 0;
  text-align: left;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.address-box #address-results button:hover,
.address-box #address-results button:focus-visible {
  background: #edf4f0;
}
.address-box #address-results strong,
.address-box #address-results small {
  display: block;
}
.address-box #address-results small {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.address-box .address-source {
  margin: 0;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--muted);
}
.address-box #address-status:empty {
  display: none;
}
.address-box #address-status {
  margin: 6px 0 0;
  padding: 6px 10px;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink);
  box-shadow: 0 2px 10px #20313a18;
}
@media (max-width: 700px) {
  #sidebar-collapse,
  .atlas-shell.sidebar-collapsed #sidebar-expand {
    display: none;
  }
  .atlas-shell.sidebar-collapsed .sidebar {
    display: block;
  }
  .atlas-shell.sidebar-collapsed .address-box {
    left: 12px;
  }
  .map-right {
    top: 12px;
    gap: 10px;
  }
  .map-tools {
    gap: 6px;
  }
  .address-box {
    top: 12px;
    left: 12px;
    right: auto;
    width: auto;
    max-width: none;
    right: 68px;
  }
  .map-popover {
    top: 12px;
    right: 64px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: calc(100% - 90px);
  }
}
