/* =========================
   LAYOUT GENERALE
========================= */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.detail-box {
  margin-bottom: 32px;
}

.detail-box h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

/* =========================
   HERO STAZIONE
========================= */
.station-hero {
  margin-bottom: 32px;
}

.station-hero h1 {
  margin: 0;
  font-size: 28px;
}

.station-hero p {
  margin: 4px 0 12px;
  color: #555;
}

.station-hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.station-hero .actions a {
  padding: 6px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 14px;
}

/* =========================
   PREZZI
========================= */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prices-table th,
.prices-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.prices-table th {
  font-weight: 600;
  background: #f8fafc;
}

.prices-table td small {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

/* =========================
   GRAFICO
========================= */
canvas {
  max-width: 100%;
}

/* =========================
   SERVIZI
========================= */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.services-list li {
  background: #f1f5f9;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
}

/* =========================
   DISTRIBUTORI VICINI
========================= */
.nearby-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nearby-item {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.nearby-item strong {
  font-size: 15px;
}

.nearby-meta {
  font-size: 13px;
  color: #555;
  margin-top: 4px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .station-hero h1 {
    font-size: 22px;
  }

  .detail-box h2 {
    font-size: 18px;
  }

  .prices-table {
    font-size: 13px;
  }

  #map {
    height: 220px;
  }
}

/* =========================
   RATING SYSTEM SVG
========================= */

.rating-box {
  display: inline-block;
}
.rating-stars {
  display: block;
}

.rating-summary {
  margin-top: 6px;
  font-size: 14px;
  color: #444;
}

.rating-box .msg {
  margin-top: 6px;
  font-size: 13px;
}

.rating-vote {
  position: relative;
  display: inline-block;
}

.rating-vote svg {
  display: block;
}

.rating-vote span {
  position: absolute;
  top: 0;
  height: 100%;
  width: 20%;
  cursor: pointer;
}

.rating-vote span:nth-child(2) { left: 0%; }
.rating-vote span:nth-child(3) { left: 20%; }
.rating-vote span:nth-child(4) { left: 40%; }
.rating-vote span:nth-child(5) { left: 60%; }
.rating-vote span:nth-child(6) { left: 80%; }

.rating-box.voted .rating-vote span {
  cursor: default;
}