/* Panneau d'interactions sous une photo agrandie (carte + galerie).
   Conçu pour un fond de lightbox sombre. */

.pp {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: left;
  color: #f3efe6;
  font-family: "Inter", system-ui, sans-serif;
}
.pp-hide { display: none !important; }

/* ---- Navigation entre plusieurs photos prises au même endroit ----
   (partagé par la carte et la galerie ; valeurs de repli si les
   variables du thème ne sont pas définies sur la page) */
.lb-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 16, 12, 0.62);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.lb-arrow:hover {
  background: rgba(20, 16, 12, 0.9);
}
.lb-arrow.prev { left: 10px; }
.lb-arrow.next { right: 10px; }

#lbNav {
  margin-top: 12px;
}
#lbCounter {
  font-size: 13px;
  color: #d8d1c4;
  margin-bottom: 8px;
}
#lbDates {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}
.lb-date {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.11);
  color: #f3efe6;
  transition: background 0.15s;
}
.lb-date:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lb-date.on {
  background: var(--yellow, #f0be2a);
  border-color: var(--yellow, #f0be2a);
  color: #2b2205;
}

@media (max-width: 640px) {
  .lb-arrow {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

/* Rangée de boutons */
.pp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.pp-actions button,
.pp-actions .pp-add {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.13);
  color: #f3efe6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pp-actions button:hover:not(:disabled),
.pp-actions .pp-add:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Bouton « Ajouter une photo ici » (même position GPS) */
.pp-actions .pp-add {
  background: rgba(109, 154, 60, 0.26);
  border-color: rgba(150, 205, 90, 0.65);
  color: #d8f0b8;
}
.pp-actions .pp-add:hover {
  background: rgba(109, 154, 60, 0.4);
}
.pp-like.on {
  background: rgba(224, 73, 73, 0.24);
  border-color: rgba(255, 145, 145, 0.6);
}
.pp-like-n,
.pp-c-n {
  font-variant-numeric: tabular-nums;
}

/* Bouton « Signaler une erreur » : bien visible (ambre) */
.pp-actions .pp-rbtn {
  background: rgba(240, 190, 42, 0.22);
  border-color: rgba(240, 190, 42, 0.75);
  color: #ffd98a;
}
.pp-actions .pp-rbtn:hover:not(:disabled) {
  background: rgba(240, 190, 42, 0.34);
}
.pp-actions .pp-rbtn:disabled {
  cursor: default;
  opacity: 0.95;
  background: rgba(109, 154, 60, 0.28);
  border-color: rgba(140, 200, 90, 0.6);
  color: #d8f0b8;
}

/* Formulaires (signalement + commentaire) */
.pp-rform,
.pp-cform {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.pp textarea,
.pp input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: #fffdf9;
  color: #211d18;
  resize: vertical;
}
.pp textarea:focus,
.pp input[type="email"]:focus {
  outline: none;
  border-color: #6d9a3c;
  box-shadow: 0 0 0 3px rgba(109, 154, 60, 0.35);
}
.pp-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-send {
  background: #6d9a3c;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.pp-send:hover {
  background: #4f7a2c;
}
.pp-rout,
.pp-cout {
  font-size: 13px;
  color: #ffd98a;
}

/* Formulaire enrichi « proposer une correction » */
.pp-rcorr { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #ffd98a; }
.pp-rcorr span { font-weight: 400; color: #c9c2b6; }
.pp-rl { display: block; font-size: 12px; color: #c9c2b6; margin: 8px 0 3px; }
.pp-rform select,
.pp-rform input[type="text"],
.pp-rform input[type="number"] {
  width: 100%; font: inherit; font-size: 14px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: #fffdf9; color: #211d18;
}
.pp-rdates { display: none; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pp-rdates span { display: none; align-items: center; gap: 4px; color: #f3efe6; }
.pp-rdates span.on { display: inline-flex; }
.pp-rdates input, .pp-rdates select { width: auto; }
.pp-rdates input[type="number"] { width: 92px; }
.pp-rposbtn {
  font: inherit; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.13); color: #f3efe6; cursor: pointer;
}
.pp-rposbtn:hover { background: rgba(255, 255, 255, 0.22); }
.pp-rposmap { height: 200px; border-radius: 10px; margin-top: 8px; overflow: hidden; }
.pp-rposinfo { font-size: 12.5px; color: #d8f0b8; margin-top: 4px; }

/* Commentaires */
.pp-comments {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 12px;
}
.pp-clist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
  max-height: 240px;
  overflow-y: auto;
}
.pp-c {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 11px;
}
.pp-c-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c9c2b6;
}
.pp-c-head strong {
  color: #f3efe6;
  font-size: 13px;
  font-weight: 600;
}
.pp-c-del {
  margin-left: auto;
  background: none;
  border: none;
  color: #c9c2b6;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
}
.pp-c-del:hover {
  color: #ff9a8a;
}
.pp-c-body {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 3px;
  white-space: pre-wrap;
  word-break: break-word;
}
.pp-note {
  font-size: 13px;
  color: #c9c2b6;
  margin: 6px 0;
  text-align: center;
}
.pp-note a {
  color: #ffd98a;
  font-weight: 600;
}

/* 📖 Histoire de la rue */
.pp-rue { margin-top: 12px; }
.pp-ruebtn {
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(240, 190, 42, 0.5);
  background: rgba(240, 190, 42, 0.16);
  color: #ffe6a6;
}
.pp-ruebtn:hover { background: rgba(240, 190, 42, 0.26); }
.pp-ruebox {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}
.pp-rue-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  color: #ffe6a6;
  margin-bottom: 8px;
}
.pp-rue-text {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #ece6da;
}

@media (max-width: 560px) {
  .pp-actions button {
    font-size: 13px;
    padding: 9px 13px;
  }
}

/* ===== Responsive mobile (ajouts partagés carte + galerie) ===== */
@media (max-width: 760px) {
  .pp { margin-top: 14px; }
  .pp-actions { gap: 8px; }
  .pp-actions button,
  .pp-actions .pp-add {
    font-size: 13px;
    padding: 9px 13px;
  }
  /* >=16px pour éviter le zoom auto de iOS au focus */
  .pp textarea,
  .pp input[type="email"] { font-size: 16px; }
  .pp-send { font-size: 15px; padding: 10px 16px; }
  .pp-foot { flex-wrap: wrap; }
  #lbDates { gap: 6px; }
  .lb-date { font-size: 12px; padding: 5px 11px; }
}

@media (max-width: 460px) {
  .lb-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
  .lb-arrow.prev { left: 6px; }
  .lb-arrow.next { right: 6px; }
  .pp-actions button,
  .pp-actions .pp-add {
    font-size: 12.5px;
    padding: 8px 11px;
    gap: 4px;
  }
  .pp-clist { max-height: 200px; }
}
