/**
 * Stiluri personalizate pentru hărțile Leaflet
 * Folosite pentru paginile home și accounts/home
 */

/* Stiluri pentru hărți personalizate */

/* Stiluri generale pentru hărți */
.map-container,
.home-map-container,
#poiMapContainer,
#routeMapContainer,
#dangerMapContainer,
#collaborative-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
}

/* Stiluri pentru markeri Leaflet - IMPORTANT: asigură vizibilitatea */
.leaflet-marker-icon {
    display: block !important;
    visibility: visible !important;
}

.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
}

/* Container pentru iconițe markeri */
.marker-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: white;
    border: 3px solid;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.marker-icon-container i {
    font-size: 16px;
}

.marker-icon-container:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Stiluri pentru clustere */
.custom-cluster {
    background-color: rgba(52, 152, 219, 0.8);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Stiluri pentru popups */
.custom-popup {
    min-width: 200px;
    max-width: 280px;
}

.custom-popup img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.custom-popup h5 {
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.custom-popup p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.custom-popup .btn {
    margin-top: 8px;
}

/* Stiluri pentru tooltip */
.custom-tooltip {
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Stiluri pentru harta în modul fullscreen */
.fullscreen-map {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
}

/* Buton de închidere pentru modul fullscreen */
.fullscreen-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.fullscreen-close:hover {
    background-color: #f8f9fa;
}

.leaflet-control-container .fullscreen-btn a {
    background-color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

/* Adaptare pentru dispozitive mobile */
@media (max-width: 768px) {
    .map-container,
    .home-map-container,
    #poiMapContainer,
    #routeMapContainer,
    #dangerMapContainer {
        height: 300px;
    }
    
    .custom-popup {
        min-width: 180px;
        max-width: 250px;
    }
}

/* Leaflet override styles to ensure markers display properly */
.leaflet-container a {
    color: #1a73e8;
}

.leaflet-control-zoom a {
    color: #333 !important;
}

/* Butonul Leaflet Fullscreen control */
.leaflet-control-fullscreen a {
    background-color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.leaflet-control-fullscreen a:hover {
    background-color: #f8f9fa;
} 