@font-face {
    font-family: 'Solenne';
    src: url('/css/fonts/Solenne Nova.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Solenne', sans-serif;
}
body {
    margin: 0;
    padding: 0;
    background-color: #0a0400;
}

#map {
    height: 100vh;
    width: 100%;
}

.sidebar{
    margin-top: 10px;
    position: relative;
    font-family: 'Solenne', serif;
    font-size: 30px;
}
.paper-bg{
    background: url("../images/perg.jpg") no-repeat center center;
    background-size: cover;
}
#coords {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    font-family: monospace;
    pointer-events: none; /* чтобы не мешало кликам по карте */
}
h1, #sidebar-title{
    margin: 5px;
    padding: 10px;
    text-align: center;
    border: 1px solid #8d5d1a;
    background-color: #a1816333;
}
.margin-bot-10{
    margin-bottom: 10px !important;
}

.list-banner {
    font-weight: bold;
    margin: 10px 0 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-body {
    list-style-type: none;
    margin: 0 0 10px 20px;
    padding: 0;
}

.accordion-body li {
    cursor: pointer;
    padding: 2px 0;
}
.accordion-body li:hover {

}
.accordion-body li {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.accordion-body li:hover {
    text-shadow: 0 0 5px rgba(231, 66, 66, 0.3);
}

.accordion-body li.active {
    font-weight: 600;
    list-style: pointer;
}
.accordion-button:not(.collapsed),
.accordion-header button {
    font-size: 35px;
    background-color: #d7bb969e;
    padding: 10px;
    border-bottom: 1px solid #8d5d1a;
}

.list-group-flush>.list-group-item{
    background: transparent;
}
.accordion-body li.active{
    list-style: disc;
    background-color: rgba(231, 66, 66, 0.05);
    border: unset;
    color: inherit;
}
#properties-accordion{
    border: 1px solid rgba(231, 66, 66, 0.2);
    border-radius: 20px;
    background-color: #a1816333;
    overflow: hidden;
}
.me-2{
    margin-right: 30px !important;
}
.accordion-body{
    padding: 10px !important;
    margin: 0 !important;
    background-color: #af927096;
}
.modal-content{
    font-size: 25px;
}
.modal-title{
    font-size: 40px;
}
#placeModalImg{
    width: 100%;
}

.sidebar-right {
    position: fixed;
    top: 0;
    right: -400px; /* скрыт за экраном */
    width: 400px;
    height: 100vh;
    padding: 1rem;
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-right.open {
    right: 0;
}

.sidebar-right .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.sidebar-content img {
    max-height: 200px;
    object-fit: cover;
}
#sidebar-img {
    width: 100%;
    margin-top: 15px;
    max-height: unset;
}
#sidebar-desc {
    font-size: 31px;
    margin-top: 10px;
    max-height: 60vh;
    overflow-y: scroll;
    background-color: #b7884c59;
    border-radius: 10px;
    padding: 10px;
    line-height: 27px;
}
#sidebar-title{
    font-size: 40px;
}
.sidebar-close-btn{
    margin: 5px;
    padding: 10px;
    text-align: center;
    border: #8d5d1a;
    background-color: #dfab63;
    font-size: 30px;
    width: 100%;
}
#search-results mark {
    background: #ffec99;
    padding: 0 2px;
    border-radius: 2px;
}
#search-results .list-group-item.active mark {
    background: #ffe066;
}
.labeled-marker {
    text-align: center;
    border: none;
    background: none;
}

.marker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-5px); /* чуть вверх */
}

.marker-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}

.marker-label {
    margin-top: 2px;
    padding: 1px 4px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none; /* чтобы не мешала клику по маркеру */
}

.form-control{
    font-size: 25px !important;
}

@media (max-width: 1200px) {
    #map {
        height: 75vh;
    }
}

@media (max-width: 768px) {
    #map {
        height: 60vh;
    }

    .sidebar {
        height: 30vh;
        overflow: scroll;
    }

    .sidebar,
    .accordion-button:not(.collapsed), .accordion-header button {
        font-size: 25px;
    }

    .mobile-header {
        padding: 1px;
        border-bottom: 1px solid;
    }

    #coords {
        display: none;
    }

    .sidebar-right {
        width: 100%;
    }
    #sidebar-desc{
        max-height: 30vh;
    }

    #sidebar-img{
        max-height: 36vh;
        width: auto;
        margin: 10px auto;
        display: block;
    }
}