/* PAGE
   (.page/.page__card/.page__header/.page__title/.page__back
   vivent dans main.css — ici juste les surcharges propres a la fiche map) */
.page{ --page-w: 1240px; }

.page__title{ color: var(--green); }

/* =========================
   STAGE (plan + overlay SVG)
========================= */
.mapDetail{
  padding: 16px 18px 22px;
}

.mapDetail__stage{
  position: relative;
  width: 100%;
  max-width: 1007px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12,15,16,.5);
  border: 1px solid rgba(219,219,219,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.mapDetail__plan{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.mapDetail__overlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mapDetail__room{
  fill: rgba(61,206,97,0);
  stroke: rgba(219,219,219,.28);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline: none;
  transition: fill .15s ease, stroke .15s ease;
}

.mapDetail__room:hover,
.mapDetail__room:focus-visible{
  fill: rgba(61,206,97,.28);
  stroke: rgba(61,206,97,.95);
  stroke-width: 3;
}

.mapDetail__room--breaker{
  stroke-dasharray: 4 4;
}

/* =========================
   MODALE DETAIL PIECE
========================= */
.roomModal{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}
.roomModal.is-open{ display: block; }

.roomModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}

.roomModal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(620px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(219,219,219,.12);
  background: rgba(12,15,16,.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(0,0,0,.60);
}

.roomModal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(219,219,219,.16);
  background: rgba(12,15,16,.66);
  color: rgba(219,219,219,.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.roomModal__close:hover{
  border-color: rgba(61,206,97,.35);
  color: var(--green);
}

.roomModal__img{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,.35);
}
.roomModal__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.roomModal__body{
  padding: 16px 18px 20px;
  display: grid;
  gap: 10px;
}

.roomModal__head{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.roomModal__name{
  margin: 0;
  color: var(--green);
  font-family: "ZombiesBrainless","LazyDog",system-ui,sans-serif;
  font-weight: lighter;
  letter-spacing: .10em;
  font-size: 20px;
}

.roomModal__breaker{
  font-size: 11px;
  letter-spacing: .10em;
  color: rgba(255,190,90,.95);
  border: 1px solid rgba(255,190,90,.30);
  background: rgba(255,190,90,.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.roomModal__desc{
  margin: 0;
  color: rgba(219,219,219,.85);
  font-size: 13px;
  letter-spacing: .05em;
  line-height: 1.5;
}

.roomModal__notes{
  margin: 0;
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.5;
  color: rgba(61,206,97,.90);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(61,206,97,.06);
  border: 1px solid rgba(61,206,97,.16);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 720px){
  .mapDetail{ padding: 12px 12px 18px; }
  .roomModal__name{ font-size: 17px; }
}
