/* Toutes les règles sont préfixées pour éviter les conflits avec le thème WordPress. */
.tpms-root{--tpms-wine:#712b3e;--tpms-ink:#242329;--tpms-border:#e5e0df;--tpms-muted:#66636b;color:var(--tpms-ink);font-family:inherit;max-width:100%;box-sizing:border-box}
.tpms-root *{box-sizing:border-box}
.tpms-root button,.tpms-root select,.tpms-root input{font:inherit}
.tpms-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 18px}
.tpms-eyebrow{font-size:11px;font-weight:800;letter-spacing:.19em;color:var(--tpms-wine);margin:0 0 6px}
.tpms-root .tpms-heading h2{font-size:clamp(23px,2.5vw,34px);line-height:1.2;letter-spacing:-.018em;font-weight:750;color:var(--tpms-ink);margin:0}
.tpms-count{background:#f2e9eb;color:var(--tpms-wine);padding:8px 12px;border-radius:100px;white-space:nowrap;font-size:12px;font-weight:750}
.tpms-filters{display:grid;grid-template-columns:minmax(130px,2.1fr) repeat(4,minmax(105px,1fr)) auto;gap:10px;align-items:end;margin-bottom:15px}
.tpms-filters label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#524b50;font-size:12px;font-weight:650}
.tpms-root .tpms-filters input,.tpms-root .tpms-filters select{appearance:auto;background:#fff;color:var(--tpms-ink);height:42px;width:100%;border:1px solid #dad5d6;border-radius:8px;padding:8px 10px;box-shadow:none;outline-offset:2px;font-size:13px;line-height:1.4}
.tpms-root .tpms-filters input:focus-visible,.tpms-root .tpms-filters select:focus-visible{outline:2px solid var(--tpms-wine)}
.tpms-root .tpms-reset{height:42px;padding:0 13px;border:1px solid #dcced2;background:#fff;border-radius:8px;color:var(--tpms-wine);font-size:12px;font-weight:750;cursor:pointer}
.tpms-root .tpms-reset:hover{background:#f8f2f3}
.tpms-layout{display:grid;grid-template-columns:minmax(252px,.36fr) minmax(0,1fr);border:1px solid var(--tpms-border);border-radius:14px;overflow:hidden;min-height:var(--tpms-map-height)}
.tpms-sidebar{display:flex;flex-direction:column;min-height:0;max-height:var(--tpms-map-height);background:#fff;border-right:1px solid var(--tpms-border)}
.tpms-list-title{display:flex;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--tpms-border);font-size:14px;font-weight:800;flex-shrink:0}
.tpms-list-count{color:var(--tpms-wine)}
.tpms-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1}
.tpms-card{padding:14px 17px 14px;border-bottom:1px solid #eee9e9;background:#fff;transition:background .2s}
.tpms-card:hover{background:#fbf8f8}
.tpms-card-head{display:flex;gap:10px;align-items:start}
.tpms-card-titles{min-width:0}
.tpms-root .tpms-card h3{margin:0 0 5px;font-size:14px;color:var(--tpms-ink);font-weight:760;line-height:1.3}
.tpms-card-titles p{font-size:12px;color:var(--tpms-muted);margin:0;line-height:1.4}
.tpms-card-damage{display:flex;flex-wrap:wrap;gap:5px 10px;color:var(--tpms-wine);font-size:12px;font-weight:650;line-height:1.45;margin:11px 0 6px}
.tpms-damage-label{display:inline-block;max-width:100%;overflow-wrap:anywhere}
.tpms-damage-label:not(:first-child)::before{content:"·";display:inline-block;margin-right:10px;color:#a18c92}
.tpms-card-date{color:var(--tpms-muted);font-size:12px;margin:4px 0 7px}
.tpms-root .tpms-card-see{color:var(--tpms-wine);font-size:12px;font-weight:780;text-align:left;background:transparent;border:0;padding:5px 0;margin:0;cursor:pointer}
.tpms-root .tpms-card-see:hover{text-decoration:underline}
.tpms-list-icon{flex-shrink:0;transform:scale(.85);transform-origin:top left;width:28px;height:29px}
.tpms-root .tpms-more{background:#fff;border:0;border-top:1px solid var(--tpms-border);color:var(--tpms-wine);font-size:12px;font-weight:700;cursor:pointer;padding:13px;text-align:center}
.tpms-root .tpms-more:hover{background:#f8f2f3}
.tpms-root .tpms-more[hidden]{display:none}
.tpms-map-col{display:flex;flex-direction:column;min-width:0;position:relative;background:#faf9f8}
.tpms-root .tpms-map{height:var(--tpms-map-height);width:100%;min-height:340px;z-index:0;background:#eceae6}
.tpms-map-icon{background:transparent;border:none}
.tpms-pin{position:relative;display:inline-flex;width:33px;height:33px;align-items:center;justify-content:center;background:var(--tpms-pin,#712b3e);color:white;border:2px solid white;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);box-shadow:0 2px 7px rgba(32,26,32,.28)}
.tpms-pin>svg{width:18px;height:18px;transform:rotate(45deg);stroke:currentColor;overflow:visible}
.tpms-legend{display:flex;flex-wrap:wrap;align-items:center;gap:5px 14px;min-height:42px;padding:9px 14px;background:#fff;border-top:1px solid var(--tpms-border)}
.tpms-legend-item{display:inline-flex;align-items:center;gap:5px;color:#4d4d52;font-size:10px;line-height:1.2;white-space:nowrap}
.tpms-legend-pin{display:inline-flex;width:18px;height:18px;transform:scale(.55);transform-origin:5px 3px;flex-shrink:0}
.tpms-popup{font-family:inherit;max-height:350px;overflow:auto;color:var(--tpms-ink)}
.tpms-popup .tpms-popup-type{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:11px;font-weight:750;line-height:1.4;color:var(--tpms-wine);margin-bottom:10px}
.tpms-popup h3{font-size:17px!important;margin:0 0 6px!important;line-height:1.25!important;font-weight:800!important;color:#1d1a1c!important}
.tpms-popup-place{font-size:12px;color:#56505b;margin:0 0 8px}
.tpms-popup-date{font-size:12px;font-weight:750;margin:7px 0}
.tpms-popup-description{font-size:13px;line-height:1.5;white-space:pre-line;margin:8px 0 11px}
.tpms-popup-approx{font-size:11px;color:#75582c;margin:9px 0;background:#fef8e8;padding:6px 9px;border-radius:4px}
.tpms-popup-links{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border-top:1px solid #eee;padding-top:11px;margin-top:7px}
.tpms-popup-links a{font-size:12px;text-decoration:underline;font-weight:700;color:var(--tpms-wine)}
.tpms-root .leaflet-popup-content{margin:14px 16px}
.tpms-root .leaflet-container{font-family:inherit}
.tpms-root .marker-cluster-small,.tpms-root .marker-cluster-medium,.tpms-root .marker-cluster-large{background:rgba(113,43,62,.23)}
.tpms-root .marker-cluster-small div,.tpms-root .marker-cluster-medium div,.tpms-root .marker-cluster-large div{background:#712b3e;color:#fff;font-weight:700}
.tpms-disclaimer{font-size:11px;line-height:1.55;color:#69636a;margin:12px 1px 0}
.tpms-root .tpms-error{border-left:3px solid #9b3544;background:#fff1f3;color:#732b37;padding:12px;font-size:13px;margin:12px 0}
.tpms-root .tpms-error[hidden]{display:none}
.tpms-empty{font-size:13px;color:var(--tpms-muted);padding:20px}
@media(max-width:1100px){.tpms-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.tpms-filters label:first-child{grid-column:span 2}}
@media(max-width:780px){.tpms-heading{align-items:start;flex-wrap:wrap}.tpms-count{font-size:11px}.tpms-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.tpms-filters label:first-child{grid-column:span 2}.tpms-layout{display:flex;flex-direction:column;min-height:0}.tpms-map-col{order:1}.tpms-sidebar{order:2;max-height:440px;border-right:0;border-top:1px solid var(--tpms-border)}.tpms-root .tpms-map{height:min(65vh,540px);min-height:340px}.tpms-legend{gap:5px 8px}.tpms-list{max-height:370px}}
@media(max-width:420px){.tpms-filters{gap:8px}.tpms-filters label{font-size:11px}.tpms-root .tpms-filters input,.tpms-root .tpms-filters select{font-size:12px}.tpms-root .tpms-heading h2{font-size:23px}.tpms-legend-item{font-size:9px}}
@media(prefers-reduced-motion:reduce){.tpms-card{transition:none}}

.tpms-popup-image { display:block;width:100%;max-height:185px;object-fit:cover;border-radius:7px;margin-bottom:10px; }
