/* AlafeelGood — recherche « autour de mon départ » : carte collante, surbrillance, boucles générées */

/* La carte reste visible pendant qu'on fait défiler la liste (façon Bike Companion) */
.recherche .carte-recherche { position: sticky; top: calc(6px + var(--sat)); z-index: 20; height: 38vh; min-height: 230px; }
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  /* PC et téléphone en paysage : carte à gauche, liste à droite */
  .page.recherche { max-width: 1280px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 0 18px; align-items: start; }
  .page.recherche .carte-recherche { grid-column: 1; grid-row: 1 / span 3; height: calc(100vh - var(--onglets-h) - var(--sab) - 32px); min-height: 200px; top: 12px; }
  .page.recherche #sous-onglets, .page.recherche #contenu { grid-column: 2; }
  .page.recherche #sous-onglets { margin-top: 0; }
}

.etiquette-trace { background: rgba(11, 18, 32, .92); color: #fff; border: 0; border-radius: 12px; padding: 6px 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); font: inherit; font-size: .82rem; line-height: 1.25; text-align: center; }
.etiquette-trace b { display: block; font-size: .86rem; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etiquette-trace span { color: #FFD166; font-weight: 700; }
.leaflet-tooltip-top.etiquette-trace::before { border-top-color: rgba(11, 18, 32, .92); }

.carte-parcours .cp-lien { transition: box-shadow .2s, transform .15s, background .2s; }
.carte-parcours:hover .cp-lien, .carte-parcours.choisie .cp-lien { box-shadow: inset 0 0 0 2px var(--trace, var(--accent)); }
.carte-parcours.choisie .cp-lien { background: color-mix(in srgb, var(--trace, var(--accent)) 12%, var(--surface)); }
.carte-parcours.flash .cp-lien { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { transform: scale(1.02); box-shadow: 0 0 0 4px var(--trace, var(--accent)); } 100% { transform: none; } }

.carte-parcours .cp-haut { flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; }
.badge-depart { white-space: nowrap; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.badge-depart .ico { width: 13px; height: 13px; }
.cp-corps .approche { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.cp-corps .approche .btn { min-height: 36px; padding: 0 10px; font-size: .8rem; border-radius: 999px; white-space: nowrap; }
.cp-corps .approche .btn .ico { width: 15px; height: 15px; }

.section-autour { margin-bottom: 8px; }
.section-autour .titre-section { margin-bottom: 6px; }
.barre-autour { height: 4px; border-radius: 999px; background: var(--surface2); overflow: hidden; margin-bottom: 10px; }
.barre-autour i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .4s; }
.barre-autour.finie { opacity: 0; transition: opacity .6s .6s; }

.carte-parcours.squelette .cp-lien { opacity: .7; cursor: default; }
.carte-parcours.squelette .nom { color: var(--texte2); }
.carte-parcours.squelette .cp-apercu { background: linear-gradient(90deg, var(--bg) 0%, var(--surface2) 50%, var(--bg) 100%); background-size: 200% 100%; animation: brille 1.4s linear infinite; }
.tourne { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--texte2); border-right-color: transparent; animation: tourne .8s linear infinite; }
@keyframes brille { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .carte-parcours.squelette .cp-apercu, .tourne, .carte-parcours.flash .cp-lien { animation: none; } }

.pastilles.qualite { margin: 4px 0 12px; }
.pastilles.qualite .pastille-info { background: var(--surface); }
