:root {
  --ink: #303234;
  --ink-soft: #6f7274;
  --paper: #f1f1ef;
  --white: #ffffff;
  --teal: #c95f19;
  --teal-bright: #e87524;
  --line: #ddddda;
  --green: #e87524;
  --green-soft: #fff5ed;
  --violet: #e87524;
  --orange: #e87524;
  --shadow: 0 18px 50px rgba(38, 40, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  min-height: 84px;
  padding: 14px 0;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(108deg, #393b3d 0%, #55585a 100%);
}

.topbar-inner {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.brand {
  grid-column: 1;
  justify-self: center;
  color: #fff;
  font-family: "Avenir Next", Montserrat, Futura, "Century Gothic", sans-serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
}

.workspace {
  width: min(1460px, calc(100% - 32px));
  min-height: 0;
  margin: 16px auto 12px;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.search-panel,
.map-column {
  height: 100%;
}

.search-panel,
.map-panel {
  border: 1px solid rgba(47, 49, 51, 0.1);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-panel {
  min-height: 0;
  padding: clamp(20px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vh, 20px);
  overflow: hidden;
}

.map-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-intro {
  width: 100%;
}

.panel-intro + .search-shell {
  margin-top: -6px;
}

.intro-kicker {
  margin: 0 0 3px;
  color: #806486;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: #806486;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #333638;
  font-size: clamp(1.22rem, 1.7vw, 1.42rem);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.intro-copy {
  width: 100%;
  max-width: none;
  margin: 5px 0 0;
  color: #747779;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: justify;
}

.search-shell {
  position: relative;
  z-index: 1001;
}

#address-input {
  width: 100%;
  min-height: 54px;
  padding: 0 48px 0 54px;
  border: 2px solid #c8c9c7;
  border-radius: 16px;
  outline: none;
  color: var(--ink);
  background: #fdfdfc;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

#address-input::placeholder {
  color: #95859a;
}

#address-input:focus {
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(232, 117, 36, 0.16);
}

.search-icon {
  position: absolute;
  top: 14px;
  left: 19px;
  width: 22px;
  height: 22px;
  border: 2px solid #d66b22;
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  right: -7px;
  bottom: -4px;
  border-radius: 99px;
  background: #d66b22;
  transform: rotate(45deg);
}

.spinner {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 2px solid #e7dce9;
  border-top-color: var(--teal-bright);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.spinner.visible {
  display: block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 290px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(38, 40, 42, 0.16);
}

.suggestions.visible {
  display: block;
}

.suggestion {
  width: 100%;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #eee6f0;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.suggestion:last-child {
  border-bottom: 0;
}

.suggestion:hover,
.suggestion.active {
  background: #fff3ea;
}

.suggestion strong {
  display: block;
  font-size: 0.94rem;
}

.suggestion small {
  display: block;
  margin-top: 4px;
  color: #817286;
}

.search-help {
  margin: 8px 0 0;
  color: #8d7e92;
  font-size: 0.77rem;
}

.result {
  min-height: 0;
  margin-top: 0;
  border-radius: 19px;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.street-view-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #d2d7dc;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4f5963;
  background: #e9ecef;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(64, 72, 80, 0.1);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.street-view-trigger[hidden] {
  display: none;
}

.street-view-trigger:hover {
  background: #dde2e6;
  box-shadow: 0 10px 22px rgba(64, 72, 80, 0.15);
  transform: translateY(-1px);
}

.street-view-trigger:focus-visible,
.street-view-close:focus-visible {
  outline: 3px solid rgba(232, 117, 36, 0.34);
  outline-offset: 3px;
}

.street-view-trigger-icon {
  position: relative;
  width: 17px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 11px 11px;
}

.street-view-trigger-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.street-view-trigger-icon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.result-empty {
  min-height: clamp(190px, 26vh, 250px);
  padding: 22px 18px;
  border: 1px dashed #cfd0cd;
  display: grid;
  place-items: center;
  align-content: center;
  color: #737678;
  text-align: center;
}

.empty-illustration {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 50%;
  color: #fff;
  background: #7a7d7f;
  display: grid;
  place-items: center;
}

.empty-illustration span {
  width: 14px;
  height: 18px;
  border: 2px solid #735d79;
  border-radius: 9px 9px 12px 12px;
  transform: rotate(14deg);
}

.result-empty h2,
.result-empty p {
  margin: 0;
}

.result-empty h2 {
  color: #3c3f41;
  font-size: 1rem;
}

.result-empty p {
  margin-top: 6px;
  font-size: 0.88rem;
}

.result-found,
.result-outside,
.result-error {
  padding: 18px;
  border: 1px solid;
}

.result-found {
  border-color: #f0b68c;
  background: var(--green-soft);
}

.result-outside {
  border-color: #cfd0cd;
  background: #f4f4f2;
}

.result-error {
  border-color: #e0aaa5;
  background: #fff0ee;
}

.result-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.result-symbol {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  font-size: 1.45rem;
  font-weight: 800;
}

.result-outside .result-symbol {
  position: relative;
  background: #777a7c;
  font-size: 0;
}

.result-outside .result-symbol::before,
.result-outside .result-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.result-outside .result-symbol::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.result-outside .result-symbol::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.result-error .result-symbol {
  background: #bb5d55;
}

.result-label {
  margin: 1px 0 3px;
  color: #b95514;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-outside .result-label {
  color: #666a6c;
}

.result-device-summary {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
}

.result-error .result-label {
  color: #99514a;
}

.result h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.address-confirmed {
  margin: 12px 0 0;
  padding: 8px 11px;
  border-radius: 10px;
  color: #55595b;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.83rem;
  line-height: 1.4;
}

.matches {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(65, 108, 73, 0.16);
}

.building-info {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(65, 108, 73, 0.16);
}

.housing-aids {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(65, 108, 73, 0.16);
  font-size: 0.82rem;
  line-height: 1.4;
}

.housing-aids h3 {
  margin: 0 0 8px;
  color: #a6531b;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.housing-aid-row { margin: 5px 0; overflow-wrap: anywhere; }
.housing-aid-row strong { font-weight: 650; }
.housing-aids a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.housing-aids a:hover, .housing-aids a:focus-visible { color: #a6531b; }
.anil-aides-list { margin-top: 8px; }

.urbanisme-info {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(65, 108, 73, 0.16);
  font-size: 0.82rem;
  line-height: 1.4;
}

.urbanisme-info h3 {
  margin: 0 0 5px;
  color: #a6531b;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.urbanisme-level, .urbanisme-note {
  margin: 0 0 7px;
  color: #727678;
  font-size: 0.74rem;
}

.urbanisme-row { margin: 4px 0; overflow-wrap: anywhere; }
.urbanisme-row strong { font-weight: 650; }
.urbanisme-info details { margin-top: 6px; color: #666a6c; font-size: 0.74rem; }
.urbanisme-info summary { cursor: pointer; }

.anil-aide-link {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(65, 108, 73, 0.15);
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.anil-aide-link + .anil-aide-link { margin-top: 6px; }
.anil-aide-link:hover, .anil-aide-link:focus-visible {
  border-color: #a6531b;
  outline-color: #a6531b;
}
.anil-aide-link span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}
.anil-aide-link small {
  display: block;
  margin-top: 3px;
  color: #6e7270;
  font-size: 0.75rem;
  line-height: 1.3;
}

.building-info .commune-row:first-of-type {
  margin-top: 8px;
}

.building-block + .building-block {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(65, 108, 73, 0.13);
}

.match + .match {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(65, 108, 73, 0.13);
}

.field-label {
  margin: 0 0 6px;
  color: #a6531b;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.device-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.commune-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.value-unknown,
.value-not-identified {
  font-style: italic;
}

.value-unknown {
  color: #777b7d;
}

.value-not-identified {
  color: #5d6163;
  font-weight: 500;
}

.fid {
  padding: 5px 9px;
  border-radius: 999px;
  color: #527554;
  background: #dcebd5;
  font-size: 0.72rem;
  font-weight: 800;
}

.result-context-copy {
  margin: 14px 0 0;
  color: #666a6c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.privacy-note {
  margin: auto 2px 0;
  padding-top: 24px;
  color: #879591;
  font-size: 0.7rem;
  line-height: 1.45;
}

.map-panel {
  --street-view-width: clamp(340px, 44%, 500px);
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.street-view-panel {
  position: absolute;
  z-index: 900;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--street-view-width);
  border-left: 1px solid rgba(47, 49, 51, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  box-shadow: -18px 0 42px rgba(38, 40, 42, 0.18);
}

.street-view-panel[hidden] {
  display: none;
}

.street-view-header {
  min-height: 72px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5e5e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.street-view-kicker {
  margin: 0 0 3px;
  color: #a6531b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.street-view-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.street-view-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d9d9d5;
  border-radius: 50%;
  color: #55595b;
  background: #f5f5f2;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.street-view-close:hover {
  color: #303234;
  background: #ecece8;
}

.street-view-address {
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid #ededeb;
  color: #65696b;
  background: #fafaf8;
  font-size: 0.78rem;
  line-height: 1.4;
}

.street-view-status {
  min-height: 200px;
  padding: 28px;
  flex: 1;
  display: grid;
  place-items: center;
  color: #686c6e;
  background: #f5f5f2;
  text-align: center;
  line-height: 1.5;
}

.street-view-status[hidden],
.street-view-frame[hidden] {
  display: none;
}

.street-view-frame {
  width: 100%;
  min-height: 200px;
  border: 0;
  flex: 1;
  background: #e1e2df;
}

#map {
  width: 100%;
  height: 100%;
  background: #e1e2df;
}

@media (min-width: 981px) {
  .map-panel.street-view-visible #map {
    width: calc(100% - var(--street-view-width));
  }
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-tile-pane {
  opacity: 0.6;
  filter: saturate(0.58) brightness(1.07) contrast(0.9);
}

.leaflet-control-scale {
  margin-right: 14px !important;
  margin-bottom: 28px !important;
}

.leaflet-control-scale-line {
  padding: 2px 7px 1px;
  border-color: #6d7072;
  color: #505355;
  background: rgba(255, 255, 255, 0.88);
  text-shadow: none;
  font-size: 0.68rem;
}

.leaflet-control-attribution {
  margin-left: 14px !important;
  margin-bottom: 22px !important;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(38, 40, 42, 0.16) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  border-color: #ece3ee !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(38, 40, 42, 0.18);
}

.leaflet-popup-content {
  min-width: 190px;
  margin: 17px 19px;
  line-height: 1.45;
}

.popup-label {
  color: #79687e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.popup-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.popup-commune {
  color: #6c7072;
  font-size: 0.82rem;
}

.address-marker {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.96);
  border-radius: 50% 50% 50% 0;
  background: var(--ink);
  box-shadow: 0 2px 9px rgba(38, 40, 42, 0.38);
  transform: rotate(-45deg);
}

.address-marker::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.map-status,
.map-legend {
  position: absolute;
  z-index: 700;
  border: 1px solid rgba(47, 49, 51, 0.1);
  border-radius: 999px;
  color: #5d6163;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 22px rgba(38, 40, 42, 0.11);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
}

.map-status {
  top: 14px;
  right: 14px;
  bottom: auto;
  padding: 8px 12px;
}

.map-legend {
  left: 14px;
  bottom: 60px;
  padding: 8px 11px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  display: flex;
  gap: 12px;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  width: 13px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}

.legend-zone {
  border: 1px solid #8f2f08;
  background: rgba(200, 74, 10, 0.62);
}

.map-sources {
  margin: 0 4px;
  color: #777b7d;
  font-size: 0.72rem;
  line-height: 1.45;
}

.map-sources strong {
  color: #55595b;
}

.map-sources a {
  color: #714d79;
  text-underline-offset: 2px;
}

footer {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto 26px;
  color: #8b7d90;
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.72rem;
}

@media (max-width: 980px) {
  body {
    height: auto;
    min-height: 100%;
    display: block;
    overflow: auto;
  }

  .topbar {
    min-height: 92px;
    padding-block: 17px;
  }

  .topbar-inner {
    width: min(100% - 28px, 760px);
    grid-template-columns: 1fr;
  }

  .workspace {
    width: min(100% - 28px, 760px);
    height: auto;
    margin-top: 20px;
    grid-template-columns: 1fr;
  }

  .search-panel,
  .map-column {
    height: auto;
  }

  .search-panel {
    overflow: visible;
  }

  .map-panel,
  #map {
    height: 520px;
  }

  .street-view-panel {
    width: min(58%, 480px);
  }

  .privacy-note {
    margin-top: 22px;
  }
}

@media (max-width: 540px) {
  .topbar {
    padding-inline: 0;
  }

  .topbar-inner {
    width: calc(100% - 18px);
  }

  .brand {
    font-size: 2rem;
    letter-spacing: 0.15em;
  }


  .workspace {
    width: calc(100% - 18px);
    gap: 14px;
  }

  .search-panel {
    padding: 25px 20px;
    gap: 24px;
    border-radius: 21px;
  }

  .result-empty {
    min-height: 190px;
  }

  .map-panel {
    border-radius: 21px;
  }

  .map-panel,
  #map {
    height: 450px;
  }

  .street-view-panel {
    top: auto;
    left: 0;
    width: 100%;
    min-width: 0;
    height: min(82%, 390px);
    border-top: 1px solid rgba(47, 49, 51, 0.14);
    border-left: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 36px rgba(38, 40, 42, 0.2);
  }

  .street-view-header {
    min-height: 64px;
    padding: 12px 15px;
  }

  .street-view-address {
    padding: 8px 15px;
  }

  .map-legend {
    display: none;
  }

  footer {
    width: calc(100% - 30px);
    flex-wrap: wrap;
    gap: 7px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Minihi categorical map legend */
.brand {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.brand:hover {
  opacity: 0.86;
}

.brand:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 5px;
  border-radius: 4px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  max-width: 300px;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.legend-swatch {
  width: 13px;
  height: 10px;
  border: 2px solid;
  border-radius: 3px;
  flex: 0 0 auto;
}

.legend-opah-ru { border-color: #67274e; background: rgba(154, 63, 117, 0.32); }
.legend-pig { border-color: #8f3034; background: rgba(201, 75, 80, 0.32); }
.legend-opah-d { border-color: #a6531c; background: rgba(224, 122, 50, 0.32); }
.legend-popac { border-color: #916d13; background: rgba(210, 161, 42, 0.32); }


/* Grayscale OSM base */
.leaflet-tile-pane {
  filter: grayscale(0.92) saturate(0.2) brightness(1.04) contrast(0.96);
}


/* Legal and privacy additions — 2026-09-22 */
.street-view-consent {
  min-height: 200px;
  padding: 28px;
  flex: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #5f6365;
  background: #f5f5f2;
  text-align: center;
  line-height: 1.5;
}

.street-view-consent[hidden] {
  display: none;
}

.street-view-consent p {
  max-width: 36ch;
  margin: 0;
  font-size: 0.82rem;
}

.street-view-consent strong {
  color: #393d3f;
}

.street-view-load {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #cfd3d6;
  border-radius: 10px;
  color: #3f484f;
  background: #fff;
  font-weight: 750;
  cursor: pointer;
}

.street-view-load:hover,
.street-view-load:focus-visible {
  border-color: #a6531b;
  outline-color: #a6531b;
}

.street-view-consent-more a,
.legal-links a {
  color: #714d79;
  text-underline-offset: 2px;
}

.source-freshness,
.eligibility-disclaimer,
.legal-links {
  display: inline;
}

.eligibility-disclaimer {
  color: #64686a;
}

.legal-links {
  white-space: normal;
}


/* Footer documentation links — 2026-09-22 */
.map-meta {
  margin: 0 4px;
  color: #777b7d;
  font-size: 0.72rem;
  line-height: 1.45;
}

.map-meta p {
  margin: 0;
}

.map-meta .eligibility-disclaimer {
  color: #64686a;
}

.map-meta .eligibility-disclaimer strong {
  color: #55595b;
}

.map-meta-links {
  margin-top: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 5px;
  text-align: center;
}

.map-meta-links > a {
  color: #714d79;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.map-copyright {
  margin: 0 0 2px !important;
  color: #85898b;
}


/* Embedded Minihi — ?embed=1 */
html.embed-mode body {
  background: #fff;
}

html.embed-mode .topbar {
  min-height: 52px;
  padding: 8px 0;
}

html.embed-mode .topbar-inner {
  width: calc(100% - 16px);
  grid-template-columns: 1fr;
}

html.embed-mode .brand {
  grid-column: 1;
  justify-self: start;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}

html.embed-mode .workspace {
  width: calc(100% - 16px);
  margin: 8px auto;
  gap: 10px;
}

html.embed-mode .search-panel,
html.embed-mode .map-panel {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(38, 40, 42, 0.08);
}

@media (max-width: 980px) {
  html.embed-mode .topbar {
    min-height: 52px;
    padding-block: 8px;
  }

  html.embed-mode .topbar-inner,
  html.embed-mode .workspace {
    width: calc(100% - 16px);
  }

  html.embed-mode .workspace {
    margin-top: 10px;
  }
}

@media (max-width: 540px) {
  html.embed-mode .brand {
    font-size: 1.2rem;
  }

  html.embed-mode .workspace {
    gap: 10px;
  }

  html.embed-mode .search-panel,
  html.embed-mode .map-panel {
    border-radius: 16px;
  }
}


/* Rubriques natives : positions fixes, mise en forme sobre et focus clavier. */
.result-section {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(65, 108, 73, 0.16);
}
.result-section > summary {
  cursor: pointer;
  color: #a6531b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.result-section[open] > summary { margin-bottom: 8px; }
.result-section > summary:focus-visible {
  outline: 2px solid #a6531b;
  outline-offset: 3px;
}
.urbanisme-info.result-section summary { color: #a6531b; font-size: 0.78rem; }

/* Même rythme entre variables, sans séparateurs à l’intérieur des rubriques. */
.result-section .commune-row,
.result-section .housing-aid-row,
.result-section .urbanisme-row {
  margin: 7px 0 0;
}
.result-section .building-block + .building-block {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.device-section .anah-convention-link,
.device-section .anah-convention-link:visited {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.device-section .anah-convention-link:hover,
.device-section .anah-convention-link:focus-visible {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-section .match + .match {
  margin-top: 7px;
  padding-top: 0;
  border-top: 0;
}

