/* Nous trouver : deux panneaux de même hauteur, sans masquer les coordonnées. */
#kohen-contact .kohen-location-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch !important;
  gap: 28px !important;
}
#kohen-contact #kohen-infos,
#kohen-contact #kohen-map {
  width: 100%;
  min-width: 0;
  max-width: none !important;
  border-radius: 18px !important;
}
#kohen-contact #kohen-infos {
  overflow-wrap: anywhere;
}
#kohen-contact #kohen-map {
  position: relative;
  height: auto !important;
  min-height: 480px;
}
#kohen-contact #kohen-map > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 767px) {
  #kohen-contact .kohen-location-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px !important;
  }
  #kohen-contact #kohen-infos { padding: 26px !important; }
  #kohen-contact #kohen-map { min-height: 360px; }
}

/* Carte 3D : carte réelle, coordonnées accessibles dans le panneau HTML voisin. */
#kohen-map.kohen-map-3d { background: #f2eee5 !important; isolation: isolate; }
#kohen-map-canvas { position: absolute; inset: 0; }
#kohen-map .kohen-map-caption { position: absolute; z-index: 2; top: 22px; left: 22px; display: grid; gap: 5px; max-width: calc(100% - 145px); padding: 13px 16px; background: rgba(255,255,255,.94); border-radius: 12px; box-shadow: 0 3px 16px #443a2910; pointer-events: none; }
#kohen-map .kohen-map-caption span { color: #806d4b; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
#kohen-map .kohen-map-caption strong { color: #262626; font-size: 15px; font-weight: 600; line-height: 1.3; }
#kohen-map-reset { position: absolute; z-index: 2; top: 22px; right: 16px; background: #fff; border: 1px solid #ded8cb; color: #34322e; border-radius: 20px; padding: 10px 12px; font: 600 12px Lato,sans-serif; cursor: pointer; }
#kohen-map-status { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 24px; background: #f2eee5; color: #34322e; text-align: center; }
#kohen-map-status[hidden] { display: none; }
#kohen-map-status p { margin: 0; }
#kohen-map-status a { color: #1f4fa8; text-decoration: underline; }
.kohen-map-pin { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.kohen-map-pin span { white-space: nowrap; border-radius: 9px; padding: 8px 12px; background: #1f4fa8; color: #fff; font: 700 13px Lato,sans-serif; box-shadow: 0 4px 16px #203d6840; }
.kohen-map-pin i { display: block; width: 14px; height: 14px; background: #1f4fa8; border: 3px solid #fff; border-radius: 50%; margin-top: 8px; box-shadow: 0 0 0 5px #1f4fa825; }
#kohen-map .maplibregl-ctrl-attrib { font-size: 10px; }
@media (max-width: 767px) {
  #kohen-contact #kohen-map.kohen-map-3d { min-height: 420px; }
  #kohen-map .kohen-map-caption { top: 14px; left: 12px; padding: 10px 12px; max-width: calc(100% - 120px); }
  #kohen-map .kohen-map-caption strong { font-size: 13px; }
  #kohen-map-reset { top: 16px; right: 12px; }
}
#kohen-map.kohen-map-3d {
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
/* Coordonnées et manipulation explicite de la scène photographique. */
#kohen-map .kohen-map-caption { pointer-events: auto; max-width: calc(100% - 125px); }
#kohen-map .kohen-map-caption span { color: #434343; font-size: 12px; font-weight: 500; letter-spacing: 0; }
#kohen-map .kohen-map-caption small { font-size: 11px; color: #595959; }
#kohen-map-orbit { position:absolute; z-index:1; inset:0 0 42px; cursor:grab; touch-action:none; }
#kohen-map-orbit.is-dragging { cursor:grabbing; }
#kohen-map-orbit[hidden] { display:none; }
.kohen-map-tools { position:absolute; z-index:2; left:14px; bottom:78px; display:flex; gap:5px; flex-wrap:wrap; }
#kohen-map .kohen-map-tools button { background:rgba(255,255,255,.96); color:#252525; border:1px solid #d9d9d9; border-radius:8px; padding:9px 11px; font:600 12px Lato,sans-serif; cursor:pointer; }
#kohen-map .kohen-map-tools button[aria-pressed=true] { background:#1f4fa8; color:white; border-color:#1f4fa8; }
#kohen-map .kohen-map-help { position:absolute; z-index:2; left:14px; right:14px; bottom:43px; margin:0; padding:5px 8px; font:11px/1.4 Lato,sans-serif; color:#333; background:rgba(255,255,255,.92); border-radius:5px; pointer-events:none; }
#kohen-map-orbit:focus-visible { outline:3px solid #1f4fa8; outline-offset:-4px; }

/* La version 2D ne présente pas de commandes 3D ni d'informations budgétaires. */
#kohen-map[data-map-type="2d"] #kohen-map-orbit,
#kohen-map[data-map-type="2d"] .kohen-map-tools,
#kohen-map[data-map-type="2d"] .kohen-map-help,
#kohen-map[data-map-type="2d"] #kohen-map-reset { display:none !important; }

/* Existing translated pages hide the French details pane. */
.kohen-location-grid:has(> #kohen-infos[style*="display: none"]),.kohen-location-grid:has(> #kohen-infos[style*="display:none"]) {grid-template-columns:minmax(0,1fr) !important;}
/* Keep the French postal address readable inside RTL captions. */
#kohen-map .kohen-map-caption small { direction:ltr; unicode-bidi:isolate; }

/* Plan clair par défaut ; la photographie ne s'active que sur demande. */
#kohen-map.kohen-map-3d { background:#edf3f8 !important; border:1px solid #dce5ef; box-shadow:0 12px 36px rgba(30,57,88,.07); }
#kohen-map .kohen-plan-layer, #kohen-map .kohen-photo-layer { position:absolute; inset:0; }
#kohen-map[data-map-type="2d"] .kohen-photo-layer,
#kohen-map[data-map-type="photorealistic"] .kohen-plan-layer { visibility:hidden; pointer-events:none; }
#kohen-map .kohen-map-caption { top:18px;left:18px;max-width:calc(100% - 125px); padding:16px 18px; border:1px solid rgba(255,255,255,.95); background:rgba(255,255,255,.96); box-shadow:0 6px 24px rgba(30,57,88,.1); }
#kohen-map .kohen-map-caption strong {color:#163456;font-size:16px;}
#kohen-map .kohen-map-caption small {color:#536a80;}
#kohen-map-explore { position:absolute;z-index:3;left:18px;bottom:45px;min-height:46px;padding:12px 18px;border:1px solid #174990;border-radius:12px;background:linear-gradient(135deg,#1f4fa8,#2e6bd8);color:#fff;font:700 14px/1.3 Lato,sans-serif;box-shadow:0 6px 20px #1f4fa830;cursor:pointer; }
#kohen-map-explore:hover {background:#174990;}
#kohen-map-explore:disabled {background:#eef3f8;color:#536a80;border-color:#cbd9e6;cursor:default;box-shadow:none;}
#kohen-map[data-map-type="photorealistic"] #kohen-map-explore {bottom:117px;min-height:35px;padding:8px 12px;font-size:12px;background:white;color:#234567;border-color:#cad7e5;}
.kohen-location-pin {display:flex;flex-direction:column;align-items:center;pointer-events:none;}
.kohen-location-pin span {background:#173f79;color:#fff;font:700 13px/1.3 Lato,sans-serif;padding:9px 14px;border-radius:9px;box-shadow:0 6px 18px #173f7930;white-space:nowrap;}
.kohen-location-pin span::after {content:'';position:absolute;left:calc(50% - 5px);top:33px;border:5px solid transparent;border-top-color:#173f79;}
.kohen-location-pin i {display:block;background:#2e6bd8;width:15px;height:15px;border:3px solid white;border-radius:50%;margin-top:12px;box-shadow:0 0 0 9px #2e6bd820,0 3px 8px #173f7940;}
#kohen-map .maplibregl-ctrl-group {border-radius:10px;box-shadow:0 4px 16px #173f7920;border:1px solid #d6e1ed;overflow:hidden;}
#kohen-map .maplibregl-ctrl-bottom-right {bottom:40px;right:7px;}
#kohen-map .kohen-map-notice {position:absolute;z-index:3;left:18px;right:18px;bottom:99px;margin:0;padding:8px 11px;background:#ffffffed;color:#435972;border:1px solid #d8e3ef;border-radius:8px;font:12px/1.4 Lato,sans-serif;}
#kohen-map .kohen-map-notice[hidden] {display:none;}
@media(max-width:767px){
 #kohen-map .kohen-map-caption {max-width:calc(100% - 36px);left:12px;top:12px;padding:12px 14px;}
 #kohen-map[data-map-type="photorealistic"] .kohen-map-caption {max-width:calc(100% - 116px);}
 #kohen-map .kohen-map-caption strong {font-size:14px;}
 #kohen-map-explore {left:12px;bottom:42px;font-size:13px;}
}
#kohen-map[data-map-type="2d"] .kohen-photo-layer,
#kohen-map[data-map-type="photorealistic"] .kohen-plan-layer { opacity:0; }
