/* Trips page — wide journey layout. The full-bleed wide-band shell now lives in
   site.css (.wide-band / .wide-band-inner), shared by Trips, Planned, and Photos
   so every grid/map page sits at the same width. The intro prose stays narrow. */

.trips-title { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0.2rem 0 0.45rem; color: var(--text); line-height: 1.1; }
.trips-intro { max-width: 62ch; color: var(--text-dim); margin: 0 0 1.5rem; font-size: 1.02rem; line-height: 1.6; }

/* lifetime stat strip */
.trip-stats-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem; margin: 0 0 1.25rem;
}
.tstat { padding: 0.8rem 0.6rem; text-align: center; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); }
.tstat .v { display: block; font-size: 1.7rem; font-weight: 700; color: var(--text); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tstat .l { display: block; font-size: 0.74rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }

/* wide map */
.trip-map-wide { height: 640px; }
@media (max-width: 700px) { .trip-map-wide { height: 460px; } }

/* "show all stops" map control — matches the zoom buttons' look */
.leaflet-bar a.map-reset {
  font-size: 1.15rem; font-weight: 700; line-height: 30px; text-align: center;
  width: 30px; height: 30px; color: #333; background: #fff;
}
.leaflet-bar a.map-reset:hover { background: #f4f4f4; color: #000; }

/* map key / legend */
.map-legend { background: rgba(13,17,23,0.88); border: 1px solid var(--border); border-radius: 8px; padding: 0.45rem 0.65rem; font-size: 0.78rem; color: var(--text); display: flex; flex-direction: column; gap: 0.25rem; backdrop-filter: blur(4px); line-height: 1.3; }
.map-legend span { display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.map-legend i { width: 0.95rem; height: 0.95rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-style: normal; font-size: 0.8rem; }
.map-legend i.lg-state { background: rgba(63,185,80,0.4); border: 1px solid #3fb950; border-radius: 2px; }
.map-legend i.lg-photo { background: #3388ff; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 2px rgba(0,0,0,0.6); }

/* overnight/transit campsite stop markers (un-clustered, always visible) */
.camp-pin { font-size: 20px; line-height: 28px; text-align: center; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)); cursor: pointer; }

/* dark-theme the marker clusters to match the map */
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(88,166,255,0.25); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {
  background: rgba(88,166,255,0.85); color: #0b0f15; font-weight: 700;
}

/* section heading inside the wide band */
.wide-band .section-h { margin: 2rem 0 1rem; font-size: 1.3rem; }

/* location cards — one collapsible cover card per travel-order stop */
.loc-hint { color: var(--text-dim); font-size: 0.88rem; margin: -0.4rem 0 0.9rem; }
.loc-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.loc-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); overflow: hidden; scroll-margin-top: 1rem; }
.loc-card[open] { border-color: var(--accent); }
.loc-card:target { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(88,166,255,0.35); }
.loc-summary { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.85rem; cursor: pointer; list-style: none; }
.loc-summary::-webkit-details-marker { display: none; }
.loc-cover { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #0a0e14; }
.loc-metas { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.loc-title { font-weight: 600; color: var(--text); font-size: 1.05rem; }
.loc-summary:hover .loc-title { color: var(--accent); }
.loc-count { color: var(--text-dim); font-size: 0.82rem; }
.loc-chevron { color: var(--text-dim); font-size: 1.05rem; flex-shrink: 0; transition: transform 0.15s; }
.loc-card[open] .loc-chevron { transform: rotate(90deg); }
.loc-card > .loc-grid { padding: 0.2rem 0.85rem 0.9rem; }

/* Location → Places review cards (from places.json) */
.venues { padding: 0.3rem 0.85rem 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.venues-head { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.3rem; }
.venue { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.5rem; border: 1px solid var(--border); border-radius: 9px; background: #0d1117; }
.venue-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; flex-shrink: 0; cursor: zoom-in; }
.venue-ico { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; background: #0a0e14; border-radius: 7px; }
.venue-body { min-width: 0; flex: 1; }
.venue-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.venue-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.15rem; line-height: 1.45; }
.verdict { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 11px; font-size: 0.72rem; font-weight: 600; vertical-align: middle; }
.v-yes { background: rgba(63,185,80,0.2); color: var(--ok, #3fb950); }
.v-meh { background: rgba(210,153,34,0.2); color: #d29922; }
.v-no { background: rgba(248,81,73,0.2); color: #f85149; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.55rem; }
.loc-photo { margin: 0; border-radius: 10px; overflow: hidden; background: #0a0e14; border: 1px solid var(--border); }
.loc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; cursor: zoom-in; transition: transform 0.2s; }
.loc-photo:hover img { transform: scale(1.04); }
