/* Cartes Leaflet / MapLibre — remplace Google Maps */
.leaflet-container { font-family: inherit; background: #efefef; }
/* Tailwind preflight force img { max-width:100% } : casse les tuiles et contrôles Leaflet */
.leaflet-container img,
.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-icon { max-width: none !important; }
.leaflet-pane, .leaflet-control { z-index: auto; }
.leaflet-pane { z-index: 1; }
.leaflet-top, .leaflet-bottom { z-index: 2; }

/* Marqueur simple */
.tlc-marker-icon { filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }

/* Clusters : rond orange + compteur, cf. assets/ui/clusters/m1.svg */
.tlc-cluster {
  width: 52px; height: 53px;
  background: url('/assets/ui/clusters/m1.svg') no-repeat center / contain;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
  cursor: pointer;
}
.leaflet-marker-icon.tlc-cluster-wrap { background: transparent; border: 0; }

/* Popup fiche produit */
.tlc-popup .leaflet-popup-content-wrapper { border-radius: 8px; padding: 0; overflow: hidden; }
.tlc-popup .leaflet-popup-content { margin: 0; width: 320px !important; }
.tlc-popup .leaflet-popup-content p { margin: 0; }
.tlc-popup .product-box-thumb { height: 180px; }
.tlc-popup .product-box-content { padding: 12px 16px; }
.tlc-popup .product-box-title { font-size: 18px; font-weight: 700; }
.tlc-popup .product-box-desc p { padding: 8px 0; font-size: 13px; }
.tlc-popup .pictos { display: flex; flex-wrap: wrap; gap: 6px; }
.tlc-popup .pictos img { width: 22px; height: 22px; }
.tlc-popup footer { padding: 0 16px 12px; text-align: right; }
.tlc-popup footer img { width: 32px; display: inline-block; }
.tlc-popup .leaflet-popup-close-button { z-index: 3; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); }

/* Sélecteur Plan / Satellite façon boutons */
.leaflet-control-layers.tlc-layers { border: 0; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.3); background: #fff; }
.leaflet-control-layers.tlc-layers .leaflet-control-layers-list { display: flex; padding: 0; }
.leaflet-control-layers.tlc-layers label { margin: 0; }
.leaflet-control-layers.tlc-layers label > span { display: block; padding: 8px 18px; font-size: 16px; color: #555; cursor: pointer; }
.leaflet-control-layers.tlc-layers input { position: absolute; opacity: 0; width: 0; height: 0; }
.leaflet-control-layers.tlc-layers input:checked + span { color: #000; font-weight: 600; }
.leaflet-control-layers.tlc-layers .leaflet-control-layers-separator { display: none; }

/* Plein écran */
.tlc-fullscreen a { font-size: 18px; line-height: 30px; text-align: center; display: block; width: 30px; height: 30px; }
.leaflet-container:fullscreen { width: 100% !important; height: 100% !important; }

/* Mention de source des données (obligation de licence), discrète : petit, sans fond, sans lien Leaflet */
.leaflet-control-attribution.tlc-attribution { background: transparent; font-size: 9px; line-height: 1; color: rgba(0,0,0,.45); padding: 2px 4px; margin: 0; }
.leaflet-control-attribution.tlc-attribution a { color: inherit; text-decoration: none; }
.leaflet-control-attribution.tlc-attribution a:hover { text-decoration: underline; }

/* Éventail (spiderfy) des marqueurs superposés */
.leaflet-cluster-spider-leg { stroke: #f5a220; stroke-opacity: .8; stroke-width: 2; }

/* Logo TLC en bas à gauche */
.tlc-map-logo { border-radius: 8px; overflow: hidden; margin: 0 0 4px 6px !important; line-height: 0; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.tlc-map-logo img { width: 80px; height: auto; display: block; max-width: none; }
