/* preturicarburanti.ro
   Idee: semnalistica rutieră (albastrul indicatoarelor de drum) + panoul de prețuri
   al benzinăriei (cifre chihlimbarii pe fond închis). Panoul e singurul element „îndrăzneț";
   restul paginii rămâne liniștit și ușor de citit pe telefon. */

:root {
    --asfalt: #262d34;
    --asfalt-2: #343c45;
    --semn: #0f5ba8;
    --semn-inchis: #0b4a8a;
    --chihlimbar: #ffb000;
    --beton: #eef0f1;
    --alb: #ffffff;
    --linie: #d9dde1;
    --text: #1f262d;
    --gri: #5f6a75;
    --verde: #1e7d46;
    --verde-fond: #e6f3eb;
    --suprafata: #ffffff;      /* fundalul cardurilor și tabelelor */
    --suprafata-2: #f7f8f9;    /* capul de tabel, fundalul hărții */
    --link: #0f5ba8;
    --link-hover: #0b4a8a;
    --contur: #262d34;         /* chenarul câmpului de căutare */
    color-scheme: light;

    --font-titlu: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font: "Barlow", system-ui, sans-serif;

    --latime: 72rem;
    --raza: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--beton);
}

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 3px solid var(--chihlimbar); outline-offset: 2px; }

h1, h2, h3 {
    font-family: var(--font-titlu);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.5em;
    letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--latime); margin: 0 auto; padding: 0 1.25rem; }

.muted { color: var(--gri); }
.small { font-size: 0.9rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- antet: ca un indicator rutier ---------- */
.site-header { background: var(--semn); color: var(--alb); border-bottom: 4px solid var(--alb); box-shadow: 0 4px 0 var(--semn); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; flex-wrap: wrap; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.logo {
    font-family: var(--font-titlu);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--alb);
    text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
    margin-right: auto;
}
.logo:hover { color: var(--alb); }
.logo-mark {
    display: inline-grid; place-items: center;
    width: 2rem; height: 2rem;
    background: var(--alb); color: var(--semn);
    border-radius: 4px;
    font-size: 1.25rem;
}
.logo-tld { font-weight: 500; opacity: 0.75; }

.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav a { color: var(--alb); text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; color: var(--alb); }

/* ---------- căutare ---------- */
.search { display: flex; max-width: 34rem; width: 100%; }
.search input {
    flex: 1; min-width: 0;
    font: inherit; font-size: 1.1rem;
    padding: 0.8rem 1rem;
    border: 2px solid var(--contur);
    border-right: 0;
    border-radius: var(--raza) 0 0 var(--raza);
    background: var(--suprafata);
    color: var(--text);
}
.search button {
    font: inherit; font-weight: 700;
    padding: 0 1.3rem;
    border: 2px solid var(--contur);
    border-radius: 0 var(--raza) var(--raza) 0;
    background: var(--asfalt); color: var(--alb);
    cursor: pointer;
}
.search button:hover { background: var(--asfalt-2); }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 2rem; }
.hero .wrap { display: grid; grid-template-columns: 1fr minmax(18rem, 25rem); gap: 2.5rem; align-items: start; }
.hero-lead { font-size: 1.2rem; color: var(--gri); }

/* ---------- panoul de prețuri (elementul-semnătură) ---------- */
.board {
    background: var(--asfalt);
    color: var(--alb);
    border-radius: 14px 14px var(--raza) var(--raza);
    padding: 1.1rem 1.25rem 1rem;
    box-shadow: inset 0 0 0 3px var(--asfalt-2);
}
.board-title { font-family: var(--font-titlu); font-size: 1.15rem; font-weight: 600; margin: 0 0 0.6rem; color: #c9d0d6; }
.board-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--asfalt-2);
}
.board-row:first-of-type { border-top: 0; }
.board-fuel { font-weight: 600; font-size: 1.05rem; }
.board-fuel small { display: block; font-weight: 400; color: #9aa4ad; font-size: 0.8rem; }
.board-price {
    font-family: var(--font-titlu);
    font-weight: 700;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--chihlimbar);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    text-shadow: 0 0 14px rgba(255, 176, 0, 0.35);
    white-space: nowrap;
}
.board-price .unit { font-size: 0.95rem; color: #c9d0d6; text-shadow: none; margin-left: 0.2rem; letter-spacing: 0; }
.board-price.empty { color: #69737d; text-shadow: none; }
.board-note { font-size: 0.82rem; color: #9aa4ad; margin: 0.6rem 0 0; }
.board-note a { color: #ffd166; }

.board.compact .board-price { font-size: 1.9rem; }

/* ---------- secțiuni ---------- */
.section { padding: 2rem 0; }
.section + .section { padding-top: 0.5rem; }
.panel { background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--raza); padding: 1.25rem 1.4rem; }

.crumbs { font-size: 0.9rem; color: var(--gri); margin: 1.5rem 0 0.25rem; }
.crumbs a { color: var(--gri); }
.crumbs span[aria-hidden] { margin: 0 0.35rem; }

.page-head { padding: 0.5rem 0 1.5rem; }
.page-head p { font-size: 1.1rem; color: var(--gri); }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: 2rem; align-items: start; }

/* ---------- tabele ---------- */
.table-wrap { overflow-x: auto; background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--raza); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: 0.88rem; font-weight: 600; color: var(--gri); background: var(--suprafata-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.price, th.price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.price { font-family: var(--font-titlu); font-weight: 700; font-size: 1.3rem; }
td.price.best { color: var(--verde); }
td .sub { display: block; color: var(--gri); font-size: 0.88rem; }
.rank { color: var(--gri); width: 2.5rem; font-variant-numeric: tabular-nums; }

/* ---------- liste de linkuri (județe, localități, rețele) ---------- */
.link-columns { columns: 4 13rem; column-gap: 2rem; padding: 0; margin: 0; list-style: none; }
.link-columns li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px dashed var(--linie); display: flex; justify-content: space-between; gap: 0.5rem; }
.link-columns .count { color: var(--gri); font-variant-numeric: tabular-nums; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.chips a {
    display: inline-block; text-decoration: none;
    padding: 0.35rem 0.8rem;
    border: 1px solid var(--linie); border-radius: 999px;
    background: var(--suprafata); color: var(--text); font-weight: 500;
}
.chips a:hover { border-color: var(--link); color: var(--link); }
.chips a[aria-current="page"] { background: var(--semn); border-color: var(--semn); color: var(--alb); }
.chips .count { color: var(--gri); margin-left: 0.3rem; }

/* ---------- carduri de stații ---------- */
.station-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.station-item {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem;
    background: var(--suprafata); border: 1px solid var(--linie); border-left: 4px solid var(--semn);
    border-radius: var(--raza);
    padding: 0.8rem 1rem;
}
.station-item h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; margin: 0; }
.station-item h3 a { color: var(--text); text-decoration: none; }
.station-item h3 a:hover { color: var(--link); text-decoration: underline; }
.station-item .meta { color: var(--gri); font-size: 0.92rem; }
.station-item .mini-prices { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.mini-prices div { font-size: 0.78rem; color: var(--gri); line-height: 1.2; }
.mini-prices strong { display: block; font-family: var(--font-titlu); font-size: 1.25rem; color: var(--text); font-variant-numeric: tabular-nums; }

.tag { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: 3px; background: var(--beton); color: var(--asfalt); }

/* ---------- stări goale / mesaje ---------- */
.notice {
    background: var(--suprafata);
    border: 1px solid var(--linie);
    border-left: 4px solid var(--chihlimbar);
    border-radius: var(--raza);
    padding: 0.9rem 1.1rem;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- hartă ---------- */
.map { height: 26rem; border-radius: var(--raza); border: 1px solid var(--linie); background: var(--suprafata-2); z-index: 0; }
.map.small { height: 18rem; }

/* ---------- pagina stației ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; margin: 0; }
.facts dt { color: var(--gri); }
.facts dd { margin: 0; }
.btn {
    display: inline-block; font-weight: 700; text-decoration: none;
    background: var(--semn); color: var(--alb);
    padding: 0.7rem 1.1rem; border-radius: var(--raza);
}
.btn:hover { background: var(--semn-inchis); color: var(--alb); }
.chart-box { background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--raza); padding: 1rem; }

/* ---------- subsol ---------- */
.site-footer { margin-top: 3rem; background: var(--asfalt); color: #c9d0d6; padding: 2rem 0; font-size: 0.92rem; }
.site-footer a { color: var(--alb); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.site-footer h3 { color: var(--alb); font-size: 1.15rem; }
.site-footer p { max-width: none; }

/* ---------- mobil ---------- */
@media (max-width: 52rem) {
    .hero .wrap, .layout-2 { grid-template-columns: 1fr; }
    .hero { padding-top: 1.5rem; }
    .station-item { grid-template-columns: 1fr; }
    .station-item .mini-prices { justify-content: flex-start; text-align: left; }
    .map { height: 20rem; }
    .nav { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Pe telefon, panoul de prețuri al zonei vine înaintea listei de stații. */
@media (max-width: 52rem) {
    .layout-2 > .board { order: -1; }
}

/* ---------- calculatorul de plin: afișaj ca pe pompă ---------- */
.calc-fuels { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.calc-fuels label { cursor: pointer; }
.calc-fuels input { position: absolute; opacity: 0; pointer-events: none; }
.calc-fuels span {
    display: inline-block; padding: 0.4rem 0.9rem;
    border: 1px solid var(--linie); border-radius: 999px; background: var(--suprafata); font-weight: 600;
}
.calc-fuels input:checked + span { background: var(--semn); border-color: var(--semn); color: var(--alb); }
.calc-fuels input:focus-visible + span { outline: 3px solid var(--chihlimbar); outline-offset: 2px; }

.calc-body {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); gap: 1.5rem; align-items: center;
    background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--raza); padding: 1.25rem;
}
.calc-input label { display: block; font-weight: 600; margin-bottom: 0.6rem; }

.calc-input input[type="range"] {
    --fill: 37%;
    width: 100%; height: 2.2rem; margin: 0; background: transparent;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}
.calc-input input[type="range"]::-webkit-slider-runnable-track {
    height: 0.6rem; border-radius: 999px;
    background: linear-gradient(to right, var(--semn) var(--fill), var(--linie) var(--fill));
}
.calc-input input[type="range"]::-moz-range-track { height: 0.6rem; border-radius: 999px; background: var(--linie); }
.calc-input input[type="range"]::-moz-range-progress { height: 0.6rem; border-radius: 999px; background: var(--semn); }
.calc-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 1.7rem; height: 1.7rem; margin-top: -0.55rem;
    border-radius: 50%; background: var(--alb); border: 4px solid var(--semn); box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.calc-input input[type="range"]::-moz-range-thumb {
    width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--alb); border: 4px solid var(--semn);
}

.calc-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.calc-presets button {
    font: inherit; font-size: 0.92rem; cursor: pointer;
    padding: 0.3rem 0.7rem; border: 1px solid var(--linie); border-radius: var(--raza);
    background: var(--beton); color: var(--text);
}
.calc-presets button:hover { border-color: var(--link); color: var(--link); }

.pump { background: var(--asfalt); border-radius: var(--raza); padding: 0.75rem 1rem; box-shadow: inset 0 0 0 3px var(--asfalt-2); }
.pump-row { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: baseline; gap: 0.5rem; padding: 0.2rem 0; }
.pump-row + .pump-row { border-top: 1px solid var(--asfalt-2); }
.pump-label { color: #9aa4ad; font-size: 0.85rem; }
.pump-value {
    text-align: right; font-family: var(--font-titlu); font-weight: 700; font-size: 2.4rem; line-height: 1.05;
    color: var(--chihlimbar); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255, 176, 0, 0.35);
}
.pump-value.small { font-size: 1.5rem; }
.pump-unit { color: #c9d0d6; font-size: 0.85rem; width: 2rem; }

.calc-compare { margin: 0.9rem 0 0; }
.calc-compare:empty { display: none; }

@media (max-width: 52rem) {
    .calc-body { grid-template-columns: 1fr; }
}

.calc-price-field { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.calc-price-field input {
    font: inherit; font-family: var(--font-titlu); font-weight: 700; font-size: 1.5rem;
    width: 7.5rem; padding: 0.35rem 0.6rem;
    border: 2px solid var(--contur); border-radius: var(--raza);
    background: var(--suprafata); color: var(--text);
    font-variant-numeric: tabular-nums;
}
.calc-price-field span { color: var(--gri); }


/* ---------- dark mode ----------
   Fundal de asfalt noaptea (gri-albăstrui, nu negru). Panoul de prețuri rămâne
   cel mai închis element, ca un panou luminat în întuneric. */
:root[data-theme="dark"] {
    --beton: #1b2128;
    --suprafata: #232b33;
    --suprafata-2: #2a333c;
    --linie: #36414c;
    --text: #e4e8ec;
    --gri: #9ba7b3;
    --link: #79b3ee;
    --link-hover: #a5cbf4;
    --contur: #4a5866;
    --verde: #5cc98a;
    --asfalt: #12171c;
    --asfalt-2: #222a32;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --beton: #1b2128;
        --suprafata: #232b33;
        --suprafata-2: #2a333c;
        --linie: #36414c;
        --text: #e4e8ec;
        --gri: #9ba7b3;
        --link: #79b3ee;
        --link-hover: #a5cbf4;
        --contur: #4a5866;
        --verde: #5cc98a;
        --asfalt: #12171c;
        --asfalt-2: #222a32;
        color-scheme: dark;
    }
}
/* Antetul albastru e puțin mai stins noaptea, ca să nu orbească. */
:root[data-theme="dark"] .site-header { background: #0d4f93; box-shadow: 0 4px 0 #0d4f93; border-bottom-color: #c9d6e3; }
:root[data-theme="dark"] .search button { background: var(--semn); border-color: var(--semn); }
:root[data-theme="dark"] .tag { background: var(--suprafata-2); color: var(--text); }
:root[data-theme="dark"] .calc-presets button { background: var(--suprafata-2); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.88); }
:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip { background: var(--suprafata); color: var(--text); }
:root[data-theme="dark"] .leaflet-container a.leaflet-popup-close-button { color: var(--gri); }
:root[data-theme="dark"] .leaflet-control-attribution { background: rgba(35, 43, 51, 0.85); color: var(--gri); }
:root[data-theme="dark"] .leaflet-bar a { background: var(--suprafata); color: var(--text); border-color: var(--linie); }

/* ---------- butonul de temă ---------- */
.theme-toggle {
    display: inline-grid; place-items: center;
    width: 2.4rem; height: 2.4rem; padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 50%;
    background: transparent; color: var(--alb); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--alb); background: rgba(255, 255, 255, 0.12); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 52rem) {
    .site-header .theme-toggle { order: 2; }
    .site-header .nav { order: 3; }
}

/* ---------- lângă mine ---------- */
.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-locate { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.1rem; padding: 0.85rem 1.3rem; }
.nearby-controls { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.25rem; }
.nearby-sort { display: flex; align-items: center; gap: 0.5rem; }
.nearby-sort select {
    font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--linie); border-radius: var(--raza);
    background: var(--suprafata); color: var(--text);
}
.nearby-status:empty { display: none; }
.nearby-status { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: var(--raza); background: var(--suprafata); border: 1px solid var(--linie); }
.nearby-status.is-error { border-left: 4px solid var(--chihlimbar); }
.nearby-summary { font-weight: 600; }
.nearby-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem); gap: 1.5rem; align-items: start; }
.nearby-map { position: sticky; top: 1rem; height: 32rem; }
.nearby-fallback { margin-top: 1rem; }

.hero-near { margin: 0.9rem 0 0; }
.near-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }

@media (max-width: 52rem) {
    .nearby-grid { grid-template-columns: 1fr; }
    .nearby-map { position: static; height: 20rem; order: -1; }
    .btn-locate { width: 100%; justify-content: center; }
}
.nearby-sort { min-width: 0; max-width: 100%; }
.nearby-sort select { min-width: 0; max-width: 100%; }
.route-link { margin-left: 0.4rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 52rem) {
    .nearby-sort { width: 100%; }
    .nearby-sort select { flex: 1; }
}

/* ---------- costul drumului ---------- */
.trip-form { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-top: 1rem; }
.trip-form label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; }
.trip-form select, .trip-row select {
    font: inherit; font-weight: 400; padding: 0.6rem 0.7rem; min-width: 12rem;
    border: 1px solid var(--linie); border-radius: var(--raza); background: var(--suprafata); color: var(--text);
}
.trip-form .btn { padding: 0.7rem 1.4rem; }
.trip-fields { display: grid; gap: 1.1rem; }
.trip-fields .calc-price-field { margin-bottom: 0.4rem; }
.trip-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.trip-row .check { display: inline-flex; gap: 0.5rem; align-items: center; margin: 0; font-weight: 600; cursor: pointer; }
.trip-row .check input { width: 1.2rem; height: 1.2rem; accent-color: var(--semn); }
.trip-row .people { display: inline-flex; gap: 0.6rem; align-items: center; margin: 0; }
.trip-row .people select { min-width: 4rem; }
.trip-calc-body .calc-input label { margin-bottom: 0.45rem; }
@media (max-width: 52rem) { .trip-form label, .trip-form select { width: 100%; } }
.trip-form input[type="text"] {
    font: inherit; font-weight: 400; padding: 0.6rem 0.75rem; min-width: 15rem;
    border: 1px solid var(--linie); border-radius: var(--raza); background: var(--suprafata); color: var(--text);
}
@media (max-width: 52rem) { .trip-form input[type="text"] { width: 100%; min-width: 0; } }

/* ---------- drumuri: plăcuțele ca indicatoarele rutiere ---------- */
.road-sign {
    display: inline-grid; place-items: center; min-width: 3.4rem; height: 2rem; padding: 0 0.5rem;
    font-family: var(--font-titlu); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em;
    border-radius: 5px; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--linie);
}
.road-sign.is-a { background: #1f7a3a; color: #fff; }        /* autostradă: verde */
.road-sign.is-dn { background: #e2001a; color: #fff; }       /* drum național: roșu */
.road-sign.big { min-width: 5rem; height: 3rem; font-size: 1.8rem; }
.road-head { display: flex; gap: 1.2rem; align-items: flex-start; }
.road-head .road-sign { margin-top: 0.4rem; flex-shrink: 0; }

.road-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.road-list a {
    display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
    padding: 0.7rem 1rem; text-decoration: none; color: var(--text);
    background: var(--suprafata); border: 1px solid var(--linie); border-radius: var(--raza);
}
.road-list a:hover { border-color: var(--link); }
.road-list a:hover .road-ends { color: var(--link); }
.road-list .road-ends { font-weight: 600; }
.road-list .count { color: var(--gri); font-size: 0.92rem; white-space: nowrap; }

/* Lista stațiilor ca o linie de drum, cu kilometrul în stânga */
.road-stations { list-style: none; padding: 0; margin: 0; position: relative; }
.road-stations::before { content: ""; position: absolute; left: 4.6rem; top: 0.5rem; bottom: 0.5rem; width: 4px; background: var(--linie); border-radius: 2px; }
.road-stations li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.6rem; padding: 0.55rem 0; position: relative; }
.road-stations li::before { content: ""; position: absolute; left: 4.35rem; top: 1.05rem; width: 14px; height: 14px; border-radius: 50%; background: var(--semn); border: 3px solid var(--beton); }
.road-km { text-align: right; font-family: var(--font-titlu); font-weight: 700; font-size: 1.1rem; color: var(--gri); padding-top: 0.15rem; }
.road-station h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; margin: 0; }
.road-station h3 a { color: var(--text); text-decoration: none; }
.road-station h3 a:hover { color: var(--link); text-decoration: underline; }
.road-station .meta { color: var(--gri); font-size: 0.92rem; }
.road-aside { position: sticky; top: 1rem; }
.road-map { height: 30rem; }
@media (max-width: 52rem) {
    .road-aside { position: static; order: -1; }
    .road-map { height: 18rem; }
    .road-list a { grid-template-columns: auto 1fr; }
    .road-list .count { grid-column: 2; }
}
.road-station .mini-prices { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.road-group { font-size: 1.35rem; margin: 0.5rem 0 0.4rem; }
.road-group + .road-stations { margin-bottom: 1.5rem; }
.road-group .count { font-family: var(--font); font-weight: 500; font-size: 1rem; color: var(--gri); margin-left: 0.3rem; }

/* ---------- Europa ---------- */
.neighbour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.neighbour.is-home { box-shadow: inset 0 0 0 3px var(--semn); }
.eu-tabs { margin-bottom: 0.9rem; }
.eu-tabs button {
    font: inherit; font-weight: 600; cursor: pointer; padding: 0.4rem 0.95rem;
    border: 1px solid var(--linie); border-radius: 999px; background: var(--suprafata); color: var(--text);
}
.eu-tabs button[aria-selected="true"] { background: var(--semn); border-color: var(--semn); color: #fff; }
.eu-table .bar { display: block; height: 0.65rem; border-radius: 999px; background: var(--linie); }
.eu-table tr.is-neighbour .bar { background: #8fb3d9; }
.eu-table tr.is-home td { font-weight: 700; }
.eu-table tr.is-home .bar { background: var(--semn); }
.eu-table tr.is-avg td { font-style: italic; color: var(--gri); border-top: 2px solid var(--linie); }
.eu-table tr.is-avg .bar { background: var(--chihlimbar); }
.eu-table td { vertical-align: middle; }

/* ---------- structura prețului ---------- */
.stack { display: flex; height: 1.6rem; border-radius: var(--raza); overflow: hidden; margin: 1.25rem 0 0.6rem; background: var(--suprafata-2); }
.seg { display: block; height: 100%; transition: width 0.25s ease; }
.seg-excise { background: #c0392b; }
.seg-vat { background: var(--chihlimbar); }
.seg-rest { background: var(--semn); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.92rem; }
.stack-legend .dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 3px; margin-right: 0.4rem; vertical-align: -0.05rem; }
.steps { padding-left: 1.2rem; max-width: 70ch; }
.steps li { margin-bottom: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .seg { transition: none; } }
.breakdown .pump-row { grid-template-columns: 7.5rem 1fr auto; }

/* ---------- generatorul de widget ---------- */
.widget-builder .field { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.widget-builder input[type="text"], .widget-builder textarea {
    font: inherit; width: 100%; padding: 0.6rem 0.75rem;
    border: 1px solid var(--linie); border-radius: var(--raza); background: var(--suprafata); color: var(--text);
}
.widget-builder textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; resize: vertical; }
.widget-builder .check { display: inline-flex; gap: 0.5rem; align-items: center; cursor: pointer; }
.widget-preview { margin-top: 0.6rem; padding: 1rem; border: 1px dashed var(--linie); border-radius: var(--raza); background: var(--suprafata); }

/* ---------- încărcare electrică ---------- */
.ev-item { border-left-color: #1e7d46; }
.ev-sockets { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
