/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Department Dots */
.department-dot {
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border: 2px solid #c0392b;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.department-dot:hover {
    background: #c0392b;
    transform: scale(1.5);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
}

.department-dot:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Popup Styles */
.popup {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    padding: 15px 15px 25px 15px;
    max-width: 280px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px) scale(0.95);
}

.popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.popup img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.popup h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.popup p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 24px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    z-index: 30;
    padding: 0;
    line-height: 1;
}

.popup-close:hover {
    background: #c0392b;
    color: white;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin: 30px 0 15px 0;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 8px;
}

.slide.active {
    opacity: 1;
}

.slideshow-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .popup {
        max-width: 240px;
        padding: 15px;
    }
    
    .popup img {
        height: 120px;
    }
    
    .popup h4 {
        font-size: 14px;
    }
    
    .popup p {
        font-size: 12px;
    }
}
