/* Maquette 3D du quartier : bloc, étiquette du 86, pied avec liens et attribution. */
.plan3d {
  --plan3d-bg: #f4f0e8;
  --plan3d-gold: #b19777;
  --plan3d-ink: #3b352c;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--plan3d-bg);
  color: var(--plan3d-ink);
  font-size: 14px;
  line-height: 1.4;
}

.plan3d-stage,
.plan3d-fallback {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.plan3d-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.plan3d-stage canvas:active {
  cursor: grabbing;
}

.plan3d-fallback {
  display: block;
  object-fit: cover;
}

/* Quand la maquette tourne, l'image de repli s'efface. */
.plan3d--live .plan3d-fallback {
  display: none;
}

.plan3d-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}

.plan3d-label-box {
  position: absolute;
  left: 0;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 4px 10px 5px;
  border: 1px solid var(--plan3d-gold);
  background: rgba(255, 253, 248, 0.93);
  box-shadow: 0 2px 8px rgba(60, 48, 30, 0.12);
  text-align: center;
  white-space: nowrap;
  line-height: 1.25;
}

/* Petite pointe dorée vers le repère. */
.plan3d-label-box::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 1px;
  height: 8px;
  background: var(--plan3d-gold);
}

.plan3d-label-name {
  display: block;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.plan3d-label-addr {
  display: block;
  font-size: 0.86em;
  color: #6f6555;
}

.plan3d-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 8px 2px 0;
  font-size: 12px;
  color: #6f6555;
}

.plan3d-foot a {
  color: inherit;
}

.plan3d-foot .plan3d-route {
  color: var(--plan3d-ink);
  font-weight: 600;
  text-decoration-color: var(--plan3d-gold);
  text-underline-offset: 3px;
}

.plan3d-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--plan3d-gold);
  background: rgba(255, 253, 248, 0.92);
}

.plan3d-zoom button {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  background: none;
  color: var(--plan3d-ink);
  font: 18px/1 system-ui, sans-serif;
  cursor: pointer;
}

.plan3d-zoom button + button {
  border-top: 1px solid rgba(177, 151, 119, 0.5);
}

.plan3d-zoom button:hover {
  background: rgba(177, 151, 119, 0.15);
}

.plan3d-zoom button:focus-visible {
  outline: 2px solid var(--plan3d-gold);
  outline-offset: -2px;
}
