.marker-logo {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #d4deed;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.marker-logo__inner {
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(var(--logo-scale, 1));
    transform-origin: center center;
}

.marker-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 34px !important;
    max-height: 34px !important;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.leaflet-container .leaflet-marker-pane .marker-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 34px !important;
    max-height: 34px !important;
}

.marker-logo .brand-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.marker-logo--logo {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #ffffff;
}

.marker-logo--fallback {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #40516d;
}

.marker-logo--fallback .brand-text {
    color: #f8f9fa;
}

.marker-logo--highlight-cheap {
    border-color: #16a34a;
    animation: marker-halo-cheap 1.15s ease-in-out infinite;
}

.marker-logo--highlight-expensive {
    border-color: #dc2626;
    animation: marker-halo-expensive 1.15s ease-in-out infinite;
}

@keyframes marker-halo-cheap {
    0%,
    100% {
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.2),
            0 0 0 0 rgba(22, 163, 74, 0.18);
    }
    50% {
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.2),
            0 0 0 8px rgba(22, 163, 74, 0.44);
    }
}

@keyframes marker-halo-expensive {
    0%,
    100% {
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.2),
            0 0 0 0 rgba(220, 38, 38, 0.16);
    }
    50% {
        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.2),
            0 0 0 8px rgba(220, 38, 38, 0.42);
    }
}

.marker-logo--wide img {
    max-width: 100%;
    max-height: 100%;
}

.marker-logo--tall img {
    max-width: 100%;
    max-height: 100%;
}

.marker-logo--wide .marker-logo__inner {
    width: 34px;
    height: 26px;
}

.marker-logo--tall .marker-logo__inner {
    width: 28px;
    height: 34px;
}

.marker-price-icon {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: auto;
}

.marker-price-icon .marker-logo {
    flex: 0 0 auto;
}

.marker-price-icon .marker-price-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(calc(-50% + var(--price-x, 0px)), calc(-50% + var(--price-y, 39px)));
}

.marker-price-badge {
    display: block;
    box-sizing: border-box;
    min-width: 68px;
    padding: 3px 5px;
    border: 1px solid rgba(41, 59, 86, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: #172033;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    pointer-events: none;
    white-space: nowrap;
}

.marker-price-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    gap: 3px;
}

.marker-price-row--ev {
    grid-template-columns: 24px 1fr;
}

.marker-price-row + .marker-price-row {
    margin-top: 1px;
}

.marker-price-label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0;
}

.marker-price-label--g95 {
    color: #111111;
}

.marker-price-label--die {
    color: #168a3a;
}

.marker-price-label--kwh {
    color: #6d28d9;
}

.marker-price-label--kw {
    color: #0369a1;
}

.marker-price-label--disp {
    color: #334155;
}

.marker-price-value {
    color: #172033;
}

.marker-price-value--cheap {
    color: #15803d;
}

.marker-price-value--expensive {
    color: #dc2626;
}

.cluster-badge {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.cluster-cheap {
    background: #1b9e77;
}
.cluster-mid {
    background: #66a61e;
}
.cluster-high {
    background: #e6ab02;
}
.cluster-expensive {
    background: #d95f02;
}
.cluster-na {
    background: #6c757d;
}

.popup-no-prices {
    color: #70809b;
}
/* Country adaptation only: France exposes individual weekdays and kiosk hours. */
.reference-hours {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    font-size: 13px;
    margin-bottom: 20px;
}
.reference-hours > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    padding: 9px 0;
}
.reference-hours dt {
    font-weight: 700;
}
.reference-hours dd {
    margin: 0;
}
.reference-page .favorite {
    cursor: pointer;
}
.reference-page #map-status {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.reference-page #map-status:empty {
    display: none;
}
.reference-page .leaflet-popup-content {
    margin: 14px;
}
.reference-page .map-main {
    min-width: 0;
}
.reference-page .directory-brand-logo img {
    object-fit: contain;
}
.reference-page .leaflet-container .leaflet-marker-pane .marker-logo img {
    max-width: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
.reference-page .marker-price-row {
    grid-template-columns: 29px 1fr;
}
.market-alert {
    text-align: center;
    padding: 14px 20px;
    background: #fff0ef;
    border-bottom: 1px solid #edc8c5;
    color: #982c25;
    font-size: 14px;
    line-height: 1.6;
}
.market-alert a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
}
.market-alert small {
    display: block;
    font-size: 11px;
}
.market-alert--down {
    background: #e8f6ed;
    border-color: #c4e3d0;
    color: #14653c;
}
@media (max-width: 700px) {
    .reference-hours {
        grid-template-columns: 1fr;
    }
}

/* Keep the shared footer identical on reference and legacy templates. */
.site-footer {
    margin-top: 0;
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
}
.site-footer-inner {
    max-width: 1392px;
    margin: 0 auto;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 12px;
}
.site-footer strong {
    display: block;
    color: var(--text);
    margin-bottom: 3px;
}
.site-footer nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.site-footer a {
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px solid rgba(70, 103, 148, 0.28);
}
