/* ===== LSDT‑Partenaire Styles COMPLETS & CENTRÉS ===== */

/* 1) HEADER */
.lsdt-header {
  text-align: center;
  margin-bottom: 16px;
}
.lsdt-title {
  font-family: 'Georgia', serif;
  font-size: 24px;
  color: #333;
  margin: 0;
}

/* 2) BARRE DE RECHERCHE + TOGGLE */
.lsdt-search-bar {
  width: 100%;
  margin-bottom: 12px;
}
.lsdt-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.lsdt-toggle-map {
  display: inline-block;
  margin: 8px auto 0;
  padding: 6px 12px;
  font-size: 14px;
  color: #555;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lsdt-toggle-map:hover {
  background: #eef6fc;
  color: #333;
}

/* 3) WRAPPER CARTE + SIDEBAR */
.lsdt-wrapper {
  display: flex;
  gap: 16px;
}

/* 4) CARTE */
.lsdt-map {
  flex: 2;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out;
  border-radius: 4px;
  border: 1px solid #eee;
}
.lsdt-map.active {
  height: 500px;
}

/* 5) SIDEBAR LISTING */
.lsdt-sidebar {
  flex: 1;
  max-width: 300px;
}
.lsdt-listing {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 4px;
}
.lsdt-listing li {
  padding: 10px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.lsdt-listing li:hover {
  background: #f9f9f9;
}
.lsdt-listing li:last-child {
  border-bottom: none;
}

/* 6) MODAL PRODUITS */
.lsdt-modal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  align-items: center; justify-content: center;
  z-index: 9999;
}
.lsdt-modal.active {
  display: flex;
}
.lsdt-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.lsdt-modal-close {
  position: absolute; top: 8px; right: 8px;
  border: none; background: transparent;
  font-size: 24px; color: #333;
  cursor: pointer; line-height: 1;
}

/* 7) TITRE DU POPUP */
.lsdt-modal-content h3 {
  margin: 0 0 20px;
  font-family: 'Georgia', serif;
  font-size: 22px;
  color: #333;
  text-align: center;
}

/* 8) GRILLE DES PRODUITS */
.lsdt-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

/* 9) CARTE DE CHAQUE PRODUIT (TEXTE + ICÔNES) */
.lsdt-product {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;       /* centre horizontalement */
  justify-content: space-between;
  /* hauteur automatique pour accueillir ligne unique d'icônes */
  height: auto;
  box-sizing: border-box;
  text-align: center;
}

/* 9.1) Nom du produit */
.lsdt-prod-name {
  font-weight: 600;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  margin-bottom: 12px;
}
.lsdt-prod-name:hover {
  text-decoration: underline;
}

/* 9.2) Icônes sur UNE seule ligne + scroll si trop large */
.lsdt-icons {
  display: flex;
  flex-wrap: nowrap;           /* plus de retour à la ligne */
  gap: 16px;
  justify-content: center;
  overflow-x: auto;            /* scroll horizontal si besoin */
  padding-bottom: 8px;
  width: 100%;                 /* prend toute la largeur */
}
.lsdt-icons::-webkit-scrollbar {
  height: 6px;                 /* scrollbar discrète */
}
.lsdt-icons::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* 9.3) Icônes agrandies */
.lsdt-icon {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px;
  cursor: pointer;
}

/* 10) LIGHTBOX */
.lsdt-lightbox {
  display: none;
  position: fixed; top:0; left:0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center; justify-content: center;
  z-index: 10001;
}
.lsdt-lightbox.active {
  display: flex;
}
.lsdt-lightbox img {
  max-width: 85%;
  max-height: 85%;
  border: 4px solid #fff;
  border-radius: 6px;
}
.lsdt-lightbox-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 36px; color: #fff;
  cursor: pointer;
}

/* ===== LSDT‑Partenaire Styles complets ===== */
/* … conservez tout le CSS que vous aviez reçu précédemment … */

/* ==== InfoWindow Styles ==== */
.lsdt-iw {
  font-size: 16px;
  line-height: 1.4;
}
.lsdt-iw strong {
  font-size: 18px;
}
.lsdt-iw-subcat {
  font-style: italic;
  font-size: 16px;
  color: #555;
  margin-bottom: 4px;
  display: block;
}
.lsdt-iw a {
  font-size: 15px;
  text-decoration: none;
}
.lsdt-iw a:hover {
  text-decoration: underline;
}
