@media screen and (min-width: 1366px) {
    .new-ad-list{
        padding-left: 14rem;
        padding-right: 14rem;
    }
}
.lh-radio-new-ad{
    line-height: 38px;
}
.form-switch .form-check-input{
    height: 1.7rem;
    width: 2.8rem;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    border: 1px solid #333030;
    background-color: #3b3838;
    display: flex;
    flex-direction: row;
    align-content: space-between;
    align-items: center;
    justify-content: space-around;
}

.dropzoneDragArea {
    background-color: #fbfdff;
    border: 1px dashed #c0ccda;
    border-radius: 6px;
    padding: 60px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.dropzone {
    box-shadow: 0px 2px 20px 0px #f2f2f2;
    border-radius: 10px;
}
.ad-list-item{
    background-color: #f5f5f587!important;
    color:#000000;
}
.dark-mode .ad-list-item {
    background-color: #919191 !important;
}
.bg-light-primary{
    background-color: #5545e947 !important;
    color:#000000;
}
.dark-mode .bg-light-primary{
    background-color: #5545e947 !important;
    color: #FFFFFF !important;
}
a{
    color: #3d3773;
}
.dark-mode a{
    color: #c1bdec;
}
.new-ad-circle-btn{
    font-size: 44px;
    border: 5px solid #d8d8ff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-weight: bolder;
    display: block;
    margin: -17px;
    background-color: #7167e0;
    color: #ffffff;
}
.form-data{
    padding: 1.23rem;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    background-color: #fafafa;
    font-size:13px;
}
.select2-results{
    font-size: 13px;
}
.form-data .form-control{
    font-size: 14px;
}
.ad-box-body{
    background-color:#f5f5f6
}
.m-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 0px; /* نسبت ارتفاع به طول به چهار پنجم (80/100) */
}

.m-image-container::before {
    content: "";
    display: block;
    padding-top: 90%; /* تنظیم ارتفاع به 100% برای ایجاد نسبت */
}

.m-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-container{
    /*margin-top: -50px !important;*/
    border: 1px solid #d5d5d5c2;
    background: #fafafab3;
    padding-top: 8px;
    border-radius: 12px;
}
.l-marker-span{
    font-family: vazir, tahoma, serif;
    padding: 0.5em 1em !important;
    background-color: #ffffff !important;
    border-radius: 15px !important;
    color: #4c4c4c !important;
    box-shadow: 0 1px 20px -10px rgba(0, 0, 0, 1) !important;
    opacity: 1 !important;
    border: 0 !important;
    font-size: 10px !important;
    font-weight: 500;
    position: absolute;
    left: 50%;
    top: -10px;
    transform: translate(-50%, 59px);
    white-space: nowrap;
    overflow: hidden;
}
.dark-mode .form-data {
    background-color: #232323 !important;
    border-color: #000000 !important;
}
.dark-mode .select2-container--default .select2-selection--single{
    background-color: #222529 !important;
    border-color: #5f5f68 !important;
}
.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered{
    color: #f4f4f4!important;
}
.dark-mode .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
    background-color: #313131 !important;
    color: #f4f4f4;
}
.dark-mode.select2-container--default .select2-results__option--selected{
    background-color: #3f3b58;
    color: #f4f4f4;
}
.dark-mode .select2-results__option{
    background-color: #515151;
    color: #f4f4f4;
}
.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field{
    border: 1px solid #3a3333;
    background: #959496;
}
.dark-mode .select2-dropdown{
    background-color: #716b6b;
    border: 1px solid #4d4d4d;
}
.dark-mode .alert-primary{
    background-color: #454070!important;
    border-color: #37345b!important;
    color: #dfdfdf;
}
.dark-mode .btn-primary{
    background-color: #665cbb;
    border-color: #49437a;
}
.dark-mode .btn-primary:hover{
    background-color: #514d79;
    border-color: #59538c;
}

.ad-img-slide{
    width: 100%!important;height:200px!important;object-fit:cover!important;
}
.bg-mode{
    border: 1px solid #ececec;
}
.dark-mode .bg-mode{
    background-color: #191b1d !important;
    border: 1px solid #2f3233;
}
.dark-mode .post-container{
    border: 1px solid #424242c2;
    background: #2a2c31;
    color: #fef1f1;
}
.dark-mode .ad-box-body{
    background-color: #383838;
    color: #fff;
}
.dark-mode .btn-white{
    background: #7b71e7;
    border: 1px solid #6c60ef;
    color: #ffffff !important;
}
.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 38px;
    margin-bottom: 0;
}
.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 44px;
    margin: 0;
    opacity: 0;
}
.custom-control-label::before, .custom-file-label, .custom-select {
    -webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.custom-file-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 45px;
    padding: 0.65rem 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: #475F7B;
    background-color: #FFFFFF;
    border: 1px solid #DFE3E7;
    border-radius: 0.467rem;
}
.dark-mode .custom-file-label{
    color: #DFE3E7;
    background-color: #4f4e4e;
    border: 1px solid #313030;
}
.custom-file-label::after {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.4em + 1.269rem);
    padding: 0.65rem 0.8rem;
    line-height: 1.4;
    color: #475F7B;
    content: 'Browse File';
    background-color: #F0F4F7;
    border-right: inherit;
    border-radius: 0.267rem 0 0 0.267rem;
}
.dark-mode .custom-file-label::after{
    color: #DFE3E7;
    background-color: #1f1f1f;
}
.upload-box-bg{
    background: #f4f4f4;
    padding: 9px;
    margin-bottom: 8px;
    border-radius: 8px;
}
.dark-mode .upload-box-bg{
    background-color: #37383b;
}
.m-image-container img{
    border-radius: 8px;
}
.card.card-img-scale .card-img-scale-wrapper{
    padding: 8px;
    background: #f3f3f3
}
.dark-mode .card.card-img-scale .card-img-scale-wrapper{
    background-color: #383838;
}
.rounded-2{
    border-radius: 0.8rem!important;
}
.select2-container--default .select2-selection--single .select2-selection__clear{
    height: 44px;
    margin-left: 22px;
    font-size: 28px;
    color: red;
}
/*comments*/
.max-w-ci{
    max-width: 96px;
}
.comment-border{
    border:1px solid #e3e3e3;
    border-radius: 8px;
}
.card-inner{
    padding-right: 11px;
    margin: 6px 0px;
}
.level2-comment-bc{
    background: #e3e3e3;
    color: #000000;
}
.inner-comment{
    margin-left: 8px;
}
.dark-mode .text-first-comment{
    color: #ffffff;
}
.dark-mode .comment-border{
    border-color: #424242;
}
.dark-mode .level2-comment-bc {
    background: #404040;
    color: #ffffff;
}
/*end comments*/
/* Dark TinyMCE 5 */
.tox-tinymce {
    border-radius: 8px !important;
}
.dark-mode .tox-tinymce {
    border-color: #706c6c;
}
.dark-mode .tox .tox-toolbar-overlord{
    background-color: #4a4949;
}
.dark-mode .tox-toolbar__primary{
    background-color: #4a4949 !important;
}
.dark-mode .tox .tox-tbtn svg{
    fill: #ffffff;
}
.dark-mode .tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){
    border-right: 1px solid #5e5e5e;
}
.dark-mode .tox .tox-edit-area__iframe {
    background-color: #959595;
    color: #ffffff;
}
.dark-mode .tox .tox-statusbar{
    background-color: #404040;
}
.dark-mode .tox .tox-statusbar a, .tox .tox-statusbar__path-item, .tox .tox-statusbar__wordcount{
    color: #404040;
}
.dark-mode .tox .tox-toolbar, .tox .tox-toolbar__overflow, .tox .tox-toolbar__primary{
    background: none !important;
}
.dark-mode .tox .tox-statusbar{
    border:none;
}
/* End Dark TinyMCE 5 */

.height-head {
    min-height: 600px !important;
}
@media screen and (max-width: 1920px) {
    .height-head {
        min-height: 575px !important;
    }
    .h-sm-200px{
        max-height: 400px;
    }
}
@media screen and (max-width: 1800px) {
    .height-head {
        min-height: 510px !important;
    }
    .h-sm-200px{
        max-height: 380px;
    }
}
@media screen and (max-width: 1600px) {
    .height-head {
        min-height: 470px !important;
    }
    .h-sm-200px{
        max-height: 360px;
    }
}
@media screen and (max-width: 1400px) {
    .height-head {
        min-height: 420px !important;
    }
    .h-sm-200px{
        max-height: 290px;
    }
}
@media screen and (max-width: 1200px) {
    .height-head {
        min-height: 360px !important;
    }
    .h-sm-200px{
        max-height: 230px;
    }
}
@media screen and (max-width: 1024px) {
    .height-head {
        min-height: 300px !important;
    }
    .h-sm-200px{
        max-height: 200px;
    }
}
@media screen and (max-width: 850px) {
    .height-head {
        min-height: 240px !important;
    }
    .h-sm-200px{
        max-height: 180px;
    }
}
@media screen and (max-width: 650px) {
    .height-head {
        min-height: 220px !important;
    }
    .h-sm-200px{
        max-height: 165px;
    }
}
@media screen and (max-width: 550px) {
    .height-head {
        min-height: 180px !important;
    }
    .h-sm-200px{
        max-height: 157px;
    }
}
@media screen and (max-width: 480px) {
    .height-head {
        min-height: 166px !important;
    }
    .h-sm-200px{
        max-height: 154px;
    }
}
@media screen and (max-width: 470px) {
    .height-head {
        min-height: 162px !important;
    }
    .h-sm-200px{
        max-height: 150px;
    }
}
@media screen and (max-width: 460px) {
    .height-head {
        min-height: 158px !important;
    }
    .h-sm-200px{
        max-height: 147px;
    }
}
@media screen and (max-width: 450px) {
    .height-head {
        min-height: 154px !important;
    }
    .h-sm-200px{
        max-height: 144px;
    }
}
@media screen and (max-width: 440px) {
    .height-head {
        min-height: 151px !important;
    }
    .h-sm-200px{
        max-height: 140px;
    }
}
@media screen and (max-width: 430px) {
    .height-head {
        min-height: 147px !important;
    }
    .h-sm-200px{
        max-height: 137px;
    }
}
@media screen and (max-width: 420px) {
    .height-head {
        min-height: 143px !important;
    }
    .h-sm-200px{
        max-height: 134px;
    }
}
@media screen and (max-width: 410px) {
    .height-head {
        min-height: 140px !important;
    }
    .h-sm-200px{
        max-height: 131px;
    }
}
@media screen and (max-width: 400px) {
    .height-head {
        min-height: 136px !important;
    }
    .h-sm-200px{
        max-height: 128px;
    }
}
@media screen and (max-width: 390px) {
    .height-head {
        min-height: 133px !important;
    }
    .h-sm-200px{
        max-height: 125px;
    }
}
@media screen and (max-width: 380px) {
    .height-head {
        min-height: 129px !important;
    }
    .h-sm-200px{
        max-height: 121px;
    }
}
@media screen and (max-width: 370px) {
    .height-head {
        min-height: 125px !important;
    }
    .h-sm-200px{
        max-height: 118px;
    }
}
@media screen and (max-width: 360px) {
    .height-head {
        min-height: 123px !important;
    }
    .h-sm-200px{
        max-height: 115px;
    }
}
@media screen and (max-width: 350px) {
    .height-head {
        min-height: 120px !important;
    }
    .h-sm-200px{
        max-height: 110px;
    }
}
