/* City price pages: a compact dashboard that puts observed prices and their
   source dates ahead of the supporting station inventory. */
.bz-city, .bz-province, .bz-directory {
  max-width: 70rem;
  min-width: 0;
  margin: 0 auto;
  padding: 1rem;
}
.bz-city-head {
  padding: .15rem 0 .85rem;
}
.bz-breadcrumbs {
  color: var(--bz-muted);
  font-size: .84rem;
  margin-bottom: .75rem;
}
.bz-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bz-breadcrumbs li { min-width: 0; }
.bz-breadcrumbs li + li::before {
  color: var(--bz-border);
  content: "/";
  margin-right: .6rem;
}
.bz-breadcrumbs a { color: var(--bz-muted); }
.bz-city-head h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.bz-city-asof {
  margin: .7rem 0 0;
  color: var(--bz-muted);
  font-size: .84rem;
}
.bz-city-context {
  margin: 1.45rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--bz-border);
}
.bz-city-context > p {
  max-width: 60rem;
  margin: 0;
  color: var(--bz-muted);
}
.bz-counts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.bz-counts li {
  padding: .4rem .7rem;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  background: var(--bz-paper);
}
.bz-city .bz-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.bz-city .bz-counts li {
  min-width: 0;
  padding: .6rem .75rem;
  border: 0;
  border-left: 3px solid var(--bz-border);
  border-radius: 0;
  background: transparent;
  color: var(--bz-muted);
  font-size: .9rem;
}
.bz-city .bz-counts strong {
  display: block;
  color: var(--bz-ink);
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.bz-city .bz-counts span { font-size: .82rem; }

/* Historical dashboard */
.bz-history {
  min-width: 0;
  margin-top: .25rem;
  padding: clamp(.9rem, 2.5vw, 1.4rem);
  border: 1px solid var(--bz-border);
  border-radius: 20px;
  background: var(--bz-paper);
  box-shadow: var(--bz-shadow);
}
.bz-history-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.bz-history-kicker, .bz-history-period {
  margin: 0;
  color: var(--bz-muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bz-history-head h2 {
  margin: .12rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.bz-history-period {
  display: flex;
  flex: none;
  gap: .35rem;
  align-items: center;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.bz-history-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.bz-history-card {
  --bz-card-accent: var(--bz-accent);
  --bz-card-tint: #eef1ff;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bz-border);
  border-top: 5px solid var(--bz-card-accent);
  border-radius: 14px;
  background: var(--bz-white);
}
.bz-history-card--benzina {
  --bz-card-accent: var(--bz-coral);
  --bz-card-tint: #fbf1ec;
}
.bz-history-card--gasolio {
  --bz-card-accent: var(--bz-accent);
  --bz-card-tint: #eef1ff;
}
.bz-history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
  padding: 1rem 1rem .85rem;
}
.bz-history-card-title { min-width: 0; }
.bz-history-fuel-label {
  margin: 0;
  color: var(--bz-card-accent);
  font-size: 1.05rem;
  font-weight: 750;
}
.bz-history-fuel-label span {
  color: var(--bz-muted);
  font-size: .78rem;
  font-weight: 500;
}
.bz-history-metric-label {
  margin: .45rem 0 0;
  color: var(--bz-muted);
  font-size: .73rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.bz-history-card h3 {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  min-width: 0;
  margin: .05rem 0 0;
  line-height: .95;
}
.bz-history-price {
  color: var(--bz-ink);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  font-weight: 780;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bz-history-price--empty { color: var(--bz-muted); }
.bz-history-unit {
  color: var(--bz-muted);
  font-size: 1rem;
  font-weight: 650;
  white-space: nowrap;
}
.bz-history-latest {
  margin: .35rem 0 0;
  color: var(--bz-muted);
  font-size: .8rem;
}
.bz-history-change {
  display: grid;
  flex: 0 1 11.5rem;
  gap: .12rem;
  margin: .1rem 0 0;
  padding: .5rem .6rem;
  border-radius: 9px;
  background: var(--bz-card-tint);
  color: var(--bz-ink);
  font-size: .78rem;
  line-height: 1.28;
  text-align: right;
}
.bz-history-change strong { font-size: .88rem; }
.bz-history-change.is-up strong { color: #9b4c35; }
.bz-history-change.is-down strong { color: #244bd8; }
.bz-history-change.is-flat strong { color: var(--bz-muted); }
.bz-history-change-dates { color: var(--bz-muted); }
.bz-history-change--sparse { background: var(--bz-shell-tone); }
.bz-history-figure {
  min-width: 0;
  margin: 0;
  padding: 0 .7rem;
}
.bz-history-chart {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  color: var(--bz-card-accent);
  overflow: visible;
}
.bz-history-grid-line {
  fill: none;
  stroke: var(--bz-border);
  stroke-dasharray: 4 7;
  stroke-width: 1;
}
.bz-history-axis {
  fill: none;
  stroke: var(--bz-border);
  stroke-width: 1.5;
}
.bz-history-axis-label, .bz-history-date-label {
  fill: var(--bz-muted);
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.bz-history-line {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}
.bz-history-point { fill: currentColor; }
.bz-history-point--small { stroke: var(--bz-white); stroke-width: 1.5; }
.bz-history-figure-caption {
  margin: -.1rem 0 0;
  color: var(--bz-muted);
  font-size: .75rem;
}
.bz-history-sample {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .85rem;
  margin: .7rem 1rem 1rem;
  padding-top: .6rem;
  border-top: 1px solid var(--bz-border);
  color: var(--bz-muted);
  font-size: .78rem;
}
.bz-history-sample strong { color: var(--bz-ink); }
.bz-history-sparse-note {
  margin: 0 1rem .9rem;
  padding-top: .55rem;
  border-top: 1px solid var(--bz-border);
  color: var(--bz-muted);
  font-size: .78rem;
  line-height: 1.35;
}
.bz-history-sparse-note strong { color: var(--bz-ink); }
.bz-history-empty {
  min-height: 5rem;
  margin: 0;
  padding: 1rem;
  color: var(--bz-muted);
  font-size: .88rem;
}
.bz-history-sub {
  max-width: 68rem;
  margin: 1rem 0 0;
  color: var(--bz-muted);
  font-size: .82rem;
  line-height: 1.45;
}
.bz-history-table { margin-top: 1rem; }
.bz-history-table summary {
  cursor: pointer;
  color: var(--bz-ink);
  font-weight: 700;
}
.bz-history-table > p {
  color: var(--bz-muted);
  font-size: .82rem;
}
.bz-history-table-wrap { max-width: 100%; overflow-x: auto; }
.bz-history-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.bz-history-table th, .bz-history-table td {
  border: 1px solid var(--bz-border);
  padding: .4rem .5rem;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}
.bz-history-table thead th { background: var(--bz-shell-tone); }
.bz-history-counts { color: var(--bz-muted); font-size: .75rem; }

/* Current station inventory remains below the historical dashboard. */
.bz-fuel-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--bz-border);
}
.bz-fuel-section h2 { margin: 0; font-size: 1.35rem; }
.bz-fuel-section > p { color: var(--bz-muted); }
.bz-fuel-section > p strong { color: var(--bz-ink); }
.bz-station-list {
  display: grid;
  gap: .5rem;
  list-style: none;
  margin: .5rem 0;
  padding: 0;
}
.bz-station-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  min-width: 0;
  padding: .65rem .75rem;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  background: var(--bz-white);
}
.bz-station-list a { overflow-wrap: anywhere; }
.bz-station-list .bz-price { font-weight: 750; white-space: nowrap; }
.bz-station-list .bz-meta { color: var(--bz-muted); font-size: .88rem; overflow-wrap: anywhere; }
.bz-older-note { color: var(--bz-muted); font-size: .92rem; }
.bz-muni-list { columns: 2; gap: 2rem; }
.bz-method {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bz-border);
  color: var(--bz-muted);
}
.bz-history-blocked-note {
  margin: 1rem 0;
  padding: .25rem .75rem;
  border-left: 3px solid var(--bz-border);
  color: var(--bz-muted);
}

@media (max-width: 760px) {
  .bz-history-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .bz-city, .bz-province, .bz-directory { padding: .75rem 1rem; }
  .bz-city-head { padding-top: 0; }
  .bz-city-head h1 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .bz-breadcrumbs { margin-bottom: .55rem; }
  .bz-history-head { align-items: flex-start; display: block; }
  .bz-history-period { margin-top: .45rem; }
  .bz-history-card-head { display: block; }
  .bz-history-change { margin-top: .7rem; max-width: none; text-align: left; }
  .bz-history-price { font-size: clamp(2.5rem, 15vw, 3.35rem); }
  .bz-city .bz-counts { grid-template-columns: 1fr; gap: .35rem; }
  .bz-muni-list { columns: 1; }
}
@media (max-width: 340px) {
  .bz-history { padding: .75rem; border-radius: 15px; }
  .bz-history-card-head { padding: .85rem .75rem .7rem; }
  .bz-history-figure { padding: 0 .35rem; }
  .bz-history-sample { margin-right: .75rem; margin-left: .75rem; }
  .bz-history-period { font-size: .74rem; }
  .bz-history-table th, .bz-history-table td { padding-right: .3rem; padding-left: .3rem; }
}

.bz-city-pilot { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--bz-border); border-radius: 10px; overflow-wrap: anywhere; }
.bz-city-pilot h2 { margin-top: 0; }
.bz-city-pilot p { line-height: 1.5; }
