/* ── YoMetro — yometro.css ──────────────────────────────────────────────────
   Merged from custom.css + site.css.
   Duplicates removed, conflicts resolved, grouped by feature.
   ────────────────────────────────────────────────────────────────────────── */


/* ══════════════════════════════════════════════════════════════════════════
   1. BASE
══════════════════════════════════════════════════════════════════════════ */

body {
  background-color: #f3f6f5 !important;
  line-height: 1.65;
  font-size: 15px;
}

/* Sticky-nav offset for in-page anchor links (= nav height) */
section { scroll-margin-top: 60px; }


/* ══════════════════════════════════════════════════════════════════════════
   2. TYPOGRAPHY
══════════════════════════════════════════════════════════════════════════ */

.heading-size {
  font-size: 1.1rem;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .heading-size { font-size: 2rem; }
}

.text-muted,
.text-secondary {
  color: #475569 !important;
}

.text-purple { color: #5D4DA8; }


/* ══════════════════════════════════════════════════════════════════════════
   3. LOGO
══════════════════════════════════════════════════════════════════════════ */

.yometro-logo {
  height: clamp(40px, 4vw, 50px);
  width: auto;
}
@media (min-width: 768px) {
  .yometro-logo { height: 45px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   4. NAVBAR
══════════════════════════════════════════════════════════════════════════ */

#globalSearch {
  border-radius: 6px;
  padding: .35rem .75rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   5. HERO SEARCH SECTION
══════════════════════════════════════════════════════════════════════════ */

.metro-search-hero {
  background: linear-gradient(135deg,#0f172a 0%,#1e1b4b 60%,#2D2365 100%);
  padding: 3rem 1rem;
  position: relative;
  /* no overflow:hidden — allows dropdowns to escape the hero bounds */
}
@media (max-width: 767px) {
  .metro-search-hero { padding: 1rem 1rem; }
}

/* ── SVG hero background ── */
.hero-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;   /* clip the SVG, not the parent */
  pointer-events: none;
  z-index: 0;
  display: block;
}
.metro-search-hero .container,
.metro-search-hero .row {
  position: relative;
  z-index: 1;
}
/* Keep search dropdowns above the SVG layer */
.metro-search-hero .dropdown-menu,
.metro-search-hero [class*="Dropdown"],
#heroDropdown,
#fromDropdown,
#toDropdown {
  z-index: 1050 !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   6. HOME / ROUTE-FINDER INPUT FIELDS
   Native inputs styled to match Choices.js .choices__inner
══════════════════════════════════════════════════════════════════════════ */

.home-field-wrap {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
}
.home-field-wrap:focus-within {
  border-color: #5D4DA8;
  box-shadow: 0 0 0 3px rgba(93, 77, 168, 0.1);
  background: #fff;
}
.home-field-wrap > i {
  color: #94a3b8;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.home-search-input {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  color: #1e293b;
  font-size: 0.95rem;
  min-width: 0;
}
.home-search-input::placeholder { color: #94a3b8; }

.home-native-select {
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  color: #1e293b;
  font-size: 0.95rem;
  min-width: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.home-native-select:focus { outline: none; box-shadow: none; }

.home-search-clear {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 0 0 0.4rem;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}
.home-search-clear:hover { color: #ef4444; }


/* ══════════════════════════════════════════════════════════════════════════
   7. SEARCH RESULTS DROPDOWNS
══════════════════════════════════════════════════════════════════════════ */

/* Hero / nav / route-finder search result panels */
#heroDropdown,
#searchDropdown,
#searchDropdownMobile,
#fromDropdown,
#toDropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 1050;
  min-width: 100%;
  border-radius: .5rem;
  border: 1px solid rgba(0,0,0,.1);
}

/* Wrappers that contain the above need relative positioning */
.col-12.col-md-8.col-lg-6,
#globalSearchWrap,
#globalSearchWrapMobile,
.col-md-6 {
  position: relative;
}

/* #results — route-page station search */
#results {
  background: #fff;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
  margin-top: 0.3rem;
}
#results a {
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #334155 !important;
  border-bottom: 1px solid #e9ecef;
  transition: background 0.15s, color 0.15s;
}
#results a:last-child { border-bottom: none; }
#results a:hover { background: #f0eeff !important; color: #5D4DA8 !important; }


/* ══════════════════════════════════════════════════════════════════════════
   8. ROUTE-FINDER CARD
══════════════════════════════════════════════════════════════════════════ */

.metro-search-card {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 8px 48px rgba(79, 70, 229, 0.1), 0 2px 8px rgba(0,0,0,0.04);
  max-width: 920px;
  margin: 0 auto;
}

.metro-card-header {
  padding: 1.25rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metro-card-header-icon {
  color: #5D4DA8;
  font-size: 1rem;
}
.metro-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5D4DA8;
  margin: 0;
}

.metro-card-body {
  padding: 0.75rem 1.5rem 1.25rem;
}

.metro-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  display: block;
}

.metro-card-footer {
  border-top: 1px solid #f1f5f9;
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: #f1f5f9;
  border-radius: 0 0 1rem 1rem;
}

.metro-info-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.84rem;
}
.metro-info-item i {
  color: #94a3b8;
  font-size: 0.85rem;
}

.metro-return-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
}
.metro-return-link:hover { color: #5D4DA8; }
.metro-return-link i { font-size: 0.9rem; }

/* Route-finder line groups (separators between network groups) */
.line-group {
  border-bottom: 1px solid var(--bs-border-color);
}
.line-group:last-child {
  border-bottom: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   9. ROUTE-FINDER ACTIONS
══════════════════════════════════════════════════════════════════════════ */

.metro-swap-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.35s ease;
}
.metro-swap-btn:hover {
  background: #ede9fe;
  border-color: #6d28d9;
  color: #6d28d9;
  transform: rotate(180deg);
}

.btn-metro-find {
  background: #5D4DA8;
  border: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  transition: transform 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-metro-find:hover {
  background: #4a3d8f;
  transform: translateY(-2px);
}
.btn-metro-find:active {
  transform: translateY(0);
}

.btn-save-route {
  color: #5D4DA8;
  border: 1.5px solid #5D4DA8;
  background: #fff;
}
.btn-save-route:hover    { background: #f0eeff; color: #5D4DA8; }
.btn-save-route.is-saved { background: #f0eeff; color: #5D4DA8; border-color: #5D4DA8; }


/* ══════════════════════════════════════════════════════════════════════════
   10. CHOICES.JS — SCOPED TO METRO CARD
══════════════════════════════════════════════════════════════════════════ */

.metro-search-card .choices__inner {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  padding: 0.55rem 0.85rem !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.metro-search-card .choices__inner:focus-within {
  border-color: #6d28d9 !important;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1) !important;
  background: #fff !important;
}
.metro-search-card .choices__input {
  background: transparent !important;
  color: #1e293b !important;
  font-size: 0.95rem !important;
}
.metro-search-card .choices__input::placeholder { color: #94a3b8 !important; }
.metro-search-card .choices__placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}
.metro-search-card .choices__list--single .choices__item {
  color: #1e293b !important;
  font-weight: 500;
  font-size: 0.95rem;
}
.metro-search-card .choices__list--dropdown {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
  margin-top: 0.3rem !important;
}
.metro-search-card .choices__list--dropdown .choices__input {
  background: #f8fafc !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
  padding: 0.65rem 0.85rem !important;
}
.metro-search-card .choices__list--dropdown .choices__item {
  color: #334155 !important;
  background: transparent !important;
}
.metro-search-card .choices__list--dropdown .choices__item small {
  color: #94a3b8 !important;
}
.metro-search-card .choices__button {
  color: #94a3b8 !important;
  filter: none !important;
  opacity: 0.7;
}
.metro-search-card .choices__button:hover {
  color: #ef4444 !important;
  opacity: 1;
}


/* ══════════════════════════════════════════════════════════════════════════
   11. CHOICES.JS — GLOBAL OVERRIDES
══════════════════════════════════════════════════════════════════════════ */

.choices__list--dropdown .choices__item {
  padding: 0.5rem 0.75rem;
}
.choices__list--dropdown .choices__item.choice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.choices__list--dropdown .choices__item small {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  line-height: 1.5;
}
.choices__item .choices__button {
  margin-left: .5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.choices__list--dropdown {
  max-height: 40vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.choices__list--dropdown::-webkit-scrollbar { width: 6px; }
.choices__list--dropdown::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1); border-radius: 6px; }
.choices__title { overflow: hidden; min-width: 0; }

/* Prevent inner elements stealing mouseover — required for Choices.js highlight */
.choices__list--dropdown .choices__item--choice > * {
  pointer-events: none;
}

.choices__list--dropdown .choices__item--selectable {
  border-bottom: 1px solid #e9ecef !important;
  padding-right: 0.75rem !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.choices__list--dropdown .choices__item--selectable:last-child {
  border-bottom: none !important;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: #f0eeff !important;
  color: #5D4DA8 !important;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted small,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted small {
  color: #7c6bbf !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   12. CARDS
══════════════════════════════════════════════════════════════════════════ */

.card-hover {
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   13. STATION / LINE INDICATORS
══════════════════════════════════════════════════════════════════════════ */

/* Route line timeline (line.php) */
.station-indicator {
  position: relative;
  height: 100%;
}
.route-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  z-index: 1;
}
.route-line {
  width: 2px;
  flex: 1;
  min-height: 6px;
}
.station-row {
  min-height: 44px;
}

/* Small dot variant (route.php) */
.route-dot-sm {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Route quick-info chips ─────────────────────────────────────────────── */
.route-stat {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--bs-secondary-color, #6c757d);
  background: var(--bs-light, #f8f9fa);
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 20px;
  padding: .2rem .65rem;
  white-space: nowrap;
}
.route-stat i { font-size: .72rem; }

/* ── Route narrative block ──────────────────────────────────────────────── */
.route-narrative {
  background: var(--bs-light, #f8f9fa);
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.route-narrative p { line-height: 1.65; }

.route-inline-badge {
  display: inline-block;
  padding: .15em .55em;
  border-radius: 20px;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  vertical-align: middle;
}

/* ── Route segment (one line group) ────────────────────────────────────── */
.route-segment { border-bottom: 1px solid var(--bs-border-color, #dee2e6); }
.route-segment:last-child { border-bottom: 0; }

/* ── Board / interchange instruction rows ──────────────────────────────── */
.route-instruction {
  background: #fff;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}
.route-instruction--board   { background: #e9ecef; }
.route-instruction--change  { background: #e9ecef; }

.route-instruction-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
}
.route-instruction-icon--board  { background: var(--bs-primary, #0d6efd); color: #fff; }
.route-instruction-icon--change { background: var(--bs-warning, #ffc107); color: #000; }

/* ── Line pill (coloured) ───────────────────────────────────────────────── */
.route-line-pill {
  display: inline-block;
  padding: .15em .6em;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
}

/* ── Station row inside a segment ───────────────────────────────────────── */
.route-station-row { min-height: 42px; }
.route-station-row:last-child { border-bottom: 0 !important; }

/* ── Route footer: summary + return link ────────────────────────────────── */
.route-footer { background: var(--bs-light, #f8f9fa); }

.route-return-link {
  color: var(--bs-primary, #0d6efd);
  font-weight: 500;
}
.route-return-link:hover { text-decoration: underline !important; }

/* ── Coloured line name (inline text, no pill/badge) ────────────────────── */
.route-line-name { font-weight: 600; }

/* Station icon circle (station.php header) */
.station-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}


/* ══════════════════════════════════════════════════════════════════════════
   14. PROSE CONTENT (from Strapi rich-text blocks)
══════════════════════════════════════════════════════════════════════════ */

.prose p          { margin-bottom: .85rem; line-height: 1.7; }
.prose h2,
.prose h3         { font-weight: 600; margin-top: 1.5rem; margin-bottom: .5rem; }
.prose ul,
.prose ol         { padding-left: 1.4rem; margin-bottom: .85rem; }
.prose li         { margin-bottom: .25rem; }
.prose blockquote { border-left: 4px solid var(--bs-primary); padding-left: 1rem; color: #555; font-style: italic; }
.prose img        { max-width: 100%; border-radius: .375rem; margin: .75rem 0; }


/* ══════════════════════════════════════════════════════════════════════════
   15. BADGE COLOR VARIANTS
══════════════════════════════════════════════════════════════════════════ */

.bg-success-subtle   { background-color: #d1fae5 !important; }
.bg-warning-subtle   { background-color: #fef3c7 !important; }
.bg-primary-subtle   { background-color: #ede9ff !important; }
.bg-secondary-subtle { background-color: #f1f5f9 !important; }
.border-success-subtle { border-color: #a7f3d0 !important; }
.border-warning-subtle { border-color: #fde68a !important; }
.border-primary-subtle { border-color: #c4b5fd !important; }


/* ══════════════════════════════════════════════════════════════════════════
   16. THEME OVERRIDES
══════════════════════════════════════════════════════════════════════════ */

.bg-dark-stable {
  background-color: #4c525b !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   17. SVG ROUTE MAP — ACTIVE STATES
══════════════════════════════════════════════════════════════════════════ */

.route-active {
  stroke-width: 3 !important;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.25));
}
.station-active path,
.station-active circle {
  fill: #fff !important;
  stroke-width: 3 !important;
}
.station-interchange path,
.station-interchange circle {
  fill: #fff !important;
  stroke-width: 3 !important;
}

/* Source station — green */
.station-source path,
.station-source circle {
  fill: #22c55e !important;
  stroke: #fff !important;
  stroke-width: 3 !important;
}
/* Destination station — red */
.station-destination path,
.station-destination circle {
  fill: #ef4444 !important;
  stroke: #fff !important;
  stroke-width: 3 !important;
}
/* Bold station name text at endpoints */
.station-source text,
.station-destination text {
  font-weight: bold !important;
  font-size: 1.15em !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   18. MAP WRAPPER — iframe embed
══════════════════════════════════════════════════════════════════════════ */

.map-wrapper { width: 100%; height: 250px; }
@media (min-width: 768px)  { .map-wrapper { height: 360px; } }
@media (min-width: 1200px) { .map-wrapper { height: 460px; } }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ══════════════════════════════════════════════════════════════════════════
   19. SVG PAN/ZOOM MAP (.metro-map-wrapper)
══════════════════════════════════════════════════════════════════════════ */

.metro-map-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f1f5f9;
  user-select: none;
  -webkit-user-select: none;
}
.metro-map-wrapper.map--inline { height: 1150px; }
.metro-map-wrapper.map--modal  { height: 100%; }

/* SVG pan/zoom surface */
.map-surface {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.map-surface:active { cursor: grabbing; }

/*
 * CRISP RENDERING — no will-change / backface-visibility / default transition
 * transform-origin: 0 0 matches the zoom-at-cursor maths in JS
 */
.map-surface svg {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  display: block;
}
/* Applied only during button-zoom, removed immediately after */
.map-surface svg.map--animating {
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Loading state */
.map-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  font-size: 14px;
  gap: 8px;
}
.map-loader.is-hidden { display: none; }

/* Zoom / pan controls */
.map-ctrl-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background .12s;
  padding: 0;
  line-height: 1;
}
.map-ctrl-btn:hover  { background: #f0f0f0; }
.map-ctrl-btn:active { background: #e0e0e0; }
.map-ctrl-btn.map-ctrl-btn--sm {
  width: 30px;
  height: 30px;
  font-size: 15px;
  box-shadow: none;
  border-color: #ccc;
}
.map-ctrl-sep { height: 1px; background: #ddd; margin: 1px 4px; }

/* Zoom badge (bottom-right) */
.map-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 20;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  font-family: monospace;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  min-width: 44px;
  text-align: center;
}

/* Usage hint (fades after 3.5 s) */
.map-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity .6s ease;
}
.map-hint.is-hidden { opacity: 0; }


/* ══════════════════════════════════════════════════════════════════════════
   20. MAP MODAL LAYOUT
══════════════════════════════════════════════════════════════════════════ */

#mapModal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#mapModal .modal-header { flex-shrink: 0; }
#mapModal .modal-body {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}


/* ══════════════════════════════════════════════════════════════════════════
   21. ROUTE RESULT STEPS
══════════════════════════════════════════════════════════════════════════ */

.route-container { padding: 10px 0; }

.route-step {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 8px 0 8px 25px;
  border-left: 3px solid #0d6efd;
  margin-left: 10px;
}
.route-step:first-child { border-left-color: transparent; }
.route-step:last-child  { border-left-color: transparent; }
.route-step:hover {
  background: #f8f9fa;
  border-radius: 8px;
}

.route-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ffffff;
  position: absolute;
  left: -8px;
  top: 13px;
  z-index: 2;
}
.route-step:first-child .route-icon { background: #198754; }
.route-step:last-child  .route-icon { background: #dc3545; }

.route-title a {
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
}
.route-meta {
  font-size: 13px;
  color: #6c757d;
  margin-top: 5px;
}


/* ══════════════════════════════════════════════════════════════════════════
   22. SAVED ROUTES
══════════════════════════════════════════════════════════════════════════ */

.saved-route-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.saved-route-item:last-child { border-bottom: none; }
.saved-route-link { flex: 1; text-decoration: none; color: inherit; }
.saved-route-link:hover .saved-route-names { color: #5D4DA8; }
.saved-route-names {
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}
.saved-route-network { font-size: 11.5px; color: #6c757d; margin-top: 2px; }
.saved-route-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #adb5bd;
  padding: 2px 4px;
  cursor: pointer;
  line-height: 1;
}
.saved-route-remove:hover { color: #ef4444; }


/* ══════════════════════════════════════════════════════════════════════════
   23. RATINGS & STARS
══════════════════════════════════════════════════════════════════════════ */

.stars span {
  font-size: 20px;
  cursor: pointer;
  color: #ccc;
  margin-left: 3px;
}
.stars span.hover  { color: #ffcc00; }
.stars span.active { color: #f5b301; }

.rating-row label { font-weight: 500; }

.rating-bar {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rating-bar .progress { height: 8px; background: #eee; }
.rating-bar .score { font-size: 14px; text-align: right; }


/* ══════════════════════════════════════════════════════════════════════════
   24. SHARE STACK (fixed overlay)
══════════════════════════════════════════════════════════════════════════ */

.share-stack-fixed {
  position: fixed;
  right: 10px;
  bottom: 70px;
  z-index: 1045;
}
.share-stack-fixed .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .share-stack-fixed {
    right: 7.5%;
    transform: translateX(50%);
    bottom: 76px;
  }
  .share-stack-fixed > div { flex-direction: row; }
}


/* ══════════════════════════════════════════════════════════════════════════
   25. MISC UTILITIES
══════════════════════════════════════════════════════════════════════════ */

/* Horizontal snap slider (nearby stations) */
.nearby-slider { scroll-snap-type: x mandatory; }
.nearby-slider .card { scroll-snap-align: start; }
.nearby-slider::-webkit-scrollbar { display: none; }

/* Capped-height scrollable pane */
.scrollable-div {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}
.scrollable-div::-webkit-scrollbar { width: 6px; }
.scrollable-div::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 3px; }
.scrollable-div::-webkit-scrollbar-track { background-color: #f1f1f1; }

/* Remove focus ring on non-interactive elements */
.no-focus:focus { outline: none; box-shadow: none; }


/* ══════════════════════════════════════════════════════════════════════════
   26. RESPONSIVE TWEAKS
══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 576px) {
  .card-body { padding: 1rem; }
}

/* Text truncation — mobile only, always expanded on desktop */
@media (max-width: 768px) {
  .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .expanded   { white-space: normal !important; }
  .toggle-btn { display: inline-flex; }

  .route-step { padding: 10px 0 10px 20px; }
  .route-icon { top: 14px; }

  .metro-map-wrapper.map--inline { height: 360px; }
  .map-ctrl-btn { width: 42px; height: 42px; font-size: 20px; }
  .map-ctrl-btn.map-ctrl-btn--sm { width: 34px; height: 34px; font-size: 16px; }
}

@media (min-width: 769px) {
  .text-truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .toggle-btn { display: none; }
}
                                              