* {
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    margin: 0;
    background: #F1F3F4;
    color: #222;
}

.container {
    max-width: 1396px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    gap: 20px;
}

.user {
    display: flex;
    align-items: center;
}

.user__name {
    padding-left: 5px;
    font-weight: 500;
}

.nav__item {
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
}

.nav__item:hover {
    color: #ff4d4f;
}

.nav__item--active {
    color: #ff4d4f;
    font-weight: 600;
}

.filters input:focus {
    outline: none;
    border-color: #c80000;
}

.filters {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 10px 15px;
    border-radius: 100px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: white;
}

.filters select {
    color: #fff;
    background-color: #ff4d4f;
    border: none;
    cursor: pointer;
}

.filters__search {
    flex: 1;
    min-width: 250px;
}

/* ===== НОВЫЕ СТИЛИ ФИЛЬТРОВ ===== */
.filters--new {
    flex-direction: column;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-row--top {
    gap: 8px;
}

.filters-row--bottom {
    gap: 8px;
}

/* Кнопки-пилюли */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-pill--red {
    background: #ff4d4f;
    color: #fff;
}

.filter-pill--red:hover {
    background: #e63e40;
}

.filter-pill--dark {
    background: #e63e40;
    color: #fff;
}

.filter-pill--dark:hover {
    background: #fd5e61;
}

.filter-pill--outline {
    background: #fff;
    color: #333;
    border: 1.5px solid #ddd;
}

.filter-pill--outline:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

.filter-pill--icon {
    gap: 8px;
}

/* Активное состояние пилюль (фильтр применён/выбран) */
.filter-pill.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.filter-pill--red.active,
.filter-pill--dark.active {
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.35);
}

/* Активное состояние полей ввода */
.filter-input.active {
    border-color: #ff4d4f;
    background: #fff6f6;
}

.filter-input.active::placeholder {
    color: #ff4d4f;
}

/* Бейдж с числом активных фильтров */
.pill-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.filter-pill.active .pill-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Пилюли-селекты (сортировка, тип заявки и т.п.) */
select.filter-pill {
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
}

select.filter-pill:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

select.filter-pill option {
    color: #333;
}

select.filter-pill.active {
    background: #ff4d4f;
    color: #fff;
    border-color: #ff4d4f;
}

select.filter-pill.active option {
    color: #333;
}

.pill-icon {
    font-size: 13px;
    opacity: 0.7;
}

.pill-arrow {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 2px;
}

.pill-count {
    background: rgba(255,255,255,0.25);
    border-radius: 100px;
    padding: 1px 7px;
    font-size: 12px;
}

/* Поля ввода в новых фильтрах */
.filter-input {
    padding: 9px 16px;
    border-radius: 100px;
    border: 1.5px solid #ddd;
    font-size: 14px;
    background: white;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 110px;
}

.filter-input:focus {
    outline: none;
    border-color: #ff4d4f;
}

.filter-input--small {
    width: 90px;
}

.filter-input--search {
    flex: 1;
    min-width: 200px;
    width: auto;
}

.filter-show-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Дропдауны фильтров */
.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    z-index: 100;
    min-width: 200px;
    overflow: hidden;
    animation: dropdownFade 0.15s ease;
}

.filter-dropdown-menu--wide {
    min-width: 340px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px;
    right: 0;
    left: auto;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.filter-dropdown-menu.is-open {
    display: block;
}

.filter-dropdown-item {
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
}

.filter-dropdown-item:hover {
    background: #fff5f5;
    color: #ff4d4f;
}

.more-filters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.more-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.more-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.more-filter-select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1.5px solid #eee;
    font-size: 13px;
    font-family: inherit;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s;
}

.more-filter-select:focus {
    outline: none;
    border-color: #ff4d4f;
}

.more-filters-actions {
    display: flex;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* ПЛАШКА ПРЕДУПРЕЖДЕНИЯ */
.object-card {
    width: 1400px;
    position: relative;
    margin-bottom: 20px;
    display: block;
}

.card {
    display: flex;
    border-radius: 15px;
}

.card-warning-banner {
    background: #ff574e;
    border: 2px solid #d93026;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 77, 79, 0.25);
    margin-top: -20px;
    color: #fff;
    width: 100%;
    display: block;
}

.card-warning-banner--hidden {
    display: none !important;
}

.card-warning-banner--today {
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(255, 77, 79, 0.25); }
    50% { box-shadow: 0 6px 20px rgba(255, 77, 79, 0.4); }
}

.card-warning-banner__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.card-warning-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.card-warning-title {
    font-weight: 700;
    font-size: 14px;
}

.card-warning-details {
    font-size: 12px;
    opacity: 0.95;
}

.card-warning-link {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.card-warning-link:hover {
    background: rgba(255,255,255,0.9);
    color: #ff4d4f;
}

.object-card:has(.card-warning-banner:not(.card-warning-banner--hidden)) .card {
    border-radius: 15px 15px 0 0;
}

.btn {
    padding: 10px 18px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

.btn--primary {
    background: #ff4d4f;
    color: #fff;
}

.btn--accent {
    background: #ff4d4f;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
}

.btn-outline:hover {
    background: #ff4d4f;
    color: white;
}

.btn:hover {
    background: #e63e40;
    transform: scale(1.02);
}

/* ===== Стили для карточек (общие) ===== */
.card {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 1396px;
    margin: 20px auto;
}

.card-block {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-block:last-child {
    border-right: none;
}

.card-block .image-gallery {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-block.image {
    width: 200px;
    padding: 0;
}

.card-block.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Фиксированная ширина блоков */
.info,
.details,
.date-block,
.right,
.location,
.owner-info-block,
.client-info-block {
    width: 200px;
}

.price-block{
    width: 150px;
}

.description {
    flex: 1;
    color: #666;
    font-size: 12px;
}

.title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.text {
    font-size: 12px;
    color: #666;
    max-width: 200px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.price-value,
.price-range,
.deal-price {
    font-weight: 700;
    color: #ff4d4f;
}

.status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 70px;
    font-size: 16px;
    color: #373737;
}

.archive-indicator {
    padding-top: 20px;
    font-size: 14px;
}

.btn-who-add {
    background: #F0E78C;
    color: #373737;
    border: none;
    padding: 5px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.btn-who-add:hover {
    background: #f3eda6;
}

.agency-row {
    background: #f3eda6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px;
    margin-top: 10px;
}

.views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #888;
}

.owner-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 12px;
}

.owner-name{
    max-width: 120px;
}

.owner-role{
    display: none;
}

.menu-icon {
    cursor: pointer;
}

/* Специфичные для архивных карточек */
.archive-card .card-block.image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

/* ===== КРАСИВЫЕ И БЫСТРЫЕ МОДАЛЬНЫЕ ОКНА ===== */

/* Основной контейнер модального окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
}

/* Оптимизированный оверлей */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    transform: translateZ(0);
    will-change: opacity;
}

/* Красивое модальное окно с оптимизацией */
.modal-content {
    position: relative;
    background: white;
    margin: 40px auto;
    padding: 0;
    width: 90%;
    max-width: 650px;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.25s ease-out;
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Простая, но красивая анимация */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Заголовок модального окна */
.modal-content h3 {
    color: #1a1a1a;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    padding: 28px 32px 20px;
    text-align: center;
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #eef2f6;
    letter-spacing: -0.3px;
}

/* Декоративный элемент под заголовком (оптимизирован) */
.modal-content h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff4d4f;
    border-radius: 3px 3px 0 0;
}

/* Тело модального окна */
.modal-body {
    padding: 24px 32px 32px;
    max-height: 60vh;
    overflow-y: auto;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

/* Стили для полей ввода */
.modal-body label {
    display: block;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 14px 18px;
    margin-top: 8px;
    border: 2px solid #e8edf2;
    border-radius: 16px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafd;
    font-family: inherit;
    color: #1a1a1a;
}

.modal-body input:hover,
.modal-body select:hover,
.modal-body textarea:hover {
    border-color: #d0d9e2;
    background: #ffffff;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #ff4d4f;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.1);
}

.modal-body textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Стили для чекбокса */
.modal-body .checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-transform: none;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-body input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #ff4d4f;
    border-radius: 6px;
    cursor: pointer;
}

/* Секция загрузки фото */
.photo-upload-section {
    background: #f8fafd;
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    border: 2px dashed #d0d9e2;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.photo-upload-section:hover {
    border-color: #ff4d4f;
    background: #ffffff;
}

.photo-upload-section label {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    display: block;
}

/* Превью фото */
.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.photo-preview {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 3px solid white;
    transform: translateZ(0);
    will-change: transform;
}

.photo-preview:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.3);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4d4f;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.photo-preview:hover .remove-photo {
    opacity: 1;
    transform: scale(1);
}

.remove-photo:hover {
    background: #e63e40;
    transform: scale(1.1) !important;
}

/* Подпись для фото */
.photo-upload-section small {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 10px;
    font-weight: normal;
}

/* Футер модального окна */
.modal-footer {
    display: flex;
    gap: 16px;
    padding: 24px 32px 32px;
    background: #f8fafd;
    border-top: 1px solid #eef2f6;
}

/* Кнопки в модальном окне (оптимизированные) */
.modal-footer button {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
    transform: translateZ(0);
    will-change: transform;
}

.modal-footer .btn--primary {
    background: #ff4d4f;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.modal-footer .btn--primary:hover {
    background: #e63e40;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.4);
}

.modal-footer .btn--primary:active {
    transform: translateY(0) translateZ(0);
}

.modal-footer .btn--secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #e8edf2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.modal-footer .btn--secondary:hover {
    background: #f8fafd;
    border-color: #ff4d4f;
    color: #ff4d4f;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Стили для confirm модального окна */
.confirm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    background: white;
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    min-width: 340px;
    max-width: 420px;
    text-align: center;
    animation: confirmPop 0.2s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@keyframes confirmPop {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateZ(0);
    }
}

.confirm-modal-content p {
    font-size: 18px;
    margin-bottom: 28px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.confirm-buttons .btn--primary {
    background: #ff4d4f;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.confirm-buttons .btn--primary:hover {
    background: #e63e40;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.4);
}

.confirm-buttons .btn--secondary {
    background: #f1f3f4;
    color: #2c3e50;
}

.confirm-buttons .btn--secondary:hover {
    background: #e8edf2;
    transform: translateY(-2px);
}

/* Стилизованный скроллбар */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 20px;
    margin: 8px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ff4d4f;
    border-radius: 20px;
    border: 2px solid #f1f3f4;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #e63e40;
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: 95%;
        border-radius: 24px;
    }
    
    .modal-content h3 {
        font-size: 22px;
        padding: 24px 24px 16px;
    }
    
    .modal-body {
        padding: 20px 24px 24px;
    }
    
    .modal-footer {
        padding: 20px 24px 24px;
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .confirm-modal {
        width: 90%;
        min-width: auto;
        padding: 24px;
    }
    
    .confirm-buttons {
        flex-direction: column;
    }
    
    .confirm-buttons button {
        width: 100%;
    }
}

/* Показ модалки (React-версия рендерит условно, поэтому включаем display) */
.modal.modal--open {
    display: block;
    background: rgba(0, 0, 0, 0.6);
}

.modal-overlay.modal-overlay--open {
    display: block;
}

/* Кнопка закрытия модального окна */
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f3f4;
    color: #2c3e50;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: #ff4d4f;
    color: #fff;
    transform: rotate(90deg);
}

/* Confirm-диалог (React-версия рендерит условно) */
.modal-overlay--open .confirm-modal {
    display: block;
}

/* Стили для слайдера на карточке */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Кнопки навигации */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease;
    padding: 0;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-nav svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.slider-prev {
    left: 5px;
}

.slider-next {
    right: 5px;
}

/* Индикаторы (точки) */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Анимация при наведении на слайд */
.slider-slide:hover .slider-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.slider-image {
    transition: transform 0.3s ease;
}

/* Скрываем кнопки и точки, если фото мало */
.image-slider[data-count="1"] .slider-nav,
.image-slider[data-count="1"] .slider-dots {
    display: none;
}

/* Таблица пользователей */
.users-table {
    width: 1400px;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.users-table th {
    background: #ff4d4f;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.users-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.users-table tr:last-child td {
    border-bottom: none;
}

.users-table tr:hover {
    background: #f9f9f9;
}

.users-table button {
    padding: 5px 10px;
    margin: 0 2px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 12px;
}

.users-table .edit-btn {
    background: #ff4d4f;
    color: white;
}

.users-table .delete-btn {
    background: #dc3545;
    color: white;
}

.users-table .delete-permanent-btn {
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.users-table .delete-permanent-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.admin-badge {
    background: #ff4d4f;
    color: white;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 11px;
    margin-left: 10px;
}

/* PhotoSwipe */
.pswp__img {
    object-fit: contain;
}

.pswp__caption__center {
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 10px;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .card {
        flex-direction: column;
    }

    .card-block {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #eee;
    }

    .right {
        align-items: flex-start;
        text-align: left;
    }

    .status {
        padding-top: 10px;
    }
}

/* Стили для формы с новыми полями */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row label {
    flex: 1 1 calc(33.333% - 10px);
    min-width: 200px;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

/* Стили для карточки */
.term, .build-year, .balcony {
    display: inline-block;
    margin-right: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row label {
        flex: 1 1 100%;
    }
}

/* Стили для деталей квартиры в карточке выезда */
.apartment-details {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    font-size: 13px;
}

.details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.detail-tag {
    background-color: #f0f2f5;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    color: #333;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.detail-text {
    color: #666;
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.price-info {
    margin-top: 4px;
    color: #ff4d4f;
    font-weight: 500;
}

.apart-commission, .apart-deposit {
    color: #ff4d4f;
}

/* Стили для описания */
.description-text {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    max-height: 275px;
    overflow: hidden;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .details-row {
        gap: 4px;
    }
    
    .detail-tag {
        padding: 3px 8px;
        font-size: 11px;
        max-width: calc(50% - 4px);
    }
    
    .text {
        max-width: 100%;
    }
}

/* Исправленное модальное окно действий */
.action-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.action-modal-content {
    padding: 25px;
}

.action-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
    background: #f8f9fa;
    color: #333;
    border: 1px solid transparent;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.action-btn:active {
    transform: translateY(0);
}

.action-edit {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.action-edit:hover {
    background: #bbdefb;
}

.action-archive {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffe0b2;
}

.action-archive:hover {
    background: #ffe0b2;
}

.action-restore {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #c8e6c9;
}

.action-restore:hover {
    background: #c8e6c9;
}

.action-refresh {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.action-refresh:hover {
    background: #bbdefb;
}

.action-deactivate {
    background: #ffebee;
    color: #d32f2f;
    border-color: #ffcdd2;
}

.action-deactivate:hover {
    background: #ffcdd2;
}

.action-activate {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #c8e6c9;
}

.action-activate:hover {
    background: #c8e6c9;
}

.action-delete {
    background: #ffebee;
    color: #d32f2f;
    border-color: #ffcdd2;
}

.action-delete:hover {
    background: #ffcdd2;
}

.action-cancel {
    background: #f5f5f5;
    color: #666;
    justify-content: center;
    margin-top: 10px;
    border-color: #e0e0e0;
}

.action-cancel:hover {
    background: #e8e8e8;
}

.action-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

/* Исправленное модальное окно подтверждения */
.confirm-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: modalFadeIn 0.2s ease-out;
}

.confirm-modal-content {
    padding: 30px;
    text-align: center;
}

.confirm-modal-content p {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 18px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-buttons .btn--primary {
    background: #ff4d4f;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.confirm-buttons .btn--primary:hover {
    background: #e63e40;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 77, 79, 0.4);
}

.confirm-buttons .btn--secondary {
    background: #f5f5f5;
    color: #666;
}

.confirm-buttons .btn--secondary:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

/* Затемнение фона */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    animation: overlayFadeIn 0.2s ease-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .action-modal,
    .confirm-modal {
        width: 95%;
        max-width: none;
    }
    
    .action-modal-content {
        padding: 20px;
    }
    
    .confirm-modal-content {
        padding: 25px;
    }
    
    .confirm-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .confirm-buttons button {
        width: 100%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .action-modal-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .action-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .action-icon {
        font-size: 18px;
        width: 25px;
    }
}

/* Стили для сегодняшней даты */
.today-label {
    color: #ff4d4f;
    font-weight: 600;
}

.time-label {
    color: #333;
}

/* Стили для бейджа запланированного выезда - ГЛОБАЛЬНОЕ ПОЗИЦИОНИРОВАНИЕ */
.deal-badge-container {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 10000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
    max-width: 400px !important;
}

.scheduled-deal-badge {
    display: none;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentlePulse {
    0% {
        box-shadow: 0 8px 25px rgba(255, 77, 79, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(255, 77, 79, 0.8);
    }
    100% {
        box-shadow: 0 8px 25px rgba(255, 77, 79, 0.4);
    }
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .deal-badge-container {
        bottom: 20px !important;
        left: 20px !important;
        max-width: calc(100% - 40px) !important;
    }
    
    .scheduled-deal-badge {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    .scheduled-deal-badge i {
        font-size: 18px !important;
        width: 28px !important;
        height: 28px !important;
    }
}
/* Модальное окно логов - ИСПРАВЛЕНО */
#viewLogsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    /* Центрирование через flex */
    display: none;
    align-items: center;
    justify-content: center;
}

#viewLogsModal .modal-content {
    background: #ffffff;
    color: #000000;
    max-width: 600px;
    width: 90%;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 30px;
    border: 2px solid #ff4d4f;
    /* Убираем transform и position */
    position: relative;
    margin: 0 auto;
}

/* Оверлей */
#modalOverlayLogs {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* Остальные стили */
#viewLogsModal h3 {
    color: #ff4d4f;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

#viewLogsModal .modal-body {
    background: #ffffff;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

#viewLogsModal .logs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

#viewLogsModal .logs-table th {
    background: #ff4d4f;
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    text-align: left;
    font-size: 16px;
}

#viewLogsModal .logs-table td {
    background: #ffffff;
    color: #333333;
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    font-size: 14px;
}

#viewLogsModal .logs-table tr:hover td {
    background: #f0f0f0;
}

#viewLogsModal .btn--secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 100px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

#viewLogsModal .btn--secondary:hover {
    background: #5a6268;
}

#viewLogsModal .logs-table td[colspan="2"] {
    text-align: center;
    color: #999999;
    font-style: italic;
    padding: 40px;
}

/* Стили для модального окна пользователя */
#userModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#userModal .modal-content {
    background: #ffffff;
    color: #000000;
    max-width: 500px;
    width: 90%;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 30px;
    border: 2px solid #ff4d4f;
    position: relative;
}

#userModal h3 {
    color: #ff4d4f;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

#userModal .modal-body {
    background: #ffffff;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

#userModal .modal-body label {
    display: block;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

#userModal .modal-body input[type="text"],
#userModal .modal-body input[type="email"],
#userModal .modal-body input[type="password"],
#userModal .modal-body select {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    border: 2px solid #eee;
    border-radius: 100px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#userModal .modal-body input:focus,
#userModal .modal-body select:focus {
    outline: none;
    border-color: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.1);
}

#userModal .modal-body input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

#userModal .modal-body label.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#userModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

#userModal .btn--primary {
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#userModal .btn--primary:hover {
    background: #e63e40;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 79, 0.3);
}

#userModal .btn--secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#userModal .btn--secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Оверлей */
#modalOverlayUser {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* ===== Стили для расширенных фильтров ===== */

.more-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.more-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.more-filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Чекбокс-группы (комнаты, тип дома, балкон) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s;
}

.checkbox-group label:hover {
    color: #ff4d4f;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #ff4d4f;
    cursor: pointer;
}

/* Группа полей "от - до" */
.range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.range-inputs .filter-input-sm {
    width: 90px;
    padding: 8px 12px;
    border-radius: 100px;
    border: 1.5px solid #ddd;
    font-size: 13px;
    background: white;
    transition: border-color 0.2s;
}

.range-inputs .filter-input-sm:focus {
    outline: none;
    border-color: #ff4d4f;
}

/* Специальный селект для "Срок аренды" и "Ремонт" (уже есть класс .more-filter-select) */
.more-filter-select {
    padding: 8px 12px;
    border-radius: 100px;
    border: 1.5px solid #ddd;
    font-size: 13px;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    width: 100%;
}

.more-filter-select:focus {
    outline: none;
    border-color: #ff4d4f;
}

/* Кнопки действий внизу панели */
.more-filters-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

.more-filters-actions button {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.more-filters-actions .filter-pill--red {
    background: #ff4d4f;
    color: white;
    border: none;
}

.more-filters-actions .filter-pill--red:hover {
    background: #e63e40;
    transform: translateY(-1px);
}

.more-filters-actions .filter-pill--outline {
    background: white;
    color: #333;
    border: 1.5px solid #ddd;
}

.more-filters-actions .filter-pill--outline:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .more-filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkbox-group {
        gap: 8px;
    }

    .range-inputs {
        flex-direction: row;
        justify-content: flex-start;
    }

    .range-inputs .filter-input-sm {
        width: calc(50% - 5px);
    }

    .more-filters-actions {
        flex-direction: column;
        gap: 8px;
    }

    .more-filters-actions button {
        width: 100%;
    }
}

/* Простой блок информации о выезде */
.deal-info-banner {
    background: #ff574e;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    margin-top: -20px;
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 1;
}

.deal-info-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.deal-info-icon {
    font-size: 20px;
}

.deal-info-text {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

.deal-info-link {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.deal-info-link:hover {
    background: rgba(255,255,255,0.9);
    color: #ff4d4f;
}

.object-card:has(.deal-info-banner) .card {
    border-radius: 15px 15px 0 0;
}

/* Простой блок информации о выезде */
.deal-info-banner {
    background: #ff574e;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    margin-top: -20px;
    color: #fff;
    width: 100%;
    position: relative;
    z-index: 1;
}

.deal-info-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

.deal-info-icon {
    font-size: 20px;
}

.deal-info-text {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

.deal-info-link {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
    white-space: nowrap;
}

.deal-info-link:hover {
    background: rgba(255,255,255,0.9);
    color: #ff4d4f;
}

.object-card:has(.deal-info-banner) .card {
    border-radius: 15px 15px 0 0;
}

.title-text{
    height: auto;
    width: 102px;
    display: flex;
    flex-wrap: wrap;
}

/* Стили для ошибки телефона */
#clientPhone.phone-error {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

#clientPhone:focus {
    outline: none;
    border-color: #ff4d4f;
}

/* Стили для ошибки телефона */
#clientPhone.phone-error {
    border-color: #ff4d4f !important;
    background-color: #fff2f0 !important;
}

#clientPhone:focus {
    outline: none;
    border-color: #ff4d4f;
}

/* Убираем стандартные стрелки в input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Убираем стандартные стрелки в input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Toast уведомления */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 450px;
    padding: 15px 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.toast-success { border-left-color: #4caf50; }
.toast-error { border-left-color: #f44336; }
.toast-warning { border-left-color: #ff9800; }
.toast-info { border-left-color: #2196f3; }

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.toast-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-close:hover {
    background: #f0f0f0;
    color: #666;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-hide {
    animation: slideOut 0.3s ease forwards;
}

.action-btn.action-cancel-deal {
    background: #ff9800;
    color: white;
}

.action-btn.action-cancel-deal:hover {
    background: #e68900;
}

/* Стили для PhotoSwipe галереи */
.pswp-gallery {
    display: none;
}

.pswp__img {
    object-fit: contain;
}

.pswp__caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    width: auto;
    padding: 10px 15px;
}

.pswp__caption__center {
    text-align: center;
    font-size: 14px;
    color: white;
}

/* Анимация для слайдера */
.slider-image {
    cursor: pointer;
    transition: transform 0.2s;
}

.slider-image:hover {
    transform: scale(1.02);
}

/* Полноширинный блок для районов */
.more-filter-group.full-width {
    grid-column: span 2;
    width: 100%;
}

/* Список районов с чекбоксами */
.locations-checkbox-list {
    background: white;
    border-radius: 8px;
}

.locations-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.locations-checkbox-list label:hover {
    background: #f5f5f5;
}

.locations-checkbox-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.locations-checkbox-list .location-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

/* Кнопки быстрого выбора площади */
.area-quick-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.area-quick-btn:hover {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

.area-quick-btn.active {
    background: #ff4d4f;
    color: white;
    border-color: #ff4d4f;
}

/* Стабилизация макета при открытии фильтров */
.container {
    position: relative;
    min-height: 100vh;
}

.object-list {
    transition: none;
    position: relative;
    z-index: 1;
}

/* Фикс для слайдеров в карточках */
.image-slider {
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

/* ����� ��� ������ ����������� ������ �������� */
.copy-phone-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    margin-left: 5px;
}

.copy-phone-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.phone-number.copied {
    background: #4caf50;
    color: white;
}

.phone-number.copied .copy-phone-btn {
    background: rgba(255, 255, 255, 0.3);
}


/* Стили для drag & drop фото */
.photo-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    cursor: grab;
    transition: all 0.2s;
}

.photo-preview:active {
    cursor: grabbing;
}

.photo-preview.drag-over {
    border-color: #ff4d4f;
    transform: scale(1.05);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.photo-preview .drag-handle {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: grab;
    z-index: 2;
}

.photo-preview .drag-handle:active {
    cursor: grabbing;
}

.photo-preview .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.photo-preview .remove-photo:hover {
    background: rgba(255, 77, 79, 0.8);
}

/* Анимация при перетаскивании */
@keyframes dragPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.photo-preview.dragging {
    opacity: 0.5;
    animation: dragPulse 0.2s ease;
}

/* Модалка истории просмотров (по образцу старого #viewLogsModal) */
.modal-content.logs-modal {
    border: 2px solid #ff4d4f;
}

.modal-content.logs-modal h3 {
    color: #ff4d4f;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.modal-content.logs-modal .logs-body {
    background: #ffffff;
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.modal-content.logs-modal .logs-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.modal-content.logs-modal .logs-table th {
    background: #ff4d4f;
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    text-align: left;
    font-size: 16px;
}

.modal-content.logs-modal .logs-table td {
    background: #ffffff;
    color: #333333;
    padding: 12px;
    border-bottom: 1px solid #dddddd;
    font-size: 14px;
}

.modal-content.logs-modal .logs-table tr:hover td {
    background: #f0f0f0;
}

.modal-content.logs-modal .logs-table td[colspan="2"] {
    text-align: center;
    color: #999999;
    font-style: italic;
    padding: 40px;
}

.modal-content.logs-modal .btn--secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 100px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
}

.modal-content.logs-modal .btn--secondary:hover {
    background: #5a6268;
}

/* Выбранные районы в форме клиента */
.selected-locations-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 13px;
    border: 1px solid #e9ecef;
    max-height: 100px;
    overflow-y: auto;
}

.selected-locations-list .title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    font-size: 12px;
}

.selected-locations-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.location-tag {
    background: #ff4d4f;
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.location-tag .remove-tag {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.location-tag .remove-tag:hover {
    opacity: 1;
}

.selected-locations-list.empty {
    color: #adb5bd;
    font-style: italic;
}

.multiple-select-hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


