body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#sidebar {
    position: absolute;

    top: 50px;
    transform: translateY(-50%);
    height: 66.666vh;

    left: 10px;
    /* top: 0; */
    /* bottom: 0; */

    /* width: 25%; */
    background: rgba(255, 255, 255, 0.9);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.marker-item {
    border-bottom: 2px solid #6d6d6d91;
    padding: 10px 0;
    cursor: pointer;
}

.marker-item img {
    max-width: 100%;
    max-height: 100px;
    border-radius: 16px;
}

.marker_details{
    display:none;
}

#create-marker-btn {
    color: #ddd;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: rgb(144, 2, 2);
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;

}

#vote-modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
}

#vote-modal h3 {
    margin-top: 0;
    color: #333;
}

#vote-modal input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#vote-modal button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#vote-send-code {
    background-color: #4CAF50;
    color: white;
    margin-right: 5px;
}

#vote-confirm {
    background-color: #2196F3;
    color: white;
}

#vote-cancel {
    background-color: #f44336;
    color: white;
}

.img_detail{
    max-width: 380px;
    border-radius: 16px;
}

.btn_style{
    appearance: none;
    border: 0;
    border-radius: 5px;
    background: rgb(144, 2, 2);
    color: #fff;
    padding: 8px 16px;
    font-size: 16px;
}

/* Добавить в конец файла */
#sidebar-toggle {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2000;
    background: rgb(144, 2, 2);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 480px;
    border-radius: 16px;
}

#sidebar.active {
    transform: translateX(0);
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: 80vh
    }
}
@media screen and (max-width:515px) {

    /* #sidebar {
        display: none !important;
    } */
}