.charging-map-title {
    text-align: center;
    padding: 16px;
}

/* map-container is defined withing the theme page builder */
.map-container .section-item,
.map-container .container {
    margin: 0 !important;
    padding: 0 !important;
}

.map-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100%;
}

#map {
    width: 100%;
    height: 65vh;
    background-color: grey;
}

.station-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: 360px;
    height: auto;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 40px 0;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1;
    transform: translateX(10px);
    transition: opacity 0.2s ease, transform 0.25s ease;
    opacity: 0;
    pointer-events: none;
}

.station-panel.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.station-panel-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
}

.station-panel-close:hover {
    background: #f0f0f0;
    color: #333;
}

@media (max-width: 799px) {

    .charging-map-title {
        padding: 8px;
    }

    .charging-map-title h1 {
        font-size: 24px !important;
    }

    #map {
        height: 80vh;
    }

    .station-panel {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: auto;
        max-height: 50vh;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
        transform: translateY(20px);
        padding-bottom: 90px;
    }

    .station-panel.visible {
        transform: translateY(0);
    }

    .map-legend {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 8px !important;
    }

    .map-legend .legend-item {
        flex-shrink: 0;
        font-size: 14px;
    }

    .map-legend .legend-item div.icon {
        margin-right: 4px;
        margin-top: 5px;
        width: 18px;
        height: 18px;
    }

    .map-legend .legend-item:first-child {
        display: none;
    }
}

.map-charging-station-info {
    font-family: 'Assistant', Arial, sans-serif;
}

.station-title {
    font-family: 'Almoni', 'Assistant', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    padding: 0 16px;
}

.station-address {
    font-size: 17px;
    color: #555;
    margin-bottom: 10px;
    padding: 0 16px;
}

.station-waze-btn {
    display: block;
    margin: 24px 16px 24px;
    padding: 12px;
    background: #15b131;
    color: #fff;
    text-align: center;
    font-family: 'Almoni', 'Assistant', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.station-waze-btn:hover {
    background: #11952a;
}

.station-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 12px 0;
}

.station-operator {
    font-size: 17px;
    padding: 0 16px;
}

.station-operator-label {
    font-weight: 700;
}

.station-charger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    padding: 6px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.station-charger-row:last-child {
    border-bottom: none;
}

.charger-count {
    font-weight: 700;
    font-size: 19px;
    color: #15b131;
}

.map-legend {
    background: #f5f5f5;
    border-radius: 5px;
    font-size: 16px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.map-legend .filter {
    display: inline-block;
}

.map-legend .filter span {
    float: right;
}

.map-legend .legend-item {
    display: inline-block;
    background: #e3e3e3;
    margin: 3px;
    margin-top: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.map-legend .legend-item[data-type="dc"] {
    background: #c8f0ce;
}

.map-legend .legend-item[data-type="sf"] {
    background: #c8f0ce;
}

.map-legend .legend-item[data-type="ts"] {
    background: #f8d0d0;
}

.map-legend .legend-item:hover {
    filter: brightness(0.95);
}

.map-legend .inactive-type {
    opacity: 0.5;
    background: #e0e0e0 !important;
}

.map-legend .legend-item div.icon {
    float: right;
    margin-right: 6px;
    margin-top: 7px;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.no-border {
    border: none ! important;
    background: none ! important;
    cursor: default;
}

.charger-dc {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12.5' cy='12.5' r='11.5' fill='%234C4C4C'/%3E%3Cpath d='M18 10.9146H13.3779L16.0445 3L8 13.0854H12.6224L9.95584 21L18 10.9146Z' fill='%23FFFCFC'/%3E%3C/svg%3E%0A");
}

.charger-sf {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12.5' cy='12.5' r='11.5' fill='%2315AF31'/%3E%3Cpath d='M18 10.9146H13.3779L16.0445 3L8 13.0854H12.6224L9.95584 21L18 10.9146Z' fill='%23FFFCFC'/%3E%3C/svg%3E%0A");
}

.charger-tesla {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12.5' cy='12.5' r='11.5' fill='%23CC0000'/%3E%3Cpath d='M18 10.9146H13.3779L16.0445 3L8 13.0854H12.6224L9.95584 21L18 10.9146Z' fill='%23FFFCFC'/%3E%3C/svg%3E%0A");
}

.map-legend .legend-item div.val {
    float: right;
    padding: 4px;
    padding-top: 3px;
    font-size: 16px;
    margin: 0px 2px 0 8px;
}

div.schema-faq-section {
    margin-top: 20px !important;
    padding-top: 10px;
    margin-bottom: 10px;
    max-width: 800px;
}

div.schema-faq-section strong {
    font-family: 'Almoni', 'Assistant';
    font-size: 1.6em ! important;
    font-weight: 700;
    color: #000;
    padding-bottom: 10px;
}

h2.section-title {
    font-size: 28px !important;
}

.mag-box-container p {
    font-size: 20px !important;
    line-height: 1.6 !important;
}

.map-disclaimer p {
    font-size: 16px !important;
    color: #555;
    padding: 6px;
    margin-bottom: 0 !important;
}