.demande-mini-carte[data-demande-mini="false"] { display: none; }
.demande-territoires { border-top: 1px solid #d5dcdd; padding-top: 12px; }
.demande-territoires > summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 10px 0; }

.demande-suggestions {
  --hauteur-suggestions: min(720px, calc(100dvh - 64px));
  width: min(560px, calc(100% - 48px));
  max-height: var(--hauteur-suggestions);
  overflow: hidden;
  margin: auto;
  padding: 0;
  color: #0f1c24;
  background: #fbf9f2;
  border: 1px solid #d5dcdd;
  border-radius: 12px;
  box-shadow: 0 24px 70px #0f1c2430;
}
.demande-suggestions::backdrop { background: #0f1c2480; }
.demande-suggestions-corps { display: flex; flex-direction: column; gap: 12px; max-height: calc(var(--hauteur-suggestions) - 2px); padding: 24px; }
.demande-suggestions-liste { display: grid; gap: 8px; flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px; margin-inline: -4px; }
.demande-suggestions-poignee { display: none; }
.demande-suggestions-entete { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.demande-suggestions h2 { margin: 0; font: 700 clamp(28px, 4vw, 38px)/1.03 'Cormorant Garamond', Georgia, serif; }
.demande-suggestions p { margin: 0; font-size: 13px; line-height: 1.5; }
.demande-suggestions .demande-surtitre { display: block; margin-bottom: 4px; font-size: 10px; }
.demande-suggestions-fermer { background: transparent; border: 0; width: 44px; height: 44px; color: inherit; cursor: pointer; font-size: 24px; flex: none; }
.demande-suggestions-garde { background: #f4ecd8; padding: 10px 12px; border: 1px solid #e2d5b8; }
.demande-suggestion {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #d5dcdd;
  color: inherit;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
}
.demande-suggestion[aria-checked="true"] { border-color: #a66d36; background: #fcf4e4; }
.demande-suggestion img, .demande-suggestion-sans-photo { display: block; width: 76px; height: 48px; border-radius: 4px; object-fit: cover; }
.demande-suggestion-sans-photo { display: grid; place-items: center; background: #eee8da; color: #925015; }
.demande-suggestion strong, .demande-suggestion small { display: block; }
.demande-suggestion small { color: #50626b; }
.demande-suggestion-marque { width: 19px; height: 19px; border: 1px solid #64727a; color: transparent; text-align: center; line-height: 17px; }
.demande-suggestion[aria-checked="true"] .demande-suggestion-marque { border-color: #a66d36; background: #f6a72d; color: #0f1c24; }
.demande-suggestions-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.demande-suggestions-actions button { min-height: 44px; padding: 8px 14px; cursor: pointer; font-size: 13px; }
.demande-suggestions-passer { border: 0; background: transparent; color: #744318; text-decoration: underline; text-underline-offset: 3px; }
.demande-suggestions-ajouter { background: #132e3d; border: 1px solid #132e3d; color: white; }
.demande-suggestions-ajouter { border-radius: 6px; font-weight: 600; }
.demande-suggestions-ajouter:disabled { background: #e5e7e3; color: #536168; border-color: #d6dbd7; cursor: default; }
.demande-suggestions :focus-visible, .demande-atlas :focus-visible { outline: 2px solid #a66d36; outline-offset: 3px; }

.demande-atlas { min-width: 0; }
.demande-atlas .atlas-local { margin: 0; }
.demande-atlas .atlas-local-head { padding: 14px; }
.demande-atlas .atlas-local-view, .demande-atlas-vide { min-height: 235px; }
.demande-atlas .atlas-local-view { height: auto; aspect-ratio: 1.45; }
.demande-atlas .atlas-local-dessin { width: 100%; height: 100%; }
.demande-atlas .atlas-local-road.is-main { stroke: #857e71; stroke-width: 1.45; }
.demande-atlas .atlas-local-trace { stroke: #9b561a; stroke-width: 2.25; fill: none; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; }
.demande-atlas .atlas-local-etape { fill: #9b561a; stroke: #fff8e8; stroke-width: 1.5; }
.demande-atlas .atlas-local-label .atlas-local-numero { fill: white; stroke: none; font-size: 11px; }
.demande-atlas [aria-expanded="true"] .atlas-local-etape { fill: #132e3d; stroke: #f6a72d; stroke-width: 2; }
.demande-atlas .atlas-explore-panel:not([hidden]) { position: relative; inset: auto; width: auto; max-height: none; padding: 12px 44px 12px 12px; border: 0; border-top: 1px solid #d5dcdd; box-shadow: none; min-height: 72px; }
.demande-atlas [data-atlas-panel-photo] { float: left; width: 86px; height: 62px; margin-right: 12px; object-fit: cover; }
.demande-atlas [data-atlas-panel-photo][hidden] { display: none; }
.demande-atlas .atlas-explore-frame:has(.atlas-explore-panel:not([hidden])) .atlas-local-controls { right: 12px; }
.demande-atlas-vide { background: #f2efe3; border: 1px solid #d5dcdd; display: grid; place-content: center; gap: 8px; padding: 16px; text-align: center; }
.demande-atlas-vide svg { width: 110px; height: 110px; margin: auto; fill: #dce3d9; stroke: #758c8f; stroke-width: 1.25; }
.demande-atlas-zone { fill: #e1b876; }
.demande-atlas-etapes { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 8px 10px; list-style: none; background: #f8f7ef; border-top: 1px solid #d5dcdd; }
.demande-atlas-etapes button { min-height: 44px; padding: 6px 10px; border: 1px solid #d5dcdd; color: #132e3d; background: #fff; cursor: pointer; font-size: 12px; }
.demande-atlas-note { margin: 8px 0 0; color: #50626b; font-size: 12px; }

@media (max-width: 759px) {
  .demande-suggestions { --hauteur-suggestions: 88dvh; width: 100%; max-width: 100%; inset: auto 0 0; margin: 0; border-radius: 16px 16px 0 0; }
  .demande-suggestions-corps { padding: 10px 15px max(12px, env(safe-area-inset-bottom)); gap: 9px; }
  .demande-suggestions-poignee { display: block; align-self: center; width: 36px; height: 4px; border-radius: 4px; background: #b8afa1; flex: none; }
  .demande-suggestion { padding-inline: 8px; gap: 9px; }
  .demande-suggestion img, .demande-suggestion-sans-photo { width: 62px; height: 42px; }
  .demande-suggestions-actions { flex-direction: column-reverse; }
  .demande-atlas .atlas-local-view { aspect-ratio: 1.4; }
}
