:root {
    --primary-color: rgba(0, 0, 0, .87);
    --scondry-color: rgba(0, 0, 0, .56);
    --red-color: #a62626;
    --red-bg: rgba(166, 38, 38, .04);
}

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

@font-face {
    font-family: yekan;
    src: url("../fonts/yekan-600.ttf");
}

a {
    display: inline-block;
    text-decoration: none;
}

select {
    display: block;
    min-width: 100px;
}

body {
    max-width: 1200px;
    margin: auto;
    direction: rtl;
    position: relative;
    padding-top: 70px;
}

.dialog {
    width: 100dvw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.2);
}

.dialog .main {
    padding: 10px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 0 10px #ddd;
    min-width: 250px;
    min-height: 100px;
}


.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    padding: 10px;
    background: white;
    z-index: 2000;
}

.header .content {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .content .right {
    display: flex;
    align-items: center;
    height: 100%;
}

.header .content .logo {
    width: 50px;
    height: 50px;
}

.header .content .logo img {
    width: 100%;
    min-width : 40px;
}

.header .content .city {
    margin: 0 30px;
    color: var(--scondry-color);
    cursor: pointer;
}

.header .content .city i {
    margin-left: 5px;
    margin-top: 3px;
}

.header .content .search {
    position: relative;
}

.header .content .search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--scondry-color);
}

.header .content .search input {
    display: block;
    width: 400px;
    padding: 10px 40px 10px 10px;
    border: none;
    outline: none;
    background: #f5f5f5;
    border-radius: 5px;
}

.header .create {
    padding: 7px 20px;
    background: var(--red-color);
    color: white;
    border-radius: 5px;
}

.header .btn {
    font-size: 14px;
    padding: 10px;
    margin-left: 10px;
    color: var(--scondry-color);
}

.header .btn i {
    margin-left: 3px;
    margin-top: 3px;
}

body > main {
    position: relative;
    margin-top: 20px;
    display: flex;
}

body > main > aside {
    display: inline-block;
    width: 200px;
    height: calc(100vh - 90px);
    background: white;
    position: sticky;
    top: 90px;
    right: 0;
    overflow-y: auto;
    margin-left: 10px;
    z-index: 3000;
}

body > main > aside::-webkit-scrollbar {
    width: 5px;
}

body > main > aside::-webkit-scrollbar-thumb {
    width: 5px;
    border-radius: 20px;
    background: #dddddd;
}

body > main > aside .aside-section {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

body > main > aside .categories {
    width: 100%;
    font-size: 14px;
}

body > main > aside .categories .item {
    display: flex;
    align-items: center;
    color: var(--scondry-color);
    padding: 5px 0;
    margin-bottom: 5px;
}

body > main > aside .categories .item:hover {
    color: var(--primary-color);
}

body > main > aside .categories .first {
    font-weight: bold;
}

body > main > aside .categories .first span{
    margin-right: 10px;
    font-size: 16px;
}

body > main > aside .categories img {
    width: 20px;
}

body > main > aside .categories span {
    margin-top: 5px;
    margin-right: 5px;
}

body > main > aside .aside-section .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    cursor: pointer;
    user-select: none;
}

body > main > aside .aside-section .title h3 {
    font-size: 14px;
    color: var(--scondry-color);
    font-weight: normal;
}

body > main > aside .aside-section .title i {
    font-size: 14px;
    color: var(--scondry-color);
    transition: 0.3s ease-in-out;
}

body > main > aside .aside-section .title .rotate {
    transform: rotate(180deg);
    transition: 0.3s ease-in-out;
}

body > main > aside .aside-dropdown .dropdown {
    display: none;
    padding: 10px 0;
}

body > main > aside .aside-section input {
    display: block;
    width: 100%;
    margin-bottom: 7px;
    padding: 5px 10px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 5px;
}

body > main > aside .aside-section .select2-container .select2-selection--single {
    height: 33px !important;
}

body > main > aside .aside-section .select2-selection__rendered {
    line-height: 33px !important;
    color: var(--scondry-color) !important;
}

body > main > aside .aside-section .select2-selection__arrow {
    height: 31px !important;
}

body > main > aside .aside-section .select2-container--default .select2-selection--single {
    border: 1px solid rgba(0, 0, 0, .12) !important;
}

body > main > aside .aside-section input:last-child {
    margin: 0;
}

body > main > aside .aside-section input::placeholder {
    color: var(--scondry-color);
}

body > main > aside .aside-section .switch {
    height: 17px;
}

body > main > aside .aside-section .switch label {
    display: inline-block;
    width: 30px;
    height: 17px;
    padding: 1px;
    background: var(--scondry-color);
    border-radius: 25px;
    position: relative;
    cursor: pointer;
}

body > main > aside .aside-section .switch input {
    display: none;
}

body > main > aside .aside-section .switch span {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    position: absolute;
    right: 1px;
    top: 1px;
}

body > main > aside .aside-section .switch input:checked ~ label span {
    right: unset !important;
    left: 1px !important;
}

body > main > aside .aside-section .switch input:checked ~ label {
    background: var(--red-color);
}


body > main > .content {
    width: calc(100% - 200px);
    height: fit-content;
    display: inline-flex;
    flex-wrap: wrap;
}

body > main > .content .item {
    width: calc(33.33% - 15px);
    height: 150px;
    padding: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), inset 0 0 0 1px #fff;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

body > main > .content .item .content {
    width: calc(100% - 130px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body > main > .content .item .img {
    width: 120px;
    height: 120px;
    border-radius: 5px;
    margin-right: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.04);
}

body > main > .content .item .img img {
    height: 100%;
}

body > main > .content .item .img > i {
    font-size: 36px;
    color: var(--scondry-color);
}

body > main > .content .item h2 {
    font-size: 15px;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: initial;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.7;
    color: var(--primary-color);
}

body > main > .content .item p {
    font-size: 12px;
    color: var(--scondry-color);
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#cities .main {
    width: 500px;
    max-width: 80%;
}

.cities {
    width: 100%;
    padding: 10px 20px;
    user-select: none;
}

.cities .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cities .head a {
    font-size: 14px;
    color: var(--red-color);
}

.cities .selected {
    margin-bottom: 15px;
}

.cities .selected label {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    color: var(--red-color);
    background: var(--red-bg);
    border: 1px solid var(--red-color);
    font-size: 14px;
    border-radius: 25px;
    margin-left: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

.cities .selected label i {
    font-size: 12px;
    margin-right: 15px;
}

.cities .search {
    margin-bottom: 10px;
}

.cities .search input {
    width: 100%;
    display: block;
    padding: 7px 10px;
    outline: none;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.cities .list {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cities .list::-webkit-scrollbar {
    width: 5px;
}

.cities .list::-webkit-scrollbar-thumb {
    width: 5px;
    border-radius: 20px;
    background: #dddddd;
}

.cities .list ul {
    width: 100%;
    list-style: none;
}

.cities .list ul li {
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.cities .list ul li:last-child {
    border: none;
}

.cities .list ul li div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cities .list > ul > li > div {
    cursor: pointer;
}

.cities .list > ul > li > div span {
    font-weight: bold;
}

.cities .list ul li label {
    cursor: pointer;
}

.cities .list ul li input {
    cursor: pointer;
}

.cities .list ul ul {
    display: none;
    margin-top: 5px;
}

.cities .buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cities .buttons button {
    width: 50%;
    padding: 10px 20px;
    text-align: center;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.cities .buttons .cancel {
    background: white;
    border: 1px solid #ddd;
    margin-left: 10px;
}

.cities .buttons .submit {
    background: var(--red-color);
    border: 1px solid var(--red-color);
    color: white;
}

#cities {
    display: none;
}

.ad {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.ad .breadcrumbs a {
    display: inline-block;
    color: var(--scondry-color);
    font-size: 13px;
}

.ad .breadcrumbs a:after {
    content: '>';
    padding: 0 5px;
}

.ad .breadcrumbs a:last-child:after {
    content: '';
}

.ad .breadcrumbs a:hover {
    color: var(--primary-color);
}

.ad .main {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.ad .main > .content {
    width: calc(50% - 50px);
    margin-left: 50px;
}

.ad .main > .content .title {
    font-size: 22px;
    font-weight: normal;
    color: var(--primary-color);
    line-height: 1.8;
}

.ad .main > .content .time {
    color: var(--scondry-color);
    margin: 10px 0;
    font-size: 15px;
}

.ad .main > .content .call {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.ad .main > .content .call a {
    width: 33%;
    height: 45px;
    margin-left: 10px;
    border: 1px solid rgba(152, 152, 152, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--scondry-color);
}

.ad .main > .content .call a:last-child {
    margin: 0;
}

.ad .main > .content .call a i {
    margin-left: 5px;
}

.ad .main > .content .call a i ~ span {
    margin-top: 5px;
}

.ad .main > .content .list {
    margin-top: 30px;
}

.ad .main > .content .list .item {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--scondry-color);
    border-bottom: 1px solid rgba(152, 152, 152, 0.48);
    font-size: 14px;
}

.ad .main > .content .description {
    margin-top: 20px;
    line-height: 2;
}

.ad .main > .content .description > h2 {
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 10px;
}

.ad .main > .img {
    width: 50%;
}

.ad .main > .img .slider {
    width: 100%;
    position: relative;
}

.ad .main > .img .slider .item {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 5px;
}

.ad .main > .img .slider .item img {
    width: 100%;
    height : 100%;
    object-fit: cover;
}

.ad .main > .img .slider .owl-prev {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.ad .main > .img .slider .owl-next {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.ad .main > .img .slider .owl-next:hover {
    background: unset !important;
}

.ad .main > .img .slider .owl-prev:hover {
    background: unset !important;
}

.ad .main > .img .slider .owl-next span, .ad .main > .img .slider .owl-prev span {
    font-family: 'Font Awesome 5 Pro' !important;
    color: white;
    font-size: 24px;
    text-shadow: 0 0 20px #5d5d5d;
}

.ad .main > .img .slider .owl-dots {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.ad .main > .img .slider .owl-dots .owl-dot span {
    background: white !important;
    margin: 5px 2px !important;
    height: 8px;
    width: 8px;
}

.ad .main > .img .slider .owl-dots .active span {
    width: 16px;
    background: #dddddd;
}


.ad .note {
    display: block;
    width: 100%;
    outline: none;
    border: 1px solid rgba(152, 152, 152, 0.48);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.ad .note::placeholder {
    color: var(--scondry-color);
}

.ad .text {
    font-size: 12px;
    margin-top: 8px;
    color: var(--scondry-color);
}


.ad .map {
    width: 100%;
    aspect-ratio: 2/1;
    margin-top: 20px;
    border-radius: 5px;
}

.ad .content .note {
    display: none;
}

.ad .content .map {
    display: none;
}

.ad .content .text {
    display: none;
}

.image-preview {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999999999;
}

.image-preview img {
    height: 60%;
}

body > .create {
    max-width: 450px;
    margin: 20px auto;
}

body > .create {
    max-width: 450px;
    margin: 30px auto;
}

body > .create .categories > h1 {
    font-size: 20px;
    font-weight: normal;
    color: var(--primary-color);
}

body > .create .categories > p {
    font-size: 14px;
    font-weight: normal;
    color: var(--scondry-color);
}

body > .create .categories .list {
    margin-top: 20px;
    list-style: none;
}

body > .create .categories .list li {
    padding: 15px 5px;
    border-bottom: 1px solid rgba(152, 152, 152, 0.48);
}

body > .create .categories .list li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--primary-color);
}

body > .create .categories .list li h2 {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
}

body > .create .categories .list li > a img {
    width: 25px;
    margin-left: 20px;
}

body > .create form .head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 30px;
}

body > .create form .head h1 {
    font-size: 20px;
    font-weight: normal;
    color: var(--primary-color);
}

body > .create form .head p {
    font-size: 14px;
    color: var(--scondry-color);
}

body > .create form .head a {
    color: var(--primary-color);
}

body > .create form .row {
    margin: 20px 0;
}

body > .create form .row label {
    display: block;
    font-size: 16px;
    color: var(--scondry-color);
    margin-bottom: 5px;
}

body > .create form .row select {
    display: block;
    width: 100%;
}

body > .create form .row .select2-container .select2-selection--single {
    height: 40px !important;
    border: 1px solid rgba(152, 152, 152, 0.48) !important;
}

body > .create form .row .select2-selection__rendered {
    line-height: 40px !important;
    color: var(--primary-color) !important;
}

body > .create form .row .select2-selection__arrow {
    height: 38px !important;
}

.select2-search__field {
    border: 1px solid rgba(152, 152, 152, 0.48) !important;
    outline: none !important;
}

.select2-results__option:hover {
    background: rgba(0, 0, 0, .04) !important;
    color: var(--primary-color) !important;
}

.select2-results__option--selected {
    background: rgba(0, 0, 0, .04) !important;
    color: var(--primary-color) !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: rgba(0, 0, 0, .04) !important;
    color: var(--primary-color) !important;
}

body > .create form .row input {
    display: block;
    width: 100%;
    height: 40px;
    outline: none;
    border: 1px solid rgba(152, 152, 152, 0.48);
    border-radius: 5px;
    padding: 0 10px;
    font-size: 16px;
}

body > .create form .row #map {
    width: 100%;
    aspect-ratio: 2/1;
    border-radius: 5px;
    overflow: hidden;
}

body > .create form .row .files {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

body > .create form .row .files .file input {
    display: none;
}

body > .create form .row .files .file label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 1px dashed rgba(152, 152, 152, 0.48);
    border-radius: 5px;
    color: var(--scondry-color);
    font-size: 24px;
    cursor: pointer;
    overflow: hidden;
    margin-left: 10px;
    margin-bottom: 10px;
}

body > .create form .row .files .file label img {
    width: 100%;
}


body > .create form .row textarea {
    display: block;
    width: 100%;
    outline: none;
    border: 1px solid rgba(152, 152, 152, 0.48);
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
}

.create form .buttons {
    text-align: left;
    margin-top: 30px;
}

body > .create form .buttons a, body > .create form .buttons button {
    display: inline-block;
    padding: 7px 20px;
    font-size: 16px;
    outline: none;
    margin-right: 10px;
    text-align: center;
    border-radius: 5px;
}

body > .create form .buttons a {
    border: 1px solid rgba(152, 152, 152, 0.48);
    color: var(--scondry-color);
}

.create form .buttons button {
    border: 1px solid var(--red-color);
    background: var(--red-color);
    color: white;
}

.create form .row .invalid {
    color: red;
    font-size: 12px;
    margin-top: 10px;
}

.create form .row .invalid-input {
    border: 1px solid red;
}

.create form .files .invalid-file {
    border: 1px dashed red !important;
}

.chat {
    max-width: 1000px;
    height: calc(100vh - 130px);
    margin: 20px auto;
    border: 1px solid rgba(152, 152, 152, 0.48);
    display: flex;
}

.chat .list {
    width: 350px;
    height: 100%;
    border-left: 1px solid rgba(152, 152, 152, 0.48);
    overflow-y: auto;
    /*padding-left: 5px;*/
}

.chat .list::-webkit-scrollbar {
    width: 5px;
}

.chat .list::-webkit-scrollbar-thumb {
    width: 5px;
    border-radius: 20px;
    background: #dddddd;
}

.chat .list .item {
    padding: 15px;
    width: 100%;
    border-bottom: 1px solid rgba(152, 152, 152, 0.48);
    position: relative;
}

.chat .list .item:hover {
    background: #fafafa;
}

.chat .list .item .title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat .list .item .title h2 {
    font-size: 16px;
    font-weight: normal;
    color: var(--primary-color);
}

.chat .list .item .title span {
    font-size: 12px;
    color: var(--scondry-color);
}

.chat .list .item .txt {
    font-size: 13px;
    color: var(--scondry-color);
    margin: 15px 0;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.chat .list .item .image {
    width: 100%;
    display: flex;
    align-items: center;
}

.chat .list .item .image .img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat .list .item .image .img img {
    height: 100%;
}

.chat .list .item .image p {
    font-size: 13px;
    color: var(--primary-color);
    margin: 0 10px;
    width: calc(100% - 70px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.chat .list .badge {
    font-size: 10px;
    background: var(--red-color);
    color: white;
    display: inline-block;
    padding: 0 7px;
    border-radius: 25px;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.chat .content {
    width: calc(100% - 350px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chat .content .head {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    background: #fafafa;
    padding: 0 10px;
    border-bottom: 1px solid rgba(152, 152, 152, 0.48);
}

.chat .content .head .img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat .content .head .img img {
    height: 100%;
}

.chat .content .head p {
    width: calc(100% - 50px);
    font-size: 13px;
    margin-right: 10px;
    color: var(--primary-color);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.chat .messages {
    width: 100%;
    height: calc(100% - 100px);
    padding: 20px;
    overflow-y: auto;
}

.chat .messages .wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.chat .messages::-webkit-scrollbar {
    width: 5px;
}

.chat .messages::-webkit-scrollbar-thumb {
    width: 5px;
    border-radius: 20px;
    background: #dddddd;
}

.chat .messages .message {
    width: 100%;
    display: flex;
    justify-content: end;
    margin-bottom: 5px;
}

.chat .messages .sender {
    justify-content: start !important;
}

.chat .messages .message > div {
    max-width: 50%;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 16px 16px 16px 2px;
}

.chat .messages .message > div p {
    margin-bottom: 10px;
}

.chat .messages .message > div span {
    font-size: 12px;
    color: var(--scondry-color);
    direction: ltr!important;
    word-spacing: 3px;
}

.chat .messages .sender > div {
    max-width: 50%;
    padding: 20px;
    background: #f0faff;
    border-radius: 16px 16px 2px 16px;
}

.chat .send {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid rgba(152, 152, 152, 0.48);;
}

.chat .send input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
}

.chat .send button {
    width: 25px;
    height: 25px;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

.chat .send button img {
    width: 100%;
    transform: rotate(180deg);
}


footer {
    width: 100%;
    height: 55px;
    display: none;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    background: white;
    box-shadow: 0 -1px 2px rgba(239, 239, 239, 0.48);
    direction: ltr;
    padding: 5px 10px;
    z-index: 4000;
}

footer .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5px;
    padding-top: 5px;
}

footer .item i {
    color: var(--scondry-color);
}

footer .item p {
    color: var(--scondry-color);
    font-size: 12px;
    margin-top: 5px;
}

footer .selected i {
    color: var(--red-color);
}

footer .selected p {
    color: var(--red-color);
}

.dashboard > .content .head{
    display: none;
}

.dashboard > .content .item .img {
    position: relative;
}

.dashboard > .content .item .status {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    text-align: center;
    padding: 3px;
    color: white;
    font-size: 14px;
}

.dashboard > .content .item .red {
    background: red;
}

.dashboard > .content .item .orange {
    background: orange;
}

.dashboard > .content .item .green {
    background: green;
}

.dashboard > .content .item .op {
    position: absolute;
}

.dashboard > .content .item .op {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    background: rgba(0,0,0,0.4);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard > .content .item .op a{
    display: inline-flex;
    height: 100%;
    align-items: end;
    justify-content: center;
    color: white;
}

.dashboard aside .selected{
    color: var(--red-color) !important;
}

.dashboard aside .item i {
    font-size: 18px;
    margin-left: 5px;
}

@media screen and (max-width: 1200px) {
    body > main {
        padding: 0 20px;
    }
}

@media screen and (max-width: 1100px) {
    body > main {
        padding: 0 20px;
    }

    body > main > .content .item {
        width: calc(50% - 15px);
    }
}

@media screen and (max-width: 850px) {
    body {
        padding-bottom: 50px;
    }

    .header {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 70px;
        padding: 10px;
        background: white;
        z-index: 2000;
    }

    .header .content .right {
        width: 100%;
        justify-content: revert;
    }

    .header .content .logo {
        margin-left: 10px;
        margin-top: 10px;
    }

    .header .content .city {
        margin: 0 10px;
        order: 2;
        white-space: nowrap;
    }

    .header .content .search {
        width: calc(100% - 60px);
    }

    .header .content .search input {
        width: 100%;
    }

    .header .create {
        display: none;
    }

    .header .btn {
        display: none;
    }

    body > main {
        padding: 0 10px;
        margin-top: 10px;
        display: block;
    }

    body > main > aside {
        display: none;
        height: calc(100vh - 120px);
        width: 100%;
        position: fixed;
        top: 70px;
        padding: 0 20px;
    }

    body > main > .content {
        width: 100%;
    }

    body > main > .content .item {
        width: calc(50% - 8px);
    }

    body > main > .content .item:nth-child(odd) {
        margin-right: 0;
    }

    footer {
        position: fixed;
        display: flex;
    }

    .ad {
        margin: 10px auto;
    }

    .ad .main {
        flex-direction: column;
    }

    .ad .main > .content {
        width: 100%;
        margin-left: 0;
        order: 2;
    }

    .ad .main > .img {
        width: 100%;
    }

    .ad .main > .img .slider {
        margin-bottom: 20px;
    }


    .ad .main > .img #note {
        display: none;
    }

    .ad .main > .img .text {
        display: none;
    }

    .ad .main > .img #map {
        display: none;
    }

    .ad .content .note {
        display: block;
    }

    .ad .content .map {
        display: block;
    }

    .ad .content .text {
        display: block;
    }

    .image-preview img {
        width: 90%;
        height: auto;
    }

    .create {
        padding: 0 20px;
    }

    .select2 {
        max-width: 100% !important;
    }

    .chat {
        height: calc(100dvh - 120px);
        margin: 0 auto;
        border: none;
        display: block;
    }

    .chat .list {
        width: 100%;
        height: calc(100% - 120px);
        border-left: none;
        overflow-y: auto;
        position: fixed;
        top: 70px;
        left: 0;
        background: white;
        z-index: 2000;
    }

    .chat .content {
        width: 100%;
        height: 100%;
    }

    .chat .messages .message > div {
        padding: 15px;
    }

    .chat .send {
        border: none;
    }


    #cities .main {
        width: 500px;
        height : 100dvh;
        max-width: 100%;
        max-height: 100%;
        border-radius:0;
    }

    .cities {
        width: 100%;
        padding: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 16px;
        box-sizing: border-box;
    }
    
    .cities .head,
    .cities .selected,
    .cities .search,
    .cities .buttons {
        flex-shrink: 0;
    }
    
    .cities .list {
        flex-grow: 1; 
        overflow-y: auto;
        margin: 16px 0;
    }

    .cities .head h3 {
        font-size: 18px;
    }

    .cities .head a {
        font-size: 12px;
        color: var(--red-color);
    }

    .cities .selected label {
        padding: 3px 7px;
        font-size: 12px;
        margin-left: 5px;
        margin-bottom: 5px;
    }

    .cities .list {
        overflow-y: auto;
        margin-bottom: 20px;
    }

    .cities .list ul li {
        padding: 10px 5px;
    }

    .cities .buttons button {
        padding: 7px 15px;
        font-size: 14px;
    }


    .dashboard aside .item {
        padding: 10px 0!important;
    }

    .dashboard > .content {
        position: relative;
        padding-top: 40px;
    }

    .dashboard .content .head {
        width: 100%;
        position: fixed;
        top: 70px;
        height: 50px;
        font-size: 14px;
        display: flex;
        align-items: center;
        background: white;
        color: var(--primary-color);
        z-index: 2000;
    }

    .dashboard .content .head h3 {
        font-weight: normal;
        margin-right: 10px;
    }

    .dashboard .content .head a {
        color: var(--primary-color);
        margin-top: 3px;
    }

    .hide-mobile-list{
        display: none;
    }
}

@media screen and (max-width: 600px) {
    body > main > .content {
        width: 100%;
        flex-direction: column;
    }

    body > main > .content .item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 10px 0;
        box-shadow: none;
        border-bottom: 1px solid rgba(201, 201, 201, 0.48);
        border-radius: 0;
    }
}
