/* Google Map Component Styles */

.bide-google-map-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bide-google-map {
    width: 100%;
    height: 400px;
    min-height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bide-google-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .bide-google-map {
        height: 250px;
    }
}

/* Info Window Styles */
.map-info-window {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    max-width: 250px;
}

.map-info-window h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.map-info-window p {
    margin: 0;
}

/* Google Maps UI adjustments */
.bide-google-map .gm-style-iw {
    padding: 0;
}

.bide-google-map .gm-style-iw-c {
    padding: 12px;
    border-radius: 8px;
}

.bide-google-map .gm-style-iw-d {
    overflow: auto !important;
}

/* Map marker custom styles (if needed) */
.bide-google-map .custom-marker {
    background-color: #4285F4;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Placeholder styles — shown before the Google Maps API is loaded */
.bide-google-map-container.bide-map-placeholder-container {
    position: relative;
    cursor: pointer;
}

.bide-google-map-container.bide-map-placeholder-container .bide-google-map {
    filter: blur(2px);
    pointer-events: none;
    background-color: #e8e8e8;
}

.bide-map-placeholder-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.65);
    z-index: 10;
    transition: background-color 0.2s ease;
}

.bide-map-placeholder-overlay.bide-map-placeholder-loading {
    background-color: rgba(255, 255, 255, 0.85);
    cursor: wait;
}

.bide-map-placeholder-text {
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    pointer-events: none;
    user-select: none;
}

.bide-google-map-container.bide-map-placeholder-container:hover .bide-map-placeholder-overlay:not(.bide-map-placeholder-loading) {
    background-color: rgba(255, 255, 255, 0.5);
}