:root {
    --color-primary: #097de3; /* #ff802b;*/
    --color-blue: #1494c7;
    --color-blue-hover: #1a92db;
    /* основной синий цвет UIkit */
    --color-dark: #222;
    --color-dark2: #3a3a3a;
    --color-dark3: #6e6e6e;


    --color-red: #FF0000;
    --color-red-light: #fd8080;
    --color-red3: #DB4437;
    --color-red4: #ffc0bb;
    /* темный цвет для футера и бокового меню */
    --color-white: #fff;
    /* белый цвет */
    --color-gray-light: #f8f8f8;
    --color-gray2: #888;
    --color-gray3: #e3e3e3;
    --color-gray4: #ecf8ff;
    --color-gray5: #666;
    /* светлый серый */
    --color-border: #444;
    --color-blue-dark: #25657e;
    --color-blue-dark1: #374151;
    /* цвет границ */
    --color-green: green;
    --color-green-light: #71e571;
}

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

* {
    font-family: "Inter", sans-serif;
}

body {
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
}

.no-select {
  user-select: none; /* Современный способ */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
}

.uk-modal-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    pointer-events: none;
}

.uk-disabled{
    opacity: 0.6;
}

.uk-link,
a {
    color: var(--color-blue)
}

.uk-link:hover,
a:hover {
    color: var(--color-blue-dark)
}

.divider-left::before {
    content: "|";
    color: var(--color-gray3);
    margin: 0 4px;
}


.uk-input, .uk-select:not([multiple]):not([size]) {
    height: 40px;
}
.uk-input, .uk-select, .uk-textarea {
    padding: 8px 10px;
}

.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: var(--color-blue);
}

.uk-button{
    border-radius: 4px;
}

.uk-modal-dialog, .box-modal-dialog{
    border-radius: 6px;
}

.uk-modal-title {
    font-size: 1.4rem;
}

.uk-modal-body {
    position: relative;
    padding: 20px 20px;
}

.uk-modal-footer {
    padding: 15px 20px;
}

.uk-modal-close-default {
    background: transparent;
    border: none;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: var(--color-dark2)
}

.uk-modal-close-default:hover {
    color: var(--color-dark)
}

.uk-modal-title {
    font-size: 1.5rem;
}


.uk-checkbox {
    margin: 0 6px 0 0;
}

.uk-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

main.uk-section{
    padding-top: 20px;
    padding-bottom: 80px;
}

.uk-text-xsmall{
    font-size: 0.8rem;
}

/* =================== box-modal ================ */

.box-modal {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-modal-dialog {
    width: calc(100% - 30px);
    max-width: 600px;
    position: absolute;
    background: #fff;
    max-height: calc(100vh - 30px);
}

.box-modal.full .box-modal-dialog {
    max-width: 100%;
    height: calc(100vh - 30px);
}

.box-modal-close {
    cursor: pointer;
    position: absolute;
    right: 0;
    border: none;
    background: transparent;
    top: 18px;
    right: 15px;
}

.box-modal-header,
.box-modal-body,
.box-modal-footer {
    padding: 15px;
}

.box-modal-header {
    padding-right: 50px;
    border-bottom: 1px solid #ddd;
}

.box-modal-title {
    font-size: 1.5rem;
}

.box-modal-body {
    min-height: 100px;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

.box-modal-footer {
    border-top: 1px solid #ddd;
}

/* ============================================= */

.table-payments {
    width: 100%;
    font-size: 14px;
}

.table-payments th,
.table-payments td {
    text-align: center;
    padding: 5px 5px;
    line-height: 1.1;
    vertical-align: middle;
}

.table-payments td:nth-child(1),
.table-payments th:nth-child(1) {
    width: 50px
}

.table-payments td:nth-child(2),
.table-payments th:nth-child(2) {
    text-align: left;
    min-width: 260px;
}

.table-payments td:nth-child(3),
.table-payments th:nth-child(3) {
    width: 100px
}

.table-payments td:nth-child(4),
.table-payments th:nth-child(4) {
    width: 90px
}


.uk-inline:hover .uk-overlay {
    opacity: 1;
}

.box-map {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: fit-content;
    margin: 20px 0;
}

.box-map>div {
    position: relative !important;
}

.box-map .map {
    height: 400px;
}

.box-brand-icon {
    text-align: center;
    margin-top: 10px;
}

.box-brand-icon>.uk-icon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin: 0 6px;
    /*color: var(--color-dark3);*/
}

.icon-phone-pin {
    color: var(--color-green);
}

.icon-telegram {
    color: #0088cc;
}

.icon-google {
    color: var(--color-red3)
}

.icon-yandex {
    color: var(--color-red);
}

.icon-vk {
    color: #4A76A8;
}

.icon-mailru {
    color: #005FF9
}

.icon-photoedit {
    color: var(--color-dark3);
    fill: var(--color-dark3);
    font-size: 16px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 4px 3px;
    line-height: 1;
}

.icon-photoedit:hover {
    color: var(--color-blue);
    fill: var(--color-blue);
}

.uk-lightbox-close {
    margin-right: 15px;
}

.uk-lightbox {
    background: rgba(0, 0, 0, .4);
}

.uk-slidenav {
    color: rgb(255 255 255 / 85%);
}

.uk-lightbox-caption {
    background: rgba(0, 0, 0, .4);
    padding: 10px 0;
    color: #fff;
}

.uk-lightbox-counter {
    color: var(--color-gray2)
}

.img-photoedit {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;

}

.color-red {
    color: var(--color-red);
    fill: var(--color-red);
}

.border-red, .border-red:focus{
    border: 1px solid var(--color-red);
}

.color-green {
    color: var(--color-green);
    fill: var(--color-green);
}

.color-red-light {
    color: var(--color-red-light);
    fill: var(--color-red-light);
}

.color-green-light {
    color: var(--color-green-light);
    fill: var(--color-green-light);
}

.uk-margin-small {
    margin-top: 6px !important;
}

.uk-input,
.uk-select,
.uk-textarea,
.uk-dropdown {
    border-radius: 4px;
}

main {
    flex: 1 0 auto;
}

.uk-offcanvas-bar {
    background: var(--color-gray4);
    color: var(--color-gray5);
}

.uk-offcanvas-bar .uk-nav-default>li>a, 
.uk-offcanvas-bar .menu-group li>a {
    color: var(--color-gray5);
}

.uk-offcanvas-bar .uk-nav-default>li>a:hover {
    color: var(--color-gray5);
}

.uk-offcanvas-bar .uk-close {
    color: var(--color-gray5);
}

.uk-offcanvas-close:first-child+* {
    margin-top: 30px;
}

.menu-group ul {
    padding-left: 0;
    list-style: none;
}

.menu-group li>a {
    color: var(--color-white);
    border-bottom: none;
    text-decoration: none;
}

.menu-group li>a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.uk-navbar-item,
.uk-navbar-nav>li>a {
    min-height: 50px;
}

.navbar-custom {
    /*background-color: var(--color-primary);*/
    background: linear-gradient(215deg, var(--color-primary), #0d6ff0);
    height: 50px;
}

.navbar-custom li>a {
    color: var(--color-white);
}

.navbar-custom li>a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.navbar-custom .uk-dropdown-nav li>a {
    color: var(--color-dark3);
    text-decoration: none;
}

.navbar-custom .uk-dropdown-nav li>a:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.text-link {
    cursor: pointer;
    border-bottom: 1px dashed;
}

.uk-text-muted.text-link {
    border-bottom: 1px dashed #999;
}

.uk-form-label>.uk-muted {
    color: #888
}



.box-list {
    height: 310px;
    overflow-y: auto;
    overflow-x: hidden;
    line-height: 1;
}

.box-list .row-list {
    border-bottom: 1px solid var(--color-gray3);
    padding: 6px;
    margin: 0;
    min-height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.box-list .uk-active,
.row-list.uk-active {
    background: var(--color-gray-light);
}


.uk-tab.ads-tab>*>a{
    width:110px;
    font-size: 12px;
    padding: 4px;
}
.ads-tab>li.uk-active{
    background: none;
}

.uk-dropdown {
    z-index: 1010;
}

.uk-dropdown .uk-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.uk-dropdown .red {
    color: var(--color-red-light)
}

.box-list .uk-dropdown,
.row-list .uk-dropdown {
    min-width: 140px;
    width: 140px;
    padding: 10px;
    background: var(--color-blue-dark1);
    color: var(--color-white);
}

.box-list .uk-dropdown .uk-active,
.row-list .uk-dropdown .uk-active {
    color: var(--color-white);
}

.box-list .uk-dropdown-nav>li.uk-active>a,
.box-list .uk-dropdown-nav>li>a:hover,
.row-list .uk-dropdown-nav>li.uk-active>a,
.row-list .uk-dropdown-nav>li>a:hover {
    color: var(--color-white);
}

.box-list .uk-dropdown-nav>li>a.red:hover,
.row-list .uk-dropdown-nav>li>a.red:hover {
    color: var(--color-red4);
}

.uk-select:not([multiple]):not([size]) {
    height: 40px;
    padding-right: 25px !important;
}

.box-list .uk-select,
.row-list .uk-select {
    padding: 0 10px !important;
    width: 70px;
    font-size: 14px;
    outline: none;
}



.uk-card-default .uk-card-title {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    top:-6px;
}

h3.uk-card-title {
    margin: 0;
}

.user-typing {
    min-height: 20px;
    font-size: 14px;
}

.uk-card-footer {
    padding: 20px 0 0 0;
}

.card-title-link {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}


.card-title-link .text>div:last-child {
    font-size: 14px;
}

.dialog-header {
    padding: 20px;
    border: none;
}

.dialog-header.red {
    background-color: #ff5d5d;
    color: #fff;
}

.dialog-body {
    padding-bottom: 30px;
}

.avatar{
    border-radius: 50%;
    background-image: url('/img/no_user.webp');
    background-position: center center;
    background-size: cover;
    border: 6px solid #fff;
    box-shadow: 0px 0px 2px #999;
}
.avatar.mini{
    width: 40px;
    height:40px;
    border: 3px solid #fff;
}

/* =========== chat/ messages ============ */
.row-list {
    border-bottom: 1px solid var(--color-gray3);
}

.chat-title>div, .form-new-chat {
    line-height: 1;
}

.chat-title>div:nth-child(1), .form-new-chat .contact-name {
    margin-top: 8px;
    font-size: 18px;
    margin-bottom: 3px;
}

.chat-title>div:nth-child(2), .form-new-chat .ads-title  {
    font-size: 14px;
    color: #777;
    padding-bottom: 8px;
}

.row-message {
    line-height: 1.2;
    margin-bottom: 20px;
    align-items: center;
    gap:5px;
}

.row-message.my {
    justify-content: right;
}

.row-message>div {
    max-width: 60%;
    background-color: #f6fcff;
    border: 1px solid #e4e4e4;
    border-radius: 6px 6px 6px 0px;
    
}

.row-message.my>div {
    background-color: #eaffe5;
    border-radius: 6px 6px 0px 6px;
}

.row-message .message{
    order: 1;
    padding: 6px 10px;
}

.row-message .avatar, .row-message.my .avatar{
    padding: 0;
    border: 5px solid #fff;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 0px 0px 2px #000;
}


.row-message .avatar{
    order: 2;
}

.row-message.my .message{
    order: 2;
}

.row-message.my .avatar{
    order: 1;
}

.row-message .avatar{
    width: 60px;
    height: 60px;
}

.row-message .content>div {
    padding: 10px 0;
}

.row-message .content img {
    max-width: 240px;
    width: 100%;
}

.row-message .tools {
    display: flex;
    font-size: 12px;
    color: #ccc;
}

.row-message.my .tools {
    justify-content: right;
}

.row-message .tools>.username {
    cursor: pointer;
    margin: 0 6px;
}

.row-message .tools>.username>a {
    color: inherit
}

.row-message .tools>.username>a:hover,
.row-message .tools>.username:hover {
    color: var(--color-blue)
}

.row-message .tools svg {
    max-width: 16px;
}

.row-message .tools .readed {
    margin-right: 4px;
}

.row-message .tools .icon-readed>.uk-icon,
.row-message .tools .icon-edit-del>.uk-icon {
    position: relative;
    top: -1px
}

.row-message .tools .readed {
    color: var(--color-blue)
}

.row-message .tools .icon-edit-del {
    margin-left: 10px;
    cursor: pointer;
}

.row-message .tools .icon-edit-del>.uk-icon:nth-child(1):hover {
    color: var(--color-blue)
}

.row-message .tools .icon-edit-del>.uk-icon:nth-child(2) {
    color: var(--color-red-light)
}

.row-message .tools .icon-edit-del>.uk-icon:nth-child(2):hover {
    color: var(--color-red3)
}

.row-message .btn-cancel,
.row-message .btn-ok {
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0 10px;
}

.row-message .text-edit {
    padding: 4px 10px;
    min-height: 100px;
}

.row-message .btn-cancel {
    border: 1px solid var(--color-gray3);
    background-color: var(--color-gray3);
    color: var(--color-gray2);
}

.row-message .btn-ok {
    border: 1px solid var(--color-blue);
    background-color: var(--color-blue);
    color: #fff;
}



.messages {
    padding: 20px 10px 0 10px;
}

.form-send {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.form-send>div:nth-child(1),
.form-send>div:nth-child(3) {
    text-align: center;
    flex-shrink: 0;
    width: 40px;
}

.form-send>div:nth-child(2) {
    flex-grow: 1;
}


.form-send .btn-send {
    cursor: pointer;
}

.form-send .btn-send:hover {
    color: var(--color-blue)
}

.form-send .uk-textarea {
    padding: 6px;
    min-height: 40px;
    max-height: 240px;
    box-sizing: border-box;
    resize: none;
}

/* =======================================*/

#left-menu .uk-icon{
    position: relative;
    top:-2px;
}

#modal-contacts .avatar, #modal-profile .avatar{
    width: 100px;
    height: 100px;
    cursor: pointer;
}
.contact-star, .contact-star svg{
    color: #33c15e;
    fill: #33c15e
}

/* ========== notify color =============== */
.uk-notification-message {
    font-size: 16px !important;
}

.uk-notification-message .uk-close {
    color: #fff;
}

.uk-notification-message-success {
    background: #09ab89;
    color: #fff;
}

.uk-notification-message-danger {
    background: #ff0007;
    color: #fff;
}

.uk-notification-message-info {
    background: #0198ed;
    color: #fff;
}

.uk-notification-message-warning {
    background: #ffe200;
    color: inherit;
}

/* =========== buttons color =========== */
.btn-small-row {
    border: 1px solid var(--color-primary);
    background: #fff;
    margin: 0 6px;
    font-size: 14px;
    padding: 4px 20px;
    cursor: pointer;
    color: #333;
    min-height: 40px;
    border-radius: 4px;
}

.btn-normal-row {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-primary);
    background: #fff;
    margin: 0 6px;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    color: #333;
    border-radius: 4px;
}

.btn-normal-row.uk-disabled{
    opacity: 0.7;
}

.btn-small-row.red {
    background: #ff5d5d;
    border: 1px solid #ff5d5d;
    color: #fff;
}

.btn-normal-row.red {
    background: #ff5d5d;
    border: 1px solid #ff5d5d;
    color: #fff;
}

.uk-icon.red {
    color: #fb8989;
}

.uk-icon.red:hover {
    color: #ff0007;
}

.box-step{
    overflow: auto !important;
}

#card-chats{
    width:100%;
    height: calc(100vh - 148px);
}
#card-chats .row-list{
    height:auto;
    max-height: calc(100vh - 250px);
}

#card-messages {
    width:100%;
}

#card-messages .messages {
    height: calc(100vh - 471px);
    min-height: 580px;
    overflow-y: scroll;
}

@media (max-width: 768px) {
    .tools>.username{
        white-space: nowrap; 
        overflow: hidden;       
        text-overflow: ellipsis; 
        max-width: 78px; 
    }
    #card-chats{
        height: calc(100vh - 158px);
    }

    #card-messages .messages {
        height: calc(100vh - 427px);
        min-height: 360px;
    }

    #card-messages{
        padding: 20px;
    }

    .row-message>div {
        max-width: 95%;
    }

    .row-message>.avatar{
        display: none;
    }

    .btn-small-row {
        padding: 4px;
    }

    .p10\@s {
        padding: 10px;
    }

    .no-border\@s {
        border: none;
    }
}



.btn-small-row span {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.btn-icon {
    gap: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.uk-button-icon {
    background-color: #fff;
    padding: 10px;
    line-height: 24px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.uk-button-icon svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 960px) {
    .uk-button-icon {
        padding: 6px;
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .uk-button-icon svg {
        width: 16px;
        height: 16px;
    }
}

.uk-button-danger {
    background-color: #f0506e;
}

.uk-button-danger:hover {
    background-color: #ee395b;
}

.uk-button-info {
    background-color: #0198ed;
    color: #fff;
}

.uk-button-info:hover {
    background-color: #027ec5
}

.uk-button-gray {
    background-color: #555;
    color: #fff;
}

.uk-button-gray:hover {
    background-color: #444
}

.uk-button.uk-disable {
    opacity: 0.6;
    cursor: not-allowed;
}

.uk-button.uk-active {
    background-color: #f2f2f2;
}

.btn-dop-row{
    width:26px;
}



.title-card {
    position: absolute;
    z-index: 2;
    top: -22px;
    background: #fff;
    max-width: 260px;
    margin: 0 auto;
    left: 20px;
    right: 0;
    text-align: center;
    box-shadow: 0px 3px 4px #e1e1e1;
    font-size: 18px;
    padding: 4px;
}

.ads-confirm .title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 20px;
    color: #888;
}

.ads-confirm .uk-modal-dialog,
.uk-togglabe-leave .uk-modal-dialog {
    width: 340px !important;
}

.ads-confirm .uk-modal-footer.uk-text-right,
.uk-togglabe-leave .uk-modal-footer.uk-text-right {
    text-align: center !important;
}

.ads-confirm .uk-modal-body,
.uk-togglabe-leave .uk-modal-body {
    text-align: center;
}

.ads-confirm .uk-button,
.ads-confirm .uk-button-primary,
.uk-togglabe-leave .uk-button,
.uk-togglabe-leave .uk-button-primary {
    padding: 10px 20px;
    line-height: 1;
    margin: 0 6px;
}

.navbar-custom .uk-logo {
    color: var(--color-white);
}

.row-favorites {
    height: auto;
    min-height: 160px;
    padding-top:30px;
    border-top: 1px solid #eee;
}
.row-favorites:first-child{
    border-top: none;
    padding-top: 0;
}

.row-favorites .ads-title {
    font-size: 24px;
}
.row-favorites .icon-location{
    gap:6px
}
.row-favorites .ads-address {
    margin-top: 10px;
    font-size: 14px;
}
.row-favorites .box-slider {
    height: 0;
    min-height: 240px;
    margin-bottom: 20px;
}

.row-favorites .ads-contact .row {
    margin-bottom: 15px; 
}

.row-favorites .ads-contact .row:last-child {
    margin-bottom: 0;
}

.labels {
    margin-bottom: 20px;
    gap:8px;
}
.uk-label.green {
    background-color: #39c45b;
}

.uk-label.blue {
    background-color: #0088cc;
}

.uk-label.gray {
    background-color: #959595;
}

.uk-label.red {
    background-color: #f0506e;
}

.uk-label.orange {
    background-color: orange;
}
.uk-text-small>.red{
    color: #f0506e;
}
.uk-text-small>.green{
    color:#82cf67;
}

.uk-label.circle {
    border-radius: 50%;
    padding: 4px 6px;
    line-height: 1;
}
.row-favorites.disabled{
    opacity: 0.3;
}

.row-favorites .photo {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    max-height: 270px;
}

.row-favorites .ads-text {
    margin-top: 10px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 70px;
}

.row-favorites .ads-area,
.row-favorites .ads-area-building,
.row-favorites .ads-area-land {
    margin-top: 10px;
    font-size: 14px;
}

.row-favorites .ads-area>span {
    margin-right: 10px;
}

.row-favorites .ads-price {
    margin: 10px 0 20px;
    font-size: 20px;
}

.row-favorites .ads-contact {
    margin-top: 20px;
}

.row-favorites .clicked {
    cursor: pointer;
}

.row-favorites .clicked:hover {
    color: #0a54c2
}


.win-all-photo{
    position: absolute;
    width: 100%;
    min-height: 270px;
    top: 220px;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px #333;
    border-radius: 4px;
    left: -20px;
}
.win-all-photo .title{
    font-size: 18px;
    padding: 10px 0 20px 0;
    text-align: center;
}

.win-all-photo .title>.desc{
    font-size: 12px;
    margin: -5px;
    color: #777;
}

.footer {
    background-color: var(--color-dark2);
    color: var(--color-white);
    padding: 10px 0;
    flex-shrink: 0;
    font-size: 12px;
    z-index: 2;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.footer a {
    color: var(--color-white);
}

.footer a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

@media (min-width: 960px) {
    .uk-offcanvas-bar {
        left: -250px;
        width: 250px;
        padding: 20px;
    }
}

/* ================ multiselect ================== */
.multiselect {
    position: relative;
    width: 100%;
}



.multiselect__trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    min-height: 42px;
    padding: 8px 12px;
}

.uk-form-danger .multiselect__trigger {
    border: 1px solid red;
}

.multiselect__selected-labels {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-right: 8px;
    min-height: 24px;
}

.multiselect__placeholder {
    color: #999;
    line-height: 24px;
}

.uk-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 0 !important;
}

.uk-label-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    margin-left: 2px;
    opacity: 0.7;
}

.uk-label-close:hover {
    opacity: 1;
}

.count-label {
    min-width: 12px;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
}

.multiselect__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 0;
    padding: 0 !important;
}

.multiselect__options {
    max-height: 200px;
    overflow-y: auto;
}

.box-step .multiselect__dropdown,
.box-step .multiselect__options {
    max-height: none;
}

.multiselect__option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0;
    border-bottom: 1px solid #f8f8f8;
}

.multiselect__option:last-child {
    border-bottom: none;
}

.multiselect__option:hover {
    background-color: #f8f8f8;
}

.multiselect__option--selected {
    background-color: #f0f7ff;
}

.multiselect__option-label {
    flex: 1;
    cursor: pointer;
}

.multiselect__no-results {
    padding: 12px;
}

.multiselect.uk-form-danger>.multiselect__trigger {
    border: 1px solid #ff0007 !important;
}

/* ==================== master ads ======================= */

.box-master-ads{
    font-size: 14px;
    line-height: 1.1;
}

.box-master-ads .no-photo{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    border: 10px solid #fff;
    padding: 10px;
    background-color: #888;
    color: #fff;
    width: 180px;
    height: 120px;
    box-shadow: #000 0px 0px 2px;
    user-select: none;
}
.box-master-ads .files{
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.box-master-ads .image{
    width: 134px;
    height: 134px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
    object-fit: cover;
    flex-shrink: 0;
    justify-content: center;
}

.box-master-ads .content{
    
    border:1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.box-master-ads .title{
    font-size: 18px;
    line-height: 1.1;
    font-weight: 600;
    text-align: center;
}
.box-master-ads  .labels{
    margin-top: 20px;
}

.box-master-ads  .address{
    margin-top: 10px;
}

.box-master-ads .amount{
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}

.box-master-ads .area{
    margin-top: 10px;
}

.box-master-ads .kadastr{
    margin-top: 10px;
}

.box-master-ads .contact{
    margin-top: 10px;
    
}

.box-master-ads .gps{
    margin-top: 10px;
}

/* ================================================== */
/* ---- контакт в карточке избранного: аватар слева, телефон/почта справа ---- */
.row-favorites .ads-contact .fav-contact {
    gap: 16px;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* контент карточки сдвинут слева (padding-left 30px), справа отступа не было —
       телефон/почта прилипали к краю. Выравниваем: такой же отступ справа */
    padding-right: 30px;
}

/* левая колонка: аватар, под ним имя (в столбик, фиксированная ширина) */
.row-favorites .ads-contact .fav-contact-person {
    flex: 0 0 auto;
    width: 88px;
    gap: 6px;
}

.row-favorites .ads-contact .fav-contact-person .avatar.mini {
    flex: 0 0 40px;          /* аватар не сжимается */
}

.row-favorites .ads-contact .fav-contact-name {
    display: block;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

/* правая колонка: телефон / почта / чат, отбита от левой и прижата вправо */
.row-favorites .ads-contact .fav-contact-links {
    flex: 0 0 auto;
    margin-left: auto;       /* вправо */
    padding-left: 20px;      /* отбивка от аватара с именем */
    border-left: 1px solid var(--color-gray3, #e6e9ee);
    align-items: flex-end;
    text-align: right;
    gap: 2px;
}

.row-favorites .ads-contact .fav-contact-links .row {
    margin-bottom: 0;        /* перебивает общий margin у .row */
    white-space: nowrap;
}

/* на узком экране контакты уезжают под аватар */
@media (max-width: 480px) {
    .row-favorites .ads-contact .fav-contact {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .row-favorites .ads-contact .fav-contact-links {
    flex: 1 1 100%;
        align-items: flex-start;
        text-align: left;
        margin-top: 8px;
    }
}
