/* Fiche lieu (recommandations/templates/recommandations/fiche_lieu.html) : note, critères, prix, recommandations. */

.lieu-entete {
  padding-top: var(--esp-5);
}

.lieu-commune {
  margin: 0 0 var(--esp-1);
  color: var(--encre-douce);
  font-weight: 600;
}

.lieu-nom {
  font: 400 2rem/1 var(--affiche);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.lieu-bloc {
  margin-top: var(--esp-6);
}

.lieu-sous-titre {
  margin: var(--esp-5) 0 var(--esp-2);
  font-size: 1rem;
}

.lieu-texte-doux {
  color: var(--encre-douce);
  font-size: 0.875rem;
}

/* La note du lieu : « 4,3 /5 » */
.lieu-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--esp-1) var(--esp-4);
  padding: var(--esp-4);
  border-radius: var(--rayon-md);
  background: var(--carton);
  box-shadow: var(--ombre-carte);
}

.lieu-note-valeur {
  margin: 0;
  color: var(--encre-douce);
  font-weight: 600;
}

.lieu-note-chiffre {
  color: var(--encre);
  font: 800 2.5rem/1 var(--texte);
}

.lieu-note-nombre {
  margin: 0;
  color: var(--encre-douce);
}

/*
 * Barres des critères et de la répartition. La CSP interdit style="width: …" : la largeur est une classe,
 * de .jauge-0 à .jauge-100 par pas de 5 (filtre « jauge », recommandations/templatetags/jauges.py).
 */
.jauges {
  margin: 0;
}

.jauge-ligne {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-1) var(--esp-3);
  padding: var(--esp-1) 0;
}

.jauge-ligne dt {
  flex: 1 1 8rem;
}

.jauge-ligne dd {
  display: flex;
  align-items: center;
  gap: var(--esp-2);
  margin: 0;
}

.jauge {
  display: block;
  width: 7rem;
  height: var(--esp-2);
  overflow: hidden;
  border-radius: var(--rayon-pilule);
  background: var(--trait);
}

.jauge-remplie {
  display: block;
  height: 100%;
  border-radius: var(--rayon-pilule);
  background: var(--lagon);
}

.jauge-valeur {
  min-width: 2.5rem;
  font: 600 0.875rem/1.5 var(--texte);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.jauge-0 { width: 0%; }
.jauge-5 { width: 5%; }
.jauge-10 { width: 10%; }
.jauge-15 { width: 15%; }
.jauge-20 { width: 20%; }
.jauge-25 { width: 25%; }
.jauge-30 { width: 30%; }
.jauge-35 { width: 35%; }
.jauge-40 { width: 40%; }
.jauge-45 { width: 45%; }
.jauge-50 { width: 50%; }
.jauge-55 { width: 55%; }
.jauge-60 { width: 60%; }
.jauge-65 { width: 65%; }
.jauge-70 { width: 70%; }
.jauge-75 { width: 75%; }
.jauge-80 { width: 80%; }
.jauge-85 { width: 85%; }
.jauge-90 { width: 90%; }
.jauge-95 { width: 95%; }
.jauge-100 { width: 100%; }

/* Prix payé médian */
.lieu-prix-liste {
  margin: 0 0 var(--esp-2);
  padding: 0;
  list-style: none;
}

.lieu-prix-liste li {
  display: flex;
  flex-direction: column;
  padding: var(--esp-2) 0;
}

.lieu-prix-montant {
  font: 800 1.5rem/1.2 var(--texte);
}

.lieu-prix-detail {
  color: var(--encre-douce);
  font-size: 0.875rem;
}

/* Sans prix déclaré : l'estimation d'après la catégorie, plus discrète qu'un prix médian */
.lieu-prix-estime {
  margin: 0;
  padding: var(--esp-2) 0;
}

.lieu-prix-estime .lieu-prix-montant {
  font-size: 1.125rem;
}

.lieu-prix a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  color: var(--vermillon);
}

/* « Recommandation réservée aux visiteurs » */
.lieu-porte {
  margin: var(--esp-5) 0;
  padding: var(--esp-4);
  border-radius: var(--rayon-md);
  background: var(--soleil-pale);
}

.lieu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
}

.lieu-tri-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
}

.lieu-tri-ligne select {
  flex: 1 1 12rem;
}

/* Les recommandations */
.recommandations {
  display: flex;
  flex-direction: column;
  gap: var(--esp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommandations-suite {
  display: flex;
  justify-content: center;
}

.recommandation {
  padding: var(--esp-4);
  border-radius: var(--rayon-sm);
  background: var(--carton);
  box-shadow: var(--ombre-carte);
}

.recommandation-entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--esp-3);
}

.recommandation-auteur {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.recommandation-auteur a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
}

.recommandation-moi {
  color: var(--encre-douce);
  font-weight: 400;
}

.recommandation-note {
  margin: 0;
  font: 800 1.25rem/1.2 var(--texte);
  white-space: nowrap;
}

.recommandation-sur {
  color: var(--encre-douce);
  font-size: 0.875rem;
  font-weight: 600;
}

/* La preuve de passage : une étiquette de bagage lagon (composants/etiquette-bagage.css). */
.recommandation-preuve {
  margin: var(--esp-1) 0 var(--esp-2);
}

.recommandation-contexte {
  color: var(--encre-douce);
  font-size: 0.875rem;
}

.recommandation-criteres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-1) var(--esp-4);
  margin: 0 0 var(--esp-3);
  font-size: 0.8125rem;
}

.recommandation-criteres div {
  display: flex;
  gap: var(--esp-1);
}

.recommandation-criteres dt {
  color: var(--encre-douce);
}

.recommandation-criteres dd {
  margin: 0;
  font-family: var(--texte);
  font-variant-numeric: tabular-nums;
}

.recommandation-texte {
  display: flex;
  gap: var(--esp-2);
}

.recommandation-signe {
  flex: none;
  width: 1rem;
  color: var(--lagon);
  font-weight: 800;
}

/* Ce qu'une personne a écrit (charte : police manuscrite, 18 px au moins) */
.recommandation-manuscrit {
  font: 500 1.3125rem/1.25 var(--manuscrit);
  overflow-wrap: anywhere;
}

.recommandation-prix {
  font-weight: 600;
}

.recommandation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--esp-2);
}

.recommandation-signaler {
  color: var(--encre-douce);
}

.utile form,
.utile-nombre {
  margin: 0;
}

.utile-nombre {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  color: var(--encre-douce);
}

.bouton-utile[aria-pressed="true"] {
  border-color: var(--vermillon);
  background: var(--vermillon-pale);
}

/*
 * Les mentions des sources et licences (ADR 0048) : à part du contenu de postrip, en pied de fiche, dans la
 * police du système (--mention), petites et grises, liens compris ; rien de la charte (ni vermillon, ni Figtree).
 */
.lieu-source {
  margin-top: var(--esp-6);
  padding-top: var(--esp-3);
  border-top: 1px solid var(--trait);
  color: var(--encre-douce);
  font: 400 0.75rem/1.5 var(--mention);
}

.lieu-source-titre {
  margin: 0 0 var(--esp-1);
  font: 600 0.75rem/1.5 var(--mention);
}

.lieu-source p,
.lieu-source ul {
  margin: 0;
}

.lieu-source ul {
  padding: 0;
  list-style: none;
}

.lieu-source a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  color: var(--encre-douce);
}

.lieu-source-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--esp-4);
}

/* « 4,6 chez les voyageurs qui te ressemblent » (note « pour toi », ADR 0021, § 6 bis) */
.lieu-pour-toi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--esp-2);
  margin: var(--esp-2) 0 0;
  color: var(--encre-douce);
  font-weight: 600;
}

.lieu-pour-toi-chiffre {
  color: var(--lagon);
  font: 800 1.5rem/1 var(--texte);
}

/* 4.4 : la photo en tête, une carte postale ou une photo de Wikimedia Commons, avec son crédit. */
.lieu-photo {
  margin: var(--esp-4) 0 0;
}

.lieu-photo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  border-radius: var(--rayon-md);
  background: var(--chargement);
  object-fit: cover;
  box-shadow: var(--ombre-carte);
}

/*
 * Sans photo : une illustration de carte postale (illustration_du_lieu.html), aux couleurs de la charte, avec
 * sans texte : le nom du lieu est dans le titre.
 */
.lieu-illustration-cadre {
  position: relative;
  aspect-ratio: 5 / 3;
  max-height: 22rem;
  overflow: hidden;
  border-radius: var(--rayon-md);
  box-shadow: var(--ombre-carte);
}

.lieu-photo-legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--esp-1);
  margin-top: var(--esp-1);
  color: var(--encre-douce);
  font-size: 0.8125rem;
}

.lieu-photo-legende a,
.lieu-trajet-lien,
.lieu-liens-sortants a {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
}

/* 4.6 : « Envie » sous le nom du lieu. */
.lieu-envie {
  margin: var(--esp-3) 0;
}

/* 4.5 : les infos pratiques, confirmées par les visiteurs ou lues dans la source. */
.lieu-infos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lieu-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--esp-2);
  padding: var(--esp-2) 0;
  border-bottom: 1px solid var(--trait);
}

.lieu-info-texte {
  font-weight: 700;
}

.lieu-info-texte::before {
  content: "✓ " / "";
  color: var(--sapin);
}

.lieu-info-non .lieu-info-texte::before {
  content: "✕ " / "";
  color: var(--danger);
}

.lieu-info-origine {
  color: var(--encre-douce);
  font-size: 0.875rem;
}

.lieu-questions {
  margin-top: var(--esp-4);
  padding: var(--esp-3) var(--esp-4);
  border-radius: var(--rayon-md);
  background: var(--sapin-pale);
}

.lieu-questions-titre {
  display: flex;
  align-items: center;
  min-height: var(--cible-tactile);
  font-weight: 700;
  cursor: pointer;
}

.lieu-question {
  margin: var(--esp-3) 0;
  padding: 0;
  border: 0;
}

.lieu-question legend {
  margin-bottom: var(--esp-2);
  font-weight: 600;
}

.lieu-question-choix {
  display: flex;
  flex-wrap: wrap;
  gap: var(--esp-2);
}

.formulaire .lieu-question-reponse {
  display: inline-flex;
  align-items: center;
  gap: var(--esp-2);
  min-height: var(--cible-tactile);
  padding: 0 var(--esp-3);
  border: var(--trait-epaisseur) solid var(--trait-fort);
  border-radius: var(--rayon-pilule);
  background: var(--carton);
  font-weight: 600;
}

.formulaire .lieu-question-reponse:has(input:checked) {
  border-color: var(--vermillon);
  background: var(--vermillon-pale);
}

/* 4.7 : « Y aller, réserver », une façon d'y aller par encart. */
.lieu-trajets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lieu-trajet {
  margin-bottom: var(--esp-3);
  padding: var(--esp-3) var(--esp-4);
  border: var(--trait-epaisseur) solid var(--trait);
  border-radius: var(--rayon-md);
  background: var(--carton);
}

.lieu-trajet-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 var(--esp-3);
}

.lieu-trajet-titre {
  margin: 0;
  font-size: 1rem;
}

.lieu-trajet-montant {
  margin: 0;
  color: var(--vermillon);
  font-weight: 700;
}

.lieu-trajet-duree {
  margin: var(--esp-1) 0 0;
}

.lieu-trajet-postes {
  margin: var(--esp-1) 0 0;
  padding: 0;
  color: var(--encre-douce);
  font-size: 0.875rem;
  list-style: none;
}

.lieu-liens-sortants {
  margin: 0 0 var(--esp-3);
  padding: 0;
  list-style: none;
}

/* Les lieux dont tu as envie */
.lieu-titre-page {
  font-size: 1.75rem;
}

.lieux-envies {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lieux-envies-lieu {
  display: flex;
  flex-direction: column;
  padding: var(--esp-2) 0;
  border-bottom: 1px solid var(--trait);
}

.lieux-envies-nom {
  display: inline-flex;
  align-items: center;
  min-height: var(--cible-tactile);
  font-weight: 700;
}

.lieux-envies-pages {
  display: flex;
  gap: var(--esp-2);
  margin-top: var(--esp-4);
}
