/* ===========================================
   OpenStreetMap/Leaflet Blocker Styles
   Version: 3.5.3
   =========================================== */

.ccm-osm-placeholder {
    position: relative;
    background: #e8e4e0;
    overflow: hidden;
    max-width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Background Pattern (subtle map-like grid) */
.ccm-osm-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Notice Container */
.ccm-osm-notice {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Map Icon */
.ccm-osm-placeholder .ccm-osm-notice > div:first-child {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1;
}

/* Description Text */
.ccm-osm-notice p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* Load Button - OpenStreetMap Green */
.ccm-osm-load-btn {
    background: #7eb73e !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.2s ease !important;
    display: inline-block !important;
}

.ccm-osm-load-btn:hover {
    background: #6aa32e !important;
    transform: translateY(-1px) !important;
}

.ccm-osm-load-btn:active {
    transform: translateY(0) !important;
}

/* Privacy Link */
.ccm-osm-notice a {
    color: #666;
    font-size: 12px;
    text-decoration: underline;
    display: inline-block;
    margin-top: 10px;
}

.ccm-osm-notice a:hover {
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .ccm-osm-placeholder {
        min-height: 250px;
    }
    
    .ccm-osm-notice {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .ccm-osm-placeholder .ccm-osm-notice > div:first-child {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .ccm-osm-notice p {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .ccm-osm-load-btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
        width: 100% !important;
    }
}

/* Salient Theme Compatibility */
.wpb_wrapper .ccm-osm-placeholder,
.vc_column_container .ccm-osm-placeholder {
    width: 100%;
}

/* Nectar specific */
.nectar-leaflet-map.ccm-osm-placeholder {
    width: 100% !important;
}
