.osm-map-wrap {
    width: 100%;
    max-width: 100%;
    margin: 1.5em 0;
    box-sizing: border-box;
}

.osm-map-container {
    width: 100%;
    height: 500px; /* overridden per-instance by inline style from shortcode */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: #e8e0d8;
    position: relative;
}

/* Loading state */
.osm-map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e0d8;
    z-index: 10;
    flex-direction: column;
    gap: 12px;
}

.osm-map-loading::before {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #aaa;
    border-top-color: #4a8cb5;
    border-radius: 50%;
    animation: osm-spin 0.8s linear infinite;
}

.osm-map-loading span {
    font-size: 0.85em;
    color: #555;
}

@keyframes osm-spin {
    to { transform: rotate(360deg); }
}

/* Error state */
.osm-map-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    color: #c0392b;
    font-size: 0.9em;
    padding: 1em;
    text-align: center;
}

/* Attribution */
.osm-map-container .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255,255,255,0.75);
}

/* Popup */
.osm-map-container .leaflet-popup-content {
    font-size: 0.9em;
    max-width: 220px;
    word-break: break-word;
}

.osm-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    padding: 0.75em 1em;
    border-radius: 4px;
}
