body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}
#map {
    height: 100vh;
    width: 100%;
}
.leaflet-tooltip {
    pointer-events: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

/* Стили для кастомной иконки маркера с изображением */
.custom-image-icon {
    border: 1px solid black;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    background-color: white;
}
.custom-image-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.hidden-dummy-icon {
    display: none;
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 240, 240, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    color: #333;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    font-weight: normal;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}
.modal-close-btn:hover {
    color: #555;
}
#modalBodyContent h4 { /* Стили для #modalTitle */
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 1.8em;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}
#modalBodyContent #modalMainText p { /* Стили для параграфов в #modalMainText */
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 1.05em;
    color: #000000;
}
#modalBodyContent #modalMainText strong,
#modalBodyContent #modalMainText b {
    color: #000000;
    font-weight: 700;
}
.modal-statistics {
    margin-top: 1px;
    padding-top: 1px;
    border-top: 1px dashed #ddd;
}
.modal-statistics p {
    font-size: 0.95em;
    color: #000000;
    margin-bottom: 2px;
    line-height: 1.0;
}
.modal-statistics strong {
    color: #000000;
    font-weight: 700;
}
hr.modal-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}
@media (max-width: 400px) {
    .modal-content {
        padding: 20px 15px;
    }
    #modalBodyContent h4 { /* #modalTitle */
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    #modalBodyContent #modalMainText p {
        font-size: 1em;
        margin-bottom: 6px;
        line-height: 1.5;
    }
    .modal-statistics {
        margin-top: 10px;
        padding-top: 8px;
    }
    .modal-statistics p {
        margin-bottom: 4px;
        line-height: 1.3;
    }
}