/*
 * RadarČeska — BUS PASSENGER DETAIL v1.8.0
 *
 * Visual / passenger layer only.
 * Road Truth and live motion remain owned by buses.js.
 */

:root {
  --bp-blue:#1578e8;
  --bp-blue-dark:#0e5fbd;
  --bp-cyan:#27b8d8;

  --bp-text:#172f4b;
  --bp-text-2:#334d66;
  --bp-muted:#74879a;
  --bp-soft:#99a8b6;

  --bp-line:rgba(31,72,112,.10);
  --bp-line-2:rgba(31,72,112,.16);

  --bp-surface:#ffffff;
  --bp-surface-soft:#f7fafc;
  --bp-blue-soft:#edf7ff;

  --bp-ok:#18845d;
  --bp-ok-bg:#eaf8f2;

  --bp-late:#d84b55;
  --bp-late-bg:#fff0f1;
}


/* ============================================================
   SHELL
   ============================================================ */

body .app-shell[data-mode="buses"] #busDetailCard {
  width:min(500px,calc(100vw - 30px));
  max-height:calc(100dvh - 112px);

  padding:15px 16px 16px;

  border:1px solid rgba(21,74,124,.10);
  border-radius:20px;

  background:
    linear-gradient(
      180deg,
      #fff 0%,
      #fbfdff 100%
    );

  box-shadow:
    0 18px 48px rgba(20,50,82,.14),
    0 3px 10px rgba(20,50,82,.05);

  overflow-x:hidden;
  overflow-y:auto;

  scrollbar-width:thin;
  scrollbar-color:#b9c7d3 transparent;
  scrollbar-gutter:stable;
}


body .app-shell[data-mode="buses"] #busDetailCard::-webkit-scrollbar {
  width:5px;
}


body .app-shell[data-mode="buses"] #busDetailCard::-webkit-scrollbar-thumb {
  border-radius:999px;
  background:#b9c7d3;
}


/*
 * Old presentation remains in DOM as the canonical data sink.
 * v1.8 renders the passenger hierarchy from those factual values.
 */

body .app-shell[data-mode="buses"]
#busDetailCard > .train-detail-topline,

body .app-shell[data-mode="buses"]
#busDetailCard > .train-detail-title-row,

body .app-shell[data-mode="buses"]
#busDetailCard > #busDetailDestination,

body .app-shell[data-mode="buses"]
#busDetailCard > .train-detail-primary-grid,

body .app-shell[data-mode="buses"]
#busJourney > .bus-journey-head,

body .app-shell[data-mode="buses"]
#busJourney > .bus-journey-summary,

body .app-shell[data-mode="buses"]
#busJourney > #busJourneyNearby,

body .app-shell[data-mode="buses"]
#busJourney > #busJourneyToggle,

body .app-shell[data-mode="buses"]
#busJourney > #busJourneyAmenities {

  position:absolute;

  width:1px;
  height:1px;

  margin:-1px;
  padding:0;

  overflow:hidden;

  clip:rect(0 0 0 0);
  clip-path:inset(50%);

  white-space:nowrap;
}


/* ============================================================
   HERO
   ============================================================ */

.bus-p18 {
  color:var(--bp-text);
}


.bus-p18-head {
  display:grid;

  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:center;

  padding:2px 38px 13px 0;
}


.bus-p18-line {
  display:flex;
  align-items:center;
  justify-content:center;

  min-width:66px;
  height:50px;
  padding:0 13px;

  border-radius:10px;

  background:
    linear-gradient(
      145deg,
      var(--bp-blue),
      #0969d6
    );

  color:#fff;

  box-shadow:
    0 8px 18px rgba(21,120,232,.20);

  font-size:22px;
  font-weight:900;
  letter-spacing:-.035em;
}


.bus-p18-heading {
  min-width:0;
}


.bus-p18-route {
  display:flex;
  align-items:center;
  gap:8px;

  min-width:0;

  color:#112a49;

  font-size:20px;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.035em;
}


.bus-p18-route span {
  overflow:hidden;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.bus-p18-arrow {
  flex:0 0 auto;

  color:#698198;

  font-size:16px;
  font-weight:700;
}


.bus-p18-subtitle {
  margin-top:4px;

  overflow:hidden;

  color:#71859a;

  font-size:10px;
  font-weight:650;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.bus-p18-status {
  display:flex;
  flex-wrap:wrap;
  gap:6px;

  margin:0 0 10px;
}


.bus-p18-chip {
  display:inline-flex;
  align-items:center;
  gap:5px;

  min-height:22px;
  padding:0 8px;

  border-radius:999px;

  font-size:8px;
  font-weight:850;
}


.bus-p18-chip-live {
  background:var(--bp-ok-bg);
  color:var(--bp-ok);
}


.bus-p18-chip-live::before {
  content:"";

  width:6px;
  height:6px;

  border-radius:50%;

  background:#24a778;
}


.bus-p18-chip-delay {
  background:var(--bp-late-bg);
  color:var(--bp-late);
}


/* ============================================================
   NEXT STOP HERO
   ============================================================ */

.bus-p18-next {
  display:grid;

  grid-template-columns:40px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;

  min-height:76px;
  padding:11px 12px;

  border:1px solid rgba(31,135,214,.09);
  border-radius:13px;

  background:
    linear-gradient(
      135deg,
      #edf9ff,
      #f7fbff
    );
}


.bus-p18-next-icon {
  display:flex;
  align-items:center;
  justify-content:center;

  width:38px;
  height:38px;

  border-radius:10px;

  background:#d9f5fb;
  color:#087eaf;

  font-size:20px;
}


.bus-p18-next-copy {
  min-width:0;
}


.bus-p18-next-copy small {
  display:block;

  margin-bottom:2px;

  color:#688197;

  font-size:8px;
  font-weight:760;
}


.bus-p18-next-copy strong {
  display:block;

  overflow:hidden;

  color:#152e4a;

  font-size:15px;
  font-weight:900;
  line-height:1.12;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.bus-p18-next-copy em {
  display:block;

  margin-top:3px;

  color:#8496a8;

  font-size:8px;
  font-style:normal;
  font-weight:650;
}


.bus-p18-next-time {
  text-align:right;
}


.bus-p18-next-time strong {
  display:block;

  color:#112a49;

  font-size:16px;
  font-weight:900;
  letter-spacing:-.025em;
}


.bus-p18-next-time small {
  display:block;

  margin-top:3px;

  color:var(--bp-muted);

  font-size:8px;
  font-weight:700;
}


/* ============================================================
   ORIGIN / NEXT / DESTINATION
   ============================================================ */

.bus-p18-progress {
  display:grid;

  grid-template-columns:repeat(3,minmax(0,1fr));

  margin:10px 0 13px;

  padding:10px 11px 12px;

  border:1px solid var(--bp-line);
  border-radius:12px;

  background:#fff;
}


.bus-p18-progress-item {
  position:relative;

  min-width:0;
  padding-right:9px;
}


.bus-p18-progress-item + .bus-p18-progress-item {
  padding-left:10px;

  border-left:1px solid rgba(31,72,112,.08);
}


.bus-p18-progress-item small {
  display:block;

  color:#778ba0;

  font-size:7px;
  font-weight:760;
}


.bus-p18-progress-item strong {
  display:block;

  margin-top:2px;

  overflow:hidden;

  color:#263f59;

  font-size:10px;
  font-weight:850;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.bus-p18-progress-item em {
  display:block;

  margin-top:2px;

  color:#96a5b2;

  font-size:8px;
  font-style:normal;
  font-weight:650;
}


.bus-p18-progress-line {
  grid-column:1/-1;

  position:relative;

  height:10px;
  margin:7px 2px 0;
}


.bus-p18-progress-line::before {
  content:"";

  position:absolute;
  top:4px;
  left:0;
  right:0;

  height:2px;

  border-radius:99px;

  background:
    linear-gradient(
      90deg,
      var(--bp-blue) 0%,
      var(--bp-blue) 43%,
      #9faebb 43%,
      #9faebb 100%
    );
}


.bus-p18-progress-line i {
  position:absolute;
  top:0;

  width:9px;
  height:9px;

  border:2px solid #fff;
  border-radius:50%;

  background:#98a8b8;

  box-shadow:0 0 0 1px #91a2b3;
}


.bus-p18-progress-line i:nth-child(1) {
  left:0;

  background:var(--bp-blue);

  box-shadow:
    0 0 0 1px var(--bp-blue);
}


.bus-p18-progress-line i:nth-child(2) {
  left:43%;

  background:#fff;

  box-shadow:
    0 0 0 2px var(--bp-blue);
}


.bus-p18-progress-line i:nth-child(3) {
  right:0;
}


/* ============================================================
   JOURNEY
   ============================================================ */

.bus-p18-section-title {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;

  margin:4px 0 5px;
}


.bus-p18-section-title strong {
  color:#174777;

  font-size:13px;
  font-weight:900;
}


.bus-p18-section-title small {
  color:#8b9aa8;

  font-size:7px;
  font-weight:700;
}


body .app-shell[data-mode="buses"] #busJourney {
  margin:0;
  padding:0;

  border:0;
  border-radius:0;

  background:transparent;
  box-shadow:none;
}


body .app-shell[data-mode="buses"] #busJourneyTimeline {
  max-height:none;

  margin:0;

  overflow:visible;

  border:0;
  border-radius:0;

  background:transparent;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop {
  display:grid;

  grid-template-columns:18px 42px minmax(0,1fr) auto;
  gap:7px;
  align-items:center;

  min-height:45px;
  padding:0 2px 0 0;

  border:0;
  border-top:1px solid rgba(31,72,112,.075);

  background:transparent;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop:first-child {
  border-top:0;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop-rail {
  grid-column:1;
  grid-row:1;

  position:relative;

  align-self:stretch;

  display:flex;
  justify-content:center;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop-rail::before {
  content:"";

  position:absolute;
  top:0;
  bottom:0;

  width:1px;

  background:#cfdae4;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop-rail i {
  position:relative;
  z-index:1;

  width:8px;
  height:8px;

  margin-top:18px;

  border:1.5px solid #99aabc;
  border-radius:50%;

  background:#fff;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop-copy {
  grid-column:3;
  grid-row:1;

  padding:8px 0;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop-copy b {
  display:block;

  overflow:hidden;

  color:#263f59;

  font-size:10px;
  font-weight:820;

  text-overflow:ellipsis;
  white-space:nowrap;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop-copy small {
  display:block;

  margin-top:2px;

  color:#8b9aaa;

  font-size:7.5px;
  font-weight:650;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop time {
  grid-column:2;
  grid-row:1;

  justify-self:start;

  color:#425c75;

  font-size:9px;
  font-weight:800;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop::after {
  content:attr(data-passenger-time);

  grid-column:4;
  grid-row:1;

  color:#526b82;

  font-size:9px;
  font-weight:800;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop.is-past {
  opacity:.44;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop.is-next,
body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop.is-current {
  margin:0 -5px;
  padding-right:7px;
  padding-left:5px;

  border-radius:9px;

  background:
    linear-gradient(
      90deg,
      #eef7ff,
      rgba(238,247,255,.25)
    );

  opacity:1;
}


body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop.is-next .bus-journey-stop-rail i,
body .app-shell[data-mode="buses"]
#busJourneyTimeline .bus-journey-stop.is-current .bus-journey-stop-rail i {

  width:10px;
  height:10px;

  border:2px solid #fff;

  background:var(--bp-blue);

  box-shadow:
    0 0 0 2px var(--bp-blue),
    0 0 0 6px rgba(21,120,232,.10);
}


.bus-p18-more {
  display:flex;
  align-items:center;
  justify-content:center;

  width:min(270px,100%);
  min-height:34px;

  margin:8px auto 12px;
  padding:0 14px;

  border:1px solid rgba(21,120,232,.16);
  border-radius:9px;

  background:#fff;
  color:#345873;

  cursor:pointer;

  font-size:9px;
  font-weight:800;
}


.bus-p18-more:hover {
  background:#f5faff;
}


.bus-p18-more[hidden] {
  display:none;
}


/* ============================================================
   VEHICLE
   ============================================================ */

.bus-p18-vehicle {
  margin-top:8px;

  border:1px solid var(--bp-line);
  border-radius:13px;

  background:#fff;

  overflow:hidden;
}


.bus-p18-card-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  min-height:39px;
  padding:0 11px;

  border-bottom:1px solid rgba(31,72,112,.07);
}


.bus-p18-card-title {
  display:flex;
  align-items:center;
  gap:8px;

  color:#174777;

  font-size:12px;
  font-weight:900;
}


.bus-p18-card-icon {
  display:flex;
  align-items:center;
  justify-content:center;

  width:24px;
  height:24px;

  border-radius:7px;

  background:#dff4fb;
  color:#087cac;

  font-size:13px;
}


.bus-p18-card-tag {
  padding:4px 7px;

  border-radius:999px;

  background:#edf5fd;
  color:#53718b;

  font-size:7px;
  font-weight:750;
}


.bus-p18-vehicle-body {
  display:grid;

  grid-template-columns:116px minmax(0,1fr);
  gap:12px;

  padding:10px;
}


.bus-p18-photo {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;

  min-height:91px;

  border:1px solid rgba(31,72,112,.08);
  border-radius:9px;

  background:
    linear-gradient(
      145deg,
      #eef5fa,
      #fafcfd
    );

  color:#63809a;
}


.bus-p18-photo span {
  font-size:28px;
}


.bus-p18-photo small {
  font-size:7px;
  font-weight:700;
}


.bus-p18-photo img {
  width:100%;
  height:100%;

  border-radius:9px;

  object-fit:cover;
}


.bus-p18-fields {
  display:grid;

  grid-template-columns:auto minmax(0,1fr);
  gap:4px 9px;
  align-content:start;

  min-width:0;
}


.bus-p18-fields dt {
  color:#7f91a3;

  font-size:7.5px;
  font-weight:650;
}


.bus-p18-fields dd {
  min-width:0;
  margin:0;

  overflow:hidden;

  color:#263f59;

  font-size:8.5px;
  font-weight:820;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.bus-p18-fields dd.is-yes {
  color:#18845d;
}


.bus-p18-fields dd.is-no {
  color:#8b5960;
}


/* ============================================================
   ASSIGNMENT
   ============================================================ */

.bus-p18-assignment {
  margin-top:8px;

  border:1px solid var(--bp-line);
  border-radius:13px;

  background:#fff;

  overflow:hidden;
}


.bus-p18-assignment-body {
  padding:4px 11px 8px;
}


.bus-p18-duty {
  display:grid;

  grid-template-columns:80px minmax(0,1fr);
  gap:8px;

  min-height:31px;
  padding:6px 0;

  border-top:1px solid rgba(31,72,112,.06);
}


.bus-p18-duty:first-child {
  border-top:0;
}


.bus-p18-duty small {
  color:#8294a5;

  font-size:7px;
  font-weight:650;
}


.bus-p18-duty strong {
  overflow:hidden;

  color:#2d465f;

  font-size:8.5px;
  font-weight:820;

  text-overflow:ellipsis;
  white-space:nowrap;
}


.bus-p18-no-truth {
  padding:10px;

  color:#8a99a7;

  font-size:8px;
  line-height:1.4;
}


/* ============================================================
   FOOT
   ============================================================ */

body .app-shell[data-mode="buses"]
#busDetailCard .train-detail-foot {

  margin-top:10px;
  padding-top:8px;

  border-top:1px solid rgba(31,72,112,.08);

  color:#94a2ae;

  font-size:7px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width:700px) {

  body .app-shell[data-mode="buses"] #busDetailCard {
    width:100%;
    max-height:84dvh;

    padding:
      12px
      14px
      calc(14px + env(safe-area-inset-bottom));

    border-right:0;
    border-bottom:0;
    border-left:0;

    border-radius:20px 20px 0 0;
  }


  .bus-p18-head {
    grid-template-columns:auto minmax(0,1fr);

    gap:10px;

    padding-right:34px;
  }


  .bus-p18-line {
    min-width:59px;
    height:46px;

    font-size:20px;
  }


  .bus-p18-route {
    font-size:18px;
  }


  .bus-p18-next {
    grid-template-columns:36px minmax(0,1fr) auto;

    min-height:69px;
  }


  .bus-p18-next-icon {
    width:34px;
    height:34px;
  }


  .bus-p18-progress {
    padding-right:8px;
    padding-left:8px;
  }


  .bus-p18-progress-item + .bus-p18-progress-item {
    padding-left:7px;
  }


  .bus-p18-progress-item strong {
    font-size:9px;
  }


  .bus-p18-vehicle-body {
    grid-template-columns:94px minmax(0,1fr);

    gap:10px;
  }


  .bus-p18-photo {
    min-height:82px;
  }
}


/* RADARCESKA-BUS-PASSENGER-DETAIL-v1.8.0 END */
