/* Bricks OpenStreetMap Styles */

.bricks-osm-wrapper {
    position: relative;
    width: 100%;
}

.bricks-osm-map {
    z-index: 1;
    border-radius: inherit;
}

/* Popup Styles */
.bricks-osm-popup {
    min-width: 150px;
    max-width: 300px;
}

.bricks-osm-popup-title {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.bricks-osm-popup-desc {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
}

.bricks-osm-popup-link {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background-color: #0073aa;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.bricks-osm-popup-link:hover {
    background-color: #005a87;
    color: #fff;
    text-decoration: none;
}

/* Leaflet Popup Customization */
.bricks-osm-wrapper .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.bricks-osm-wrapper .leaflet-popup-content {
    margin: 12px 16px;
}

.bricks-osm-wrapper .leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

/* Builder Placeholder */
.bricks-osm-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8ed 100%);
    border: 2px dashed #7eb8c9;
    min-height: 300px;
}

.bricks-osm-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #4a7c8a;
    text-align: center;
}

.bricks-osm-placeholder-content i {
    font-size: 48px;
    opacity: 0.7;
}

.bricks-osm-placeholder-content span {
    font-size: 18px;
    font-weight: 600;
}

.bricks-osm-placeholder-content small {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 767px) {
    .bricks-osm-popup {
        min-width: 120px;
        max-width: 220px;
    }

    .bricks-osm-popup-title {
        font-size: 14px;
    }

    .bricks-osm-popup-desc {
        font-size: 13px;
    }
}

/* Fix for Leaflet in Bricks */
.bricks-osm-wrapper .leaflet-control-zoom {
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bricks-osm-wrapper .leaflet-control-zoom a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
}

.bricks-osm-wrapper .leaflet-control-attribution {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
}
