.sp-poldermap {
    width: 100%;
}

.sp-poldermap-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.sp-poldermap-toolbar select,
.sp-poldermap-toolbar button {
    min-height: 38px;
    padding: 6px 10px;
}

.sp-poldermap-viewport {
    width: 100%;
    height: min(68vh, 640px);
    min-height: 360px;
    border: 1px solid #cbd2cc;
    border-radius: 4px;
    z-index: 1;
}

.sp-map-marker-wrap {
    background: none;
    border: 0;
}

.sp-map-marker {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 2px solid #b31b20;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgb(0 0 0 / 28%);
    color: #b31b20;
    font-size: 16px;
}

.sp-map-marker-dimmed {
    opacity: 0.18;
    transition: opacity 180ms ease;
}

.sp-poldermap .leaflet-popup-content p {
    margin: 6px 0;
}

.sp-poldermap .sp-popup-hours {
    margin: 8px 0;
}

.sp-poldermap .sp-popup-hours-table {
    width: 100%;
    font-size: 12px;
}

.sp-poldermap .sp-popup-hours-table th,
.sp-poldermap .sp-popup-hours-table td {
    padding: 4px 6px;
}

.sp-poldermap .sp-popup-hours-table th:first-child {
    white-space: nowrap;
}

.sp-poldermap .sp-popup-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.sp-poldermap .sp-popup-icon-link {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #2271b1;
    font-size: 16px;
    text-decoration: none;
}

.sp-poldermap .sp-popup-icon-link:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    color: #135e96;
}

.sp-poldermap .sp-popup-icon-link:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.sp-location-fields {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #c3c4c7;
}

.sp-location-grid,
.sp-opening-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.sp-location-fields label {
    display: grid;
    gap: 4px;
}

.sp-location-fields input {
    width: 100%;
}

.sp-location-fields h4 {
    margin-bottom: 8px;
}

.sp-json-path-container {
    margin-top: 15px;
}

.sp-map-wrap[hidden] {
    display: none;
}

.sp-map-canvas {
    height: 250px;
    border: 1px solid #ccc;
}

@media (max-width: 520px) {
    .sp-poldermap-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .sp-poldermap-viewport {
        height: 62vh;
        min-height: 320px;
    }
}
