/**
 * Frontend CSS for GMap-3DEEP Plugin
 */

.gmap-3deep-container {
    position: relative;
    background: #f5f5f5;
    width: 100%;
    height: var(--gmap-desktop-height, 600px);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.gmap-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-weight: 500;
    color: #333;
    text-align: center;
    min-width: 150px;
}

.gmap-loading::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gmap-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
}

.gmap-marker-info {
    max-width: 300px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gmap-marker-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.gmap-marker-info p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

.gmap-marker-info img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gmap-marker-info .marker-image {
    text-align: center;
    margin-bottom: 10px;
}

.gmap-marker-info .marker-content {
    padding: 15px;
}

/* Marker tooltip styles */
.gmap-marker-tooltip {
    position: absolute;
    background: #FFF;
    color: #333;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    display: none;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: opacity 0.2s ease-in-out;
}

.gmap-3deep-container .gmnoprint[aria-label*="camera"],
.gmap-3deep-container .gmp-internal-camera-control {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .gmap-3deep-container {
        height: var(--gmap-tablet-height, 500px);
        margin: 0;
    }
    
    .gmap-loading {
        padding: 15px 20px;
        min-width: 120px;
        font-size: 14px;
    }
    
    .gmap-marker-info {
        max-width: 250px;
    }
    
    .gmap-marker-info h3 {
        font-size: 15px;
    }
    
    .gmap-marker-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gmap-3deep-container {
        height: var(--gmap-mobile-height, 400px);
        margin: 0;
    }
    
    .gmap-loading {
        padding: 12px 15px;
        min-width: 100px;
        font-size: 13px;
    }
    
    .gmap-marker-info {
        max-width: 200px;
    }
    
    .gmap-marker-info h3 {
        font-size: 14px;
    }
    
    .gmap-marker-info p {
        font-size: 12px;
    }
} 