/* ==========================================================
   Uni Pulse Tube / TfL CSS
   Tube Map, station hero and TfL service status helpers.
   ========================================================== */

/* ==========================================================
   Tube Map
   ========================================================== */

.tube-map .tube-map-card {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 45px rgba(21, 45, 117, .12);
}

.tube-map .tube-map-preview {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f8fb;
}

.tube-map .tube-map-preview img {
  width: 100%;
  display: block;
  transition: transform .35s ease;
}

.tube-map .tube-map-preview:hover img {
  transform: scale(1.025);
}

.tube-map .tube-map-content {
  padding-left: 10px;
}

.tube-map .tube-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hts-primary-soft);
  color: var(--hts-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.tube-map .tube-map-content h3 {
  font-size: 32px;
  margin-bottom: 16px;
}

.tube-map .tube-map-content p {
  font-size: 17px;
  line-height: 1.7;
}

.tube-map .tube-map-facts {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.tube-map .tube-map-facts li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 11px;
}

.tube-map .tube-map-facts i {
  color: var(--hts-accent);
  margin-top: 3px;
}

.tube-map .tube-map-actions {
  margin-top: 24px;
}

.tube-map .tube-map-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tube-map .tube-map-note {
  margin-top: 18px;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}


/* ==========================================================
   Hero Tube
   ========================================================== */

.hero-tube {
  padding: 18px 0 42px;
}

.hero-tube-wrap {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(21, 45, 117, .98) 0%,
      rgba(21, 45, 117, .92) 58%,
      rgba(21, 45, 117, .82) 100%
    );
  box-shadow: 0 24px 60px rgba(21, 45, 117, .16);
}

.hero-tube-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-tube .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-tube h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-tube .hero-intro {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.65;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.hero-highlight {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
}

.hero-highlight i {
  color: #fff;
}

.hero-tube .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.9rem;
}

.hero-tube .hero-buttons .btn {
  border-radius: 999px;
  padding: .85rem 1.35rem;
  font-weight: 700;
}

.hero-tube .btn-primary {
  background: var(--hts-accent);
  border-color: var(--hts-accent);
}

.hero-tube .btn-primary:hover {
  filter: brightness(.94);
}

.hero-tube .btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, .72);
}

.hero-tube .btn-outline-primary:hover {
  color: var(--hts-primary);
  background: #fff;
  border-color: #fff;
}

.hero-tube .col-lg-5{
  display:flex;
  align-items:center;
}

.hero-tube .hero-image{
  width:100%;
}

.hero-tube .hero-image {
  position: relative;
  overflow: hidden;
  min-height: 400px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.hero-tube .hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.hero-tube .hero-image-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--hts-primary);
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.hero-tube .hero-stats {
  margin-top: 18px;
}

.hero-tube .stat-box {
  height: 100%;
  padding: .8rem .9rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(8px);
}

.hero-tube .stat-box i {
  display: block;
  margin-bottom: .25rem;
  font-size: 1.15rem;
}

.hero-tube .stat-box strong,
.hero-tube .stat-box span {
  display: block;
}

.hero-tube .stat-box strong {
  font-size: 1.15rem;
  line-height: 1.1;
}

.hero-tube .stat-box span {
  margin-top: .2rem;
  color: rgba(255, 255, 255, .78);
  font-size: .86rem;
}


/* ==========================================================
   Hero Station
   ========================================================== */

.hero-station {
  padding: 12px 0 18px;
}

.hero-station-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--hts-primary);
  box-shadow: 0 18px 45px rgba(21, 45, 117, .10);
}

.hero-station-image {
  position: relative;
  height: clamp(210px, 23vw, 300px);
  overflow: hidden;
}

.hero-station-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* weicher Übergang Bild -> Panel */
.hero-station-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 105px;
  background: linear-gradient(
    to bottom,
    rgba(21, 45, 117, 0) 0%,
    rgba(21, 45, 117, .18) 25%,
    rgba(21, 45, 117, .58) 62%,
    rgba(21, 45, 117, 1) 100%
  );
  pointer-events: none;
}

.hero-station-panel {
  position: relative;
  margin-top: -60px;
  padding: 56px 38px 22px;
  background: linear-gradient(
    to bottom,
    rgba(21, 45, 117, 0) 0%,
    var(--hts-primary) 44%,
    var(--hts-primary) 100%
  );
  color: #fff;
}

.hero-station-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.hero-station h1 {
  color: #fff;
  margin: 0 0 .55rem;
  font-size: clamp(1.75rem, 2.4vw, 2.45rem);
  line-height: 1.12;
}

.hero-station p {
  max-width: 760px;
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  margin: 0;
}

.hero-station-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: .9rem;
}

.hero-station .btn-outline-primary {
  color: #fff;
  border-color: rgba(255,255,255,.65);
}

.hero-station .btn-outline-primary:hover {
  color: var(--hts-primary);
  background: #fff;
  border-color: #fff;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 991.98px) {

  .hero-tube {
    padding: 18px 0 44px;
  }

  .hero-tube-wrap {
    padding: 34px 24px;
    border-radius: 18px;
  }

  .hero-tube .hero-image,
  .hero-tube .hero-image img {
    min-height: 280px;
  }

  .hero-tube .hero-stats {
    margin-top: 22px;
  }


  .tube-map .tube-map-content {
    padding-left: 0;
  }

  .tube-map .tube-map-content h3 {
    font-size: 26px;
  }

  .hero-station {
    padding: 12px 0 22px;
  }

  .hero-station-image {
    height: clamp(200px, 46vw, 285px);
  }

  .hero-station-panel {
    margin-top: -48px;
    padding: 48px 22px 22px;
  }
}

@media (max-width: 575.98px) {

  .hero-tube h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .hero-tube .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-highlights {
    gap: .55rem;
  }

  .hero-highlight {
    font-size: .84rem;
  }


  .hero-station {
    padding: 18px 0 42px;
  }

  .hero-station-image {
    height: clamp(230px, 48vw, 340px);
  }

  .hero-station-panel {
    margin-top: -34px;
    padding: 26px 22px 28px;
  }
}

/* ==========================================================
   TfL service status helpers
   ========================================================== */

/* Avoids conflict with legacy .tfl-status span class in tfl-colors.css. */
.tfl-service-status .tfl-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.tfl-service-status .tfl-status-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .tfl-service-status .tfl-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }

  .tfl-service-status .tfl-status-text {
    white-space: normal;
  }
}