/**
 * Standorte Map - Frontend Styles
 */

/* Map Wrapper */
.standorte-map-wrapper {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    max-width: 100%;
    margin: 40px 0;
}

/* Map Container */
.standorte-map {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 12px 28px rgba(0, 0, 0, 0.12);
    border: 3px solid #1D3557;
}

/* Error Message */
.standorte-map-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 2px solid #E63946;
    border-radius: 12px;
    padding: 24px 32px;
    color: #c53030;
    font-size: 16px;
    text-align: center;
    margin: 20px 0;
}

/* Standorte Liste */
.standorte-list {
    margin-top: 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e2e8f0;
}

.standorte-list h3 {
    margin: 0 0 24px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1D3557;
    letter-spacing: -0.5px;
}

.standorte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.standort-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.standort-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 53, 87, 0.15);
    border-color: #1D3557;
}

.standort-marker {
    width: 14px;
    height: 14px;
    background: #E63946;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    animation: pulse 2s infinite;
}

.standort-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(230, 57, 70, 0);
    }
}

.standort-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.standort-info strong {
    font-size: 15px;
    font-weight: 600;
    color: #1D3557;
}

.standort-info small {
    font-size: 12px;
    color: #64748b;
}

/* Custom Info Window */
.standorte-info-window {
    padding: 8px 4px;
    min-width: 160px;
}

.standorte-info-window h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1D3557;
}

.standorte-info-window p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Google Maps UI Overrides */
.gm-style .gm-style-iw-c {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 12px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-tc::after {
    background: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .standorte-map {
        min-height: 350px;
        border-radius: 12px;
    }
    
    .standorte-grid {
        grid-template-columns: 1fr;
    }
    
    .standorte-list {
        padding: 20px;
    }
    
    .standorte-list h3 {
        font-size: 18px;
    }
}

/* Loading State */
.standorte-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    font-size: 16px;
}

.standorte-map-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #1D3557;
    border-radius: 50%;
    margin-right: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

