/* Compact Transit Info Card — all station, stop, and vehicle Leaflet popups. */
.leaflet-popup.st-transit-popup .leaflet-popup-content-wrapper {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--st-ui-border, #e1e9e5);
  border-radius: 19px;
  background: var(--st-ui-surface, #fff);
  box-shadow: 0 13px 34px #142c2533;
}
.leaflet-popup.st-transit-popup .leaflet-popup-content {
  width: 274px !important;
  max-width: calc(100vw - 58px);
  margin: 0;
}
.leaflet-popup.st-transit-popup .leaflet-popup-tip {
  background: var(--st-ui-surface, #fff);
  border: 1px solid var(--st-ui-border, #e1e9e5);
  box-shadow: none;
}
.leaflet-popup.st-transit-popup .leaflet-popup-close-button {
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: var(--st-ui-muted, #66757a);
  font-size: 20px;
  line-height: 24px;
}
.leaflet-popup.st-transit-popup .leaflet-popup-close-button:focus-visible {
  outline: 3px solid var(--st-ui-focus, #148ff5);
  outline-offset: 1px;
}
.st-transit-card {
  min-width: 0;
  padding: 12px 13px 10px;
  color: var(--st-ui-text, #25362f);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  animation: st-popup-enter .18s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes st-popup-enter {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}
.st-popup-top { display: flex; align-items: center; gap: 9px; padding-right: 21px; }
.st-popup-symbol {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  border-radius: 10px; background: var(--st-popup-accent, #607080);
  color: #fff; font-size: 11px; font-weight: 850; letter-spacing: -.2px;
}
.st-popup-identity { display: grid; flex: 1; min-width: 0; gap: 2px; }
.st-popup-identity strong {
  overflow: hidden; font-size: 13px; line-height: 1.2;
  text-overflow: ellipsis; white-space: nowrap; font-weight: 800;
}
.st-popup-identity > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: var(--st-ui-muted, #64737a); }
.st-popup-badge {
  flex: none; padding: 4px 6px; border-radius: 999px;
  color: #90600a; background: #fff2d7; font-size: 9px; font-weight: 800;
}
.st-popup-fields {
  display: grid; grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr);
  align-items: start; gap: 7px; margin-top: 11px; padding: 10px 0 8px;
  border-top: 1px solid var(--st-ui-border, #e8edeb);
  border-bottom: 1px solid var(--st-ui-border, #e8edeb);
}
.st-popup-field { display: grid; min-width: 0; gap: 5px; }
.st-popup-label { display: block; color: var(--st-ui-muted, #62747c); font-size: 8px; font-weight: 850; letter-spacing: .045em; }
.st-popup-field strong { font-size: 11px; line-height: 1.35; font-weight: 750; overflow-wrap: anywhere; }
.st-popup-arrow { padding-top: 14px; font-size: 12px; line-height: 1; color: var(--st-popup-accent, #607080); }
.st-popup-place-text { display: grid; min-width: 0; gap: 5px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--st-ui-border, #e8edeb); }
.st-popup-place-text strong { font-size: 11px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.st-popup-note { display: flex; gap: 5px; align-items: flex-start; margin-top: 8px; font-size: 9px; line-height: 1.4; color: var(--st-ui-muted, #64737a); }
.st-popup-note > span { flex: none; }
:root[data-theme="dark"] .st-popup-badge { background: #49371b; color: #ffdc98; }
@media (max-width: 430px) {
  .leaflet-popup.st-transit-popup .leaflet-popup-content { width: 262px !important; }
  .st-transit-card { padding: 11px 12px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaflet-popup.st-transit-popup .leaflet-popup-content-wrapper { animation: none !important; transition: none !important; }
  .st-transit-card { animation: none !important; }
}
