/**
 * Lazy Maps Styles
 * Styles for lazy-loaded Google Maps placeholders
 */

.lazy-map-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6;
    position: relative;
    min-height: 200px;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #e9ecef 100%);
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.map-placeholder:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.map-placeholder-content {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
}

.map-placeholder-icon {
    margin-bottom: 1rem;
    opacity: 0.7;
}

.map-placeholder-icon svg {
    width: 48px;
    height: 48px;
    color: #007bff;
}

.map-placeholder-text h4 {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
}

.map-placeholder-text p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.map-placeholder-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.map-placeholder:hover .map-placeholder-button {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Loading state */
.map-placeholder.loading {
    cursor: default;
    border-style: solid;
    border-color: #007bff;
}

.map-placeholder.loading:hover {
    transform: none;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error state */
.map-error .map-placeholder-icon svg {
    color: #dc3545;
}

.map-error .map-placeholder-text h4 {
    color: #dc3545;
}

.map-error .map-placeholder-button {
    background-color: #dc3545;
}

.map-error .map-placeholder-button:hover {
    background-color: #c82333;
}

/* Loaded state */
.map-loaded {
    border: none;
}

.map-loaded iframe {
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-placeholder-content {
        padding: 1.5rem 1rem;
    }
    
    .map-placeholder-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .map-placeholder-text h4 {
        font-size: 1.1rem;
    }
    
    .map-placeholder-text p {
        font-size: 0.9rem;
    }
    
    .map-placeholder-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .map-placeholder {
        border-color: #000;
        background: #fff;
    }
    
    .map-placeholder:hover {
        background: #f0f0f0;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .map-placeholder,
    .map-placeholder-button,
    .map-loading-spinner {
        transition: none;
        animation: none;
    }
    
    .map-placeholder:hover {
        transform: none;
    }
}
