.wrap {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px 24px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(23,45,82,.08);
  margin-bottom: 12px;
}

.title {
  font-size: 1.2rem;
  font-weight: 800;
}

.station-service-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.station-service-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d7e5f7;
  border-radius: 999px;
  background: #f4f8ff;
  color: #24528f;
}

.station-service-icon svg {
  width: 22px;
  height: 22px;
}

.station-service-icon--store { color: #6d4aff; }
.station-service-icon--air { color: #0f766e; }
.station-service-icon--wash { color: #0284c7; }
.station-service-icon--coffee { color: #b45309; }

.station-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.station-logo-card {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23,45,82,.08);
  overflow: hidden;
}

.station-logo-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
}

.station-logo-card.no-logo {
  background: #eef4fb;
  color: #29415f;
  font-weight: 900;
  letter-spacing: .04em;
}

.sub {
  color: var(--muted);
  margin-top: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(160px,1fr));
  gap: 10px;
  margin-top: 12px;
}

.box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.station-info-grid .v {
  overflow-wrap: anywhere;
}

.k {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

.v {
  margin-top: 5px;
  font-size: .92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid #e3ebf5;
  padding: 10px;
  text-align: left;
  font-size: .92rem;
}

th {
  background: #edf3fc;
  color: #42516b;
}

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  min-width: 980px;
}

.price-card {
  border: 2px solid #d7e6ff;
  box-shadow: 0 14px 30px rgba(15,79,209,.1);
}

.price-table-wrap {
  margin-top: 12px;
  overflow-x: visible;
}

.price-table-wrap .price-table {
  min-width: 0;
  table-layout: fixed;
}

.price-table th:first-child,
.price-table td:first-child {
  width: 68%;
}

.price-table th:last-child,
.price-table td:last-child {
  width: 32%;
  text-align: right;
}

.price-table .price {
  color: var(--accent-dark);
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
}

.responsive-table-wrap {
  margin-top: 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
}

.warn {
  color: #7b2f2f;
  background: #ffe9e9;
  border: 1px solid #ffd2d2;
  border-radius: 8px;
  padding: 10px;
}

.section-title {
  margin: 0 0 10px 0;
}

.service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #cfe2fb;
  border-radius: 999px;
  background: #ecf5ff;
  color: #1f3f6d;
  font-size: .9rem;
  font-weight: 800;
}

.source-card {
  font-size: .9rem;
  color: #5d6b82;
}

.schedule-highlight {
  margin-top: 10px;
  background: #ecf5ff;
  border: 1px solid #cfe2fb;
  border-radius: 10px;
  padding: 10px 12px;
}

.schedule-highlight .k { margin: 0; }

.schedule-highlight .v {
  margin-top: 4px;
  font-weight: 700;
  color: #1f3f6d;
}

#station-mini-map {
  height: 260px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }

  .station-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .station-info-grid .info-wide {
    grid-column: 1 / -1;
  }

  .wrap,
  .card,
  .responsive-table-wrap {
    min-width: 0;
    max-width: 100%;
  }

  .responsive-table-wrap {
    overflow-x: hidden;
  }

  .table-scroll.responsive-table-wrap table,
  .responsive-card-table {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: fixed;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .responsive-card-table tr {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
    overflow: hidden;
  }

  .responsive-card-table td {
    min-height: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e3ebf5;
    font-size: .86rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .responsive-card-table td.price {
    font-size: .9rem;
  }
}

@media (max-width: 640px) {
  .wrap {
    margin: 12px auto;
    padding: 0 12px 18px;
  }

  .card {
    padding: 12px;
    border-radius: 12px;
  }

  .station-info-grid {
    gap: 8px;
  }

  .station-info-grid .box {
    padding: 9px;
    min-width: 0;
  }

  .station-info-grid .k {
    font-size: .68rem;
    line-height: 1.15;
  }

  .station-info-grid .v {
    margin-top: 4px;
    font-size: .82rem;
    line-height: 1.25;
  }

  .title {
    font-size: 1.08rem;
  }

  .station-logo-card {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
  }

  .station-logo-card img {
    max-width: 44px;
    max-height: 44px;
  }

  #station-mini-map {
    height: 220px;
  }

  table {
    min-width: 620px;
  }

  .price-card {
    padding: 14px;
  }

  .price-table-wrap .price-table {
    min-width: 0;
    width: 100%;
  }

  .price-table th,
  .price-table td {
    padding: 10px 8px;
    font-size: .9rem;
  }

  .price-table th:first-child,
  .price-table td:first-child {
    width: 64%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .price-table th:last-child,
  .price-table td:last-child {
    width: 36%;
  }

  .price-table .price {
    font-size: 1rem;
  }

  .responsive-table-wrap {
    overflow-x: hidden;
  }

  .responsive-card-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .responsive-card-table thead {
    display: none;
  }

  .responsive-card-table tbody,
  .responsive-card-table tr,
  .responsive-card-table td {
    display: block;
  }

  .responsive-card-table tr {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfdff;
  }

  .responsive-card-table td {
    min-height: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e3ebf5;
    font-size: .86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .responsive-card-table td:last-child {
    border-bottom: 0;
  }

  .responsive-card-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .responsive-card-table td.price {
    font-size: .9rem;
  }

  th,
  td {
    padding: 9px;
    font-size: .84rem;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }

  .service-badge {
    font-size: .84rem;
  }
}

.inactive-warning {
  background: #fff7e6;
  border-color: #ffd899;
  color: #63420c;
  line-height: 1.45;
}

.inactive-warning strong {
  display: block;
  margin-bottom: 6px;
  color: #4f3300;
}
