@font-face {
    font-family: "vazir";
    src: url("../font/Vazir-Medium.ttf");
}

body {
    font-family: "vazir";

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100vh;
}

.f-s {
    white-space: nowrap;
    font-size: 10px;
}

.sidebarr {
    z-index: 1000000000000000;
    width: 280px;
    /* عرض سایدبار */
    background-color: #f8f9fa;
    /* رنگ پس‌زمینه */
    border-right: 1px solid #ddd;
    position: sticky;
    top: 0;
    /* همیشه از بالای صفحه چسبیده */
    /* height: 100vh; ارتفاع کامل */
}

/* محتوای اصلی */
.main-content {
    flex: 1;
    overflow-y: auto;
    /* اسکرول مستقل برای محتوا در صورت نیاز */
    padding: 20px;
}

.header {
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
    transition: 0.3s;
}

.mapboxgl-ctrl-bottom-left {
    display: none;
}

.touch .map-type-control .toggle-button {
    display: none;
}

.header .header-show {
    left: 0;
    display: block;
    transition: 0.3s;
}

.header-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

}

.bg-success-p:hover {
    background: #28a745;
}

.bg-success-p {
    background: #28a74644;
    color: white;
}

#btnShowOrClose {
    position: fixed;
    right: 10px;
    top: 20px;
    z-index: 9970000;
    transition: background-color 0.3s;
    white-space: nowrap;
    max-width: fit-content;
}

.panel {
    position: fixed;
    right: 0px;
    left: 0px;
    bottom: 0px;
    z-index: 1000;
    transition: background-color 0.3s;
    /* max-width:max-content; */
    font-size: small;
    /* رنگ پس‌زمینه */
}

/* سایدبار */
#instructions {
    margin-top: 10px;
    overflow-y: auto;
    /* اسکرول عمودی فقط برای سایدبار */
    /* height: 30vh; width:100%; */
    width: fit-content;
    height: fit-content;
    scrollbar-width: thin;
    /* برای فایرفاکس */
    scrollbar-color: #999 #f0f0f0;
    /* رنگ اسکرول */
}

/* برای کروم و مرورگرهای WebKit */
#instructions::-webkit-scrollbar {
    width: 6px;
}

#instructions::-webkit-scrollbar-track {
    background: #f0f0f0;
}

#instructions::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 3px;
}

.header-alert i {
    cursor: pointer;
    transition: .3s;
}

.header-alert i:hover {
    color: #bfdac6;
    ;
}

#layers {
    display: none;
}

#Shanasaei {
    display: none;
}

#SearchAramestan {
    display: none;
}

#ShomareShenasaeMelk {
    font-size: small;
}

.font-small {
    font-size: small;
}

.header-alert {
    box-shadow: 0 10px 20px #1557243d;
}

#accordionExample p {
    /* font-size: 10px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: larger;
}

#accordionExample .card {
    font-size: small;
}

#accordionExample .card tr {
    cursor: pointer;
}

#vehicle {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

#Close {
    color: #212529;
    text-decoration: none;
}

.btn-sm {
    padding: 3px;
    font-size: smaller;
}

.leaflet-control {
    display: none;
}