/* ===== Zaki-PDV Styles COMPLETS & CARTE TOUJOURS VISIBLE ===== */

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

/* 2) BARRE DE RECHERCHE (sans toggle) */
.zaki-pdv-search-bar {
  width: 100%;
  margin-bottom: 12px;
}
.zaki-pdv-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

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

/* 4) CARTE — toujours visible, hauteur fixe */
.zaki-pdv-map {
  flex: 2;
  height: 500px !important;
  overflow: visible;
  border-radius: 4px;
  border: 1px solid #eee;
  transition: none;
}

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

/* 6) MODAL PRODUITS */
.zaki-pdv-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;
}
.zaki-pdv-modal.active {
  display: flex;
}
.zaki-pdv-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);
}
.zaki-pdv-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 */
.zaki-pdv-modal-content h3 {
  margin: 0 0 20px;
  font-family: 'Georgia', serif;
  font-size: 22px;
  color: #333;
  text-align: center;
}

/* 8) GRILLE DES PRODUITS — centrée et responsive */
.zaki-pdv-products-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* 9) CARTE DE CHAQUE PRODUIT (TEXTE + ICÔNES) */
.zaki-pdv-product {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: auto;
  box-sizing: border-box;
  text-align: center;
}

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

/* 9.2) Icônes sur UNE seule ligne + scroll si trop large */
.zaki-pdv-icons {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
}
.zaki-pdv-icons::-webkit-scrollbar {
  height: 6px;
}
.zaki-pdv-icons::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* 9.3) Icônes agrandies */
.zaki-pdv-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 */
.zaki-pdv-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;
}
.zaki-pdv-lightbox.active {
  display: flex;
}
.zaki-pdv-lightbox img {
  max-width: 85%;
  max-height: 85%;
  border: 4px solid #fff;
  border-radius: 6px;
}
.zaki-pdv-lightbox-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 36px; color: #fff;
  cursor: pointer;
}

/* ==== InfoWindow Styles ==== */
.zaki-pdv-iw {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333; /* texte plus foncé */
  line-height: 1.5;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.zaki-pdv-iw strong {
  color: #111;
  font-size: 16px;
  font-weight: bold;
}
.zaki-pdv-iw em {
  font-style: normal;
  color: #666;
  display: block;
  margin-bottom: 4px;
}
.zaki-pdv-iw a {
  text-decoration: none;
  font-weight: bold;
}
.zaki-pdv-iw a[href^="https://www.google.com/maps/dir"] {
  color: #1a73e8;
}
.zaki-pdv-iw a.zaki-pdv-details {
  color: #d35400;
}

.zaki-pdv-icon:hover {
  transform: scale(1.05);
}
