/* Crü — Points de vente (carte publique)
   Reprend la page d'origine : liste à gauche (25 %), carte noire et or à droite, 800 px de haut. */

.cru-pdv {
  --cru-noir: #111;
  --cru-titre: #242424;
  --cru-texte: #777;
  --cru-gris: #f6f6f6;
  --cru-gris-hover: #efefef;
  --cru-gris-actif: #e6e6e6;
  --cru-beige: #e7d6bf;
  --cru-or: #b39964;
  display: grid;
  grid-template-columns: minmax(300px, 25%) 1fr;
  height: var(--cru-pdv-h, 800px);
  background: #fff;
  font-family: Karla, sans-serif;
  color: var(--cru-texte);
  text-align: left;
  position: relative;
}
.cru-pdv *,
.cru-pdv *::before,
.cru-pdv *::after { box-sizing: border-box; }

.cru-pdv--fullbleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.cru-pdv__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Colonne liste ---------- */
.cru-pdv__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fff;
}
.cru-pdv__head { padding: 34px 20px 14px 15px; }

.cru-pdv .cru-pdv__title {
  font-family: neophyte, Karla, sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  color: var(--cru-titre);
  margin: 0 0 22px;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
}

.cru-pdv__tools { display: flex; gap: 8px; margin: 0 0 10px 5px; }

.cru-pdv .cru-pdv__search {
  flex: 1;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 0 12px 0 36px;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
  box-shadow: none;
  font: 400 14px/1 Karla, sans-serif;
  color: #333;
  -webkit-appearance: none;
  appearance: none;
}
.cru-pdv .cru-pdv__search::placeholder { color: #a5a5a5; }
.cru-pdv .cru-pdv__search:focus { border-color: var(--cru-or); outline: none; box-shadow: none; }

.cru-pdv .cru-pdv__near {
  flex: 0 0 auto;
  height: 42px;
  min-height: 0;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--cru-noir);
  color: var(--cru-beige);
  font: 700 11px/1 Karla, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}
.cru-pdv .cru-pdv__near:hover,
.cru-pdv .cru-pdv__near:focus-visible { background: #333; color: var(--cru-beige); }
.cru-pdv .cru-pdv__near[disabled] { opacity: .6; cursor: wait; }
.cru-pdv .cru-pdv__near[hidden] { display: none; }

.cru-pdv__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px 5px; }
.cru-pdv .cru-pdv__chip {
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: var(--cru-texte);
  font: 700 11px/1.2 Karla, sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s, color .15s, border-color .15s;
}
.cru-pdv .cru-pdv__chip:hover { border-color: var(--cru-or); color: var(--cru-titre); background: #fff; }
.cru-pdv .cru-pdv__chip[aria-pressed="true"] { background: var(--cru-noir); border-color: var(--cru-noir); color: var(--cru-beige); }

.cru-pdv .cru-pdv__count { margin: 0 0 0 5px; padding: 0; font-size: 12px; line-height: 1.4; color: #9a9a9a; }

.cru-pdv .cru-pdv__list {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 4px 15px 20px 20px;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #cfcfcf transparent;
}
.cru-pdv .cru-pdv__item { margin: 0 0 10px; padding: 0; list-style: none; }
.cru-pdv .cru-pdv__item::before { display: none; }
.cru-pdv .cru-pdv__item[hidden] { display: none; }

.cru-pdv .cru-pdv__card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  height: auto;
  min-height: 90px;
  margin: 0;
  padding: 16px 15px;
  border: 0;
  border-radius: 0;
  background: var(--cru-gris);
  box-shadow: none;
  color: var(--cru-texte);
  font: inherit;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.cru-pdv .cru-pdv__card:hover { background: var(--cru-gris-hover); color: var(--cru-texte); }
.cru-pdv .cru-pdv__card:focus-visible { outline: 2px solid var(--cru-or); outline-offset: -2px; }
.cru-pdv .cru-pdv__item.is-active .cru-pdv__card { background: var(--cru-gris-actif); box-shadow: inset 3px 0 0 var(--cru-or); }
.cru-pdv .cru-pdv__item.is-nocoords .cru-pdv__card { cursor: default; }

.cru-pdv__logo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e4e4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cru-pdv .cru-pdv__logo img { width: 100%; height: 100%; max-width: none; object-fit: contain; padding: 6px; margin: 0; border-radius: 0; }

.cru-pdv__txt { display: block; flex: 1 1 auto; min-width: 0; text-align: left; }
.cru-pdv__name { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--cru-texte); }
.cru-pdv__addr { display: block; margin-top: 3px; font-size: 14px; line-height: 1.35; color: var(--cru-texte); }
.cru-pdv__infos {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  font-style: italic;
  color: #8d8d8d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cru-pdv__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 11px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: #a3a3a3; }
.cru-pdv__meta:empty { display: none; }
.cru-pdv__dist { color: #8a7348; font-weight: 700; }
.cru-pdv__dist:empty { display: none; }

.cru-pdv .cru-pdv__empty { margin: 10px 20px; font-size: 14px; color: var(--cru-texte); }

/* ---------- Colonne carte ---------- */
.cru-pdv__mapwrap { position: relative; min-width: 0; min-height: 0; background: #1d1d1d; }
.cru-pdv__map { position: absolute; inset: 0; }
.cru-pdv .cru-pdv__mapmsg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 30px;
  text-align: center;
  color: var(--cru-beige);
  font-size: 15px;
  background: #1d1d1d;
  z-index: 2;
}

/* Fenêtre d'info : fond beige comme l'ancienne carte */
.cru-pdv__map .gm-style .gm-style-iw-c {
  background: var(--cru-beige);
  border-radius: 0;
  padding: 0 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}
.cru-pdv__map .gm-style .gm-style-iw-d { overflow: auto !important; padding: 0 20px 18px; }
.cru-pdv__map .gm-style .gm-style-iw-chr { padding: 14px 4px 0 20px; align-items: flex-start; }
.cru-pdv__map .gm-style .gm-style-iw-ch { padding-top: 4px; }
.cru-pdv__map .gm-style .gm-style-iw-tc::after { background: var(--cru-beige); }
.cru-pdv__map .gm-style .gm-ui-hover-effect { opacity: .7; }

.cru-pdv-iw__name { font: 700 17px/1.25 Karla, sans-serif; color: #111; }
.cru-pdv-iw { font-family: Karla, sans-serif; color: #2a2a2a; min-width: 220px; max-width: 290px; }
.cru-pdv-iw__logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 2px 0 10px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.cru-pdv-iw__type { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7d6640; }
.cru-pdv-iw__addr { margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.cru-pdv-iw__infos {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-line;
  background: rgba(255, 255, 255, .45);
}
.cru-pdv-iw__links { margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.cru-pdv-iw__links li { margin: 0; padding: 0; list-style: none; }
.cru-pdv-iw a { color: #111; text-decoration: underline; text-underline-offset: 2px; }
.cru-pdv-iw a:hover { color: #7d6640; }
.cru-pdv-iw .cru-pdv-iw__go {
  display: inline-block;
  padding: 9px 14px;
  background: #111;
  color: var(--cru-beige);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.cru-pdv-iw .cru-pdv-iw__go:hover { background: #333; color: var(--cru-beige); }

/* ---------- Sans clé Google : liste seule en grille ---------- */
.cru-pdv--nomap { grid-template-columns: 1fr; height: auto; }
.cru-pdv--nomap .cru-pdv__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; overflow: visible; }
.cru-pdv--nomap .cru-pdv__item { margin: 0; }
.cru-pdv--nomap .cru-pdv__mapwrap { display: none; }

/* ---------- Mobile : carte en haut, liste dessous ---------- */
@media (max-width: 900px) {
  .cru-pdv { display: flex; flex-direction: column; height: auto; }
  .cru-pdv__mapwrap { order: -1; height: 60vh; min-height: 320px; scroll-margin-top: 70px; }
  .cru-pdv--nomap .cru-pdv__mapwrap { display: none; }
  .cru-pdv__head { padding: 26px 15px 12px; }
  .cru-pdv__tools, .cru-pdv__chips, .cru-pdv .cru-pdv__count { margin-left: 0; }
  .cru-pdv .cru-pdv__list { overflow: visible; padding: 4px 15px 24px; }
  .cru-pdv .cru-pdv__card { min-height: 0; }
  .cru-pdv__name { font-size: 17px; }
}

/* Le thème force un survol beige sur tous les boutons (!important) : on garde le gris d'origine. */
.cru-pdv .cru-pdv__card:hover { background: var(--cru-gris-hover) !important; }
.cru-pdv .cru-pdv__item.is-active .cru-pdv__card,
.cru-pdv .cru-pdv__item.is-active .cru-pdv__card:hover { background: var(--cru-gris-actif) !important; }
.cru-pdv .cru-pdv__chip:hover { background: #fff !important; }
.cru-pdv .cru-pdv__chip[aria-pressed="true"]:hover { background: var(--cru-noir) !important; }
.cru-pdv .cru-pdv__near:hover { background: #333 !important; }
