/* Markers en popups van automaten. Globaal (niet scoped), omdat Leaflet deze elementen zelf aanmaakt. */

.automaat-marker {
    background: none;
    border: none;
}

.automaat-pin {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--automaat-kleur, #607D8B);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.automaat-pin__icoon {
    transform: rotate(45deg);
    font-size: 17px;
    line-height: 1;
}

/* Voorgesteld door een gebruiker, nog niet bevestigd: lichter en met stippellijn. */
.automaat-pin--voorgesteld {
    opacity: 0.55;
    border-style: dashed;
}

.automaat-popup {
    font: 14px/1.4 system-ui, sans-serif;
    min-width: 170px;
}

.automaat-popup__type {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.automaat-popup__naam {
    margin-bottom: 2px;
}

.automaat-popup__adres {
    color: #555;
}

.automaat-popup__status {
    margin-top: 6px;
    color: #8a6d00;
    font-style: italic;
}

.automaat-popup__status--defect {
    color: #8a1c13;
}

.automaat-popup__route {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 14px;
    background: #1E88E5;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
}

/* Clusters: bolletje met het aantal automaten. */
.marker-cluster.automaat-cluster {
    background-color: rgba(21, 101, 192, 0.25);
}

.marker-cluster.automaat-cluster div {
    background-color: #1565C0;
    color: #fff;
    font: 600 13px/30px system-ui, sans-serif;
}
