/* Only layout and interaction adaptations; shared Santé/Infrastructures components own appearance. */
.route-page .ft-panel { min-width:0; }
.route-page .ft-map-tools { flex-wrap:wrap; }
.route-page .ft-map-tools label { white-space:normal; }
.route-page .ft-map-tools__input { flex:1 1 155px; max-width:100%; min-height:44px; }
.route-page .ft-map-tools__button { min-height:44px; white-space:normal; }
.route-page .route-charts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.route-charts>div { min-width:0; }
.route-chart { position:relative; height:330px; width:100%; min-width:0; }
.route-page .demo-table { min-width:0; }
.route-page caption { caption-side:top; color:var(--ft-ink); font-weight:700; padding:.8rem; }
.route-page p a { text-decoration:underline; text-underline-offset:.15em; }
.route-page :focus-visible { outline:3px solid var(--ald-brand-green-dark,#045b2e); outline-offset:3px; }
.route-page .ft-map { z-index:0; }
.route-page .leaflet-overlay-pane canvas,.route-page .leaflet-overlay-pane svg { max-width:none; }
.route-page .leaflet-control a { color:#111; }
.route-page .route-marker { border:2px solid #fff; border-radius:50%; width:24px; height:24px; color:#fff; text-align:center; font:bold 14px/20px sans-serif; }
.route-page .route-legend { display:flex; flex-wrap:wrap; gap:1rem; margin:1rem 0; }
.route-page details { margin:1rem 0; }
.route-page summary { cursor:pointer; padding:.6rem 0; }
@media(max-width:767px){.route-page .route-charts{grid-template-columns:minmax(0,1fr)}.route-page .ft-map-tools__input{flex-basis:100%;width:100%}.route-page .ft-map{min-height:390px}}
@media(prefers-reduced-motion:reduce){.route-page *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.route-page #route-commune-table a { display:inline-block; padding:.35rem 0; margin-right:.5rem; }

/* Reuse the Infrastructures train filter component; adapt its grid to six fields. */
.route-page .route-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
.route-page .route-filters > button { grid-column:1 / -1; justify-self:end; }
@media(max-width:991px){.route-page .route-filters{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:575px){.route-page .route-filters{grid-template-columns:minmax(0,1fr);}.route-page .route-filters > button{justify-self:stretch;}}

/* Shared ft-popup presentation, with a compact layout for accident details. */
.route-leaflet-popup .leaflet-popup-content { width:min(300px,calc(100vw - 148px))!important; margin:14px; }
.route-leaflet-popup .leaflet-popup-content-wrapper { border:1px solid var(--ft-border); border-radius:8px; }
.route-popup.ft-popup { min-width:0; max-width:none; }
.route-popup .ft-popup__head { padding-right:14px; }
.route-popup .ft-popup__title { line-height:1.25; }
.route-popup .ft-popup__value { font-size:1.1rem; line-height:1.35; margin:.35rem 0 .7rem; }
.route-popup .ft-popup__line { margin:.4rem 0; }
.route-popup-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin:.6rem 0 .9rem; }
.route-popup-stats div { background:var(--ft-soft); border-radius:6px; padding:.5rem .2rem; text-align:center; }
.route-popup-stats dt { font-size:.75rem; font-weight:600; color:var(--ft-muted); }
.route-popup-stats dd { margin:.2rem 0 0; font-size:1.25rem; font-weight:800; color:var(--ft-ink); }
.route-popup details { border-top:1px solid var(--ft-border); margin:.7rem 0; }
.route-popup summary { font-size:.85rem; font-weight:700; }
.route-popup .ft-popup__button { box-sizing:border-box; font-size:.85rem; }
.route-popup .ft-popup__head .ft-popup__line { color:#fff; }

.route-popup .ft-popup__body { max-height:min(40vh,240px); }
