/* Trasferte page: map markers (shapes; size and colour from TRIP_TYPES in trips.js), legend and year tables. All rules sit under .trips-page. */
.trips-page .trips-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.85rem; margin-bottom: 0.75rem; }
.trips-page .trips-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.trips-page .trips-map { width: 100%; height: 500px; margin-bottom: 1.5rem; isolation: isolate; }

.trips-page .mk { flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.trips-page .mk-trip { border-radius: 50%; }
.trips-page .mk-race,
.trips-page .mk-event { transform: rotate(45deg); }
.trips-page .mk-training,
.trips-page .mk-ccco { border-radius: 2px; }

/* Leaflet adds the marker markup to the map pane, which is inside the page root */
.trips-page .site-marker-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.trips-page .site-marker-year { font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; background: #fff; border-radius: 3px; padding: 1px 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.trips-page .marker-cluster span { font-weight: 600; }

/* Year tables: the same column widths in every year (fixed layout from the colgroup; the region takes the rest) */
.trips-page .trips-table { table-layout: fixed; }
.trips-page .trips-table td { overflow-wrap: anywhere; }
.trips-page .trips-col-name { width: 40%; }
.trips-page .trips-col-location { width: 30%; }
.trips-page .trips-col-actions { width: 5.5rem; }

@media (max-width: 575.98px) {
  .trips-page .trips-map { height: 360px; }
  .trips-page .trips-col-actions { width: 3rem; }
}
