:root {
	--primary:var(--primary);
    --brand: #0d696c;
	--price: #000;
    --brand-dark: #3d5f41;
    --brand-light: #e2f0e6;
    --accent-blue: #003767;
    --border-gray: #d9e2e9;
    --card-bg: #ffffff;
    --text-main: #1e3b4f;
    --text-soft: #4f6f82;
    --radius-md: 10px;
    --radius-lg: 10px;
    --radius-xl: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 90px;
    scroll-behavior: smooth;
}

body {
    color: #1e2a36;
    line-height: 1.5;
	/*padding-top: 90px;*/
}

.container {
    max-width: 100%;
}
.alert-danger{
	color: #fff;
	background-color: red;
}

 /* Прелоадер на весь экран */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
        }

        body.loaded .preloader {
            opacity: 0;
            visibility: hidden;
        }

        /* Контейнер для логотипа с анимацией перекатывания */
        .logo-container {
            width: 200px;
            height: 200px;
            position: relative;
            cursor: default;
            animation: rollBrick 2.5s infinite cubic-bezier(0.25, 0.1, 0.25, 1);
            transform-origin: center center;
            filter: drop-shadow(0 15px 10px rgba(0,0,0,0.1));
        }

        /* Анимация перекатывания как кирпич */
        @keyframes rollBrick {
            0% {
                transform: perspective(800px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
            }
            20% {
                transform: perspective(800px) rotateX(10deg) rotateY(15deg) rotateZ(5deg) translateY(-10px);
            }
            40% {
                transform: perspective(800px) rotateX(-5deg) rotateY(30deg) rotateZ(10deg) translateY(-5px);
            }
            60% {
                transform: perspective(800px) rotateX(8deg) rotateY(45deg) rotateZ(0deg) translateY(5px);
            }
            80% {
                transform: perspective(800px) rotateX(-3deg) rotateY(60deg) rotateZ(-5deg) translateY(-5px);
            }
            100% {
                transform: perspective(800px) rotateX(0deg) rotateY(720deg) rotateZ(0deg) translateY(0);
            }
        }

        /* Дополнительный эффект "кирпичности" — лёгкое искажение */
        .logo-container svg {
            width: 100%;
            height: 100%;
            display: block;
            transition: filter 0.3s;
        }

        /* Текстовый блок под логотипом */
        .preloader-text-block {
            margin-top: 30px;
            text-align: center;
            opacity: 0;
            animation: fadeInText 1.5s forwards 0.5s;
        }

        @keyframes fadeInText {
            0% { opacity: 0; transform: translateY(15px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        .main-brand {
            font-size: 2.2rem;
            font-weight: 400;
            letter-spacing: 6px;
            color: #2b2b2b;
            text-transform: uppercase;
            line-height: 1.2;
        }

        /* Подзаголовок (Агентство недвижимости) */
        .sub-brand {
            font-size: 1rem;
            font-weight: 300;
            letter-spacing: 3px;
            color: #5a5a5a;
            text-transform: uppercase;
            margin-top: 8px;
            border-top: 1px solid #010101;
            padding-top: 12px;
            display: inline-block;
        }

        /* Основной контент (появляется после загрузки) */
        .content {
            max-width: 1200px;
            width: 90%;
            margin: 2rem auto;
            opacity: 0;
            transition: opacity 1s ease;
            pointer-events: none;
            text-align: center;
        }

        body.loaded .content {
            opacity: 1;
            pointer-events: all;
        }

/* ===== ЗАГОЛОВКИ СТРАНИЦ ===== */
.page-header {
    margin: 10px 0 30px;
}

.page-header h1 {
    font-size: 27px;
    font-weight: 700;
    color: #424344;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h1 i {
    color: var(--primary);
    font-size: 32px;
}

.page-headers {
    margin: 20px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.page-headers h1 {
    font-size: 32px;
    font-weight: 700;
    color: #424344;
    margin: 0;
}

.page-description {
    color: var(--text-soft);
    font-size: 16px;
    margin-top: 10px;
    max-width: 800px;
}



/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    margin: 20px 0 10px;
    color: #f6f9fb;
    font-size: 14px;
    background: #50715417;
    padding: 21px 18px;
    border-radius: 6px;
}

.breadcrumbs a {
    color: #f6f9fb;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--primary);
}
		

.footer {
	background: #1e3b4f;
	color: white;
	padding: 36px 0;
	margin-top: 40px;
}
.footer .container {
	display: flex;
	justify-content: space-between;
}

/* ===== ДЕСКТОПНАЯ ШАПКА ===== */
.header {
	/*position: fixed;*/
	/*top: 0;*/
	/*left: 0;*/
	right: 0;
	background: white;
	box-shadow: 0 2px 8px rgba(0,55,103,0.05);
	padding: 12px 0;
	border-bottom: 3px solid var(--primary);
	z-index: 1000;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
	transform: translateY(0);
	opacity: 1;
}

.header.header-hidden {
	transform: translateY(-100%);
	opacity: 0.95;
	pointer-events: none;
}
.header-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0;
}
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
}
.logo-icon { font-size: 30px; color: var(--primary-text); }
.logo-text { font-weight: 800; font-size: 26px; color: #003458; letter-spacing: -0.3px; }
.logo-text span { color: var(--primary-text); }

.nav-links a {
	color: #3d4246;
	text-decoration: none;
	margin: 0 18px;
	font-size: 15px;
	font-weight: 500;
}
.nav-links a.active { color: var(--primary-text); border-bottom: 3px solid var(--primary); padding-bottom: 5px; }

.user-actions {
	display: flex;
	align-items: center;
	gap: 24px;
}
.btn-add {
	background: var(--primary);
	color: white;
	border: none;
	padding: 10px 22px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: 0.15s;
}
.btn-add:hover { background: var(--brand-dark); }
.avatar { font-size: 30px; color: #8aa9c0; }

/* ===== МОБИЛЬНАЯ ШАПКА ===== */
.mobile-header {
	display: none;
	background: white;
	padding: 12px 16px;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--border-gray);
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(10px);
	background: rgba(255,255,255,0.95);
}

.mobile-logo {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mobile-logo i {
	font-size: 24px;
	color: var(--primary);
}

.mobile-logo span {
	font-weight: 800;
	font-size: 20px;
	color: #003458;
}

.mobile-logo span span {
	color: var(--primary);
}

.mobile-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.mobile-actions i {
	font-size: 22px;
	color: #2d506a;
}

.add-btn-mob {
	background: var(--primary);
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	box-shadow: 0 4px 8px rgba(80, 113, 84, 0.3);
}

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ ===== */
.scroll-nav {
	display: none;
	padding: 12px 16px 8px;
	white-space: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	background: white;
	border-bottom: 1px solid var(--border-gray);
}

.scroll-nav::-webkit-scrollbar {
	display: none;
}

.nav-chip {
	display: inline-flex;
	background: #f0f5f9;
	padding: 8px 16px;
	border-radius: 8px;
	margin-right: 8px;
	font-weight: 500;
	font-size: 14px;
	color: #2d506a;
	border: 1px solid #dde5ea;
}

.nav-chip.active {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

.nav-chip i {
	margin-right: 6px;
	font-size: 16px;
}

/* ===== ФИЛЬТР ===== */
.filter-region-link {
    position: relative;
    display: inline-block;
}

.region-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 30px;
    padding: 0px 0px;
    color: #1e506b;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}



.region-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #d1e2ed;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 14px rgba(0, 45, 65, 0.1);
    z-index: 100;
    display: none;
    margin-top: 5px;
}

.region-dropdown.show {
    display: block;
}

.region-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #1e506b;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.region-dropdown a:hover {
    background: var(--brand-light);
    color: var(--primary);
}

/* Обновленные стили для фильтра */
.filter-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 14px rgba(0, 45, 65, 0.06);
    border: 1px solid #7e9a8157;
}

.filter-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7fbfe;
    border: 1px solid #d1e2ed;
    border-radius: 30px;
    padding: 3px 15px;
    height: 45px;
}

.filter-item i {
    color: var(--primary);
    font-size: 16px;
}

.filter-item select,
.filter-item input {
    border: none;
    background: transparent;
    font-weight: 500;
    color: #1e506b;
    outline: none;
    font-size: 14px;
    cursor: pointer;
}

.filter-item select {
    min-width: 85px;
}

.filter-item.price-range {
    padding: 6px 12px;
}

.price-input {
    width: 70px;
    text-align: center;
}

.price-input::placeholder {
    color: #a0c0d2;
}

.filter-item .separator {
    color: #a0c0d2;
    font-weight: 500;
    margin: 0 2px;
}

/* Чекбоксы */
.filter-checkboxes {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1e506b;
    cursor: pointer;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Кнопка На карте */
.filter-map-btn {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 0 22px;
    height: 48px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-map-btn:hover {
    background: var(--brand-light);
}

.filter-map-btn i {
    font-size: 16px;
}

/* Кнопка Найти */
.filter-submit {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 28px;
    height: 48px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.15s;
    white-space: nowrap;
}

.filter-submit:hover {
    background: var(--brand-dark);
}

/* Динамические поля */
.dynamic-fields {
    display: contents;
}

/* ===== ПАНЕЛЬ УПРАВЛЕНИЯ СПИСКОМ (НОВЫЙ БЛОК) ===== */
        .list-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            background: white;
            padding: 12px 18px;
            border-radius: var(--radius-md);
            border: 1px solid #7e9a8157;
        }
        .found-count {
            font-size: 16px;
            font-weight: 600;
            color: #1f4a6f;
        }
        .found-count span {
            color: var(--primary);
            font-weight: 800;
            font-size: 18px;
            margin-right: 5px;
        }
        .sort-controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .sort-label {
            font-size: 14px;
            color: #4f6f82;
        }
        .sort-options {
            display: flex;
            gap: 8px;
        }
        .sort-option {
            padding: 6px 16px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 13px;
            cursor: pointer;
            border: 1px solid #d1e2ed;
            background: white;
            color: #1e506b;
            transition: 0.15s;
            text-decoration: none;
        }
        .sort-option:hover {
            border-color: var(--primary);
        }
        .sort-option.active {
            background: var(--primarybutton);
            color: white;
            border-color: var(--primarybutton);
        }


/* РАЗДВИЖНАЯ ПАНЕЛЬ ФИЛЬТРА */
.expand-btn {
	background: #eaf3f0;
	border: 1px solid var(--brand-light);
	border-radius: 30px;
	padding: 10px 18px;
	font-weight: 700;
	color: var(--brand-dark);
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin-left: auto;
}
.expand-btn .material-icons { font-size: 22px; }
.expand-panel {
	display: none;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	background: #f8fdfe;
	margin-top: 18px;
	padding: 24px 28px;
	border-radius: var(--radius-md);
	border: 1px solid #c7e0d9;
}
.expand-panel.show { display: grid; }
.panel-field {
	display: flex;
	flex-direction: column;
}
.panel-field label {
	font-size: 12px;
	font-weight: 700;
	color: #3b735b;
	margin-bottom: 6px;
	text-transform: uppercase;
}
.panel-field input, .panel-field select {
	padding: 10px 0;
	border: none;
	background: transparent;
	border-bottom: 2px solid #c2ddcf;
	font-weight: 500;
	color: #1b4c33;
	outline: none;
}

/* ===== ОСНОВНАЯ СЕТКА ===== */
        .content-grid {
            display: grid;
            grid-template-columns: 10fr 4fr;
            gap: 24px;
            margin: 20px 0;
        }

        /* левая колонка — карточки */
        .listing-grid {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* большие карточки */
        .card {
            background: white;
            height: 200px;
            border-radius: var(--radius);
            border: 1px solid #dfecf5;
            display: flex;
            padding: 0;
            gap: 0;
            transition: 0.12s;
            position: relative;
        }
        .card:hover {
            box-shadow: 0 12px 28px rgba(80,113,84,0.1);
            border-color: var(--primary);
        }

        /* слайдер фото */
        .card-slider {
            position: relative;
            width: 250px;
            min-height: 194px;
            background: #daeaf2;
            overflow: hidden;
            flex-shrink: 0;
			border-radius: 5px 0px 0px 5px;
        }
        .slider-container {
            position: relative;
            width: 100%;
            height: 217px;
        }
        .slider-container .slide {
            position: absolute;
            top: -10px;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
            display: block;
        }
        .slider-container .slide.active {
            opacity: 1;
            z-index: 1;
        }
        .badge-data {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgb(43 43 43 / 90%);
            backdrop-filter: blur(2px);
            color: white;
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 500;
            z-index: 20;
        }
        .slider-nav {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            gap: 6px;
            z-index: 20;
        }
        .slider-nav span {
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 15px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: all 0.2s;
            backdrop-filter: blur(2px);
        }
        .slider-nav span:hover {
            background: white;
            transform: scale(1.05);
        }
        .indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.6);
            cursor: pointer;
            transition: all 0.2s;
        }
        .indicator.active {
            background: var(--primary);
            transform: scale(1.2);
        }

        .card-info {
            flex: 2;
            padding: 0px 10px 5px 15px;
        }
        .card-header {
            display: flex;
			justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }
        .card-title {
            font-size: 17px;
            font-weight: 700;
            color: #002f48;
        }
        .card-badges {
            display: flex;
            gap: 8px;
        }
		/* Стили для тултипов */
[title] {
    position: relative;
    cursor: pointer;
}

/* Основной блок тултипа */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    /* Центрирование */
    bottom: calc(100% + 10px); /* Всегда над элементом с небольшим зазором */
    left: 50%;
    transform: translateX(-50%);
    
    /* Оформление */
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Анимация появления (по желанию) */
    animation: tooltipFade 0.2s ease-in-out;
}

/* Треугольник (стрелочка) */
[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 1px); /* Стык с элементом */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    z-index: 9999;
    pointer-events: none;
}

/* Чтобы родной браузерный тултип не мешал (необязательно, но желательно) */
/* [title] { pointer-events: auto; } */

@keyframes tooltipFade {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
        .badge-hot {
            background: #fc3e3e;
            color: white;
            padding: 4px 7px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 700;
        }
        .badge-top {
            background: #ff6d00;
            color: white;
            padding: 4px 8px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 900;
        }
		.badge-tops {
            background: #ff6d00;
            color: white;
            padding: 4px 8px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 900;
        }
		.badge-vip {
            background: #ffb01b;
            color: white;
            padding: 4px 7px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 700;
        }
		.badge-vips {
			position: absolute;
			top: 10px;
			right: 15px;
			background: #ffb01b;
			color: white;
			padding: 4px 7px;
			border-radius: 30px;
			font-size: 11px;
			font-weight: 700;
		}
		.badge-vipplus {
            background: #ffb01b;
            color: white;
            padding: 4px 7px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 700;
        }
		.badge-bargain {
			position:absolute;
			left:10px;
			bottom:10px;
			width:111px;
            background: #ffe213;
            color: #545151;
            padding: 2px 8px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 600;
			z-index:999;
        }
        .card-location {
            display: flex;
            align-items: baseline;
            gap: 6px;
            color: #262827;
            font-size: 14px;
            margin-bottom: 12px;
            background: var(--fon);
            padding: 5px 5px 5px 10px;
            border-radius: var(--radius);
            width: 100%;
        }
        .card-location .material-icons { font-size: 15px; color: var(--primary-text); }

        .card-params {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 10px 0 0px 10px;
        }
        .param {
            display: flex;
            align-items: baseline;
            gap: 4px;
            font-weight: 600;
            color: #1c1d1c;
        }
        .param .material-icons { color: var(--primary-text); font-size: 15px; }
        .param .label {
            font-size: 12px;
            color: #1c1d1c;
            margin-left: 0px;
            margin-top: 2px;
        }

        .card-description {
            font-size: 14px;
            color: #161a18;
            line-height: 1.5;
            margin-top: 10px;
            border-top: 1px dashed #c1ddd0;
            padding-top: 10px;
        }

        .card-side {
            min-width: 195px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            border-left: 1px dashed #c0d9cf;
            padding: 16px 16px 16px 18px;
        }
        .price-block {
            text-align: right;
        }
        .price-main {
            font-size: 21px;
            font-weight: 800;
            color: #3f403f;
            line-height: 1.2;
        }
        .price-meta {
            color: #48745f;
            font-size: 13px;
            margin: 5px 0 10px;
        }
        .badge-owner {
			display: inline-block;
			background: #ebf2f3;
			color: #1c1b1b;
			border: 1px solid #d0e1e3;
			border-radius: 20px;
			padding: 2px 10px;
			font-size: 12px;
			font-weight: 600;
			width: 100%;
			text-align: center;
		}
        .badge-agent {
			display: flex;
			background: #507154;
			color: #ffffff;
			border: 1px solid #4c7050;
			border-radius: 20px;
			padding: 2px 10px;
			font-size: 12px;
			font-weight: 600;
			width: 100%;
			text-align: center;
		}
        .card-actions {
            width: 100%;
        }
        .btn-flat {
            background: var(--primarybutton);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 30px;
            font-weight: 700;
            width: 100%;
            cursor: pointer;
            margin-bottom: 25px;
        }
        .btn-flat:hover { background: var(--primarybuttonhover); }
        .card-footnote {
            font-size: 11px;
            color: #678f7b;
            display: flex;
            justify-content: space-between;
            width: 100%;
            margin-top: 15px;
        }
        .card-footnote i { color: #f5b342; }
        .card-footnote .favorite-btn.active i { color: var(--danger); }

        /* ===== ПРАВАЯ КОЛОНКА ===== */
        .right-sidebar {
            display: flex;
            flex-direction: column;
        }

        /* Заголовок правого блока (НОВЫЙ) */
        .sidebar-title {
            font-size: 18px;
            font-weight: 800;
            color: #002f48;
            margin-bottom: 5px;
            padding: 0 5px;
        }
        .sidebar-title span {
            color: var(--primary);
            font-size: 14px;
            font-weight: 600;
            margin-left: 10px;
        }

        /* мини-карточки */
        .mini-card {
            background: white;
            border-radius: 10px;
            border: 1px solid #7e9a8157;
            overflow: hidden;
            transition: 0.1s;
            display: flex;
            align-items: stretch;
            min-height: 115px;
			margin-bottom: 10px;
        }
        .mini-card:hover { border-color: var(--primary);box-shadow: var(--shadow);}
        .mini-photo {
            width: 115px;
            flex-shrink: 0;
            background: #cde0d9;
            position: relative;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23507154" opacity="0.15"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>');
            background-repeat: no-repeat;
            background-position: center;
            background-size: 50px;
        }
        .mini-photo img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .mini-content {
            flex: 1;
            padding: 15px 14px;
            display: flex;
            flex-direction: column;
        }
        .mini-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            font-size: 15px;
            color: #002a41;
            margin-bottom: 0px;
        }
        .mini-price {
            color: #3f403f;
            font-weight: 800;
            font-size: 16px;
        }
		.mini-desc{
			color: #2e3230;
            font-weight: 500;
		}
        .mini-location {
            display: flex;
            align-items: center;
            gap: 4px;
            color: #307353;
            margin-bottom: 0px;
            font-size: 12px;
        }
        .mini-location .material-icons { font-size: 13px; }
        .mini-desc {
            font-size: 12px;
            color: #2e3230;
            border-top: 1px dashed #c9e2d3;
            padding-top: 6px;
        }





/* ===== КАЛЬКУЛЯТОР ===== */
.calc-mini {
	background: white;
	border-radius: var(--radius);
	padding: 24px 28px;
	margin: 30px 0 20px;
	border: 1px solid #d5e9df;
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}
.calc-left { flex: 2; min-width: 280px; }
.calc-left h3 { font-size: 22px; font-weight: 800; color: #002c48; margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.slider-item { margin-bottom: 20px; }
.slider-header { display: flex; justify-content: space-between; font-weight: 700; color: #29634b; }
input[type=range] {
	width: 100%; height: 6px; background: var(--brand-light); border-radius: 10px; -webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; width: 22px; height: 22px; background: var(--primary); border-radius: 6px; border: 3px solid white; cursor: pointer;
}
.calc-right {
	flex: 1; background: var(--fon); border-radius: var(--radius); padding: 24px; border: 2px solid var(--brand-light); text-align: center;
}
.calc-amount { font-size: 44px; font-weight: 800; color: var(--primary-text); line-height: 1; margin: 10px 0; }

/* ===== НАВИГАЦИЯ ПО КАТЕГОРИЯМ (НОВЫЙ БЛОК) ===== */
.category-nav {
	background: white;
	border-radius: var(--radius-md);
	padding: 0px 18px;
	margin: 15px 0 20px;
	box-shadow: 0 4px 14px rgba(0, 45, 65, 0.06);
	border: 1px solid #7e9a8157;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 25px;
}
.category-nav a {
	color: #424344;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: 0.15s;
	white-space: nowrap;
}
.category-nav a:hover {
	color: var(--primary);
}
.category-nav a.active {
	color: var(--primary);
	border-bottom: 2px solid var(--primary);
	padding-bottom: 3px;
}
.category-nav .separator {
	color: #a0c0d2;
	font-weight: 300;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-section {
	position: relative;
	margin: 30px 0 40px;
}

.reviews-slider {
	display: flex;
	gap: 18px;
	overflow: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
}

.reviews-slider .review-card {
	background: white;
	border-radius: var(--radius);
	padding: 22px;
	border: 1px solid #deefe7;
	flex: 0 0 calc(33.333% - 12px);
	display: flex;
	flex-direction: column;
	min-height: 185px;
	scroll-snap-align: start;
}

.reviewer {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.reviewer-avatar {
	width: 48px;
	height: 48px;
	background: var(--brand-light);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--primary);
	flex-shrink: 0;
}

.stars {
	color: #f5b342;
	letter-spacing: 1px;
}

.review-text-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.review-text-truncated {
	color: #424344;
	line-height: 1.5;
	font-style: italic;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 15px;
	flex: 1;
	padding-right: 5px;
}

.review-text-truncated.expanded {
	-webkit-line-clamp: unset;
	overflow: visible;
}

.review-expand-btn {
	background: none;
	border: none;
	color: var(--primary);
	cursor: pointer;
	font-weight: 500;
	padding: 0;
	margin-top: auto;
	text-align: left;
	text-decoration: underline;
	font-size: 14px;
	transition: color 0.2s;
}

.review-expand-btn:hover {
	color: var(--brand-dark);
}

.slider-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	border: 1px solid var(--border-gray);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--primary);
	font-size: 18px;
	transition: all 0.3s;
	z-index: 5;
}

.slider-nav-btn:hover {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

.slider-nav-btn.prev {
	left: -22px;
}

.slider-nav-btn.next {
	right: -22px;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
	display: flex; justify-content: center; gap: 8px; margin: 40px 0 30px;
}
.page {
	background: white; padding: 10px 20px; border-radius: 8px; font-weight: 700; color: var(--primary);
	border: 1px solid #c9e0d4; cursor: pointer;
}
.page.active { background: var(--primary); color: white; border: none; }

.footer {
	background: #1f384b; color: white; padding: 36px 0; margin-top: 40px; border-top: 4px solid var(--primary);
}

/* Нижняя навигация (только на мобильных) */
.bottom-nav {
	display: none;
	background: white;
	border-top: 1px solid var(--border-gray);
	justify-content: space-around;
	padding: 8px 16px 12px;
	position: sticky;
	bottom: 0;
	z-index: 10;
	backdrop-filter: blur(10px);
	background: rgba(255,255,255,0.95);
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #8aa9c0;
	font-size: 12px;
}

.nav-item i {
	font-size: 22px;
	margin-bottom: 2px;
}

.nav-item.active {
	color: var(--primary);
	font-weight: 500;
}
		
/* Кнопка назад */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--primary);
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	margin: 10px 0 20px;
	padding: 8px 0;
}
.back-link:hover {
	color: var(--brand-dark);
}

/* Основной лэйаут - 8 и 4 колонки */
.object-layout {
	display: grid;
	grid-template-columns: calc(100% - 400px) 402px;
	gap: 24px;
	width: 100%;
}

/* Левая колонка (8 колонок) */
.left-column {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 24px;
}

/* Галерея с прокруткой миниатюр */
.object-gallery {
	margin-bottom: 30px;
	position: relative;
}
.main-image {
	aspect-ratio: 16/9;
	background: var(--brand-light);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 15px;
	cursor: pointer;
	transition: opacity 0.2s;
}
.main-image:hover {
	opacity: 0.9;
}
.main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Кнопка избранного на фото */
.favorite-on-image {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 5;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: white;
	border: 1px solid var(--border-gray);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.favorite-on-image i {
	font-size: 20px;
	color: #1e3b4f;
}
.favorite-on-image.active {
	background: #ffeded;
	border-color: #ff6b6b;
}
.favorite-on-image.active i {
	color: #ff6b6b;
}
.favorite-on-image:hover {
	transform: scale(1.1);
}

/* Контейнер для миниатюр с горизонтальной прокруткой */
.gallery-thumbs-container {
	position: relative;
	width: 100%;
}
.gallery-thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 5px 0 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--primary) var(--border-gray);
	-webkit-overflow-scrolling: touch;
}
.gallery-thumbs::-webkit-scrollbar {
	height: 6px;
}
.gallery-thumbs::-webkit-scrollbar-track {
	background: var(--border-gray);
	border-radius: 10px;
}
.gallery-thumbs::-webkit-scrollbar-thumb {
	background: var(--primary);
	border-radius: 10px;
}

.thumb {
	flex: 0 0 auto;
	width: 93px;
	height: 65px;
	background: var(--brand-light);
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s;
}
.thumb:hover {
	border-color: var(--primary);
}
.thumb.active {
	border-color: var(--primary);
}
.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Заголовок и цена */
.object-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 25px;
}
.object-title h1 {
	font-size: 28px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 8px;
}
.object-location {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-soft);
}
.object-location i {
	color: var(--primary);
}
.object-price-block {
	text-align: right;
}
.object-prices {
	font-size: 36px;
	font-weight: 700;
	color: var(--primary);
	line-height: 1.2;
}
.object-price-label {
	font-size: 14px;
	color: var(--text-soft);
}

/* Кнопки действий с тултипами */
.action-buttons {
	display: flex;
	gap: 10px;
	margin: 15px 0 5px;
}
.action-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
	background: #f0f5f9;
	color: #1e3b4f;
}
.action-btn i {
	font-size: 16px;
}

/* Тултипы */
[data-tooltip]:before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	background: #1e2a36;
	color: white;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s;
	pointer-events: none;
	z-index: 100;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
[data-tooltip]:hover:before {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-12px);
}

/* Ссылка "Пожаловаться на объявление" */
.complaint-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-soft);
	font-size: 13px;
	text-decoration: none;
	margin: 10px 0;
	padding: 6px 12px;
	border-radius: 30px;
	background: #f0f5f9;
	transition: all 0.2s;
	cursor: pointer;
}
.complaint-link:hover {
	color: #ff6b6b;
	background: #ffeded;
}
.complaint-link i {
	font-size: 14px;
}

/* Модальное окно */
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 1000;
	backdrop-filter: blur(5px);
}
.modal-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
}
.claim-modal {
	background: white;
	border-radius: var(--radius);
	padding: 30px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.modal-close {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 24px;
	cursor: pointer;
	color: var(--text-soft);
	transition: color 0.2s;
}
.modal-close:hover {
	color: #ff6b6b;
}
.claim-modal h2 {
	font-size: 22px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 20px;
}

/* Стили для формы жалобы */
.claim-modal-form__reasons {
	margin-bottom: 20px;
}
.kr-radio {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
}
.kr-radio input[type="radio"] {
	width: 18px;
	height: 18px;
	margin-right: 10px;
	accent-color: var(--primary);
}
.kr-radio-control {
	font-size: 15px;
	color: #1e3b4f;
	cursor: pointer;
}
.claim-modal-form__input {
	margin-bottom: 20px;
}
.claim-modal-form__input textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border-gray);
	border-radius: var(--radius-md);
	font-size: 14px;
	resize: vertical;
	min-height: 100px;
	outline: none;
	transition: border-color 0.2s;
}
.claim-modal-form__input textarea:focus {
	border-color: var(--primary);
}
.claim-modal-form__footer {
	text-align: center;
}
.claim-modal-form__input {
	display: none;
}
.claim-modal-form__input.visible {
	display: block;
}
.kr-btn {
	background: var(--primary);
	color: white;
	border: none;
	padding: 14px 30px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.2s;
	width: 100%;
	margin-bottom: 15px;
}
.kr-btn:hover {
	background: var(--brand-dark);
}
.claim-modal-form__note {
	font-size: 13px;
	color: var(--text-soft);
	line-height: 1.6;
}

/* Статистика просмотров */
.view-stats {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0f5f9;
	padding: 6px 16px;
	border-radius: 30px;
	font-size: 13px;
	color: var(--text-soft);
	margin: 10px 0;
}
.view-stats i {
	color: var(--primary);
}
.view-stats strong {
	color: var(--primary);
	font-weight: 700;
}

/* Характеристики с иконками */
.object-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 30px 0;
	padding: 20px 0;
	border-top: 1px solid var(--border-gray);
	border-bottom: 1px solid var(--border-gray);
}
.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
}
.feature-icon {
	width: 44px;
	height: 44px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 20px;
}
.feature-text {
	font-size: 14px;
}
.feature-text strong {
	color: #424344;
	display: block;
	font-size: 15px;
	margin-bottom: 2px;
}

/* Мини-карта */
.mini-map {
	margin: 30px 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border-gray);
	height: 140px;
	transition: height 0.3s ease;
	position: relative;
}
.mini-map.expanded {
	height: 500px;
}
#miniMap {
	width: 100%;
	height: 100%;
}
.map-expand-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: white;
	border: 1px solid var(--border-gray);
	border-radius: 30px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.2s;
}
.map-expand-btn:hover {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

/* Описание */
.object-description {
	margin: 30px 0;
}
.object-description h2 {
	font-size: 22px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.object-description h2 i {
	color: var(--primary);
}
.object-description p {
	color: #1e3b4f;
	font-size: 15px;
	line-height: 1.8;
}

/* Детальная информация */
.object-details-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	margin: 25px 0;
}
.detail-row {
	display: flex;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px dashed var(--border-gray);
}
.detail-label {
	width: 120px;
	font-weight: 500;
	color: #424344;
}
.detail-value {
	color: #1e3b4f;
}

/* Правая колонка (4 колонки) */
.right-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Улучшенная карточка риелтора */
.agent-card {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.agent-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}
.agent-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--brand-light);
	overflow: hidden;
	border: 3px solid white;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.agent-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.agent-info {
	flex: 1;
}
.agent-name {
	font-size: 20px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 4px;
}
.agent-position {
	color: var(--primary);
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 8px;
}
.agent-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--brand-light);
	padding: 6px 12px;
	border-radius: 30px;
	width: fit-content;
}
.agent-rating i {
	color: #f5b342;
	font-size: 12px;
}
.agent-rating span {
	color: var(--text-main);
	font-size: 13px;
	font-weight: 500;
}

.agent-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 20px 0;
	padding: 15px 0;
	border-top: 1px solid var(--border-gray);
	border-bottom: 1px solid var(--border-gray);
}
.stat-item {
	text-align: center;
}
.stat-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary);
	display: block;
	line-height: 1.2;
}
.stat-label {
	font-size: 12px;
	color: var(--text-soft);
}

.agent-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #f0f5f9;
	padding: 8px 12px;
	border-radius: 30px;
	margin-bottom: 20px;
	font-size: 13px;
	color: #1e3b4f;
}
.agent-badge i {
	color: var(--primary);
}

/* Только кнопки, контакты удалены */
.agent-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 5px;
}
.agent-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 12px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
}

.btn-primary {
	background: var(--primarybutton);
	color: white;
}
.btn-primary:hover {
	background: var(--brand-dark);
}

.btn-wa {
	background: #25D366;
	color: white;
}
.btn-wa:hover {
	opacity: 0.9;
}
.btn-inst {
	background: #E4405F;
	color: white;
}
.btn-inst:hover {
	opacity: 0.9;
}

/* Карточка обычного пользователя */
.user-card {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.user-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.user-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--brand-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 36px;
	border: 3px solid white;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.user-info {
	flex: 1;
}

.user-name {
	font-size: 20px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 4px;
}

.user-status {
	color: var(--text-soft);
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 8px;
}

.user-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--brand-light);
	padding: 6px 12px;
	border-radius: 30px;
	width: fit-content;
}

.user-rating i {
	color: #f5b342;
	font-size: 12px;
}

.user-rating span {
	color: var(--text-main);
	font-size: 13px;
	font-weight: 500;
}

.user-details {
	margin: 20px 0;
	padding: 15px 0;
	border-top: 1px solid var(--border-gray);
	border-bottom: 1px solid var(--border-gray);
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	color: #1e3b4f;
	font-size: 14px;
}

.detail-item i {
	width: 20px;
	color: #fff;
	font-size: 16px;
	text-align: center;
}

.user-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 20px 0;
	padding: 15px 0;
	border-top: 1px solid var(--border-gray);
	border-bottom: 1px solid var(--border-gray);
}

.user-stats .stat-item {
	text-align: center;
}

.user-stats .stat-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary);
	display: block;
	line-height: 1.2;
}

.user-stats .stat-label {
	font-size: 12px;
	color: var(--text-soft);
}

.user-contacts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 20px 0;
}

.user-contacts .contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
}

.user-contacts .contact-icons {
	width: 36px;
	height: 36px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 16px;
}

.user-contacts .contact-text {
	font-size: 14px;
	font-weight: 500;
	color: #424344;
}

.user-contacts .contact-text small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--text-soft);
}

.user-actionss {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0px;
	margin-top: 5px;
}

.user-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 12px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
}

.user-btn.btn-primary {
	background: var(--primarybutton);
	color: white;
}

.user-btn.btn-primary:hover {
	background: var(--brand-dark);
}

.user-btn.btn-secondary {
	background: white;
	color: var(--primary);
	border: 1px solid var(--primary);
}

.user-btn.btn-secondary:hover {
	background: var(--brand-light);
}

.user-btn.btn-wa {
	background: #25D366;
	color: white;
}

.user-btn.btn-wa:hover {
	opacity: 0.9;
}

/* Контейнер для кнопки/номера */
.phone-action-container {
	width: 100%;
	min-height: 50px;
	margin-bottom: 10px;
}

/* Кнопка показа номера */
.show-phone-btn {
	cursor: pointer;
	border: none;
	font-family: inherit;
	width: 100%;
}

/* Блок с номером */
.phone-display-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	animation: fadeIn 0.3s ease;
}

.phone-number-display {
	background: var(--brand-light);
	padding: 14px 12px;
	border-radius: 6px;
	font-size: 18px;
	font-weight: 700;
	color: var(--primary);
	text-align: center;
	letter-spacing: 1px;
	border: 1px solid var(--primary);
}

.wa-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 12px;
	border-radius: 6px;
	font-weight: 500;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s;
	background: #25D366;
	color: white;
	width: 100%;
}

.wa-link:hover {
	opacity: 0.9;
}

/* Анимация */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
	
/* Горячие предложения */
.hot-listings {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 24px;
}
.hot-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.hot-header h3 {
	font-size: 20px;
	font-weight: 700;
	color: #424344;
}
.hot-header a {
	color: var(--primary);
	font-size: 14px;
	text-decoration: none;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 4px;
}
.hot-header a:hover {
	color: var(--brand-dark);
}

.hot-card {
	display: flex;
	gap: 16px;
	padding: 7px;
	background: #f9fafc;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-gray);
	transition: all 0.2s;
	text-decoration: none;
	color: inherit;
	margin-bottom: 16px;
}
.hot-card:last-child {
	margin-bottom: 0;
}
.hot-card:hover {
	border-color: var(--primary);
	background: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.hot-image {
	width: 110px;
	height: 110px;
	flex-shrink: 0;
	background: var(--brand-light);
	border-radius: var(--radius-md);
	position: relative;
	overflow: hidden;
}
.hot-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hot-price {
	position: absolute;
	top: 8px;
	left: 8px;
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 4px 8px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 11px;
}
.hot-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.hot-title {
	font-weight: 700;
	font-size: 16px;
	color: #424344;
}
.hot-location {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--text-soft);
	font-size: 13px;
	font-weight: 500;
}
.hot-location .material-icons {
	font-size: 14px;
	color: var(--primary);
}
.hot-params {
	display: flex;
	gap: 12px;
	font-size: 13px;
	color: var(--text-soft);
	font-weight: 500;
}
.hot-footer {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 12px;
	color: var(--text-soft);
	border-top: 1px solid var(--border-gray);
	padding-top: 8px;
}
.hot-footer i {
	color: #f5b342;
	margin-right: 4px;
}
.hot-footer span {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* Похожие объекты  */
.similar-section {
	margin: 40px 0;
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 30px;
}
.similar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
}
.similar-header h2 {
	font-size: 24px;
	font-weight: 700;
	color: #424344;
	display: flex;
	align-items: center;
	gap: 10px;
}
.similar-header h2 i {
	color: var(--primary);
}
.similar-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
}
.similar-item {
	background: #f9fafc;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-gray);
	overflow: hidden;
	transition: all 0.2s;
	text-decoration: none;
	color: inherit;
}
.similar-item:hover {
	border-color: var(--primary);
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.similar-item .image {
	aspect-ratio: 4/3;
	background: var(--brand-light);
	position: relative;
	overflow: hidden;
}
.similar-item .image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.similar-item .image .price-tag {
	position: absolute;
	bottom: 8px;
	left: 8px;
	background: rgba(0,0,0,0.8);
	color: white;
	padding: 4px 8px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}
.similar-item .content {
	padding: 12px;
}
.similar-item .content .title {
	font-weight: 700;
	font-size: 14px;
	color: #424344;
	margin-bottom: 4px;
}
.similar-item .content .address {
	font-size: 11px;
	color: var(--text-soft);
	display: flex;
	align-items: center;
	gap: 2px;
	margin-bottom: 6px;
}
.similar-item .content .address i {
	font-size: 12px;
	color: var(--primary);
}
.similar-item .content .specs {
	display: flex;
	gap: 8px;
	font-size: 11px;
	color: var(--text-soft);
}

.modal-backdrop {
	z-index: 1055 !important;
}
.modal-backdrop.show {
	opacity: 0.5;
}

/* Сетка карточек */
.properties-grid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 12px;
	margin: 5px 0;
}

/* Карточка */
.property-item {
	background: white;
	border-radius: 5px;
	border: 1px solid var(--border-gray);
	transition: all 0.2s;
	position: relative;
}
.property-item:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
#saleGrid{
	margin-bottom:40px;
}

/* Баннер */
.banner-item {
	grid-column: span 2;
	grid-row: span 2;
	background: white;
	border-radius: 5px;
	border: 2px solid var(--primary);
	overflow: hidden;
	position: relative;
}
.banner-item img {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: top;
	display: block;
}
.banner-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgb(0 0 0 / 30%), transparent);
	color: white;
	padding: 15px;
}
.banner-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 5px;
	color:#000;
}
.banner-subtitle {
	font-size: 14px;
	opacity: 0.9;
	color:#000;
}

/* Контейнер изображения */
.property-image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4/3;
	background: #daeaf2;
}
.property-image-wrapper img {
	width: 100%;
	height: 100%;
	border-radius: 5px 5px 5px 5px;
	object-fit: cover;
	display: block;
}

/* Цена на изображении (видна всегда) */
.property-on-image {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 9px;
    z-index: 2;
}
.price-on-image {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 500;
	font-size: 11px;
	z-index: 2;
}

/* Контент карточки */
.property-content {
	padding: 8px;
}
.property-specs {
	font-size: 12px;
	font-weight: 500;
	color: #424344;
	margin-bottom: 2px;
	line-height: 1.3;
}
.property-address {
	font-size: 10px;
	color: #4f6f82;
	display: flex;
	align-items: center;
	gap: 2px;
}
.property-address .material-icons {
	font-size: 12px;
	color: var(--primary);
}

/* Увеличенная карточка при наведении */
.expanded-card {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	width: 225px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	pointer-events: none;
	border: 1px solid var(--primary);
}

.property-item:hover .expanded-card {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.expanded-image {
	width: 100%;
	height: 160px;
	border-radius: 5px 5px 0px 0px;
	overflow: hidden;
	position: relative;
}
.expanded-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Черные полосы на увеличенной карточке */
.expanded-overlay-top,
.expanded-overlay-bottom {
	position: absolute;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 8px 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	font-weight: 500;
	z-index: 3;
}
.expanded-overlay-top {
	top: 0;
}
.expanded-overlay-bottom {
	bottom: 0;
}
.expanded-overlay-top span,
.expanded-overlay-bottom span {
	display: flex;
	align-items: center;
	gap: 5px;
}
.expanded-overlay-top i,
.expanded-overlay-bottom i {
	font-size: 12px;
}
.expanded-price-format {
	font-size: 13px;
	font-weight: 700;
}

.expanded-content {
	padding: 7px;
}
.expanded-specs {
	font-size: 13px;
	font-weight: 500;
	color: #424344;
	margin-bottom: 6px;
}
.expanded-address {
	font-size: 12px;
	color: #4f6f82;
	display: flex;
	align-items: center;
	gap: 4px;
}
.expanded-address .material-icons {
	font-size: 14px;
	color: var(--primary);
}

/* Калькулятор */
.calc-mini {
	background: white;
	border-radius: var(--radius);
	padding: 24px 28px;
	margin: 30px 0 20px;
	border: 1px solid var(--border-gray);
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}
.calc-left { 
	flex: 2;
	min-width: 280px; 
	}
.calc-left h3 { 
	font-size: 22px; 
	font-weight: 700; 
	color: #1f2224; 
	margin-bottom: 22px; 
	display: flex; 
	align-items: center; 
	gap: 8px; 
	}
.slider-item { 
	margin-bottom: 25px; 
	}
.slider-header { 
	display: flex; 
	justify-content: space-between; 
	font-weight: 500; color: #1e3b4f; 
	}
input[type=range] {
	width: 100%; 
	height: 6px; 
	background: var(--brand-light); 
	border-radius: 10px; 
	-webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none; 
	width: 18px; 
	height: 18px; 
	background: var(--primary); 
	border-radius: 4px; 
	border: none; 
	cursor: pointer;
}
.calc-right {
	flex: 1; 
	background: var(--fon); 
	border-radius: var(--radius); 
	padding: 24px; 
	border: 1px solid var(--brand-light); 
	text-align: center;
}
.calc-amount { 
	font-size: 44px; 
	font-weight: 700; 
	color: var(--primary-text); 
	line-height: 1; 
	margin: 5px 0px 20px 0px; 
	}

.sum{
	   display: flex;
       justify-content: space-between;
	   border-bottom:1px dashed #a8a8a9;
	   margin-bottom:13px;
	   padding-bottom:5px;
	}
	.sum-text{
		font-size:12px;
		margin-bottom:15px;
	}

/* О нас — теперь на всю ширину */
.about-section {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 40px;
	margin: 40px 0;
}
.about-title {
	font-size: 28px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	gap: 15px;
}
.about-title i {
	color: var(--primary);
	font-size: 32px;
}
.about-content {
	color: #424344;
	line-height: 1.8;
	font-size: 15px;
	text-align: left;
}
.about-content p {
	margin-bottom: 20px;
}
.about-content strong {
	color: var(--primary);
}

/* Профиль агента */
.agent-profile {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 30px;
	margin: 20px 0 30px;
}

.profile-header {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}

/* Фото агента с фильтром ч/б */
.profile-photo {
	width: 244px;
    height: 310px;
    border-radius: 3%;
	overflow: hidden;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border: 4px solid var(--primary);
}
.profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.4s ease;
}
.profile-photo:hover img {
	filter: grayscale(0%);
}

.profile-info {
	flex: 1;
}

.profile-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
}
.profile-name h1 {
	font-size: 32px;
	font-weight: 700;
	color: #424344;
}
.profile-badge {
	background: var(--primary);
	color: #fff;
	padding: 6px 16px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.profile-position {
	font-size: 18px;
	color: var(--text-soft);
	margin-bottom: 20px;
}

.profile-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	margin: 20px 0;
}
.stat-item {
	display: flex;
	flex-direction: column;
}
.stat-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--primary);
	line-height: 1.2;
}
.stat-label {
	font-size: 14px;
	color: var(--text-soft);
}

.profile-rating {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	margin: 15px 0;
}
.rating-stars {
	color: #f5b342;
	font-size: 20px;
	letter-spacing: 2px;
}
.rating-number {
	font-size: 24px;
	font-weight: 700;
	color: #424344;
}
.reviews-count {
	color: var(--text-soft);
}

.profile-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 25px 0 10px;
}
.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.2s;
}

/* Детальная информация */
.profile-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--border-gray);
}
.detail-icon {
	width: 44px;
	height: 44px;
	background: var(--primary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	flex-shrink: 0;
}
.detail-text {
	font-size: 15px;
	color: #1e3b4f;
}
.detail-text strong {
	color: #424344;
	display: block;
	font-size: 16px;
}

/* Табы */
.profile-tabs {
	display: flex;
	border-bottom: 1px solid var(--border-gray);
	margin: 30px 0 20px;
	gap: 5px;
}
.tab {
	padding: 12px 24px;
	font-weight: 500;
	color: var(--text-soft);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	transition: all 0.2s;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
	font-size: 16px;
}
.tab:hover {
	color: var(--primary);
}
.tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

/* Контент табов */
.tab-content {
	display: none;
	margin: 20px 0 30px;
}
.tab-content.active {
	display: block;
}

/* Стили для отзывов в профиле агента */
.agent-reviews-section {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.agent-review-card {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 20px;
	transition: all 0.2s;
}

.agent-review-card:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.agent-review-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.agent-reviewer-avatar {
	width: 50px;
	height: 50px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--primary);
	flex-shrink: 0;
}

.agent-reviewer-info {
	flex: 1;
}

.agent-reviewer-info h4 {
	font-size: 16px;
	font-weight: 700;
	color: #424344;
	margin: 0 0 4px 0;
}

.agent-review-date {
	font-size: 13px;
	color: var(--text-soft);
}

.agent-review-rating {
	display: flex;
	gap: 2px;
	font-size: 16px;
	color: #f5b342;
}

.agent-review-text {
	color: #1e3b4f;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
}

.agent-review-property {
	background: #f5f7fa;
	border-radius: var(--radius-md);
	padding: 10px 12px;
	font-size: 13px;
	color: var(--text-soft);
	display: flex;
	align-items: center;
	gap: 8px;
	border-left: 3px solid var(--primary);
}

.agent-review-property i {
	color: var(--primary);
}

/* Сетка объектов - 5 карточек в строку */
.objects-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin: 20px 0 30px;
}

/* Дополнительные стили для карточек объектов */
.object-card {
	display: block;
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	transition: all 0.2s;
	text-decoration: none;
	color: inherit;
}
.object-card:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.object-image {
	aspect-ratio: 4/3;
	background: #fff;
	position: relative;
	border-radius: var(--radius);
}
.object-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	border-radius: var(--radius);
}
.object-card:hover .object-image img {
	transform: scale(o);
}

.object-price {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 500;
	font-size: 13px;
	z-index: 2;
}

.object-content {
	padding: 15px;
}

.object-title {
	font-weight: 700;
	color: #424344;
	margin-bottom: 8px;
	font-size: 16px;
}

.object-specs {
	font-size: 13px;
	color: var(--text-soft);
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
}

.object-specs span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.object-specs i {
	color: var(--primary);
	font-size: 12px;
	width: 14px;
}

.object-address {
	font-size: 13px;
	color: var(--text-soft);
	display: flex;
	align-items: center;
	gap: 6px;
	border-top: 1px solid var(--border-gray);
	padding-top: 8px;
	margin-top: 4px;
}

.object-address i {
	color: var(--primary);
	font-size: 12px;
	width: 14px;
}

.object-image .favorite-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: auto;
	z-index: 3;
	color: var(--primary);
	padding: 12px 11px 10px 10px;
}

/* Отзывы на странице профиля */
.reviews-section {
	margin: 20px 0;
}
.review-item {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 25px;
	margin-bottom: 15px;
}
.review-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}
.reviewer-avatar {
	width: 50px;
	height: 50px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	font-size: 20px;
	flex-shrink: 0;
}
.reviewer-info h4 {
	font-size: 16px;
	font-weight: 700;
	color: #424344;
}
.review-date {
	font-size: 13px;
	color: var(--text-soft);
}
.review-rating {
	margin-left: auto;
	color: #f5b342;
}
.review-text {
	color: #1e3b4f;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 15px;
}
.review-property {
	background: #f5f7fa;
	border-radius: var(--radius-md);
	padding: 10px 15px;
	font-size: 14px;
	color: var(--text-soft);
	border-left: 3px solid var(--primary);
}

/* О специалисте */
.about-specialist {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 30px;
}
.about-specialist h3 {
	font-size: 20px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 20px;
}
.about-specialist p {
	color: #1e3b4f;
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 20px;
}
.specialist-skills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}
.skill-tag {
	background: var(--brand-light);
	color: var(--primary);
	padding: 6px 16px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
}

/* Похожие специалисты (мини-карточки) */
.similar-agents {
	margin: 40px 0;
}
.section-title {
	font-size: 24px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 25px;
}
.agents-mini-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.agent-mini-card {
	display: block;
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 20px;
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
}
.agent-mini-card:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.agent-mini-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	margin: 0 auto 15px;
	overflow: hidden;
	background: var(--brand-light);
}
.agent-mini-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.3s ease;
}
.agent-mini-card:hover .agent-mini-photo img {
	filter: grayscale(0%);
}
.agent-mini-name {
	font-weight: 700;
	color: #424344;
	text-align: center;
	margin-bottom: 5px;
}
.agent-mini-position {
	font-size: 12px;
	color: var(--text-soft);
	text-align: center;
}

.rating-summary {
	display: flex;
	align-items: center;
	gap: 30px;
	background: white;
	padding: 15px 30px;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
}
.rating-number {
	font-size: 48px;
	font-weight: 700;
	color: #000;
	line-height: 1;
}
.rating-stars {
	color: #f5b342;
	font-size: 24px;
	letter-spacing: 4px;
}
.rating-count {
	color: var(--text-soft);
	font-size: 14px;
}

/* Фильтр отзывов */
.reviews-filter {
	background: white;
	border-radius: var(--radius-md);
	padding: 16px 20px;
	margin-bottom: 30px;
	border: 1px solid var(--border-gray);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}
.filter-tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.filter-tab {
	padding: 8px 16px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid var(--border-gray);
	background: white;
	color: #1e506b;
	transition: all 0.2s;
}
.filter-tab:hover {
	border-color: var(--primary);
}
.filter-tab.active {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}
.filter-sort {
	display: flex;
	align-items: center;
	gap: 10px;
}
.filter-sort select {
	padding: 8px 30px 8px 16px;
	border-radius: 30px;
	border: 1px solid var(--border-gray);
	background: white;
	font-weight: 500;
	color: #1e506b;
	outline: none;
	font-size: 14px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b4b3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

/* Сетка отзывов */
.reviews-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
}

/* Карточка отзыва (горизонтальная версия) */
.reviews-grid .review-card {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	overflow: hidden;
	transition: all 0.2s;
	display: flex;
	flex-direction: row;
	height: 190px;
}
.reviews-grid .review-card:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.reviews-grid .review-card .review-header {
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	border-bottom: none;
	border-right: 1px solid var(--border-gray);
	min-width: 180px;
	height: 190px;
	justify-content: flex-start;
}
.reviews-grid .review-card .reviewer-avatar {
	width: 60px;
	height: 60px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--primary);
	flex-shrink: 0;
}
.reviews-grid .review-card .reviewer-info {
	text-align: center;
	width: 100%;
}
.reviews-grid .review-card .reviewer-info h4 {
	font-size: 16px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 8px;
}
.reviewer-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--text-soft);
}
.reviews-grid .review-card .review-date {
	display: flex;
	align-items: center;
	gap: 4px;
}
.reviews-grid .review-card .review-date i {
	font-size: 12px;
}
.review-stars {
	color: #f5b342;
	letter-spacing: 1px;
	font-size: 14px;
}
.reviews-grid .review-card .review-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.reviews-grid .review-card .review-text {
	color: #1e3b4f;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
	flex: 1;
}
.reviews-grid .review-card .review-property {
	background: #f5f7fa;
	border-radius: var(--radius-md);
	padding: 10px 12px;
	font-size: 13px;
	color: var(--text-soft);
	display: flex;
	align-items: center;
	gap: 8px;
	border-left: 3px solid var(--primary);
	margin-bottom: 12px;
}
.review-footer {
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.review-helpful {
	display: flex;
	align-items: center;
	gap: 15px;
}
.helpful-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-soft);
	font-size: 14px;
	cursor: pointer;
	transition: color 0.2s;
}
.helpful-btn:hover {
	color: var(--primary);
}
.helpful-btn i {
	font-size: 16px;
}

/* 2Gis блок */
.twogis-section {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 30px;
	margin-bottom: 40px;
	display: flex;
	align-items: center;
	gap: 30px;
	justify-content: space-between;
}

.twogis-logo {
	height: 60px;
	width: auto;
	flex-shrink: 0;
}

.twogis-text {
	font-size: 18px;
	color: #1e3b4f;
	flex: 1;
	margin: 0;
}

.twogis-text strong {
	color: var(--primary);
	font-weight: 700;
}

.btn-twogis {
	background: var(--primary);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: 30px;
	font-weight: 500;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
	white-space: nowrap;
}

.btn-twogis:hover {
	background: var(--brand-dark);
	color: white;
}

/* Форма отзыва */
.review-form-section {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 30px;
	margin: 40px 0;
}
.review-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}
.rating-select-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 5px;
	align-items: center;
}

.rating-select-stars input {
	position: absolute;
	left: -9999px;
}

.rating-select-stars label {
	cursor: pointer;
	font-size: 28px;
	color: #d0d0d0;
	transition: color 0.2s, text-shadow 0.2s;
	margin: 0;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rating-select-stars label i {
	font-size: 28px;
}

/* Checked state - keep highlight on selected and subsequent stars */
.rating-select-stars input:checked ~ label {
	color: #f5b342;
}

/* Hover effect - highlight hovered star and all subsequent stars */
.rating-select-stars label:hover,
.rating-select-stars label:hover ~ label {
	color: #f5b342;
}
.rating-option {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}
.rating-option input {
	width: auto;
	margin-right: 5px;
}
.rating-option span {
	color: #f5b342;
	font-size: 18px;
}
.form-submit {
	grid-column: span 1;
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 10px;
}
		
/* Сетка команды */
.team-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 25px;
	margin: 40px 0;
}

/* Карточка сотрудника (ссылка на профиль) */
.team-card {
	display: block;
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	overflow: hidden;
	transition: all 0.2s;
	text-decoration: none;
	color: inherit;
}
.team-card:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Контейнер для фото с фильтром ч/б */
.card-image {
	aspect-ratio: 1/1;
	background: var(--brand-light);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.4s ease;
}
.team-card:hover .card-image img {
	filter: grayscale(0%);
}

/* Плейсхолдер для фото (если нет изображения) */
.image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--brand-light) 0%, #d4e8e0 100%);
	color: var(--primary);
	font-size: 64px;
	filter: grayscale(100%);
	transition: filter 0.4s ease;
}
.team-card:hover .image-placeholder {
	filter: grayscale(0%);
}

.card-content {
	padding: 20px 15px;
	text-align: center;
}
.card-content h3 {
	font-size: 20px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 5px;
}
.card-position {
	color: #323232;
	font-weight: 500;
	font-size: 14px;
	margin-bottom: 10px;
	display: inline-block;
	padding: 4px 12px;
	background: #dbebed;
	border-radius: 30px;
}
.card-experience {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: var(--text-soft);
	font-size: 14px;
	margin: 10px 0 5px;
}
.card-experience i {
	color: var(--primary);
	font-size: 14px;
}

/* Блок с отзывами (звезда + количество) */
.card-reviews {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #f5b342;
	font-size: 14px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--border-gray);
}
.card-reviews i {
	font-size: 13px;
}
.card-reviews span {
	color: var(--text-soft);
	font-weight: 500;
	margin-left: 4px;
}
.review-stars {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Блок преимуществ */
.advantages-section {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 40px;
	margin: 40px 0;
}
.advantages-title {
	font-size: 24px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 30px;
	text-align: center;
}
.advantages-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
}
.advantage-item {
	text-align: center;
}
.advantage-icon {
    width: 70px;
    height: 70px;
    background: #dbebed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #323232;
    font-size: 30px;
}
.advantage-item h4 {
	font-size: 18px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 8px;
}
.advantage-item p {
	color: var(--text-soft);
	font-size: 14px;
	line-height: 1.5;
}

/* Сетка контактов */
.contacts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

/* Карточка контакта */
.contact-card {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 25px 20px;
	transition: all 0.2s;
	text-align: center;
}
.contact-card:hover {
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact-icon {
	width: 60px;
	height: 60px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	color: var(--primary);
	font-size: 28px;
}
.contact-card h3 {
	font-size: 18px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--brand-light);
}
.contact-content {
	color: #1e3b4f;
}
.contact-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 15px;
}
.contact-item i {
	color: var(--primary);
	width: 18px;
	font-size: 14px;
}
.contact-item a {
	color: #1e3b4f;
	text-decoration: none;
	transition: color 0.2s;
}
.contact-item a:hover {
	color: var(--primary);
}
.work-hours {
	text-align: left;
	max-width: 180px;
	margin: 0 auto;
}
.work-hours div {
	display: flex;
	justify-content: left;
	margin-bottom: 5px;
	font-size: 14px;
}
.work-hours .day {
	font-weight: 500;
}
.work-hours .time {
	color: var(--primary);
	font-weight: 500;
}

/* Карта и форма */
.map-form-section {
	gap: 20px;
	margin: 40px 0;
}

/* Карта */
.map-container {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	overflow: hidden;
}
.map-header {
	padding: 15px 20px;
	border-bottom: 1px solid var(--border-gray);
	display: flex;
	align-items: center;
	gap: 10px;
}
.map-header i {
	color: var(--primary);
	font-size: 20px;
}
.map-header span {
	font-weight: 500;
	color: #424344;
}
.map-frame {
	height: 350px;
	width: 100%;
}
.map-frame iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Форма обратной связи */
.contact-form {
	background: white;
	border-radius: var(--radius);
	border: 1px solid var(--border-gray);
	padding: 25px;
}
.form-title {
	font-size: 20px;
	font-weight: 700;
	color: #424344;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.form-title i {
	color: var(--primary);
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}
.form-submit-reviews {
	margin-top: 10px;
}
.submits{
	margin-left:20px;
}
/* Форма подачи объявления */
.form-container {
	background: white;
	border-radius: var(--radius);
	border: 1px solid #dfecf5;
	padding: 30px;
	margin: 20px 0 40px;
	box-shadow: 0 4px 14px rgba(0, 45, 65, 0.06);
}

.form-section {
	margin-bottom: 35px;
	border-bottom: 1px dashed #c1ddd0;
	padding-bottom: 25px;
}
.form-section:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.section-title {
	font-size: 20px;
	font-weight: 700;
	color: #002f48;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.section-title .material-icons {
	color: var(--primary);
	font-size: 24px;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group.full-width {
	grid-column: span 3;
}

.form-group input,
.form-group select,
.form-group textarea {
	padding: 12px 16px;
	border: 1px solid #d1e2ed;
	border-radius: 8px;
	font-size: 15px;
	color: #1e506b;
	background: #f7fbfe;
	outline: none;
	transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	border-color: var(--primary);
	background: white;
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

.input-hint {
	font-size: 12px;
	color: #678f7b;
}

/* Загрузка фото */
.photo-upload-area {
	border: 2px dashed #c1ddd0;
	border-radius: 12px;
	padding: 30px;
	text-align: center;
	background: #f7fbfe;
	cursor: pointer;
	transition: all 0.2s;
	grid-column: span 3;
}
.photo-upload-area:hover {
	border-color: var(--primary);
	background: #e2f0e6;
}
.photo-upload-area i {
	font-size: 48px;
	color: var(--primary);
	margin-bottom: 10px;
}
.photo-upload-area p {
	color: #424344;
	font-weight: 500;
}
.photo-upload-area small {
	color: #678f7b;
	font-size: 12px;
}

.photo-preview-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
	margin-top: 20px;
	grid-column: span 3;
}
.preview-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: #daeaf2;
}
.preview-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.preview-item .remove-photo {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(0,0,0,0.6);
	color: white;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
}

/* Радио и чекбоксы */
.radio-group {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	align-items: center;
}
.radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-weight: 500;
	color: #424344;
}
.radio-label input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--primary);
}

.checkbox-group {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
}
.checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: #424344;
}

/* Двойные поля (от - до) */
.range-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}
.range-inputs input {
	flex: 1;
}
.range-inputs span {
	color: #678f7b;
	font-weight: 500;
}

/* Кнопки формы */
.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin-top: 30px;
}


/* Контейнер для форм авторизации */
.auth-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
	margin: 20px 0 40px;
}

.auth-container {
	background: white;
	border-radius: var(--radius);
	border: 1px solid #dfecf5;
	padding: 40px;
	width: 100%;
	max-width: 450px;
	box-shadow: 0 4px 14px rgba(0, 45, 65, 0.06);
}

/* Табы переключения между формами */
.auth-tabs {
	display: flex;
	margin-bottom: 30px;
	border-bottom: 2px solid var(--border-gray);
	gap: 20px;
}
.auth-tab {
	padding: 10px 0;
	font-weight: 700;
	font-size: 18px;
	color: #8aa9c0;
	cursor: pointer;
	position: relative;
	transition: all 0.2s;
}
.auth-tab.active {
	color: var(--primary);
}
.auth-tab.active::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--primary);
	border-radius: 3px 3px 0 0;
}

/* Формы */
.auth-form {
	display: none;
}
.auth-form.active {
	display: block;
}

.form-group {
	margin-bottom: 0px;
}
.form-group input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #d1e2ed;
	border-radius: 8px;
	font-size: 15px;
	color: #1e506b;
	background: #f7fbfe;
	outline: none;
	transition: all 0.2s;
}
.form-group input[type="checkbox"] {
	width: auto;
	padding: 0;
	border: none;
	background: transparent;
	outline: revert;
	transition: none;
	flex-shrink: 0;
	accent-color: var(--primary);
}
.form-group input:focus {
	border-color: var(--primary);
	background: white;
}
.form-group input::placeholder {
	color: #a0c0d2;
}

.password-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #8aa9c0;
	cursor: pointer;
	font-size: 18px;
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	font-size: 14px;
}
.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #424344;
	cursor: pointer;
}
.remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--primary);
}
.forgot-link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	cursor: pointer;
}
.forgot-link:hover {
	text-decoration: underline;
}

.btn-auth {
	width: 100%;
	background: var(--primary);
	color: white;
	border: none;
	padding: 16px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: 0.15s;
	margin-bottom: 20px;
}
.btn-auth:hover {
	background: var(--brand-dark);
}

.auth-footer {
	text-align: center;
	color: #4f6f82;
	font-size: 14px;
}
.auth-footer a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 700;
	cursor: pointer;
}
.auth-footer a:hover {
	text-decoration: underline;
}


/* Социальные кнопки */
.social-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
}
.social-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #f7fbfe;
	border: 1px solid #d1e2ed;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #424344;
	font-size: 22px;
	cursor: pointer;
	transition: all 0.2s;
}
.social-btn:hover {
	background: var(--brand-light);
	border-color: var(--primary);
	color: var(--primary);
	transform: translateY(-2px);
}

/* Сообщения об ошибках/успехе */
.alert {
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
}
.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Контейнер для верификации */
.verify-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60vh;
	margin: 20px 0 40px;
}

.verify-container {
	background: white;
	border-radius: var(--radius);
	border: 1px solid #dfecf5;
	padding: 50px 40px;
	width: 100%;
	max-width: 550px;
	box-shadow: 0 4px 14px rgba(0, 45, 65, 0.06);
	text-align: center;
}

/* Иконка */
.verify-icon {
	width: 80px;
	height: 80px;
	background: var(--brand-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 25px;
}
.verify-icon .material-icons {
	font-size: 40px;
	color: var(--primary);
}

/* Заголовок */
.verify-title {
	font-size: 24px;
	font-weight: 800;
	color: #424344;
	margin-bottom: 10px;
}

/* Описание */
.verify-description {
	color: #4f6f82;
	font-size: 16px;
	margin-bottom: 30px;
	line-height: 1.5;
}
.verify-email {
	font-weight: 700;
	color: var(--primary);
}

/* Поля для кода */
.code-inputs {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.code-input {
	width: 60px;
	height: 70px;
	border: 2px solid #d1e2ed;
	border-radius: 12px;
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	color: #1e506b;
	background: #f7fbfe;
	outline: none;
	transition: all 0.2s;
}

.code-input:focus {
	border-color: var(--primary);
	background: white;
	box-shadow: 0 0 0 3px rgba(80, 113, 84, 0.1);
}

.code-input.error {
	border-color: #dc3545;
	background: #fff5f5;
}

.code-input.success {
	border-color: #28a745;
	background: #f0fff4;
}

/* Таймер */
.timer {
	font-size: 14px;
	color: #4f6f82;
	margin-bottom: 25px;
	padding: 10px;
	background: #f7fbfe;
	border-radius: 30px;
	display: inline-block;
	padding: 8px 25px;
}
.timer span {
	font-weight: 700;
	color: var(--primary);
}

/* Кнопка подтверждения */
.btn-verify {
	width: 100%;
	background: var(--primary);
	color: white;
	border: none;
	padding: 16px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: 0.15s;
	margin-bottom: 20px;
}
.btn-verify:hover {
	background: var(--brand-dark);
}
.btn-verify:disabled {
	background: #a0c0d2;
	cursor: not-allowed;
}

/* Разделитель */
.separator {
	display: flex;
	align-items: center;
	text-align: center;
	color: #8aa9c0;
	margin: 20px 0;
}
.separator::before,
.separator::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--border-gray);
}
.separator span {
	padding: 0 15px;
	font-size: 13px;
}

/* Блок с дополнительными действиями */
.additional-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
}

/* Кнопка повторной отправки */
.btn-resend {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
	padding: 14px 30px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: 0.15s;
	width: 100%;
	max-width: 280px;
}
.btn-resend:hover {
	background: var(--brand-light);
}
.btn-resend:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	border-color: #a0c0d2;
	color: #a0c0d2;
}

/* Ссылка назад */
.back-link {
	color: #8aa9c0;
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: color 0.2s;
	cursor: pointer;
	padding: 8px 16px;
}
.back-link:hover {
	color: var(--primary);
}
.back-link .material-icons {
	font-size: 16px;
}

/* Сообщения */
.alert {
	padding: 15px;
	border-radius: 8px;
	margin: 20px 0;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
}
.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
.alert-info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}






/* ── Map page layout (map.php) ───────────────────────────────── */
.map-page-wrap {
    display: flex;
    flex-direction: column;
    height: 690px;
    overflow: hidden;
}
.map-filter-bar {
    flex: 0 0 auto;
    background: #ffffff00;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    z-index: 100;
}
.map-body {
    flex: 1 1 0;
    display: flex;
    min-height: 0;
}
/* Map area — 8 cols */
.map-canvas-wrap {
    flex: 0 0 66.666%;
    position: relative;
}
.map-canvas-wrap #map {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
}
/* Listing sidebar — 4 cols */
.map-listings-sidebar {
    flex: 0 0 33.333%;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
    background: #f8f9fa;
    overflow: hidden;
}
.map-listings-header {
    flex: 0 0 auto;
    padding: 12px 14px 8px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.88rem;
    color: #555;
    font-weight: 500;
}
.map-listings-header strong {
    color: #222;
}
.map-listings-scroll {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 10px 10px 20px;
}
/* ── Sidebar listing card ──── */
.smap-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .15s;
    text-decoration: none;
    color: inherit;
	border: 1px solid #7e9a8157;
}
.smap-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.14);
}
.smap-card.active {
    box-shadow: 0 0 0 2px #0d696c, 0 3px 12px rgba(0, 0, 0, .14);
}
.smap-card-img {
    width: 90px;
    min-width: 90px;
    max-height: 90px;
    object-fit: cover;
}
.smap-card-img-placeholder {
    width: 90px;
    min-width: 90px;
    height: 90px;
    background: #cfeee7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1.4rem;
}
.smap-card-body {
    flex: 1;
    padding: 8px 10px;
    overflow: hidden;
}
.smap-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0d696c;
    white-space: nowrap;
}
.smap-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #222;
    margin: 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smap-card-meta {
    font-size: 0.76rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smap-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: 0.9rem;
}
/* ── Price-bubble marker ─── */
.price-marker {
    background: #fff;
    border: 2px solid #507154;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.price-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #507154;
}
.price-marker.hovered,
.price-marker:hover {
    background: #507154;
    color: #fff;
}
.price-marker.hovered::after,
.price-marker:hover::after {
    border-top-color: #507154;
}
/* Cluster icon override */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(46,204,113,.25) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: #507154 !important;
    color: #fff !important;
    font-weight: 700;
}
/* ── Type-filter toggle buttons ── */
.map-type-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    flex-wrap: wrap;
}
.map-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px 5px 10px;
    border: 2px solid #d1d5db;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
    opacity: 0.55;
    user-select: none;
}
.map-type-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.map-type-btn.active {
    opacity: 1;
    background: #fff;
    color: #222;
    border-color: #507154;
}
.map-type-btn:hover {
    border-color: #507154;
    opacity: 0.85;
}
/* ── Filter bar inner padding ── */
.map-filter-bar .filter-widget {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
/* ── Draw-to-search control ── */
.map-draw-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 400;
    background: #fff;
    border: 2px solid #aaa;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    transition: background .15s, border-color .15s, color .15s;
    color: #333;
}
.map-draw-btn.active {
    background: #3498db;
    border-color: #2980b9;
    color: #fff;
}
.map-draw-btn:hover:not(.active) {
    background: #f0f0f0;
    border-color: #888;
}
.map-draw-clear-btn {
    position: absolute;
    top: 10px;
    right: 185px;
    z-index: 400;
    background: #e74c3c;
    border: 2px solid #c0392b;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    color: #fff;
}
.map-draw-clear-btn:hover {
    background: #c0392b;
}
.map-draw-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    background: rgba(0,0,0,.7);
    color: #fff;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 0.82rem;
    pointer-events: none;
    display: none;
    white-space: nowrap;
}
@media (max-width: 900px) {
    .map-body { flex-direction: column; }
    .map-canvas-wrap { flex: 0 0 55vh; }
    .map-listings-sidebar { flex: 1 1 0; }
}

/* ─── Sidebar Filter Block ─────────────────────────────────────────── */
.sidebar-filter-block {
    background: var(--white, #fff);
    border: 1px solid #dfecf5;
    border-radius: var(--radius, 10px);
    padding: 16px;
    margin-bottom: 16px;
}
.sidebar-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #507154);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sidebar-filter-group {
    margin-bottom: 12px;
}
.sidebar-filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.sidebar-filter-input {
    width: 100%;
    padding: 10px 10px;
    border: 1.5px solid var(--border, #d8e8e0);
    border-radius: 7px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text, #1a2a1a);
    background: var(--white, #fff);
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.sidebar-filter-input:focus {
    border-color: var(--primary, #507154);
    outline: none;
}
.sidebar-filter-row {
    display: flex;
    gap: 6px;
}
.sidebar-filter-row .sidebar-filter-input {
    flex: 1;
}
.sidebar-filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.sidebar-filter-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 0.82rem;
    padding: 8px 10px;
}

/* ─── Category Badges on Cards ─────────────────────────────────────── */
.badge-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}
.badge-service {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.badge-gift {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}
.badge-event {
    background: #e3f2fd;
    color: #0d696c;
    border: 1px solid #90caf9;
}
.card-event-date {
    font-size: 0.8rem;
    color: #0d696c;
    margin: 4px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── Category Nav Active State ────────────────────────────────────── */
.category-nav a.active {
    color: var(--primary, #507154);
    font-weight: 700;
	font-size: 19px;
}

.price-free {
    color: #4c5e5e;
    font-weight: 700;
	font-size: 19px;
}
