/* ===== MAP CONTAINER STYLES ===== */
.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-red), 
        transparent);
    animation: mapBorderGlow 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes mapBorderGlow {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0.5;
    }
    50% {
        transform: translateX(100%);
        opacity: 1;
    }
}

/* Map iframe styling */
.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
    filter: grayscale(20%) contrast(110%);
    transition: all 0.5s ease;
}

.map-container iframe:hover {
    filter: grayscale(0%) contrast(100%);
}

/* Map overlay for better readability */
.map-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.2) 0%,
        rgba(10, 10, 10, 0.1) 100%
    );
    z-index: 1;
}

/* Map info overlay (optional) */
.map-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    max-width: 300px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.map-container:hover .map-info {
    transform: translateY(0);
    opacity: 1;
}

.map-info h4 {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-info h4 i {
    color: var(--primary-red);
}

.map-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Map controls (optional) */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s ease;
}

.map-container:hover .map-controls {
    transform: translateY(0);
    opacity: 1;
}

.map-btn {
    width: 36px;
    height: 36px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
}

/* Loading state */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.map-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(230, 57, 70, 0.1);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: mapSpin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes mapSpin {
    to { transform: rotate(360deg); }
}

.map-loading p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-container {
        border-radius: 16px;
        margin: 3rem auto 0;
        max-width: calc(100% - 2rem);
    }
    
    .map-container iframe {
        height: 350px;
    }
    
    .map-info {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        opacity: 1;
        background: rgba(10, 10, 10, 0.95);
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 16px 16px;
        max-width: 100%;
        padding: 1rem;
    }
    
    .map-controls {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        opacity: 1;
        justify-content: center;
        padding: 1rem;
        background: rgba(10, 10, 10, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .map-container::before {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .map-container {
        border-radius: 12px;
        margin: 2rem auto 0;
        max-width: calc(100% - 1rem);
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .map-info h4 {
        font-size: 1rem;
    }
    
    .map-info p {
        font-size: 0.85rem;
    }
    
    .map-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Dark/Light mode support */
@media (prefers-color-scheme: light) {
    .map-container {
        background: #f8f9fa;
        border-color: rgba(0, 0, 0, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .map-info {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .map-info h4 {
        color: #333;
    }
    
    .map-info p {
        color: #666;
    }
    
    .map-btn {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(0, 0, 0, 0.1);
        color: #333;
    }
    
    .map-loading {
        background: #f8f9fa;
    }
}

/* Print styles */
@media print {
    .map-container {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #ddd;
    }
    
    .map-container::before,
    .map-container::after,
    .map-info,
    .map-controls,
    .map-loading {
        display: none;
    }
    
    .map-container iframe {
        filter: none !important;
    }
}