/* ========== INTERACTIVE MAP SECTION ========== */
.map-section {
    padding: 80px 0;
    background: var(--gray-light);
}

.enhanced-map-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    min-height: 500px;
}

.main-map-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========== CATEGORY CIRCLES ========== */
.map-category-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 10;
    background: white;
}

.map-category-circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 21, 30, 0.2),
        rgba(247, 208, 2, 0.2)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.map-category-circle:hover::before {
    opacity: 1;
}

.map-category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.map-category-circle:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #f7d002;
    box-shadow: 0 20px 50px rgba(201, 21, 30, 0.3);
    z-index: 100;
}

.map-category-circle:hover img {
    transform: scale(1.2);
}

.category-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    color: white;
    padding: 15px 8px;
    text-align: center;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.map-category-circle:hover .category-label {
    background: linear-gradient(
        to top,
        rgba(201, 21, 30, 0.95),
        transparent
    );
    padding-bottom: 20px;
}

/* ========== LOCATION MARKERS ========== */
.map-location-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    z-index: 50;
    animation: markerFloat 3s ease-in-out infinite;
}

@keyframes markerFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-6px);
    }
}

.map-location-marker:hover {
    transform: translate(-50%, -50%) scale(1.2);
    z-index: 101;
    animation: none;
}

.location-dot {
    width: 18px;
    height: 18px;
    background: #ff1744;
    border: 4px solid white;
    border-radius: 50%;
    display: block;
    margin: 0 auto 6px;
    box-shadow: 0 5px 20px rgba(255, 23, 68, 0.6);
    animation: locationPulse 2s infinite;
    position: relative;
}

@keyframes locationPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 23, 68, 0.6);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 23, 68, 1),
            0 0 0 6px rgba(255, 23, 68, 0.3);
    }
}

.map-location-marker:hover .location-dot {
    background: #f7d002;
    transform: scale(1.3);
    animation: none;
}

.location-name {
    display: block;
    background: white;
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 2px solid #c9151e;
    transition: all 0.3s ease;
}

.map-location-marker:hover .location-name {
    background: #c9151e;
    color: white;
    border-color: #f7d002;
    transform: translateY(-3px);
}

/* ========== POPUP ========== */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    max-width: 400px;
    width: 90%;
    max-height: 400px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c9151e;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}

.close-btn:hover {
    background: #f7d002;
    color: #1a1a1a;
    transform: rotate(90deg);
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #c9151e;
    margin-bottom: 8px;
    font-family: "Playfair Display", serif;
    line-height: 1.2;
}

.category-badge {
    display: inline-block;
    background: #f7d002;
    color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.popup-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    max-height: 100px;
    overflow-y: auto;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 1;
}

.image-card:hover {
    transform: scale(1.05);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    padding: 8px;
    background: #f8f9fa;
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    font-size: 0.75rem;
}

@media (max-width: 575.98px) {
    .map-category-circle {
        width: 100px;
        height: 100px;
    }

    .location-dot {
        width: 16px;
        height: 16px;
    }

    .location-name {
        font-size: 10px;
        padding: 4px 8px;
    }
}
