.pdb-leaflet {
    height: 420px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--pdb-trait);
    background: var(--pdb-blanc);
}
.pdb-leaflet .leaflet-control-attribution {
    font-size: 0.68rem;
}
.pdb-leaflet-voyage { height: 460px; cursor: pointer; }
.pdb-map-banner {
    background: #FDECEA;
    border: 1px solid #F2C2BC;
    color: #8A2E22;
    font-size: 0.82rem;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    margin: 0 0 0.6rem;
}

/* ---------- Marqueurs (POI numérotés + fanions départ/arrivée) ---------- */
.pdb-marker-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.pdb-marker-poi {
    background: var(--pdb-rouge);
    font-family: var(--pdb-titres);
    font-weight: 600;
    font-size: 0.85rem;
}
.pdb-marker-depart,
.pdb-marker-arrivee {
    border-radius: 50% 50% 50% 4px;
}
.pdb-marker-depart { background: var(--pdb-vert); }
.pdb-marker-arrivee { background: var(--pdb-rouge); }
.pdb-marker-stop {
    background: var(--pdb-marine);
    font-family: var(--pdb-titres);
    font-weight: 600;
    font-size: 0.72rem;
    width: 24px;
    height: 24px;
}
.pdb-marker-plane {
    background: var(--pdb-marine-2);
    width: 26px;
    height: 26px;
    box-shadow: none;
    border: 2px solid var(--pdb-blanc);
}
.pdb-marker-plane svg { width: 15px; height: 15px; }
.pdb-marker-depart svg,
.pdb-marker-arrivee svg {
    width: 15px;
    height: 15px;
}

/* ---------- Tooltip au survol ---------- */
.leaflet-tooltip.pdb-tooltip {
    background: var(--pdb-blanc);
    border: 1px solid var(--pdb-trait);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(28, 43, 74, 0.25);
    padding: 0;
    opacity: 1;
}
.leaflet-tooltip.pdb-tooltip::before { display: none; }
.leaflet-tooltip.pdb-tooltip {
    white-space: normal;
    width: max-content;
    max-width: 240px;
}
.pdb-tooltip-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.7rem 0.4rem 0.4rem;
}
.pdb-tooltip-inner img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 42px;
}
.pdb-tooltip-text {
    font-family: var(--pdb-titres);
    font-size: 0.85rem;
    color: var(--pdb-marine);
    font-weight: 500;
    line-height: 1.25;
}
.pdb-tooltip-num {
    color: var(--pdb-rouge);
    font-weight: 600;
    margin-right: 0.2rem;
}

/* ---------- Modale fiche détaillée ---------- */
.pdb-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 10, 14, 0.8);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.pdb-modal-backdrop.is-open { opacity: 1; visibility: visible; }
.pdb-modal {
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s ease;
}
.pdb-modal-backdrop.is-open .pdb-modal { transform: none; }
body.pdb-modal-lock { overflow: hidden; }

.pdb-modal {
    position: relative;
    background: var(--pdb-blanc);
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2.2rem 2rem 2rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.pdb-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--pdb-ivoire);
    color: var(--pdb-marine);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.pdb-modal-close:hover { background: var(--pdb-rouge); color: #fff; }

.pdb-modal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pdb-rouge);
    color: #fff;
    font-family: var(--pdb-titres);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}
.pdb-modal h3 {
    font-family: var(--pdb-titres);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.3rem;
    color: var(--pdb-marine);
    margin: 0 0 1.1rem;
}

.pdb-modal-gallery { margin-bottom: 1.2rem; }
.pdb-modal-gallery-main {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}
.pdb-modal-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pdb-modal-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.15s ease;
}
.pdb-modal-thumbs img:hover { opacity: 1; }
.pdb-modal-thumbs img.is-active { opacity: 1; border-color: var(--pdb-rouge); }

.pdb-modal-text {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--pdb-encre);
    margin-bottom: 1.2rem;
}
.pdb-modal-infos {
    border-top: 1px solid var(--pdb-trait);
    padding-top: 1rem;
}
.pdb-modal-infos p { margin: 0.4rem 0; font-size: 0.9rem; color: var(--pdb-encre); }
.pdb-modal-infos strong {
    display: inline-block;
    min-width: 130px;
    color: var(--pdb-gris);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.pdb-modal-infos a { color: var(--pdb-rouge); }

@media (max-width: 600px) {
    .pdb-modal { padding: 2rem 1.2rem 1.5rem; }
    .pdb-modal-gallery-main { height: 200px; }
}

/* ---------- Vidéo dans la fiche restaurant ---------- */
.pdb-resto-video { margin: 0.6rem 0 1rem; }
.pdb-resto-video video { width: 100%; height: auto; border-radius: 8px; display: block; background: #000; }
.pdb-resto-video figcaption { font-size: 0.8rem; color: var(--pdb-gris); margin-top: 0.3rem; }

/* ---------- Profil altimétrique ---------- */
.pdb-elev { margin: 0 0 1.6rem; }
.pdb-elev-summary { display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--pdb-encre); }
.pdb-elev-summary span { display: inline-flex; align-items: center; gap: 0.4rem; }
.pdb-elev-summary b { color: var(--pdb-marine); }
.pdb-elev-summary .pdb-ico { width: 18px; height: 18px; color: var(--pdb-rouge); }
.pdb-elev-chart { position: relative; }
.pdb-elev-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pdb-elev-area { stroke: none; }
.pdb-elev-line { fill: none; stroke: #B03A2E; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pdb-elev-grid { stroke: var(--pdb-trait); stroke-width: 1; stroke-dasharray: 3 4; }
.pdb-elev-ylab, .pdb-elev-xlab { fill: var(--pdb-gris); font-size: 13px; }
.pdb-elev-hi { fill: #B03A2E; stroke: #fff; stroke-width: 2; }
.pdb-elev-cursor { stroke: var(--pdb-marine); stroke-width: 1; stroke-dasharray: 2 3; display: none; }
.pdb-elev-dot { fill: var(--pdb-marine); stroke: #fff; stroke-width: 2; display: none; }
.pdb-elev-tip { position: absolute; top: -2px; transform: translateX(-50%); background: var(--pdb-marine); color: #fff; padding: 0.25rem 0.55rem; border-radius: 6px; font-size: 0.8rem; line-height: 1.2; pointer-events: none; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,0.3); z-index: 2; }
.pdb-elev-tip b { display: block; font-family: var(--pdb-titres); }
.pdb-elev-tip span { opacity: 0.85; font-size: 0.72rem; }

/* ---------- Bouton téléchargement GPX ---------- */
.pdb-gpx-dl { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.7rem; padding: 0.5rem 0.9rem; background: var(--pdb-marine); color: #fff; border-radius: 6px; font-size: 0.85rem; font-family: var(--pdb-titres); text-decoration: none; transition: background 0.15s ease; }
.pdb-gpx-dl:hover { background: var(--pdb-rouge); }
.pdb-gpx-dl .pdb-ico { width: 18px; height: 18px; color: #fff; }

/* ---------- Ligne titre carte voyage + bouton GPX ---------- */
.pdb-voyage-map-head { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem 1rem; flex-wrap: wrap; margin: 2.5rem 0 0.6rem; }
.pdb-voyage-map-head .pdb-bandeau { margin: 0; }
.pdb-gpx-dl-head { margin-top: 0; }
@media (max-width: 600px) { .pdb-gpx-dl-head { font-size: 0.8rem; padding: 0.4rem 0.7rem; } }

/* ---------- Bouton Imprimer / PDF ---------- */
.pdb-actions { display: flex; justify-content: flex-end; margin: 0 0 1rem; }
.pdb-print-btn { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; background: var(--pdb-ivoire); color: var(--pdb-marine); border: 1px solid var(--pdb-trait); border-radius: 6px; font-size: 0.85rem; font-family: var(--pdb-titres); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.pdb-print-btn:hover { background: var(--pdb-marine); color: #fff; }
.pdb-print-btn .pdb-ico { width: 18px; height: 18px; }

/* ---------- Impression / export PDF ---------- */
@media print {
  #wpadminbar, .pdb-site-header, .pdb-overlay-nav, .pdb-skip-link, .pdb-site-footer,
  .pdb-hero, .pdb-nav-jours, .pdb-actions, .pdb-menu-trigger, .pdb-quicklinks,
  .leaflet-control-container, .pdb-gpx-dl, .pdb-elev-tip, .pdb-scroll-cue { display: none !important; }
  html { margin-top: 0 !important; }
  body { background: #fff !important; }
  .pdb-fiche, .pdb-container, .pdb-bloc, .pdb-map-col, .pdb-card { box-shadow: none !important; }
  .pdb-bloc, .pdb-poi, .pdb-card, .pdb-elev, .pdb-parcours-row, figure { break-inside: avoid; page-break-inside: avoid; }
  .pdb-leaflet { height: 320px !important; }
  a { text-decoration: none !important; color: inherit !important; }
}

/* ---------- POI enrichis : catégorie, altitude, site ---------- */
.pdb-cat-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.14rem 0.5rem; border-radius: 999px; font-size: 0.66rem; font-weight: 600; font-family: var(--pdb-titres); text-transform: uppercase; letter-spacing: 0.04em; color: #fff; background: var(--pdb-cat, #555); white-space: nowrap; flex-shrink: 0; }
.pdb-cat-tag .pdb-ico { width: 14px; height: 14px; color: #fff; }
.pdb-alt-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.14rem 0.5rem; border-radius: 999px; font-size: 0.66rem; font-weight: 600; font-family: var(--pdb-titres); color: var(--pdb-marine); background: var(--pdb-ivoire); border: 1px solid var(--pdb-trait); white-space: nowrap; flex-shrink: 0; }
.pdb-alt-badge .pdb-ico { width: 14px; height: 14px; color: var(--pdb-rouge); }
.pdb-poi-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.15rem 0 0.5rem; }
.pdb-modal-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.pdb-modal-site { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 1.2rem; padding: 0.6rem 1.1rem; background: var(--pdb-rouge); color: #fff; border-radius: 6px; font-family: var(--pdb-titres); font-weight: 600; text-decoration: none; transition: background 0.15s ease; }
.pdb-modal-site:hover { background: var(--pdb-marine); }

/* ---------- Photos géolocalisées : bulles + fleur ---------- */
.pdb-ph-marker { background: none !important; border: none !important; }
.pdb-ph-marker:hover { z-index: 10000 !important; }
.pdb-ph-bubble {
    position: relative; z-index: 2;
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    border: 2px solid #fff; box-shadow: 0 2px 7px rgba(0,0,0,0.4);
    background: #e8e8e8; cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pdb-ph-bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdb-ph-marker:not(.pdb-ph-marker-cluster):hover .pdb-ph-bubble {
    transform: scale(1.6); box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

.pdb-ph-cluster { position: absolute; left: 0; top: 0; width: 44px; height: 44px; }
.pdb-ph-cluster::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px;
    transform: translate(-50%, -50%); border-radius: 50%; z-index: 1; pointer-events: none;
    transition: width 0.25s ease, height 0.25s ease;
}
.pdb-ph-marker-cluster:hover .pdb-ph-cluster::after {
    width: var(--bloom, 200px); height: var(--bloom, 200px); pointer-events: auto;
}
.pdb-ph-bubble-cluster { position: relative; z-index: 2; width: 44px; height: 44px; }
.pdb-ph-count {
    position: absolute; right: -8px; bottom: -8px; z-index: 4;
    min-width: 21px; height: 21px; padding: 0 5px;
    border-radius: 11px; background: var(--pdb-rouge, #B03A2E); color: #fff;
    font-family: var(--pdb-titres, sans-serif); font-weight: 700; font-size: 11.5px; line-height: 21px;
    text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.5); border: 2px solid #fff;
    pointer-events: none;
}
.pdb-ph-petals { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; }
.pdb-ph-petal {
    position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
    padding: 0; border: 2px solid #fff; background: #e8e8e8; border-radius: 50%; overflow: hidden;
    cursor: pointer; opacity: 0; transform: translate(0, 0) scale(0.2); pointer-events: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
    transition-delay: var(--d, 0ms);
}
.pdb-ph-petal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdb-ph-marker-cluster:hover .pdb-ph-petal {
    opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); pointer-events: auto;
}
.pdb-ph-petal:hover { transform: translate(var(--tx), var(--ty)) scale(1.3) !important; z-index: 5; }

/* ---------- Galerie plein écran + timeline ---------- */
.pdb-gal-backdrop {
    position: fixed; inset: 0; z-index: 10001; background: rgba(10, 13, 24, 0.97);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease;
    display: flex; flex-direction: column; align-items: center;
}
.pdb-gal-backdrop.is-open { opacity: 1; visibility: visible; }
.pdb-gal-close {
    position: absolute; top: 12px; right: 20px; z-index: 3; background: none; border: none;
    color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: 0.8; padding: 0;
}
.pdb-gal-close:hover { opacity: 1; }
.pdb-gal-fig {
    margin: 0; flex: 1 1 auto; min-height: 0; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3.2rem 1rem 0.5rem;
}
.pdb-gal-main {
    max-width: min(1400px, 94vw); max-height: calc(100vh - 220px);
    object-fit: contain; border-radius: 4px; box-shadow: 0 12px 44px rgba(0,0,0,0.6);
}
.pdb-gal-caption {
    margin-top: 0.9rem; color: #eaeaea; font-family: var(--pdb-titres, sans-serif);
    font-size: 0.95rem; letter-spacing: 0.02em;
}
.pdb-gal-timeline {
    flex: 0 0 auto; width: 100%; height: 108px; display: flex; align-items: center; gap: 8px;
    overflow-x: auto; overflow-y: hidden; padding: 14px 18px 20px; scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.4) transparent;
}
.pdb-gal-timeline::-webkit-scrollbar { height: 8px; }
.pdb-gal-timeline::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 4px; }
.pdb-gal-thumb {
    flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 2px solid transparent;
    border-radius: 6px; overflow: hidden; background: none; cursor: pointer; opacity: 0.55;
    transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.pdb-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdb-gal-thumb:hover { opacity: 1; transform: scale(1.35); z-index: 1; }
.pdb-gal-thumb.is-active { opacity: 1; border-color: var(--pdb-rouge, #B03A2E); transform: scale(1.15); }
@media (max-width: 600px) {
    .pdb-gal-main { max-height: calc(100vh - 180px); }
    .pdb-gal-timeline { height: 92px; }
    .pdb-gal-thumb { width: 54px; height: 54px; }
}

/* ---------- Rejouer le voyage ---------- */
.pdb-map-head-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.pdb-replay-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 0.95rem; border: none; border-radius: 6px; cursor: pointer;
    background: var(--pdb-rouge, #B03A2E); color: #fff;
    font-family: var(--pdb-titres, sans-serif); font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.03em;
    transition: background 0.15s ease, transform 0.15s ease;
}
.pdb-replay-btn .pdb-ico { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.pdb-replay-btn:hover { background: var(--pdb-marine, #1c2b4a); transform: translateY(-1px); }
.pdb-replay-btn.is-playing { background: var(--pdb-marine, #1c2b4a); }

.pdb-moto { background: none !important; border: none !important; }
.pdb-moto svg {
    display: block; width: 52px; height: 34px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}
.pdb-moto.pdb-moto-flip svg { transform: scaleX(-1); }
.pdb-elev-moto { pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.pdb-replay-photo .pdb-ph-bubble { animation: pdb-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pdb-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pdb-replay-ui { position: absolute; inset: 0; z-index: 1000; pointer-events: none; }
.pdb-replay-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, 0.12); }
.pdb-replay-bar i { display: block; height: 100%; width: 0; background: var(--pdb-rouge, #B03A2E); transition: width 0.12s linear; }
.pdb-replay-card {
    position: absolute; left: 14px; bottom: 20px; width: 186px;
    background: rgba(255, 255, 255, 0.96); border-radius: 8px; overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    font-family: var(--pdb-titres, sans-serif); opacity: 0; animation: pdb-fade 0.35s ease forwards;
}
.pdb-replay-card img { width: 100%; height: 118px; object-fit: cover; display: block; }
.pdb-replay-card span { display: block; padding: 0.5rem 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--pdb-marine, #1c2b4a); }
@keyframes pdb-fade { to { opacity: 1; } }
@media (max-width: 600px) {
    .pdb-replay-card { width: 140px; left: 10px; bottom: 14px; }
    .pdb-replay-card img { height: 90px; }
}
