/* =====================================================================
   Bien en Dordogne Core — carte de points [bdc_points]
   Même langage visuel que la carte d'itinéraire (itineraire.css). Tokens --bdc-* : front.css.
   ===================================================================== */
.bdc-pts {
  --pts-creme: #F7F2E8;
  --pts-fond: #EFE8DA;
  font-family: var(--bdc-font);
  color: var(--bdc-encre);
  margin: 48px 0;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--bdc-r-big);
  background: #fff;
  box-shadow: var(--bdc-shadow);
  scroll-margin-top: calc(var(--bdc-header) + 16px);
}
.bdc-pts *, .bdc-pts *::before, .bdc-pts *::after { box-sizing: border-box; }
#page-container .entry-content .bdc-pts :is(ul, ol) { list-style: none; margin: 0; padding: 0; line-height: inherit; }
#page-container .entry-content .bdc-pts li { margin: 0; padding: 0; }
#page-container .entry-content .bdc-pts li::marker { content: none; }
#page-container .entry-content .bdc-pts p { margin: 0; padding: 0; }
#page-container .entry-content .bdc-pts a { text-decoration: none; }
.bdc-pts button, .bdc-pts input, .bdc-pts select { font: inherit; color: inherit; }
.bdc-pts .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bdc-pts button { cursor: pointer; }
.bdc-pts :focus-visible { outline: 2px solid var(--bdc-ocre); outline-offset: 3px; }

/* En-tête */
.bdc-pts__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--bdc-ocre-fonce); }
#page-container .entry-content .bdc-pts__title { margin: 8px 0 4px; padding: 0; font-family: var(--bdc-font); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; color: var(--bdc-encre); }
#page-container .entry-content .bdc-pts__title::before { content: none; display: none; }
.bdc-pts__title em { font-style: normal; color: var(--bdc-ocre-fonce); }
#page-container .entry-content .bdc-pts__count { font-size: .95rem; color: var(--bdc-encre-2); }
.bdc-pts__count strong { font-weight: 700; color: var(--bdc-encre); }

/* Recherche et filtres */
.bdc-pts__filters { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; margin: 20px 0 0; }
.bdc-pts__search { position: relative; display: flex; align-items: center; }
.bdc-pts__search .bdc-i { position: absolute; left: 14px; color: var(--bdc-encre-3); pointer-events: none; }
.bdc-pts__search input, .bdc-pts__select select { width: 100%; height: 46px; border: 1px solid var(--bdc-filet); border-radius: 14px; background: var(--pts-creme); padding: 0 14px; font-size: .95rem; }
.bdc-pts__search input { padding-left: 42px; }
/* Le thème force la couleur des placeholders (blanc) : on la rétablit, lisible sur le fond crème. */
#page-container .bdc-pts .bdc-pts__search input::placeholder { color: #6b6559 !important; opacity: 1 !important; }
#page-container .bdc-pts .bdc-pts__search input::-webkit-input-placeholder { color: #6b6559 !important; opacity: 1 !important; }
#page-container .bdc-pts .bdc-pts__search input::-moz-placeholder { color: #6b6559 !important; opacity: 1 !important; }
.bdc-pts .bdc-pts__search input { color: var(--bdc-encre) !important; }
.bdc-pts__select select { appearance: auto; }
.bdc-pts__near { display: inline-flex; align-items: center; gap: 8px; height: 46px; border: 0; padding: 0 18px; border-radius: 14px; background: var(--bdc-nuit); color: #fff !important; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.bdc-pts__near[aria-pressed="true"] { background: var(--bdc-ocre-fonce); }
.bdc-pts__near.is-busy .bdc-i { animation: bdc-pts-spin 1s linear infinite; }
@keyframes bdc-pts-spin { to { transform: rotate(360deg); } }
.bdc-pts__chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 2px 0 0; padding: 0; min-width: 0; }
.bdc-pts__chip { position: relative; }
.bdc-pts__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bdc-pts__chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--bdc-filet); background: #fff; font-size: .84rem; font-weight: 560; transition: background .2s, color .2s, border-color .2s; }
.bdc-pts__chip input:checked + span { background: var(--bdc-nuit); border-color: var(--bdc-nuit); color: #fff; }
.bdc-pts__chip input:focus-visible + span { outline: 2px solid var(--bdc-ocre); outline-offset: 2px; }

/* Carte */
.bdc-pts__stage { position: relative; margin-top: 18px; }
.bdc-pts__map { position: relative; height: clamp(380px, 60vh, 560px); border-radius: 22px; overflow: hidden; background: var(--pts-fond); isolation: isolate; }
.bdc-pts__map.leaflet-container { font-family: var(--bdc-font); background: var(--pts-fond); }
.bdc-pts__stage[data-fond="ortho"] .bdc-pts__map { background: #3a4136; }
.bdc-pts__loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--bdc-encre-2); font-size: .95rem; }
.bdc-pts__tools { position: absolute; z-index: 800; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; flex-wrap: wrap; }
.bdc-pts__tools > * { pointer-events: auto; }
.bdc-pts__fonds { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px -8px rgba(28,27,23,.35); }
.bdc-pts__fonds button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--bdc-encre-2); white-space: nowrap; }
.bdc-pts__fonds button[aria-pressed="true"] { background: var(--bdc-nuit); color: #fff; }
.bdc-pts__bounds { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px -8px rgba(28,27,23,.35); font-size: .82rem; font-weight: 600; cursor: pointer; }
#page-container .entry-content .bdc-pts__rgpd { position: absolute; z-index: 800; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.92); font-size: .72rem; color: var(--bdc-encre-2); }
.bdc-pts .leaflet-top.leaflet-left { top: auto; bottom: 12px; left: auto; right: 12px; }
.bdc-pts .leaflet-control-zoom { border: 0 !important; border-radius: 14px !important; overflow: hidden; box-shadow: 0 6px 20px -8px rgba(28,27,23,.35) !important; margin: 0 !important; }
.bdc-pts .leaflet-control-zoom a { width: 38px; height: 38px; line-height: 36px; font-size: 20px; color: var(--bdc-encre); }
.bdc-pts-ville { width: 0 !important; height: 0 !important; }
.bdc-pts-ville i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #9a9283; }
.bdc-pts-ville span { position: absolute; top: 7px; left: 0; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1 var(--bdc-font); color: #6b6559; text-shadow: 0 0 3px var(--pts-fond), 0 0 3px var(--pts-fond), 0 0 6px var(--pts-fond); }
.bdc-pts__map.is-dense .bdc-pts-ville span { display: none; }

/* Info-bulle */
.bdc-pts-popup .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 14px 40px -16px rgba(28,27,23,.45); }
.bdc-pts-popup .leaflet-popup-content { margin: 14px 16px; font-family: var(--bdc-font); }
.bdc-pts-pop .k { margin: 0 0 2px; font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--bdc-ocre-fonce); }
.bdc-pts-pop .t { margin: 0 0 4px; font-size: 1rem; font-weight: 650; line-height: 1.25; color: var(--bdc-encre); }
.bdc-pts-pop .x { margin: 0 0 6px; font-size: .86rem; line-height: 1.45; color: var(--bdc-encre-2); }
.bdc-pts-pop .a { display: flex; gap: 12px; margin: 8px 0 0; }
.bdc-pts-pop .a a { font-size: .86rem; font-weight: 650; color: var(--bdc-ocre-fonce); }

/* Liste */
.bdc-pts__results { margin-top: 22px; }
.bdc-pts__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.bdc-pts__item { padding: 16px !important; border-radius: 18px; background: var(--pts-creme); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.bdc-pts__item.is-sel { background: #fff; border-color: var(--bdc-filet); }
.bdc-pts__item.is-on { border-color: var(--bdc-ocre); box-shadow: 0 10px 30px -18px rgba(138,100,38,.6); }
#page-container .entry-content .bdc-pts__k { font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--bdc-ocre-fonce); }
#page-container .entry-content .bdc-pts__n { margin: 4px 0; padding: 0; font-family: var(--bdc-font); font-size: 1.02rem; font-weight: 650; line-height: 1.25; color: var(--bdc-encre); }
#page-container .entry-content .bdc-pts__n::before { content: none; display: none; }
#page-container .entry-content .bdc-pts__t { font-size: .88rem; line-height: 1.45; color: var(--bdc-encre-2); }
.bdc-pts__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.bdc-pts__tags li { padding: 3px 9px !important; border-radius: 999px; background: rgba(138,100,38,.1); font-size: .74rem; font-weight: 600; color: var(--bdc-ocre-fonce); }
#page-container .entry-content .bdc-pts__acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.bdc-pts__acts button, .bdc-pts__acts a { border: 0; background: none; padding: 0; font-size: .86rem; font-weight: 650; color: var(--bdc-ocre-fonce) !important; }
.bdc-pts__acts button:hover, .bdc-pts__acts a:hover { text-decoration: underline; }
#page-container .entry-content .bdc-pts__empty { padding: 18px; border-radius: 16px; background: var(--pts-creme); color: var(--bdc-encre-2); }
.bdc-pts__more:hover { background: var(--pts-creme) !important; }
.bdc-pts__more { display: block; color: var(--bdc-encre) !important; cursor: pointer; margin: 16px auto 0; border: 1px solid var(--bdc-filet); background: #fff; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
#page-container .entry-content .bdc-pts__source { margin-top: 16px; font-size: .74rem; color: var(--bdc-encre-3); }

@media (max-width: 767px) {
  .bdc-pts__filters { grid-template-columns: minmax(0, 1fr) auto; }
  .bdc-pts__search { grid-column: 1 / -1; }
  .bdc-pts__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .bdc-pts__chip span { white-space: nowrap; }
  .bdc-pts__map { height: 420px; }
  .bdc-pts__bounds span { font-size: .78rem; }
}
