/*
 * Styles des blocs SEO ajoutés sur les pages /lieu/{slug}/
 * par taxonomy-location.php (child theme).
 */

/* ====================================================================
   FIX 1 : retire le padding-top inline de la section listing
   (il était prévu pour pousser le contenu sous la navbar — on le déplace sur le hero)
   ==================================================================== */
body.tax-location .section-fixed.listing-with-map,
body.tax-location .page-container.section-fixed.listing-with-map.pos-relative.taxonomy {
  padding-top: 0 !important;
}

/* ====================================================================
   FIX 2 : on transforme uniquement le `position: fixed` en `sticky`
   On laisse ListingPro gérer la largeur, le float et le responsive natif.
   ==================================================================== */
body.tax-location .sidemap-container.sidemap-fixed {
  position: sticky !important;
  top: 100px !important;
  height: auto !important;
}

/* Hauteur intérieure de la carte adaptée au viewport */
body.tax-location .sidemap-container .map-pop,
body.tax-location .sidemap-container .mapSidebar,
body.tax-location #map-section,
body.tax-location #map {
  height: calc(100vh - 140px) !important;
  max-height: 720px;
}

body.tax-location .post-with-map-container-right.classic-layout {
  position: relative;
  z-index: 1;
}

.lapmap-loc-content,
.lapmap-loc-hero {
  position: relative;
  z-index: 10;
  clear: both;
}

/* --- HERO --- */
.lapmap-loc-hero {
  background: #F5F7FA;
  /* Padding-top élevé pour laisser de la place sous la navbar fixée */
  padding: calc(80px + 32px) 0 32px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #122C34;
}

/* Aligné sur le bord gauche du listing (pas centré) */
.lapmap-loc-hero__container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 25px;
  text-align: left;
}

.lapmap-loc-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5C5C5C;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lapmap-loc-hero__breadcrumb a {
  color: #5C5C5C;
  text-decoration: none;
  transition: color 0.15s;
}

.lapmap-loc-hero__breadcrumb a:hover {
  color: #FF6600;
  text-decoration: underline;
}

.lapmap-loc-hero__breadcrumb span[aria-current="page"] {
  color: #122C34;
  font-weight: 600;
}

.lapmap-loc-hero__title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: #122C34;
  letter-spacing: -0.02em;
}

.lapmap-loc-hero__code {
  color: #7D938A;
  font-weight: 500;
}

.lapmap-loc-hero__stats {
  margin: 0;
  font-size: 15px;
  color: #5C5C5C;
  font-weight: 500;
}

/* --- BLOC CONTENU --- */
.lapmap-loc-content {
  padding: 64px 0 72px;
  background: #F7F7F7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #5C5C5C;
  line-height: 1.7;
}

.lapmap-loc-content__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.lapmap-loc-content__intro {
  font-size: 17px;
  line-height: 1.7;
  color: #3a4f57;
  margin: 0 auto 40px;
  max-width: 760px;
}

.lapmap-loc-content__intro p {
  margin: 0 0 14px;
}

.lapmap-loc-content__intro p:last-child {
  margin-bottom: 0;
}

.lapmap-loc-content__h2 {
  margin: 40px 0 24px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #122C34;
  letter-spacing: -0.01em;
}

.lapmap-loc-content__block {
  margin: 0 auto 28px;
  max-width: 760px;
}

.lapmap-loc-content__block h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #122C34;
  line-height: 1.3;
}

.lapmap-loc-content__block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.lapmap-loc-content__block strong {
  color: #122C34;
  font-weight: 600;
}

/* --- FAQ --- */
.lapmap-loc-faq {
  margin: 16px auto 0;
  max-width: 760px;
  text-align: left;
}

.lapmap-loc-faq__item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #E0E5EB;
}

.lapmap-loc-faq__item[open] {
  border-color: #FF6600;
}

.lapmap-loc-faq__q {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #122C34;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background 0.15s;
}

.lapmap-loc-faq__q::-webkit-details-marker {
  display: none;
}

.lapmap-loc-faq__q::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: #FF6600;
  transition: transform 0.2s;
}

.lapmap-loc-faq__item[open] .lapmap-loc-faq__q::after {
  content: '−';
}

.lapmap-loc-faq__q:hover {
  background: rgba(255, 102, 0, 0.04);
}

.lapmap-loc-faq__a {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #5C5C5C;
}

.lapmap-loc-faq__a p {
  margin: 0 0 10px;
}

.lapmap-loc-faq__a p:last-child {
  margin-bottom: 0;
}

/* --- VOISINS (badges orange) --- */
.lapmap-loc-voisins {
  margin: 48px auto 0;
  padding-top: 32px;
  max-width: 760px;
  border-top: 1px solid #E0E5EB;
}

.lapmap-loc-voisins h3 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #122C34;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lapmap-loc-voisins p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lapmap-loc-voisins a {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: #FFFFFF;
  border: 1px solid #FFD7BF;
  border-radius: 100px;
  color: #FF6600;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.lapmap-loc-voisins a:hover,
.lapmap-loc-voisins a:focus-visible {
  background: #FF6600;
  border-color: #FF6600;
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.25);
}

/* Retire le séparateur "·" injecté par le PHP entre les voisins (espace entre badges = gap) */
.lapmap-loc-voisins p {
  font-size: 0; /* neutralise les espaces texte entre les <a> */
}
.lapmap-loc-voisins a {
  font-size: 13px; /* restore */
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .lapmap-loc-hero {
    padding: 20px 0 18px;
  }
  .lapmap-loc-hero__title {
    font-size: 24px;
  }
  .lapmap-loc-hero__stats {
    font-size: 13px;
  }
  .lapmap-loc-content {
    padding: 36px 0 48px;
  }
  .lapmap-loc-content__h2 {
    font-size: 20px;
  }
  .lapmap-loc-content__intro {
    font-size: 15px;
  }
}
