/* Overzicht: three columns, the map over two of them with Gebieden beside it, the other tiles three in a row
   below. */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tiles > .wide { grid-column: span 2; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles > .wide { grid-column: auto; }
}

.tile-map { padding: 0; overflow: hidden; gap: 0; }
.mini-map { display: block; position: relative; height: 400px; background: var(--shell-map); }
@media (max-width: 760px) { .mini-map { height: 280px; } }
#mini-map { position: absolute; inset: 0; }
.mini-map .maplibregl-canvas { cursor: pointer; }
.map-facts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 32px; padding: 18px 22px; }
.map-facts h2 { flex: 1 0 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.facts dt { font-size: 13px; color: var(--shell-muted); }
.facts dd { margin: 0; font: 700 24px/1.15 "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums; }
.facts .fresh { color: var(--shell-orange-text); }
.map-facts .shell-link-more { margin-left: auto; }

.progress { height: 8px; border-radius: 4px; background: var(--shell-hairline); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--shell-blue); }
.tile-note { font-size: 14px; color: var(--shell-muted); }

/* Laatste ritten: the sketch, the day with km and time under it, the new km on the right in the sketch's blue. */
.ride-list { display: flex; flex-direction: column; }
.ride {
  display: flex; align-items: center; gap: 14px; padding: 10px 0; color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--shell-hairline);
}
.ride:first-child { padding-top: 2px; }
.ride:last-child { border-bottom: 0; }
.ride:hover .ride-day { text-decoration: underline; }
.ride .sketch-holder { display: flex; flex-shrink: 0; border-radius: 10px; overflow: hidden; }
.ride-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ride-day { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ride-km { font-size: 14px; color: var(--shell-muted); font-variant-numeric: tabular-nums; }
.ride-new { font-size: 14px; font-weight: 600; color: var(--shell-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ride-new.fresh { font-size: 16px; font-weight: 700; color: #2F6FD6; }
:root[data-theme="night"] .ride-new.fresh { color: #5B93F0; }

/* Prestaties: round badges as in the app (AchievementBadge), an orange ring on a light orange fill; the next one dashed. */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 15%, var(--surface-raised)); box-shadow: inset 0 0 0 2px var(--primary);
  color: var(--ink); font: 800 15px/1 "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums;
}
.badge.next { background: transparent; color: var(--shell-muted); border: 2px dashed var(--shell-quiet-line); }
#t-badges, .area-list { display: flex; flex-direction: column; gap: 12px; }
.area-list { gap: 10px; }
.area-list .area-group { margin-top: 6px; }
