/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');*/
/* =============================================
   1. RESET & VARIABLES
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');   
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:        #507154;
    --primarybutton:        #3D4C3F;
    --primarybuttonhover:   #2b3a2d;
	
	--light:          #afc4c638;
	--fon:            #e9e9e157;
	--primary-text:   #0C2D30;
	--brand-light:    #AFC4C6;  
    --green:          #303A3B;
	
    --primary-dark:   #367c7b;

    --primary-light:  #6a9470;
    --primary-bg:     #eef4ef;
    --secondary:      #2c3542;
    --secondary-light:#3d4f63;
    --gold:           #f5b342;
    --gold-light:     #f5ecd0;

    --surface:        #ffffff;
    --border:         #5071548c;
    --text:           #222b22;
    --text-muted:     #677a67;
    --white:          #ffffff;
    --danger:         #d94b3a;
    --danger-dark:    #b33829;
    --shadow:      0 2px 12px rgb(80 113 84 / 18%);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.14);
    --radius:         10px;
    --transition:     0.25s ease;
}

/* =============================================
   2. BASE
   ============================================= */
html { 
   scroll-behavior: smooth;
   scroll-padding-top: 120px;
 }

body {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
	background-color: #f4f7f6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--primarybuttonhover); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: poMontserrat;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Прелоадер на весь экран */
.preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff00;
	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); }
}
 /* Основной текст (ЕВРАЗИЯ KST) */
.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;
	poMontserrat-events: none;
	text-align: center;
}

body.loaded .content {
	opacity: 1;
	poMontserrat-events: all;
}

/* =============================================
   3. LAYOUT
   ============================================= */
.container {
    width: calc(95%);
	margin: 0 auto;
}

.main-content {
    flex: 1;
	padding-top: 90px;
}

/* Публичный поиск начинается сразу под шапкой, как главная и карта. */
.dashboard-layout--public .main-content {
    padding-top: 0;
}

.section {
    padding: 48px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    position: relative;
    padding-left: 14px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* =============================================
   4. HEADER
   ============================================= */

/* Sticky wrapper: top bar + header + search panel */
.site-top-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Top bar ─────────────────────────────────── */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e4eaed;
	padding: 7px 35px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    height: 40px;
    gap: 16px;
}

.top-bar-address {
    font-size: 0.93rem;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-address i {
    color: var(--primary);
    font-size: 0.85rem;
}

.top-bar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.top-bar-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-nav a {
    padding: 4px 10px;
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.top-bar-nav a:hover {
    color: var(--primary);
}

/* ── Language switcher ───────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border: 1.5px solid #dde4e8;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: poMontserrat;
    background: #f5f7f8;
    color: #444;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.lang-btn:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.site-header {
    background: var(--primary);
    box-shadow: var(--shadow);
    padding: 5px 35px;
}

.header-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ── Header action buttons (Favorites & Search) ─ */
.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: poMontserrat;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition);
    font-family: inherit;
    line-height: 1;
}

.header-action-btns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    color: #fff;
    font-size: 1.53rem;
    font-weight: 600;
    cursor: poMontserrat;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition);
    font-family: inherit;
    line-height: 1;
}
.header-action-btns-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    color: #fff;
    font-size: 1.53rem;
    font-weight: 600;
    cursor: poMontserrat;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition);
    font-family: inherit;
    line-height: 1;
}
.header-action-btns-chat:hover {
	color: #fff;
}
.header-action-btns:hover {
	color: #fff;
}
.header-favorites-link {
    position: relative;
}
.header-favorites-badge {
    position: absolute;
    right: 1px;
    top: 2px;
    margin: 0;
}
.header-favorites-badge.is-hidden {
    display: none;
}

.header-action-btn:hover,
.header-action-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
    text-decoration: none;
}

.header-action-btn i {
    font-size: 1.05rem;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 80px;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.site-logo:hover { color: var(--primarybuttonhover); }

.site-logo .logo-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.main-navigation { flex: 1; }

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 10px;
	justify-content: end;
}

.main-navigation a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 0.93rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.main-navigation a:hover {
    color: var(--white);
	background: var(--primarybuttonhover);
    border-color: var(--primarybuttonhover);
	border-radius: var(--radius);
}

.main-navigation a.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    cursor: poMontserrat;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   5. USER DROPDOWN
   ============================================= */
.user-area {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: var(--primary-bg);
    border: 1px solid var(--border);
    cursor: poMontserrat;
    transition: background var(--transition), border-color var(--transition);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--green);
}

.user-trigger:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.open .user-dropdown-menu,
.user-dropdown.show .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a,
.user-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    cursor: poMontserrat;
    font-family: inherit;
    transition: background var(--transition), color var(--transition);
    text-align: left;
}

.user-dropdown-menu a:hover,
.user-dropdown-menu button:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 12px;
}

.user-dropdown-menu .dropdown-header {
    padding: 10px 16px 8px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
}

.user-dropdown-menu .dropdown-header:hover {
    background: none;
    color: var(--primary);
}

/* Dropdown header: name + role badge */
.user-dropdown-menu .dropdown-header {
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
    cursor: default;
    font-size: 0.88rem;
}

.dropdown-user-name {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

/* Balance row */
.dropdown-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.dropdown-balance-label {
    color: var(--text-muted);
    white-space: nowrap;
}

.dropdown-balance-amount {
    font-weight: 700;
    color: var(--text);
    flex: 1;
    white-space: nowrap;
}

.user-dropdown-menu a.dropdown-topup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff !important;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}

.user-dropdown-menu a.dropdown-topup-icon:hover {
    background: var(--primarybuttonhover);
    color: #fff !important;
    transform: scale(1.12);
}

.user-dropdown-menu a.dropdown-topup-icon,
.user-dropdown-menu a.dropdown-topup-icon:hover {
    width: 22px;
    height: 22px;
    min-width: 22px;
    padding: 0;
}


.dropdown-role {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.02em;
}

.dropdown-role.role-admin {
    background: #fdebd0;
    color: #b7770d;
}

.dropdown-role.role-mod {
    background: #d6eaf8;
    color: #1a5276;
}

.dropdown-role.role-agent {
    background: var(--primary-bg);
    color: var(--primarybuttonhover);
}

/* Dropdown item accent/danger */
.user-dropdown-menu a.dropdown-item-accent {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-bg);
}

.user-dropdown-menu a.dropdown-item-accent:hover {
    background: #ddeedd;
    color: var(--primarybuttonhover);
}

.user-dropdown-menu a.dropdown-item-danger {
    color: var(--danger);
}

.user-dropdown-menu a.dropdown-item-danger:hover {
    background: #fdf0ef;
    color: var(--danger-dark);
}

.user-dropdown-menu .logout-form {
    margin: 0;
    padding: 0;
}

.user-dropdown-menu .logout-form .dropdown-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.nav-highlight a {
    background: #3D4C3F;
    color: #ffffff !important;
    border: 2px solid #3d4c3f;
    padding: 12px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-highlight a:hover {
    background: #2b3a2d;
    color: #ffffff !important;
	border: 2px solid #3d4c3f;
	font-weight:600;
}

/* User avatar mini in header button */
.user-avatar-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dropdown-arrow {
    font-size: 0.75rem;
    opacity: 0.9;
	color: #fff;
	margin-left: 7px;
}

/* =============================================
   6. BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 15px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: poMontserrat;
    border: 2px solid transparent;
    text-decoration: none;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    white-space: nowrap;
    line-height: 1.3;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primarybutton);
    color: var(--white);
    border-color: var(--primarybutton);
}
.btn-primary:hover {
    background: var(--primarybuttonhover);
    border-color: var(--primarybuttonhover);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(80,113,84,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primarybutton);
    border: 1px solid var(--primarybutton);
}
.btn-outline:hover {
    background: var(--primarybutton);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(80,113,84,0.25);
}

.btn-secondary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primarybuttonhover);
    border-color: var(--primarybuttonhover);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger-dark);
    border-color: var(--danger-dark);
    color: var(--white);
}

.btn-gold {
    background: #e6b01c;
    color: #242323;
    border-color: #dba81b;
}
.btn-gold:hover {
    background: #e6b01c;
    border-color: #dba81b;
    color: #242323;
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 0.82rem;
    border-radius: var(--radius);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-promote {
    background: linear-gradient(135deg, #ff7e2f, #ff5a1f);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(255,90,31,0.3);
}
.btn-promote:hover {
    background: linear-gradient(135deg, #ff5a1f, #e04010);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255,90,31,0.45);
}

.btn-light {
    background: var(--light);
    color: var(--green);
    border-color: var(--border);
}
.btn-light:hover {
    background: var(--border);
    color: var(--green);
}

/* =============================================
   7. HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, #2c3542 0%, #3d5941 50%, var(--primary) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    poMontserrat-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    color: var(--white);
}

.hero-stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
    display: block;
}

/* =============================================
   8. SEARCH FORM
   ============================================= */
.search-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
    z-index: 2;
}

.search-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-form-row .form-group {
    flex: 1;
    min-width: 160px;
    margin-bottom: 0;
}

.search-form-row .btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 24px;
}

.advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--primary);
    cursor: poMontserrat;
    font-weight: 500;
    padding: 4px 0;
    background: none;
    border: none;
    font-family: inherit;
}

.advanced-toggle:hover { color: var(--primarybuttonhover); }

.advanced-fields {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.advanced-fields.open { display: block; }

.search-page-form {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

/* =============================================
   9. LISTING CARDS
   ============================================= */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.listing-card {
	height: 425px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-card:hover {
    border-color: rgba(80,113,84,0.2);
}

.listing-card-img {
    height: 210px;
    position: relative;
    background: var(--light);
}

.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 10px 10px 0px 0px;
    transition: transform 0.4s ease;
}

.listing-card:hover .listing-card-img img {
    transform: scale(1.00);
}

.listing-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    color: var(--primary-light);
    font-size: 3rem;
}

.deal-badge {
    position: absolute;
	background: var(--primary);
    color: #fff;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.deal-badge--sale {
    background: var(--primary);
    color: var(--white);
}

.deal-badge--rent {
    background: #22863a;
    color: var(--white);
}

.deal-badge--buy {
    background: var(--green);
    color: var(--white);
}

.favorite-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
	color: #367c7b;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    cursor: poMontserrat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition), transform var(--transition);
    z-index: 3;
    backdrop-filter: blur(4px);
}

.favorite-btn:hover {
    background: var(--white);
}

.favorite-btn.active { color: var(--primary); }

.listing-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.listing-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.listing-price-sub {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 400;
    margin-top: 1px;
}

.listing-title {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-meta {
    font-size: 0.8rem;
    color: var(--primary);
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-top: 2px;
	padding-top: 7px;
    border-top: 1px solid #c4c4c4;
}

.listing-meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* =============================================
   10. AGENT BADGE
   ============================================= */
.agent-eurasia-badge {
    display: flex;
    background: #507154;
    color: #ffffff;
    border: 1px solid #4c7050;
    border-radius: var(--radius);
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    width: 42%;
    text-align: center;
}

/* На ноутбучных ширинах имя агента не должно переноситься внутри бейджа. */
@media (min-width: 1024px) and (max-width: 1799px) {
    .agent-eurasia-badge {
        box-sizing: border-box;
        width: 42%;
        min-width: 142px;
        white-space: nowrap;
        align-items: center;
        justify-content: center;
    }
}

/* Badges row inside listing card image */
.listing-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 3;
}
.listing-card-badges .deal-badge,
.listing-card-badges .listing-badge {
    position: static;
}
.listing-card-badges .badge-vips {
    position: static;
}

/* Short description in similar listing cards */
.listing-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #666);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.listing-card-attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.listing-card-attr {
    font-size: 0.75rem;
    color: var(--text-secondary, #666);
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
}

.listing-card-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.listing-card-agent-name {
    font-size: 0.8rem;
    color: var(--primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   11. LISTING DETAIL
   ============================================= */
.listing-detail {
    padding: 32px 0 48px;
}

.listing-detail-header h1 {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--green);
    margin-bottom: 8px;
    line-height: 1.3;
}

.listing-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin: 12px 0;
}

.listing-detail-price-per {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 400;
}

.listing-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
    margin-top: 24px;
}

.gallery {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--green);
}

.gallery-main {
    position: relative;
    height: 440px;
    overflow: hidden;
    background: #1a1a1a;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    cursor: poMontserrat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: background var(--transition);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.gallery-nav:hover { background: var(--white); }
.gallery-nav--prev { left: 12px; }
.gallery-nav--next { right: 12px; }

.gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: rgba(0,0,0,0.25);
    overflow-x: auto;
}

.gallery-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    cursor: poMontserrat;
    opacity: 0.65;
    transition: opacity var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumb.active,
.gallery-thumb:hover { opacity: 1; border-color: var(--white); }

.listing-description {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 20px;
}

.listing-description h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 12px;
}

.listing-description p {
    color: var(--text);
    line-height: 1.75;
    white-space: pre-line;
}

.listing-props {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-top: 20px;
}

.listing-props h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 16px;
}

.props-table {
    width: 100%;
    border-collapse: collapse;
}

.props-table tr {
    border-bottom: 1px solid var(--border);
}

.props-table tr:last-child { border-bottom: none; }

.props-table td {
    padding: 10px 0;
    font-size: 0.9rem;
    vertical-align: top;
}

.props-table td:first-child {
    color: var(--primary);
    width: 45%;
    font-weight: 500;
}

.props-table td:last-child {
    color: var(--text);
    font-weight: 600;
}

.contact-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(48, 75, 54, 0.07);
    border: 1px solid #d5e4d7;
    padding: 22px 18px 20px;
    position: static;
}

.contact-card-agent {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.contact-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    overflow: hidden;
}

.contact-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.contact-card-role {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 2px;
}

.contact-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =============================================
   11b. LISTING DETAIL — REDESIGN (krisha-style)
   ============================================= */

/* Container */
.ld-container { padding-top: 20px; padding-bottom: 60px; }

/* Lightbox */
.ld-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.ld-lightbox--open { display: flex; }
.ld-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.ld-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 8px 18px;
    cursor: poMontserrat;
    border-radius: 6px;
    z-index: 10000;
    transition: background 0.2s;
}
.ld-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.ld-lightbox__nav--prev { left: 16px; }
.ld-lightbox__nav--next { right: 16px; }
.ld-lightbox__close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: none;
    color: #fff;
    border: none;
    font-size: 2.2rem;
    cursor: poMontserrat;
    z-index: 10000;
    line-height: 1;
}
.ld-lightbox__counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.95rem;
    background: rgba(0,0,0,0.5);
    padding: 4px 14px;
    border-radius: 12px;
}

/* Breadcrumb */
.ld-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--primary);
    margin-bottom: 14px;
}
.ld-breadcrumb a { color: var(--primary-text); text-decoration: none; }
.ld-breadcrumb a:hover { color: var(--primary-text); }
.ld-breadcrumb__sep { color: var(--border); margin: 0 2px; }
.ld-breadcrumb__current { color: var(--text); font-weight: 500; }

/* Title row */
.ld-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ld-address {
    font-size: 0.9rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.ld-address i { color: var(--primary-text); }
.ld-title-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}
.ld-views-badge,
.ld-date-badge {
    font-size: 0.78rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* Main layout */
.ld-layout {
	display: flex;
    width:100%;
    gap: 24px;
    align-items: start;
}
.ld-left{
	width:70%;
}
/* Gallery grid (krisha-style) */
.ld-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 4px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a1a1a;
}
.ld-gallery__main {
    position: relative;
    grid-column: 1;
    grid-row: 1 / 3;
    height: 472px;
    overflow: hidden;
}
.ld-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.ld-gallery__main:hover img { transform: scale(1.02); }
.ld-gallery__deal-badge.deal-badge--inline {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
}
.ld-gallery__promo-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 3;
    text-transform: uppercase;
}
.ld-gallery__promo-badge--vip {
    background: linear-gradient(135deg, var(--gold), #b5893a);
    color: #fff;
}
.ld-gallery__promo-badge--top {
    background: linear-gradient(135deg, var(--primary), #3d5941);
    color: #fff;
}

.ld-gallery__grid {
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
    height: 472px;
}
.ld-gallery__grid-item {
    position: relative;
    overflow: hidden;
    height: 235px;
}
.ld-gallery__grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.ld-gallery__grid-item:hover img { transform: scale(1.04); }
.ld-gallery__grid-item--more .ld-gallery__grid-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 6px;
    poMontserrat-events: none;
}
.ld-gallery__grid-item--more .ld-gallery__grid-more-overlay i { font-size: 1.6rem; }

.ld-gallery__empty {
    grid-column: 1 / -1;
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e8eee8;
    color: var(--primary);
    font-size: 3rem;
    gap: 10px;
}
.ld-gallery__empty span { font-size: 0.95rem; }

.ld-gallery__all-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: poMontserrat;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    box-shadow: var(--shadow);
    transition: background 0.2s;
    z-index: 4;
    backdrop-filter: blur(4px);
}
.ld-gallery__all-btn:hover { background: #fff; }

/* Single-image gallery: stretch main photo full width */
.ld-gallery--single .ld-gallery__main {
    grid-column: 1 / -1;
}

/* Fill gallery grid for fewer than 4 side images */
.ld-gallery__grid--1 .ld-gallery__grid-item {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    height: auto;
}
.ld-gallery__grid--2 .ld-gallery__grid-item {
    grid-column: 1 / -1;
    height: auto;
}
.ld-gallery__grid--3 .ld-gallery__grid-item:nth-child(3) {
    grid-column: 1 / -1;
    height: auto;
}

/* Quick characteristic chips */
.ld-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 4px;
}
.ld-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
    box-shadow: var(--shadow);
}
.ld-chip__label {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.ld-chip__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
}

/* Section card */
.ld-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-top: 16px;
    box-shadow: var(--shadow);
}
.ld-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Description */
/* ~3 lines at line-height 1.75 ≈ 4.5em */
.ld-description__text {
    color: var(--text);
    line-height: 1.75;
    max-height: 7.3em;
    overflow: hidden;
    transition: max-height 0.4s ease;
    white-space: pre-line;
}
.ld-description__text--expanded { max-height: 600em; }
.ld-description__toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: poMontserrat;
    padding: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ld-description__toggle:hover { color: var(--primarybuttonhover); }

/* Properties rows */
.ld-props { display: flex; flex-direction: column; }
.ld-props__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.ld-props__row:last-child { border-bottom: none; }
.ld-props__key {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 500;
    flex: 0 0 auto;
    min-width: 40%;
}
.ld-props__val {
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

/* Floor plan */
.ld-floor-plan {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

/* Floor plan + Video split layout */
.ld-plan-wrap {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
.ld-plan-wrap__image {
    flex: 2 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ld-plan-wrap__image .ld-floor-plan {
    flex: 1;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}
.ld-plan-wrap__video {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.ld-plan-wrap__video .ld-video-thumb {
    flex: 1;
    aspect-ratio: unset;
}
.ld-plan-wrap__video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ld-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    overflow: hidden;
    cursor: poMontserrat;
    background: #1a1a1a;
    border: 1px solid var(--border);
}
.ld-video-thumb__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ld-video-thumb__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.35);
}
.ld-video-thumb__play i {
    font-size: 2.2rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.ld-video-thumb:hover .ld-video-thumb__play {
    opacity: 1;
}
.ld-video-thumb--placeholder {
    cursor: default;
    background: #f5f5f5;
    border: 2px dashed var(--border);
}
.ld-video-thumb__placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 2.5rem;
}

/* Video modal */
.ld-video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.ld-video-modal--open {
    display: flex;
}
.ld-video-modal__inner {
    position: relative;
    width: min(360px, 90vw);
    aspect-ratio: 9 / 16;
    max-height: 90vh;
}
.ld-video-modal__player {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #000;
    display: block;
}
.ld-video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: poMontserrat;
    line-height: 1;
    padding: 0 4px;
}

/* Stats */
.ld-stats__boxes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

/* Reviews */
.ld-reviews__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ld-review-card {
    background: var(--light);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
}
.ld-review-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ld-review-card__stars { color: #f39c12; }
.ld-review-card__date { color: var(--primary-text); font-size: 0.8rem; margin-left: auto; }
.ld-review-card__text { margin: 0; color: var(--text); line-height: 1.6; }
.ld-reviews__empty { color: var(--primary-text); font-size: 0.9rem; }
.ld-reviews__login-prompt { margin-top: 12px; font-size: 0.9rem; color: var(--primary-text);font-weight: 700; }
.ld-review-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.ld-review-form__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 14px;
}

/* RIGHT SIDEBAR */
.ld-right { position: sticky; width:30%; top: 160px; }
.ld-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Price block */
.ld-price-block {
    padding: 20px 20px 16px;
 /* border-bottom: 1px solid var(--border);*/
    position: relative;
}
.ld-price-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.ld-btn-fav-price {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: poMontserrat;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
    margin-top: 2px;
}
.ld-btn-fav-price:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #5071540a;
}
.ld-btn-fav-price.ld-btn-fav--active {
    border-color: var(--primary);
    color: var(--primary);
    background: #5071540a;
}
.ld-btn-fav-price.ld-btn-fav--active i { color: #507154; }
.ld-price {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--green);
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.ld-price-per {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 500;
}

/* Contact actions */
.ld-contact-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
 /* border-bottom: 1px solid var(--border);*/
}
.ld-btn-phone {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 13px 16px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ld-btn-phone--revealed.btn-primary {
    background: var(--primarybutton);
    border-color: var(--primarybutton);
}
.ld-btn-chat {
    width: 100%;
    justify-content: center;
    font-size: 0.92rem;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ld-btn-fav {
    width: 100%;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    cursor: poMontserrat;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.ld-btn-fav:hover {
    border-color: #e05252;
    color: #e05252;
    background: #fff5f5;
}
.ld-btn-fav--active {
    border-color: #e05252;
    color: #e05252;
    background: #fff5f5;
}
.ld-btn-fav--active i { color: #e05252; }

/* Seller info */
.ld-seller {
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.ld-seller__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.ld-seller__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ld-seller__name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.ld-seller__role { font-size: 0.78rem; color: var(--primary-text); }
.ld-seller__profile-link { font-size: 0.78rem; color: var(--primary-text); }
.ld-seller__profile-link:hover { color: var(--primarybuttonhover); }
.ld-seller__email {
    font-size: 0.78rem;
    color: var(--primary);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Owner management links */
.ld-owner-actions {
    padding: 14px 20px;
}

/* Similar listings */
.ld-similar { margin-top: 48px; }
.ld-similar__header { margin-bottom: 18px; }
.ld-similar__title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green);
}
.ld-hot-offers { display: flex; flex-direction: column; gap: 10px; }
.ld-hot-offers__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
}

/* =============================================
   12. SIDEBAR WIDGET
   ============================================= */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-bg);
}

/* =============================================
   13. FORMS
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.5;
    border-radius: var(--radius);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80,113,84,0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--primary);
    opacity: 0.7;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23677a67' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: poMontserrat;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.65;
}

.promo-badge--vip {
    position: relative;
    background: red;
    color: #fff;
    display: inline-flex;     
    align-items: center;      
    justify-content: center; 
    width: 24px;        
    height: 24px;  
    border-radius: 50%;
    font-size: 12px;  
    cursor: help;
}
[data-title]:hover::before,
[data-title]:hover::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    poMontserrat-events: none;
}
[data-title]:hover::before {
    content: '';
    bottom: calc(100% + 1px);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}
[data-title]:hover::after {
    content: attr(data-title);
    bottom: calc(100% + 10px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    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;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes tooltipFadeLeft {
    from { opacity: 0; transform: translateY(50%) translateX(5px); }
    to { opacity: 1; transform: translateY(50%) translateX(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px 25px;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 36px;
    border: 1px solid var(--border);
    width: 100%;
}

.form-cards {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 36px;
    border: 1px solid var(--border);
	max-width:400px;
    margin: 0 auto;
}

.form-card-wide {
    max-width: 680px;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-footer-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--primary);
}

.form-footer-link a {
    color: var(--primary);
    font-weight: 600;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--primary);
    margin-top: 4px;
}

.form-error {
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 4px;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 6px;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* =============================================
   14. ALERTS
   ============================================= */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid transparent;
    line-height: 1.5;
}

.alert-error {
    background: #fdf2f2;
    color: #a72828;
    border-left-color: var(--danger);
}

.alert-success {
    background: var(--primary-bg);
    color: var(--primarybuttonhover);
    border-left-color: var(--primary);
}

.alert-info {
    background: #eef4fb;
    color: #1e4a80;
    border-left-color: #3b82f6;
}

.alert-warning {
    background: var(--gold-light);
    color: #7a5c10;
    border-left-color: var(--gold);
}

/* =============================================
   15. TABLES
   ============================================= */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* Listings filter tabs */
.listings-filter-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.listings-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
    cursor: poMontserrat;
}

.listings-filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.listings-filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.listings-filter-tab .tab-count {
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 1px 7px;
    font-size: 0.75rem;
    font-weight: 700;
}

.listings-filter-tab.active .tab-count {
    background: rgba(255,255,255,0.25);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.88rem;
}

.data-table th {
    background: var(--tablehead);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--primary-bg); }

.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

/* =============================================
   16. BADGES / STATUS
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #f3f4f6; color: #4b5563; }
.badge-sold { background: #dbeafe; color: #1e40af; }
.badge-pending { background: var(--gold-light, #fef3c7); color: #92400e; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-archived { background: #374151; color: #fff; }

/* Дополнительные статусы */
.badge-exclusive { background: #fef3c7; color: #b45309; }
.badge-on_deposit { background: #e0f2fe; color: #0369a1; }
.badge-suspended { background: #e5e7eb; color: #374151; }
.badge-draft { background: #f3f4f6; color: #6b7280; }

/* =============================================
   17. PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    background: var(--white);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    cursor: poMontserrat;
}

.page-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    poMontserrat-events: none;
}

.page-link.disabled {
    opacity: 0.4;
    poMontserrat-events: none;
}

.page-link.page-ellipsis {
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
    poMontserrat-events: none;
    min-width: 20px;
    padding: 0 4px;
}

/* =============================================
   18. IMAGE UPLOAD
   ============================================= */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: poMontserrat;
    transition: border-color var(--transition), background var(--transition);
    background: var(--light);
    position: relative;
}

.image-upload-area:hover,
.image-upload-area.dragover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.image-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: poMontserrat;
    width: 100%;
    height: 100%;
}

.image-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.6;
}

.image-upload-text {
    font-size: 0.9rem;
    color: var(--primary);
}

.image-upload-text strong { color: var(--primary-text); }

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.image-preview-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light);
    border: 1px solid var(--border);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: var(--white);
    border: none;
    cursor: poMontserrat;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    z-index: 2;
}

.remove-image:hover { background: var(--danger); }

/* =============================================
   19. DASHBOARD / ACCOUNT LAYOUT
   ============================================= */
.dashboard-layout {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 64px);
    align-items: stretch;
}

.account-sidebar {
    width: 64px;
    background: #294433;
    color: var(--white);
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.account-sidebar:hover {
    width: 240px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.18);
}

.sidebar-logo-mini {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 58px;
}

.sidebar-logo-mini .logo-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}

.sidebar-logo-mini .logo-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease 0s;
}

.account-sidebar:hover .sidebar-logo-mini .logo-text {
    opacity: 1;
    transition: opacity 0.25s ease 0.1s;
}

.sidebar-nav {
    padding: 12px 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: background var(--transition), color var(--transition);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: poMontserrat;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.sidebar-nav-item.active {
    background: #1e3225;
    color: var(--white);
    border-left-color: #526f55;
    font-weight: 600;
}

.sidebar-nav-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
}

.sidebar-nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease 0s;
}

.account-sidebar:hover .sidebar-nav-text {
    opacity: 1;
    transition: opacity 0.25s ease 0.12s;
}

.sidebar-nav-section {
    padding: 16px 20px 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    overflow: hidden;
    opacity: 0;
    height: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.account-sidebar:hover .sidebar-nav-section {
    opacity: 1;
    height: auto;
}

.sidebar-bottom {
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.dashboard-content {
    flex: 1;
    padding: 25px 35px;
    min-width: 0;
    overflow-x: auto;
    background: #ffffff;
}

/* Sidebar unread badge */
.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 6px;
}

/* =============================================
   20. ADMIN STATS
   ============================================= */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    transition: box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-card--gold { border-top-color: var(--gold); }
.stat-card--danger { border-top-color: var(--danger); }
.stat-card--secondary { border-top-color: var(--green); }
.stat-card--blue { border-top-color: #3b82f6; }

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 6px;
    font-weight: 500;
}

.stat-trend {
    font-size: 0.75rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-trend--up { color: #166534; }
.stat-trend--down { color: var(--danger); }

/* =============================================
   21. ADMIN SECTION
   ============================================= */
.admin-section {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.admin-section-header {
    background: #e7e6e6;
    color: var(--primary-text);
    border-radius: 10px;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.admin-section-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-section-body {
    padding: 20px;
}

.admin-page {
    max-width: 100%;
}

.admin-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fon-block{
	background: #f5f5f5;
	padding: 20px;
}



/* =============================================
   23. EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 150px 24px;
    color: var(--primary);
	font-size: 25px;
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.45;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    max-width: 360px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

/* =============================================
   24. BREADCRUMB
   ============================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.83rem;
    color: var(--primary);
    margin-bottom: 18px;
    padding: 10px 0;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--primary-text); }

.breadcrumb-sep {
    opacity: 0.45;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* =============================================
   25. FOOTER
   ============================================= */
.site-footer {
    background: #1E2A20;
    color: rgba(255,255,255,0.75);
}

.footer-main {
    padding: 52px 0 36px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}


.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    text-decoration: none;
}

.footer-logo:hover { color: var(--primary-light); }

.footer-description {
    font-size: 0.85rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin-bottom: 18px;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}


.footer-links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links a {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.62);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.85); }

/* =============================================
   26. PROMO BADGES
   ============================================= */
.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.promo-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.promo-badge--vip {
    background: linear-gradient(135deg, var(--gold), #e8b83a);
    color: #2c1a00;
}

.promo-badge--top {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: var(--white);
}

.promo-badge--urgent {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
}

.promo-badge--highlight {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: var(--white);
}

/* =============================================
   27. PROMOTED LISTING CARDS
   ============================================= */
.listing-card--vip {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(201,168,76,0.2);
}

.listing-card--vip .listing-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    poMontserrat-events: none;
    z-index: 1;
}

.listing-card--top {
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59,130,246,0.15);
}

.listing-card--highlighted {
    border-color: #9191916e;
    box-shadow: 0 2px 12px rgba(139,92,246,0.15);
}

.promo-badges-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}



/* =============================================
   29. CREATE LISTING PAGE
   ============================================= */
.create-listing-page {
    padding: 28px 50px 48px;
}

.create-listing-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-bottom: 20px;
}

.create-listing-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   CREATE LISTING – REDESIGNED FORM
   ============================================= */
.cl-page-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cl-page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green);
    margin: 0;
}

.cl-verified-toggle-wrap {
    display: flex;
    justify-content: flex-end;
}

.cl-verified-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f5faf5;
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
}

.cl-verified-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.cl-counter {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 6px;
}

.cl-required-note {
    font-size: 0.82rem;
    color: var(--primary);
    margin: 0;
}

.cl-required-star {
    color: var(--danger);
    font-weight: 700;
}

.cl-quota-bar {
    background: #f0f6ff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #1a5276;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card sections */
.cl-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 24px 28px 20px;
    margin-bottom: 16px;
}

.cl-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-field-hint {
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.85;
    margin-top: 5px;
    display: block;
}

/* Price input with currency symbol */
.cl-price-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cl-price-currency {
    position: absolute;
    left: 12px;
    font-weight: 700;
    color: var(--green);
    font-size: 1rem;
    poMontserrat-events: none;
}

.cl-price-input {
    padding-left: 28px !important;
}

.cl-price-input.cl-input-invalid,
input.cl-input-invalid,
select.cl-input-invalid {
    border-color: var(--danger) !important;
}

.cl-chip-group.cl-input-invalid {
    border: 1px solid var(--danger);
    border-radius: 6px;
    padding: 4px;
}

/* Input with suffix (м², etc.) */
.cl-input-suffix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cl-input-suffix-wrap input {
    padding-right: 44px !important;
}

.cl-input-suffix {
    position: absolute;
    right: 12px;
    font-size: 0.82rem;
    color: var(--primary);
    poMontserrat-events: none;
	padding-right: 6px;
}

/* Room picker buttons */
.cl-rooms-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.cl-room-btn {
    min-width: 45px;
    height: 45px;
    padding: 9px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--green);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: poMontserrat;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.cl-room-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cl-room-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.cl-rooms-input {
    margin-top: 4px;
}

/* Rooms + Area inline row — equal 2-column grid */
.cl-rooms-area-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
}

/* Price & characteristics rows */
.cl-params-row-1,
.cl-params-row-2 {
    margin-bottom: 15px;
}
.cl-params-row-1 .form-group,
.cl-params-row-2 .form-group {
    margin-bottom: 0;
}

.cl-area-compact .cl-input-suffix-wrap input {
    width: 100%;
}

/* 3-column form row (floor / total floors / year built) */
.form-row--3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 25px;
}

/* Oblast / District location selects */
.cl-location-select {
    width: 100%;
}

/* Map */
.cl-map-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cl-map-canvas {
    width: 100%;
    height: 340px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    background: #e8ece8;
}

.cl-map-coords {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cl-map-reset-btn {
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid var(--danger);
    border-radius: var(--radius);
    background: transparent;
    color: var(--danger);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: poMontserrat;
    transition: background var(--transition), color var(--transition);
}

.cl-map-reset-btn:hover {
    background: var(--danger);
    color: #fff;
}

/* Photo motivation banner */
.cl-photo-motivation {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #856404;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Submit row */
.cl-submit-row {
    margin-top: 8px;
    margin-bottom: 32px;
}

.cl-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .cl-card { padding: 18px 16px; }
    .cl-map-canvas { height: 260px; }
    .cl-page-header { flex-direction: column; gap: 4px; }
    .cl-rooms-area-row { grid-template-columns: 1fr; }
    .form-row--3col { grid-template-columns: 1fr 1fr; }
    .cl-params-row-1 .col,
    .cl-params-row-2 .col { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 400px) {
    .form-row--3col { grid-template-columns: 1fr; }
    .cl-params-row-1 .col,
    .cl-params-row-2 .col { flex: 0 0 100%; max-width: 100%; }
}

/* =============================================
   30. CHAT STYLES
   ============================================= */
.chat-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    height: calc(100vh - 64px);
    grid-template-columns: 300px 1fr;
    height: calc(100vh - 200px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.chat-sidebar {
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.chat-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 2;
}

.chat-list { flex: 1; overflow-y: auto; }

.chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: poMontserrat;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: background var(--transition), border-color var(--transition);
    color: var(--text);
    text-decoration: none;
}

.chat-list-item:hover { background: var(--primary-bg); color: var(--text); }
.chat-list-item.active { background: var(--primary-bg); border-left-color: var(--primary-text); color: var(--text); }

.chat-list-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.chat-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-list-info { flex: 1; min-width: 0; }

.chat-list-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list-preview {
    font-size: 0.78rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.chat-list-time {
    font-size: 0.72rem;
    color: var(--primary);
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.chat-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.chat-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--light);
}

.chat-main-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chat-main-header-info {
    min-width: 0;
    flex: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    gap: 2px;
    max-width: min(100%);
}

.chat-msg.mine {
    align-self: stretch;
}

.chat-msg.theirs {
    align-self: stretch;
}

.chat-msg-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    background: var(--white);
    border-radius: 5px;
    padding: 20px 15px;
    transition: background .15s ease, border-color .15s ease;
}

.chat-msg-main {
    min-width: 0;
    flex: 1;
}

.chat-msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dbe9dd;
    color: #3f6547;
    border: 1px solid #c9dbcd;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.chat-msg.mine .chat-msg-avatar {
    background: #d7e6da;
    color: #365b3f;
}

.chat-msg-bubble {
    padding: 0;
    border-radius: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 100%;
    word-break: break-word;
}

.chat-notification-image {
    display: block;
    max-width: min(100%, 360px);
    max-height: 320px;
    margin-top: 10px;
    border-radius: 8px;
    object-fit: contain;
}

.chat-notification-button {
    display: inline-block;
    margin: 8px 0 2px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
}

.chat-notification-button:hover {
    background: var(--primarybuttonhover);
}

.chat-msg.mine .chat-msg-bubble {
    background: transparent;
    color: var(--text);
    border-radius: 0;
    border: 0;
}

.chat-msg.theirs .chat-msg-bubble {
    background: transparent;
    color: var(--text);
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

@keyframes progressAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 16px 0;
    }
}

.chat-msg-top:hover,
.chat-msg-top:focus-within {
    background: var(--primary-bg);
    border: 1px solid #a2cda8;
}

.chat-msg-time {
    font-size: 0.68rem;
    color: #8f979f;
    flex-shrink: 0;
    margin-bottom: 0;
}

.chat-msg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.chat-msg-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: #37464f;
}

.chat-msg-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-msg-status {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    min-width: 16px;
    text-align: center;
}

.chat-msg-status.is-sent {
    color: #9aa1a8;
}

.chat-msg-status.is-read {
    color: #2f9e5b;
}

.chat-msg-action-btn {
    border: 0;
    background: transparent;
    font-size: 0.78rem;
    padding: 0;
    border-radius: 0;
    cursor: poMontserrat;
    line-height: 1;
    position: relative;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}

.chat-msg-action-btn:focus-visible {
    opacity: 1;
    visibility: visible;
}

.chat-msg-top:hover .chat-msg-action-btn,
.chat-msg-top:focus-within .chat-msg-action-btn {
    opacity: 1;
    visibility: visible;
}

.chat-msg-reply-btn,
.chat-msg-edit-btn {
    color: var(--primary);
}

.chat-msg-report-btn {
    color: #c33535;
}

.chat-msg-action-btn[title]:hover::after {
    left: auto;
    right: calc(100% + 10px);
    bottom: 50%;
    transform: translateY(50%);
    animation: tooltipFadeLeft 0.2s ease-in-out;
}

.chat-msg-action-btn[title]:hover::before {
    left: auto;
    right: calc(100% + 1px);
    bottom: 50%;
    transform: translateY(50%);
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.chat-input-controls {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chat-input-compose {
    flex: 1;
    border: 1.5px solid var(--border);
    background: var(--light);
    padding: 8px 10px;
}

.chat-input-compose:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80,113,84,0.12);
    background: var(--white);
}

.chat-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 0 0 8px;
    margin: 0 0 8px;
}

.chat-reply-preview.hidden {
    display: none;
}

.chat-reply-preview-main {
    min-width: 0;
}

.chat-reply-preview-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.chat-reply-preview-text {
    font-size: 0.8rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-reply-clear-btn {
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: poMontserrat;
    line-height: 1;
    padding: 2px;
}

.chat-input-area textarea {
    flex: 1;
    min-height: 44px;
    max-height: 120px;
    resize: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.9rem;
    border: 0;
    background: transparent;
}

.chat-input-area textarea:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.chat-send-btn {
    flex-shrink: 0;
    width: 44px;
    height: 73px;
    padding: 0;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.chat-claim-modal-question {
    margin: -8px 0 16px;
    font-size: 0.9rem;
    color: var(--text);
}

.chat-notice-modal {
    max-width: 420px;
}

.chat-notice-modal-text {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.chat-thread-listing {
    font-size: 0.82rem;
    color: var(--primary);
    margin-top: 2px;
}

.chat-thread-listing a {
    color: var(--primary);
    text-decoration: none;
}

.chat-thread-listing a:hover {
    text-decoration: underline;
}

.chat-block-btn {
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid #d8dadd;
    background: #fff;
    color: #3c3f44;
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
}

.chat-block-btn:hover {
    background: #f7f8fa;
}

.chat-block-btn.is-unblock {
    color: #2f9e5b;
    border-color: #bfe8cc;
    background: #f1fbf4;
}

.chat-blocked-banner {
    display: none;
    margin: 12px 16px 15px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #ffd2d2;
    background: #fff4f4;
    color: #9b2b2b;
    font-size: 0.82rem;
}

.chat-blocked-banner.show {
    display: block;
}

.chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--primary);
    text-align: center;
}

/* =============================================
   31. SEARCH SUBSCRIPTIONS
   ============================================= */
.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sub-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
	justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}

.sub-card-header{
	display: flex;
    align-items: center;
    gap: 20px;
}

.sub-card:hover { box-shadow: var(--shadow); }

.sub-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-card-info { flex: 1; min-width: 0; }

.sub-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.sub-card-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-tag {
    background: var(--primary-bg);
    border: 1px solid rgba(80,113,84,0.2);
    border-radius: var(--radius);
    padding: 3px 10px;
    font-size: 0.78rem;
    color: var(--primarybuttonhover);
    font-weight: 500;
}

.sub-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* =============================================
   32. LISTING STATS
   ============================================= */
.stat-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    text-align: center;
    min-width: 80px;
}

/* =============================================
   33. NAV BADGE
   ============================================= */
.nav-badge {
    background: var(--danger);
    color: var(--white);
    font-size: 0.68rem;
    border-radius: 10px;
    padding: 1px 6px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 3px;
    line-height: 1.4;
    display: inline-block;
}
.nav-badges {
    position: relative;
    right: -9px;
    top: -11px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.68rem;
    border-radius: 10px;
    padding: 1px 6px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: -18px;
    line-height: 1.4;
    display: inline-block;
}

/* =============================================
   34. PASSWORD TOGGLE
   ============================================= */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: poMontserrat;
    color: var(--primary);
    font-size: 1rem;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover { color: var(--primary-text); }

/* =============================================
   35. GALLERY MAIN (nav overlap)
   ============================================= */
.gallery-main .gallery-nav--prev { left: 12px; }
.gallery-main .gallery-nav--next { right: 12px; }

/* =============================================
   ADDITIONAL UTILITIES & COMPONENTS
   ============================================= */

/* Card generic */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #7e9a8157;
    box-shadow: var(--shadow);
}

.card--exclusive {
    border-color: #66b87a;
    background: #f5fff7;
}

.card-body { padding: 24px; }
.card-header {
    padding: 16px 5px 16px 5px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--green);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab {
    padding: 11px 18px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--primary);
    cursor: poMontserrat;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    transition: color var(--transition), border-color var(--transition);
}

.tab:hover { color: var(--primary-text); }

.tab.active {
    color: var(--primary-text);
    border-bottom-color: var(--primary);
}

/* My listings table / list */
.my-listing-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    background: var(--white);
}

.my-listing-row:last-child { border-bottom: none; }
.my-listing-row:hover { background: var(--primary-bg); }

.my-listing-img {
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--light);
    overflow: hidden;
}

.my-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-listing-info { flex: 1; min-width: 0; }

.my-listing-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.my-listing-meta {
    font-size: 0.78rem;
    color: var(--primary);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.my-listing-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.my-listing-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Wallet / Balance */
.balance-card {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '₸';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    font-weight: 900;
    opacity: 0.06;
    poMontserrat-events: none;
}

.balance-amount {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 6px;
}

.balance-label {
    font-size: 0.85rem;
    opacity: 0.75;
}

/* Transaction list */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.transaction-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    transition: background var(--transition);
}

.transaction-row:last-child { border-bottom: none; }
.transaction-row:hover { background: var(--primary-bg); }

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.transaction-icon--in { background: #dcfce7; color: #166534; }
.transaction-icon--out { background: #fee2e2; color: #991b1b; }

.transaction-info { flex: 1; min-width: 0; }

.transaction-desc {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

.transaction-date {
    font-size: 0.76rem;
    color: var(--primary);
    margin-top: 2px;
}

.transaction-amount {
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.transaction-amount--in { color: #166534; }
.transaction-amount--out { color: var(--danger); }

/* Map */
#map, .listing-map {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Notification / Info chips */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--primary-bg);
    color: var(--primarybuttonhover);
    border: 1px solid rgba(80,113,84,0.2);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.open { display: block; }

/* Tooltip */
.tooltip-wrapper { position: relative; display: inline-block; }

/* Default tooltip position: top (above element) */
.tooltip-text {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    poMontserrat-events: none;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 9999;
}

.tooltip-wrapper:hover .tooltip-text { opacity: 1; }

/* Tooltip position variants via data-tooltip-pos attribute */
.tooltip-wrapper[data-tooltip-pos="top"] .tooltip-text {
    bottom: calc(100% + 6px);
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.tooltip-wrapper[data-tooltip-pos="bottom"] .tooltip-text {
    top: calc(100% + 6px);
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.tooltip-wrapper[data-tooltip-pos="left"] .tooltip-text {
    right: calc(100% + 8px);
    left: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.tooltip-wrapper[data-tooltip-pos="right"] .tooltip-text {
    left: calc(100% + 8px);
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 0.9rem;
    color: var(--gold);
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Profile page */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--primary-bg);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info { flex: 1;margin-left: 15px; }

.profile-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
}

.profile-role {
    font-size: 0.82rem;
    color: var(--primary);
}

/* Misc helpers */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-muted { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-gold { color: var(--gold) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.font-bold { font-weight: 700 !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-100 { width: 100%; }

/* =============================================
   36. MEDIA QUERIES
   ============================================= */

/* Large – 1200px */
@media (max-width: 1200px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .listing-detail-layout {
        grid-template-columns: 1fr 300px;
    }
    .ld-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* Medium – 992px */
@media (max-width: 992px) {
    .section { padding: 40px 0; }

    .listing-detail-layout {
        grid-template-columns: 1fr;
    }

    .ld-layout {
        grid-template-columns: 1fr;
    }
    .ld-right {
        position: static;
        order: -1;
    }

    .contact-card {
        position: static;
        margin-top: 20px;
    }

    .chat-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chat-sidebar { max-height: 280px; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .admin-stats {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Tablet – 768px */
@media (max-width: 768px) {
    /* Header / top-bar */
    .top-bar-address { display: none; }
    .top-bar-nav { justify-content: flex-start; overflow-x: auto; }
    .top-bar-nav ul { gap: 0; }
    .top-bar-nav a { font-size: 0.78rem; padding: 3px 7px; }
    .lang-switcher { margin-left: auto; }

    .header-inner { position: relative; }

    .header-right-group { gap: 4px; }
    .header-action-btn span { display: none; }
    .header-action-btn { padding: 10px 12px; }

    /* Dashboard — sidebar becomes top nav */
    .dashboard-layout {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .account-sidebar:hover {
        width: 100%;
        box-shadow: none;
    }

    .sidebar-logo-mini { display: none; }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        flex: 1;
    }

    .sidebar-nav-item {
        padding: 12px 14px;
        flex-direction: column;
        gap: 3px;
        align-items: center;
        min-width: 64px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .sidebar-nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-light);
    }

    .sidebar-nav-text {
        font-size: 0.68rem;
        opacity: 1;
    }

    .account-sidebar:hover .sidebar-nav-text { opacity: 1; }

    .sidebar-nav-section { display: none; }

    .sidebar-bottom { display: none; }

    .dashboard-content {
        padding: 18px 16px;
    }

    /* Listings */
    .listings-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    /* Gallery */
    .gallery-main { height: 280px; }

    /* New listing detail gallery – tablet */
    .ld-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .ld-gallery__main {
        grid-column: 1;
        grid-row: 1;
        height: 280px;
    }
    .ld-gallery__grid {
        grid-column: 1;
        grid-row: 2;
        grid-template-rows: 1fr;
        height: 120px;
        grid-template-columns: repeat(4, 1fr);
    }
    .ld-gallery__grid-item { height: 120px; }

    .ld-title-row { flex-direction: column; gap: 6px; }
    .ld-title-meta { flex-direction: row; }

    /* Hero */
    .hero { padding: 48px 0 36px; }

    .hero-stats { gap: 24px; }

    /* Search form */
    .search-form-row {
        flex-direction: column;
    }

    .search-form-row .form-group { min-width: unset; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }

    /* Tables */
    .data-table td:nth-child(n+4) { display: none; }
    .data-table th:nth-child(n+4) { display: none; }

    /* Section header */
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Chat */
    .chat-layout { grid-template-columns: 1fr; height: auto; }
    .chat-sidebar { max-height: 250px; }
    .chat-main { min-height: 400px; }
    .chat-messages { max-height: 320px; }
}

/* Mobile – 480px */
@media (max-width: 480px) {
    .container { width: calc(100% - 32px); padding: 0; }

    .listings-grid { grid-template-columns: 1fr; gap: 12px; }

    .hero-content h1 { font-size: 1.5rem; }
    .hero { padding: 36px 0 28px; }

    .form-card { padding: 22px 18px; }

    .listing-detail-price { font-size: 1.5rem; }

    .gallery-main { height: 220px; }

    .gallery-thumbs { display: none; }

    /* New listing detail – mobile */
    .ld-gallery__main { height: 220px; }
    .ld-gallery__grid { display: none; }
    .ld-chips { gap: 8px; }
    .ld-chip { padding: 8px 12px; }
    .ld-price { font-size: 1.4rem; }

    .page-title { font-size: 1.2rem;margin-bottom:20px; }

    .admin-stats { grid-template-columns: 1fr 1fr; }

    .dashboard-content { padding: 14px 12px; }

    .create-listing-card { padding: 18px 16px; }

    .promo-packages-grid { grid-template-columns: 1fr 1fr; }

    .user-trigger .user-name { display: none; }

    .footer-social a { width: 32px; height: 32px; }

    .hero-stats { flex-direction: row; gap: 16px; justify-content: center; }
    .hero-stat strong { font-size: 1.3rem; }
}

/* Extra small – 360px */
@media (max-width: 360px) {
    .listings-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: 1fr; }
    .promo-packages-grid { grid-template-columns: 1fr; }
    .btn { padding: 9px 14px; font-size: 0.85rem; }
}

/* =============================================
   FILTER CONSTRUCTOR – Krisha.kz-style
   ============================================= */

/* ── Container ─────────────────────────────── */
.krisha-filter {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

/* ── Tabs ──────────────────────────────────── */
.kf-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--green);
    background: var(--green);
    padding: 0 20px;
	margin-bottom: 15px;
}

.kf-tab {
    padding: 22px 22px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f1f1f170;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: poMontserrat;
}
.kf-tab:hover  { color: #f1f1f170; }
.kf-tab.active { color: #edaa14; border-bottom-color: #edaa14; font-weight: 600; }

/* ── Sections ──────────────────────────────── */
.kf-section { padding: 10px 10px 10px 20px; }
.kf-section--header { background: var(--light); border-bottom: 1px solid var(--border); }
.kf-section--footer { background: var(--light); border-top: 1px solid var(--border); }
.kf-section-title { font-size: 0.78rem; text-transform: uppercase; color: var(--primary-text); letter-spacing: 0.06em; margin-bottom: 10px; }
.photo{
	margin-left: 10px;
}
.photo .kf-label{
	display:none;
	width: 0px;
}

.agent{
	margin-left: -100px;
}

.agent .kf-label{
	display:none;
	width: 0px;
}

.hozyain{
	margin-left: -30px;
}

.hozyain .kf-label{
	display:none;
	width: 0px;
}

/* ── Rows ──────────────────────────────────── */
.kf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.kf-row:last-child { margin-bottom: 0; }

/* ── Column widths (bootstrap-like, 12-col) ─ */
.kf-col   { flex: 1 1 auto; min-width: 0; }
.kf-col-1  { flex: 0 0 calc(8.333% - 12px);  max-width: calc(8.333% - 12px); }
.kf-col-2  { flex: 0 0 calc(16.666% - 12px); max-width: calc(16.666% - 12px); }
.kf-col-3  { flex: 0 0 calc(25% - 12px);     max-width: calc(25% - 12px); }
.kf-col-4  { flex: 0 0 calc(33.333% - 12px); max-width: calc(33.333% - 12px); }
.kf-col-5  { flex: 0 0 calc(41.666% - 12px); max-width: calc(41.666% - 12px); }
.kf-col-6  { flex: 0 0 calc(50% - 12px);     max-width: calc(50% - 12px); }
.kf-col-7  { flex: 0 0 calc(58.333% - 12px); max-width: calc(58.333% - 12px); }
.kf-col-8  { flex: 0 0 calc(66.666% - 12px); max-width: calc(66.666% - 12px); }
.kf-col-9  { flex: 0 0 calc(75% - 12px);     max-width: calc(75% - 12px); }
.kf-col-10 { flex: 0 0 calc(83.333% - 12px); max-width: calc(83.333% - 12px); }
.kf-col-11 { flex: 0 0 calc(91.666% - 12px); max-width: calc(91.666% - 12px); }
.kf-col-12 { flex: 0 0 100%; max-width: 100%; }

/* ── Labels & inputs ───────────────────────── */
.kf-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kf-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.kf-label-row .kf-label {
    margin-bottom: 0;
}
.kf-rd-reset-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.kf-rd-reset-link:hover {
    text-decoration: underline;
}

.kf-input,
.kf-select {
    width: 100%;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.kf-input:focus, .kf-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80,113,84,.15);
}
.kf-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23677a67'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

/* ── Range field ───────────────────────────── */
.kf-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kf-range .kf-input { flex: 1; }
.kf-range-sep { color: var(--primary-text); font-size: 1rem; flex-shrink: 0; }

/* ── Rooms selector ────────────────────────── */
.kf-rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.kf-room-btn {
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    cursor: poMontserrat;
    transition: all var(--transition);
    line-height: 1;
}
.kf-room-btn:hover  { border-color: var(--primary-text); color: var(--primary-text); }
.kf-room-btn.active { background: var(--primary); border-color: #4d7252; color: #fff; }

/* ── Button group ──────────────────────────── */
.kf-button-group { display: flex; flex-wrap: wrap; gap: 6px; }
.kf-btn-group-item {
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface);
    cursor: poMontserrat;
    transition: all var(--transition);
}
.kf-btn-group-item:hover  { border-color: var(--primary-text); color: var(--primary-text); }
.kf-btn-group-item.active { background: var(--primary); border-color: var(--primary-text); color: #fff; }

/* ── Radio group ───────────────────────────── */
.kf-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.kf-radio-label { display: flex; align-items: center; gap: 5px; font-size: 0.88rem; cursor: poMontserrat; }

/* ── Checkbox ──────────────────────────────── */
.kf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 0.9rem;
    cursor: poMontserrat;
    background: var(--bg, #fff);
    border: 1.5px solid var(--border, #ddd);
    border-radius: var(--radius);
    padding: 4px 10px;
    transition: border-color 0.15s, background 0.15s;
    justify-content: center;
}
.kf-checkbox-label input[type=checkbox] { display: none; }
.kf-checkbox-label:has(input:checked) {
    background: var(--primary, #1e3c72);
    border-color: var(--primary, #1e3c72);
    color: #fff;
}
.kf-checkbox-label:hover { border-color: var(--primary, #1e3c72); }

/* ── Multiselect ───────────────────────────── */
.kf-multiselect { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-multiselect-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.88rem; cursor: poMontserrat;
    background: var(--bg, #fff);
    border: 1.5px solid var(--border, #ddd);
    border-radius: var(--radius);
    padding: 5px 12px;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.kf-multiselect-item input[type=checkbox] { display: none; }
.kf-multiselect-item:has(input:checked),
.kf-multiselect-item--active {
    background: var(--primary, #1e3c72);
    border-color: var(--primary, #1e3c72);
    color: #fff;
}
.kf-multiselect-item:hover { border-color: var(--primary, #1e3c72); }

/* ── Region → District cascading selectors ──────── */
.kf-region-district { display: flex; flex-direction: column; gap: 6px; }
.kf-region-district .kf-select { width: 100%; }
.kf-rd-district-panel { display: flex; flex-direction: column; gap: 6px; }
.kf-rd-back-btn {
    display: none;
}

/* ── Footer ────────────────────────────────── */
.kf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    background: var(--green);
    border-top: 1px solid var(--green);
	margin-top: 20px;
}
.kf-footer-left, .kf-footer-right { display: flex; gap: 8px; align-items: center; }
.kf-footer-center { flex: 1; display: flex; justify-content: center; }

.kf-btn-submit {
    padding: 10px 28px;
    background: #507154;
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: poMontserrat;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: var(--radius);
}
.kf-btn-submit:hover { background: #507154; color: #ffffff;}
.kf-count { font-weight: 700; }

.kf-btn-toggle-more,
.kf-btn-clear {
    padding: 8px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--surface);
    cursor: poMontserrat;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.kf-btn-toggle-more:hover,
.kf-btn-clear:hover { border-color: var(--primary-text); color: var(--primary-text); }

.kf-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #507154;
    border: 1.5px solid #507154;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    transition: all var(--transition);
}
.kf-view-btn:hover  { border-color: #507154; color: #ffffff; }
.kf-view-btn.active { background: #303a3b; border-color: var(--green); color: #fff; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .kf-col-1, .kf-col-2, .kf-col-3, .kf-col-4,
    .kf-col-5, .kf-col-6, .kf-col-7, .kf-col-8,
    .kf-col-9, .kf-col-10, .kf-col-11 { flex: 0 0 100%; max-width: 100%; }
    .kf-footer { flex-direction: column; align-items: stretch; }
    .kf-footer-left, .kf-footer-center, .kf-footer-right { justify-content: center; }
    .kf-tabs { padding: 0 10px; flex-wrap: wrap; }
    .kf-tab { padding: 10px 14px; font-size: 0.85rem; }
    .kf-section { padding: 12px 14px; }
}

/* =============================================
   LISTING PAGE ENHANCEMENTS
   ============================================= */

/* ── Back button + topbar ─────────────────── */
.ld-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ld-topbar .ld-breadcrumb {
    margin-bottom: 0;
    flex: 1;
}
.ld-back-btn {
    display: inline-flex;
    align-items: end;
    gap: 6px;
    padding: 6px 14px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: poMontserrat;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
    flex-shrink: 0;
}
.ld-back-btn:hover {
    background: var(--primary-bg);
    border-color: var(--brand-light);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(80,113,84,0.12);
}
.ld-back-btn i {
    font-size: 0.8rem;
}

/* ── Characteristics 3-column grid ─────────── */
.ld-props-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.ld-prop-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    background: var(--fon);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 14px 12px;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.ld-prop-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 10px rgba(80,113,84,0.10);
}
.ld-prop-card__icon {
    grid-column: 1;
    grid-row: 1 / 3;
    font-size: 1.1rem;
    color: var(--primary);
    align-self: center;
}
.ld-prop-card__label {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
    color: var(--primary-text);
    font-weight: 500;
    line-height: 1.3;
}
.ld-prop-card__value {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.92rem;
    color: var(--green);
    font-weight: 700;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .ld-props-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 380px) {
    .ld-props-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Listing extra attributes groups ─────────── */
.ld-attrs-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.ld-attr-group {
    background: var(--fon);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.ld-attr-group__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.ld-attr-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.ld-attr-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ld-attr-row__label {
    font-size: 0.92rem;
    color: #5a5a5a;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.ld-attr-row__label i {
    font-size: 0.8rem;
    color: #5a5a5a;
}
.ld-attr-row__value {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 500;
    text-align: right;
}
@media (max-width: 768px) {
    .ld-attrs-groups {
        grid-template-columns: 1fr;
    }
}

/* ── Report (complaint) button ──────────────── */
.ld-report {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.ld-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: poMontserrat;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.ld-report-btn:hover {
    color: var(--danger, #e74c3c);
    border-color: var(--danger, #e74c3c);
    background: #fff5f5;
}
.ld-report-btn i {
    font-size: 0.95rem;
}

/* ── Complaint modal ────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.50);
    backdrop-filter: blur(3px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay--open {
    display: flex;
}
.claim-modal {
    position: relative;
    background: #F0F4F5;
    border-radius: 14px;
    padding: 32px 28px 24px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    animation: claimModalIn 0.22s ease;
}
@keyframes claimModalIn {
    from { opacity: 0; transform: translateY(-18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.claim-modal h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 20px;
    padding-right: 28px;
    line-height: 1.3;
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: poMontserrat;
    line-height: 1;
    transition: color var(--transition);
    user-select: none;
}
.modal-close:hover { color: var(--green); }

/* ── Radio list in complaint form ───────────── */
.claim-modal-form__reasons {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 0px;
}
.kr-radio {
    display: flex;
    align-items: center;
}
.kr-radio input[type="radio"] {
    display: none;
}
.kr-radio-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: poMontserrat;
    font-size: 0.88rem;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
    width: 100%;
    user-select: none;
}
.kr-radio-control::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color var(--transition), background var(--transition);
    background: var(--white);
}
.kr-radio input[type="radio"]:checked + .kr-radio-control {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}
.kr-radio input[type="radio"]:checked + .kr-radio-control::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px var(--white);
}
.kr-radio-control:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

/* ── Textarea in complaint form ─────────────── */
.claim-modal-form__input {
    margin-bottom: 16px;
}
.claim-modal-form__input .ui-input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    resize: vertical;
    min-height: 90px;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}
.claim-modal-form__input .ui-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80,113,84,0.12);
}

/* ── Footer of complaint form ───────────────── */
.claim-modal-form__footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.claim-modal-form__note {
    font-size: 0.78rem;
    color: var(--primary);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 520px) {
    .claim-modal {
        padding: 24px 16px 20px;
    }
}

/* ── Agent profile button (full-width in sidebar) ─────────────── */
.ld-seller__info { flex: 1; min-width: 0; width: 100%; }
.ld-seller__agent-btn {
    font-size: 0.82rem;
    width: 300px;
    margin: 0 auto;
	margin-bottom: 15px;
}

/* ── Listing map block ────────────────────────────────────────── */
.ld-map-wrapper {
    position: relative;
    height: 190px;
    border-radius: 10px;
}
#ld-map {
    width: 100%;
    height: 100%;
}
.ld-map-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 993;
    padding: 5px 12px;
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: poMontserrat;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background var(--transition), color var(--transition);
}
.ld-map-toggle-btn:hover {
    background: var(--primary);
    color: var(--white);
}


/* =============================================
   Profile page tabs
   ============================================= */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin: 30px 0 20px;
    border: 1px solid #d8e6da;
    border-radius: 12px;
    background: #fff;
    padding: 5px 4px 7px 4px;
}

.profile-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: poMontserrat;
    margin-bottom: -2px;
    border-radius: 4px 4px 0 0;
    transition: color var(--transition), border-color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-tab-btn:hover {
    color: var(--primary);
}

.profile-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-bg);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}
.leaflet-left {
    left: 0;
    z-index: 993 !important;
}

.leaflet-bottom {
    bottom: 0;
    z-index: 993 !important;
}

/* ============================================================
   CHIP-STYLE SELECTORS (Krisha-style)
   ============================================================ */
.cl-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cl-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border: 1.5px solid var(--border, #dde0e6);
    border-radius: 5px;
    cursor: poMontserrat;
    font-size: 0.9rem;
    color: var(--text, #333);
    background: #fff;
    user-select: none;
    transition: border-color .15s, background .15s, color .15s;
    line-height: 1.3;
}

.cl-chip input[type="radio"],
.cl-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    poMontserrat-events: none;
}

.cl-chip:hover {
    border-color: var(--primary, #2563eb);
    color: #ffffff;
    border: 1px solid #000;
	background: #507154;
}

.cl-chip--active,
.cl-chip input[type="radio"]:checked ~ *,
.cl-chip input[type="checkbox"]:checked ~ * {
    /* handled via JS class toggle */
}

.cl-chip--active {
    background: #507154;
    border-color: var(--primary, #2563eb);
    color: #fdfffd;
}

.cl-chip-label {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-secondary, #666);
    margin-bottom: 6px;
    margin-top: 4px;
}

.cl-attr-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #eee);
}

/* Responsive 3-column row inside attribute blocks */
.cl-attrs-row {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.cl-attrs-row .cl-attr-col {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 140px;
}
@media (max-width: 700px) {
    .cl-attrs-row .cl-attr-col { flex: 0 0 100%; }
}

/* ============================================================
   PROMOTION CHECKOUT PAGE
   ============================================================ */
.promo-checkout-page {
    width: calc(100%) !important;
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    padding: 30px 250px 30px 250px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
}
.complaint-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 190px;
}
.complaint-submit-spinner {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: complaintSubmitSpin .7s linear infinite;
}
.complaint-submit-spinner[hidden] { display: none; }
@keyframes complaintSubmitSpin {
    to { transform: rotate(360deg); }
}

.promo-checkout-header {
    position: relative;
    text-align: center;
    margin-bottom: 24px;
}

.promo-checkout-header__row { position: relative; display: flex; align-items: center; justify-content: center; min-height: 38px; }
.promo-close-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border, #d9e2da);
    border-radius: 8px;
    color: var(--text-secondary, #718077);
    background: #fff;
    font-size: .82rem;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
}
.promo-close-btn:hover { color: #507154; border-color: #507154; background: #f0f5f1; }

.promo-checkout-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-checkout-sub {
    color: var(--text-secondary, #666);
    font-size: 0.95rem;
}

.promo-limit-warning {
    background: #fffbeb;
    border: 1px solid #fbd38d;
    color: #92400e;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Mini listing preview */
.promo-mini-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border, #dde0e6);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.promo-mini-card__img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.promo-mini-card__noimg {
    width: 80px;
    height: 60px;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.promo-mini-card__title {
    font-weight: 600;
    font-size: 0.97rem;
    margin-bottom: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promo-mini-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

.promo-mini-card__price {
    font-weight: 700;
    color: var(--primary, #2563eb);
    font-size: 0.95rem;
}

/* Packages grid */
.promo-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.promo-pkg-card--submission {
    border-color: #e53e3e;
    box-shadow: 0 4px 24px rgba(229, 62, 62, .15);
}

@media (max-width: 768px) {
    .promo-packages-grid {
        grid-template-columns: 1fr;
    }

    .promo-checkout-page {
        padding: 18px 12px 30px;
    }

    .promo-checkout-header__row { justify-content: space-between; gap: 10px; }
    .promo-checkout-header__row h1 { margin: 0; text-align: left; font-size: 1.25rem; }
    .promo-close-btn { position: static; transform: none; flex-shrink: 0; }
}

.promo-pkg-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--border, #dde0e6);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.promo-pkg-card--featured {
    border-color: #e53e3e;
    box-shadow: 0 4px 24px rgba(229, 62, 62, .15);
}

.promo-pkg-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    padding: 3px 10px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.promo-pkg-badge--save { background: #22c55e; }
.promo-pkg-badge--hot  { background: #e53e3e; }

.promo-pkg-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
	margin: 0 auto;
}

.promo-pkg-icon--green { background: #22c55e; }
.promo-pkg-icon--red   { background: #e53e3e; }
.promo-pkg-icon--gray  { background: #9ca3af; }

.promo-pkg-title {
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    min-height: 45px;
}

.promo-pkg-features {
    list-style: none;
    padding: 0px 0px 10px 30px;
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary, #555);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.promo-pkg-features li i {
    color: #22c55e;
    margin-right: 5px;
}

.promo-pkg-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
	padding: 0px 0px 10px 30px;
}

.promo-pkg-old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.9rem;
}

.promo-pkg-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary, #2563eb);
}

.promo-pkg-price--big {
    font-size: 1.4rem;
    color: #e53e3e;
}

.promo-pkg-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.promo-pkg-btn--weekly  { background: #22c55e; border-color: #22c55e; color: #fff; }
.promo-pkg-btn--weekly:hover { background: #16a34a; }
.promo-pkg-btn--monthly { background: #e53e3e; border-color: #e53e3e; color: #fff; }
.promo-pkg-btn--monthly:hover { background: #c53030; }
.promo-pkg-btn--basic   { background: var(--primary, #2563eb); color: #fff; }
.promo-pkg-btn:disabled { opacity: .55; cursor: not-allowed; }
.promo-pkg-active {
    padding: 8px 12px;
    border-radius: 8px;
    background: #507154;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

/* Basic plan */
.promo-pkg-basic-sub {
    font-size: 0.83rem;
    color: var(--text-secondary, #666);
    margin-top: -6px;
}

.promo-pkg-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promo-pkg-no-services {
    font-size: 0.85rem;
    color: #aaa;
}

.promo-basic-svc {
    display: flex;
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 8px;
    cursor: poMontserrat;
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid var(--border, #eee);
    font-size: 0.95rem;
    min-height: 52px;
    transition: border-color .15s, background .15s;
}

.promo-basic-svc:hover { border-color: var(--primary, #2563eb); }
.promo-basic-svc--checked {
    background: #f0f5f1;
    border-color: var(--primary, #3d5941);
}
.promo-basic-svc--disabled { opacity: 1; cursor: not-allowed; }
.promo-basic-svc__active {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #507154e0;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    poMontserrat-events: auto;
}

.promo-basic-svc input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 26px;
    flex: 0 0 24px;
    margin: 0;
    border: 2px solid var(--primary, #3d5941);
    border-radius: 7px;
    background: #fff;
    cursor: poMontserrat;
    position: relative;
}

.promo-basic-svc input[type="checkbox"]:checked {
    background: var(--primary, #3d5941);
    border-color: var(--primary, #3d5941);
}

.promo-basic-svc input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 4px;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.promo-basic-svc__name { flex: 1; font-weight: 600; color: var(--text, #27352b); }
.promo-basic-svc__price { font-weight: 600; color: var(--primary, #2563eb); }

.promo-basic-svc__help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid var(--primary, #3d5941);
    border-radius: 50%;
    color: var(--primary, #3d5941);
    font-weight: 800;
    font-size: 0.78rem;
    cursor: help;
}

.promo-basic-svc__help:hover::after,
.promo-basic-svc__help:focus::after {
    content: attr(data-title);
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(300px, 70vw);
    padding: 10px 12px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 400;
    text-align: left;
    white-space: normal;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
}

.promo-pkg-balance {
    font-size: 0.83rem;
    color: var(--text-secondary, #666);
    padding: 8px 10px;
    background: var(--bg-secondary, #f9fafb);
    border-radius: 6px;
}

.promo-pkg-topup-link {
    margin-left: 6px;
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 600;
}

.promo-pkg-nopromo-wrap {
    text-align: center;
    margin-top: 4px;
}

.promo-nopromo-link {
    background: none;
    border: none;
    color: var(--text-secondary, #888);
    font-size: 0.85rem;
    cursor: poMontserrat;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 4px 0;
}

.promo-nopromo-link:hover { color: var(--text, #333); }

/* ============================================================
   LISTING SUCCESS PAGE
   ============================================================ */
.listing-success-page {
    max-width: 640px;
    padding: 40px 16px 60px;
    text-align: center;
	margin: 0 auto;
}

.ls-success-banner {
    margin-bottom: 32px;
}

.ls-success-icon {
    font-size: 3.5rem;
    color: #22c55e;
    margin-bottom: 14px;
}

.ls-success-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.ls-success-desc {
    color: var(--text-secondary, #666);
    line-height: 1.6;
    font-size: 0.97rem;
}

.ls-promo-applied {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 8px 18px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    color: #16a34a;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Preview card on success page */
.ls-preview-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border, #dde0e6);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.ls-preview-card__img {
    width: 120px;
    min-height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}

.ls-preview-card__noimg {
    width: 120px;
    min-height: 90px;
    background: var(--bg-secondary, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #bbb;
    flex-shrink: 0;
}

.ls-preview-card__body {
    padding: 14px 16px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ls-preview-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ls-badge {
    font-size: 0.75rem;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 600;
}

.ls-badge--type   { background: #e0e7ff; color: #3730a3; }
.ls-badge--deal   { background: #dcfce7; color: #166534; }
.ls-badge--status { background: #fef3c7; color: #92400e; }

.ls-preview-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ls-preview-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

.ls-preview-card__price {
    font-weight: 700;
    color: var(--primary, #2563eb);
}

/* Timer */
.ls-timer-block {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 28px;
    text-align: left;
}

.ls-timer-icon {
    font-size: 1.8rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.ls-timer-label {
    font-size: 0.83rem;
    color: var(--text-secondary, #666);
}

.ls-timer-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
}

/* Action buttons */
.ls-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ls-btn-cabinet, .ls-btn-new {
    padding: 12px 24px;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .ls-preview-card { flex-direction: column; }
    .ls-preview-card__img, .ls-preview-card__noimg { width: 100%; min-height: 160px; }
    .ls-preview-card__body { padding: 14px; }
}

/* Success page: visual language shared with the promotion checkout. */
.listing-success-page {
    max-width: 1120px;
    min-height: calc(100vh - 180px);
    padding: 34px 24px 56px;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 14px;
}

.ls-success-banner {
    position: relative;
    max-width: 860px;
    margin: 0 auto 26px;
    padding: 30px 34px 28px;
    text-align: center;
    background: #fff;
    border: 2px solid #dce9df;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(43, 83, 54, .10);
    overflow: hidden;
}

.ls-success-banner::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #507154, #7fa987, #d6a84f);
}

.ls-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    border-radius: 50%;
    color: #507154;
    background: #edf6ef;
    box-shadow: inset 0 0 0 8px #f7fbf7;
    font-size: 2.25rem;
}

.ls-success-title {
    margin-bottom: 10px;
    color: #263b2b;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    letter-spacing: -.01em;
}

.ls-success-desc {
    max-width: 620px;
    margin: 0 auto;
    color: #66736a;
    font-size: .98rem;
}

.ls-promo-applied {
    background: #edf6ef;
    border-color: #b9d7bf;
    color: #507154;
}

.ls-preview-card {
    max-width: 860px;
    margin: 0 auto 26px;
    border: 2px solid #e3e9e4;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(43, 83, 54, .08);
}

.ls-preview-card__price { color: #507154; }
.ls-badge--deal { background: #edf6ef; color: #507154; }
.ls-badge--status { background: #fff7e5; color: #946d22; }

.ls-actions {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 2px;
}

.ls-btn-new {
    border-radius: 9px;
    background: #507154;
    border-color: #507154;
    box-shadow: 0 6px 16px rgba(80, 113, 84, .18);
}

.ls-btn-new:hover,
.ls-btn-new:focus-visible {
    background: #405d44;
    border-color: #405d44;
}

@media (max-width: 768px) {
    .listing-success-page { min-height: auto; padding: 20px 12px 36px; }
    .ls-success-banner { padding: 26px 18px 24px; }
}

/* Moderation preview modal */
body.moderation-preview-open { overflow: hidden; }
.moderation-preview-link {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary, #507154);
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(80, 113, 84, .35);
    text-underline-offset: 3px;
    cursor: poMontserrat;
}
.moderation-preview-link:hover,
.moderation-preview-link:focus-visible { color: #354f39; }
.moderation-preview-modal[hidden] { display: none; }
.moderation-preview-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.moderation-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 35, 26, .68);
    backdrop-filter: blur(3px);
}
.moderation-preview-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 48%) minmax(360px, 52%);
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #f7faf8;
    box-shadow: 0 0 40px rgba(0, 0, 0, .25);
}
.moderation-preview-modal__close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(32, 48, 37, .72);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: poMontserrat;
}
.moderation-preview__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 8px;
    min-height: 100%;
    padding: 28px;
    background: #eaf1eb;
}
.moderation-preview__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
    background: #dce7de;
}
.moderation-preview__image--main {
    grid-column: 1 / -1;
    height: min(52vh, 480px);
}
.moderation-preview__no-image {
    grid-column: 1 / -1;
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #8a9b8d;
    font-size: 1rem;
}
.moderation-preview__no-image i { font-size: 3rem; }
.moderation-preview__body {
    align-self: start;
    max-width: 720px;
    padding: 72px 56px 56px;
    color: #263b2b;
}
.moderation-preview__eyebrow {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    color: #507154;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.moderation-preview__eyebrow span {
    padding: 5px 10px;
    border-radius: var(--radius);
    background: #e5f0e7;
}
.moderation-preview__body h2 {
    margin: 0 0 16px;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.12;
}
.moderation-preview__price {
    margin-bottom: 16px;
    color: #507154;
    font-size: 1.6rem;
    font-weight: 800;
}
.moderation-preview__meta,
.moderation-preview__location {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: #657269;
    font-size: .95rem;
}
.moderation-preview__dot { color: #b3c2b6; }
.moderation-preview__location i { color: #507154; }
.moderation-preview__description {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dce7de;
    color: #536158;
    font-size: 1rem;
    line-height: 1.7;
    white-space: normal;
}
.moderation-preview-modal__dialog {
    display: block;
    overflow: hidden;
    background: var(--bg, #f7faf8);
}
.moderation-preview-modal__dialog > #moderation-preview-content {
    height: 100%;
    overflow: auto;
}
.moderation-preview__page {
    max-width: 1440px;
    min-height: 100%;
    margin: 0 auto;
    padding: 24px 32px 56px;
}
.moderation-preview__layout {
    max-width: none;
    margin-top: 12px;
}
.moderation-preview__layout .ld-right {
    position: sticky;
    top: 18px;
}
.moderation-preview__layout .ld-gallery__main,
.moderation-preview__layout .ld-gallery__grid {
    height: min(472px, 52vh);
}
.moderation-preview__layout .ld-gallery__grid-item {
    height: auto;
}
.moderation-preview__status {
    padding: 16px 20px 20px;
    color: var(--primary, #507154);
    font-size: .9rem;
    font-weight: 600;
}
.moderation-preview__status i { margin-right: 6px; }
@media (max-width: 760px) {
    .moderation-preview-modal__dialog { display: block; }
    .moderation-preview__gallery { min-height: auto; padding: 16px; }
    .moderation-preview__image--main { height: 42vh; }
    .moderation-preview__image:not(.moderation-preview__image--main) { height: 120px; }
    .moderation-preview__body { padding: 32px 22px 42px; }
    .moderation-preview-modal__close { top: 12px; right: 12px; }
    .moderation-preview__page { padding: 16px 12px 36px; }
    .moderation-preview__layout .ld-right { position: static; }
}

/* =============================================
   MY LISTING DETAIL PAGE (my-listing-detail.php)
   ============================================= */

.mld-header { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.mld-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mld-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mld-inline-form { display: inline-flex; margin: 0; }
.mld-back-btn { white-space: nowrap; }
.mld-header .btn-outline { border-color: #bfd2c1; color: #507154; border-radius: 10px; }
.mld-header .btn-outline:hover { border-color: #507154; background: #e8f1e9; color: #3d5f41; }
.mld-archive-btn { background: #fff3f3; border: 1px solid #f5c6c6; color: #c0392b; }
.mld-archive-btn:hover { background: #ffe0e0; border-color: #e74c3c; color: #e74c3c; }
.mld-archived-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 9px; background: #fff0f0; color: #c0392b; font-size: .76rem; font-weight: 700; }
.mld-page-title { margin: 0 0 25px; font-size: clamp(1.15rem, 2vw, 1.8rem); }
.mld-alert { margin-bottom: 12px; }
.mld-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: flex-start;
}
.mld-listing-card { min-width: 0; }
/* Gallery */
.mld-gallery { border-radius: 14px; overflow: hidden; background: #f0f2f5; margin-bottom: 10px; }
.mld-gallery__main { position: relative; width: 100%; height: 228px; overflow: hidden; }
.mld-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mld-gallery__empty {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
    gap: 8px;
}
.mld-gallery__thumbs { display: flex; gap: 3px; padding: 3px; overflow-x: auto; }
.mld-gallery__thumb { width: 50px; height: 36px; border-radius: 6px; overflow: hidden; cursor: poMontserrat; opacity: 0.65; transition: opacity var(--transition); flex-shrink: 0; border: 2px solid transparent; }
.mld-gallery__thumb.active, .mld-gallery__thumb:hover { opacity: 1; border-color: var(--primary); }
.mld-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mld-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}
.mld-badge--vip  { background: #b8860b; color: #fff; }
.mld-badge--top  { background: var(--primary); color: #fff; }
.mld-badge--urgent { background: #e74c3c; color: #fff; }

/* Info card */
.mld-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 11px;
    margin-bottom: 10px;
}
.mld-info-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mld-price { font-size: 1.18rem; font-weight: 800; color: var(--primary); }
.mld-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mld-address { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; }
.mld-address i { margin-right: 5px; color: var(--primary); }
.mld-props { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mld-prop {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f6f9;
    border-radius: var(--radius);
    padding: 3px 9px;
    font-size: 0.76rem;
    color: var(--text);
}
.mld-prop i { color: var(--primary); }
.mld-description { font-size: 0.8rem; color: #000; line-height: 1.45; }

/* Stats card */
.mld-stats-card {
    background: linear-gradient(145deg, #ffffff 0%, #f4f8f4 100%);
    border: 1px solid #d5e4d7;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 10px 26px rgba(48, 75, 54, 0.08);
}
.mld-stats-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mld-card-title { font-size: 0.98rem; font-weight: 700; margin: 0; color: #304b36; }
.mld-card-title i { color: #507154; margin-right: 6px; }
.mld-stats-subtitle { margin: 4px 0 0; color: #8a988d; font-size: 0.72rem; line-height: 1.35; }
.mld-stats-period { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 5px 8px; border: 1px solid #d5e4d7; border-radius: 9px; color: #507154; background: #edf4ee; font-size: 0.68rem; font-weight: 700; }
.mld-stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mld-stat { min-width: 0; text-align: left; padding: 10px; border: 1px solid #e1ebe3; border-radius: 11px; background: rgba(255,255,255,0.82); }
.mld-stat__icon { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 5px; border-radius: 8px; background: #e7f0e8; color: #507154; font-size: 0.72rem; }
.mld-stat__num { font-size: 1.35rem; font-weight: 800; color: #304b36; line-height: 1.1; }
.mld-stat__label { margin-top: 3px; font-size: 0.68rem; color: #718077; line-height: 1.2; }
.mld-chart-wrap { height: 175px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e1ebe3; }
.mld-chart-wrap canvas { display: block; width: 100% !important; height: 140px !important; }
.mld-chart-legend { display: flex; align-items: center; gap: 12px; margin-bottom: 5px; color: #718077; font-size: 0.68rem; }
.mld-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mld-legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.mld-legend-dot--views { background: #507154; }
.mld-legend-dot--phone { background: #8aa98e; }

.field-container {
    margin-bottom: 20px;
}
.field-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}
.char-counter.limit-exceeded {
    color: #e74c3c !important;
	font-weight: bold;
}
@media (max-width: 1100px) {
    .mld-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .mld-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .mld-gallery__main { height: 135px; }
    .mld-stats-row { gap: 8px; }
}
.but{
	display:flex;
}

/* Creative auth header: matches the visual language of the login information panel. */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    isolation: isolate;
    background: radial-gradient(circle at 14% 20%, rgba(202, 224, 181, .13), transparent 25%), linear-gradient(118deg, #2d402f 0%, #48684c 47%, #507154 100%) !important;
    box-shadow: 0 14px 34px rgb(30 52 37 / 46%);
}

body {
    /*padding-top: 90px;*/
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    poMontserrat-events: none;
    opacity: .42;
    background: linear-gradient(115deg, #0000000a 0 37%, rgba(255, 255, 255, .08) 37.2%, transparent 37.5% 100%), linear-gradient(72deg, transparent 0 64%, rgba(226, 191, 112, .1) 64.2%, #00000014 64.45% 100%);
    background-size: 440px 100%, 620px 100%;
    background-position: 0 0, 100% 0;
    animation: headerLightShift 7s ease-in-out infinite alternate;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0%;
    right: 0%;
    bottom: 0;
    height: 4px;
    z-index: 2;
    width: 100%;
    poMontserrat-events: none;
    background: linear-gradient(90deg, #1a241c 0%, #293d2e 30%, #507154 50%, #293d2e 70%, #1a241c 100%);
    background-size: 260% 100%;
    animation: headerAccentFlow 7s linear infinite;
}

@keyframes headerLightShift {
    from { background-position: -80px 0, 100% 0; }
    to { background-position: 80px 0, calc(100% - 90px) 0; }
}

@keyframes headerAccentFlow {
    from { background-position: 0% 50%; }
    to { background-position: 260% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header::before,
    .site-header::after { animation: none; }
}

.site-header .header-inner { position: relative; z-index: 1; }
.site-header .header-right-group,
.site-header .user-area,
.site-header .user-dropdown {
    position: relative;
    z-index: 1100;
}

/* Header navigation: address, links, language and authentication are grouped in one branded row. */
.header-brand-info {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

.header-main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.header-main-nav a,
.header-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    color: rgba(255, 255, 255, .86);
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .99rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.header-main-nav a:hover,
.header-utility-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.header-main-nav a {
    position: relative;
}

.header-main-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: #e2bf70;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.header-main-nav a:hover::after {
    transform: scaleX(1);
}

.header-mobile-menu-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 9px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.header-mobile-menu-toggle:hover,
.header-mobile-menu-toggle:focus-visible {
    border-color: rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .20);
    outline: none;
}

.header-mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform var(--transition), opacity var(--transition);
}

.site-header.is-menu-open .header-mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .header-mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .header-mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-utility-group {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.header-utility-link { padding-inline: 7px; }
.header-utility-link i { color: #e2bf70; }

.header-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 30px;
    white-space: nowrap;
}

.header-lang-btn {
    padding: 2px 0;
    color: rgba(255, 255, 255, .56);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition), text-shadow var(--transition);
}

.header-lang-btn:hover {
    color: rgba(255, 255, 255, .92);
}

.header-lang-btn.active {
    color: #f4d98e;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(244, 217, 142, .42);
}

.header-lang-divider {
    color: rgba(255, 255, 255, .32);
    font-size: .78rem;
    user-select: none;
}

.site-header .header-action-btns,
.site-header .header-action-btns-chat {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: color var(--transition), transform var(--transition);
}

.site-header .header-action-btns:hover,
.site-header .header-action-btns-chat:hover {
    color: #fff;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px) scale(1.06);
}

.site-header .user-dropdown-menu {
    z-index: 1200;
    border-color: rgba(80, 113, 84, .28);
    box-shadow: 0 18px 38px rgba(22, 40, 27, .24);
}

@media (max-width: 1400px) {
    .header-mobile-menu-toggle {
        display: inline-flex;
    }

    .site-header .header-brand-info {
        display: block;
        position: fixed;
        top: 90px;
        left: 0;
        z-index: 1090;
        width: 100vw;
        min-height: 0;
        padding: 14px 24px 18px;
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-bottom: 1px solid rgba(255, 255, 255, .18);
        background: linear-gradient(118deg, #2d402f 0%, #48684c 47%, #507154 100%);
        box-shadow: 0 18px 34px rgba(22, 40, 27, .28);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .24s ease, transform .24s ease, visibility 0s linear .24s;
    }

    .site-header.is-menu-open .header-brand-info {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .site-header .header-main-nav {
        display: flex;
        width: min(100%, 1280px);
        margin: 0 auto;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 2vw, 28px);
        padding: 12px 24px;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }

    .site-header .header-main-nav a {
        flex: 0 0 auto;
        justify-content: center;
        width: auto;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: .98rem;
    }

    .site-header .header-main-nav a:hover,
    .site-header .header-main-nav a:focus-visible {
        background: rgba(255, 255, 255, .12);
        transform: none;
        outline: none;
    }

    .site-header .header-main-nav a::after {
        display: none;
    }
}

@media (max-width: 1200px) {
    .header-main-nav { gap: 2px; }
    .header-main-nav a { padding-inline: 6px; font-size: .78rem; }
}

@media (max-width: 1180px) {
    .header-brand-info { gap: 5px; }
    .header-main-nav { gap: 3px; }
    .header-main-nav a { padding-inline: 5px; font-size: .74rem; }
}

/* Ноутбуки: сохраняем полноценное меню, но уменьшаем горизонтальную нагрузку. */
@media (min-width: 769px) and (max-width: 1240px) {
    .site-header { padding-inline: 20px; }
    .header-inner { gap: 14px; }
    .header-inner > a:first-child img { width: 205px; height: auto; }
    .header-brand-info { gap: 3px; }
    .header-main-nav { gap: 1px; }
    .header-main-nav a { padding-inline: 4px; font-size: .99rem; }
    .header-language-switcher { margin-right: 18px; }
    .header-right-group { gap: 4px; }
    .site-header .header-action-btns,
    .site-header .header-action-btns-chat { padding-inline: 7px; }
}

@media (max-width: 900px) {
    .header-main-nav { display: none; }
    .header-utility-link span { display: none; }
}

@media (max-width: 768px) {
    .header-inner { gap: 10px; }
    .header-inner > a img { width: 175px; height: auto; }
    .header-utility-group { gap: 2px; }
    .site-header::after { left: 10px; right: 10px; }
}

/* Publication adapter administration */
.admin-page-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.publication-adapters-create{margin-bottom:18px}
.publication-adapter-create-form{display:grid;grid-template-columns:1fr 1.2fr 1.4fr auto;gap:10px;padding:16px}
.publication-adapter-card{padding:18px;margin-bottom:16px}
.publication-adapter-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.publication-adapter-card__head h3{margin:0 0 5px;color:var(--green)}
.publication-adapter-card__head span{color:var(--text-muted);font-size:.82rem}
.publication-adapter-status{padding:5px 9px;border-radius:15px;background:#f1f3f4;color:#68756b!important;font-size:.75rem!important}
.publication-adapter-status.is-active{background:var(--primary-bg);color:var(--primary)!important}
.publication-adapter-fields{display:grid;grid-template-columns:1fr 1.4fr auto;align-items:center;gap:10px;margin-bottom:18px}
.publication-adapter-card h4{margin:0 0 10px;color:var(--green);font-size:.95rem}
.publication-mapping-table{display:grid;gap:7px;overflow-x:auto}
.publication-mapping-row{display:grid;grid-template-columns:minmax(150px,1.1fr) 90px 105px minmax(120px,.9fr) minmax(120px,.9fr) minmax(90px,.7fr) minmax(180px,1.3fr) minmax(100px,.7fr) minmax(150px,1fr) minmax(150px,1fr) 90px minmax(115px,.8fr) 54px 42px;align-items:center;gap:7px;min-width:1900px}
.publication-mapping-row--head{padding:0 8px;color:var(--text-muted);font-size:.75rem}
.publication-mapping-remove{min-width:36px;padding:7px 8px}
.publication-adapter-actions{display:flex;justify-content:flex-end;margin-top:14px}
.publication-adapter-secondary-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}
@media (max-width:760px){.publication-adapter-create-form,.publication-adapter-fields{grid-template-columns:1fr}.publication-adapter-create-form .btn{width:100%}}

/* Compact listing details: visual-only treatment for characteristics. */
.ld-section--compact-details .ld-props-grid,
.moderation-preview__page .ld-props-grid {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
}
.ld-section--compact-details .ld-prop-card,
.moderation-preview__page .ld-prop-card {
    position: relative;
    min-height: 58px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ld-section--compact-details .ld-prop-card::after,
.moderation-preview__page .ld-prop-card::after {
    content: '';
    position: absolute;
    right: 9px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}
.ld-section--compact-details .ld-prop-card:hover,
.moderation-preview__page .ld-prop-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.ld-section--compact-details .ld-prop-card__icon,
.moderation-preview__page .ld-prop-card__icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-bg);
    font-size: .82rem;
}
.ld-section--compact-details .ld-prop-card__label,
.moderation-preview__page .ld-prop-card__label {
    font-size: .85rem;
    color: var(--text-muted, #68756b);
    letter-spacing: .01em;
}
.ld-section--compact-details .ld-prop-card__value,
.moderation-preview__page .ld-prop-card__value {
    font-size: .88rem;
    line-height: 1.2;
}

/* Compact grouped attributes with a subtle category accent. */
.ld-section--extra-details .ld-attrs-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}
.ld-section--extra-details .ld-attr-group {
    position: relative;
    padding: 6px 10px 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 113px;
    min-height: 113px;
    align-self: start;
    box-sizing: border-box;
}
.ld-section--extra-details .ld-attr-group::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--green));
}
.ld-section--extra-details .ld-attr-group__title {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin: 0 0 3px;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: .86rem;
    letter-spacing: .02em;
}
.ld-section--extra-details .ld-attr-row {
    min-height: 28px;
    padding: 5px 0;
    gap: 10px;
    border-bottom-color: var(--border);
}
.ld-section--extra-details .ld-attr-row__label,
.ld-section--extra-details .ld-attr-row__value {
    font-size: .80rem;
    line-height: 1.25;
}
.ld-section--extra-details .ld-attr-row__label {
    color: var(--text-muted, #68756b);
}
.ld-section--extra-details .ld-attr-row__label i {
    color: var(--primary);
    font-size: .72rem;
}
.ld-section--extra-details .ld-attr-row__value {
    color: var(--green);
    font-weight: 600;
}
.ld-attr-group__rows {
    max-height: 83px;
    overflow: hidden;
    transition: max-height .3s ease;
}
.ld-attr-group.is-expanded .ld-attr-group__rows {
    max-height: 2000px;
}
.ld-section--extra-details .ld-attr-group.is-expanded {
    height: auto;
    min-height: 113px;
}
.ld-attr-group__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: auto;
    padding: 2px 8px 0;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    cursor: poMontserrat;
}
.ld-attr-group__toggle:hover { color: var(--green); }
.ld-attr-group__toggle i { font-size: .68rem; }
.ld-attr-group__toggle[hidden] { display: none; }
@media (max-width: 768px) {
    .ld-section--extra-details .ld-attrs-groups { grid-template-columns: 1fr; }
    .ld-section--extra-details .ld-attr-group { min-height: 0; }
}

/* ── Listing page: editorial accents ─────────────────────────────────────── */
.ld-title-row--editorial {
    position: relative;
    padding: 4px 2px 2px;
}
.ld-gallery {
    isolation: isolate;
    box-shadow: 0 18px 45px rgba(37, 54, 42, .14);
}
.ld-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    poMontserrat-events: none;
    background: linear-gradient(135deg, rgba(37,54,42,.20), transparent 28%, transparent 70%, rgba(37,54,42,.16));
}
.ld-gallery__main,
.ld-gallery__grid { z-index: 2; }
.ld-section--headline {
    position: relative;
    overflow: hidden;
    padding: 24px 26px 22px;
    background: radial-gradient(circle at 94% 10%, rgba(199,161,74,.16), transparent 24%), linear-gradient(135deg, #fff 0%, #f5faf4 100%);
    border-color: rgba(80,113,84,.22);
}
.ld-section--headline::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(var(--primary), var(--gold));
}
.ld-title-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ld-title-eyebrow > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border: 1px solid rgba(80,113,84,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
}
.ld-title-eyebrow > span:first-child { color: var(--green); background: var(--primary-bg); }
.ld-title-eyebrow .ld-title-id { color: var(--primary-text); font-weight: 600; letter-spacing: .03em; }
.ld-right > .ld-sidebar-card:first-child {
    overflow: hidden;
    border-color: rgba(80,113,84,.24);
    border-top: 4px solid var(--primary);
    box-shadow: 0 16px 36px rgba(37,54,42,.13);
}
.ld-right > .ld-sidebar-card:first-child .ld-price-block {
    background: linear-gradient(145deg, #f7fbf5 0%, #fff 72%);
}
.ld-price-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ld-price-kicker span:last-child {
    color: var(--primary-text);
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: none;
}
.ld-section--headline + .ld-section,
.ld-section--headline + .ld-section--compact-details { margin-top: 18px; }
@media (max-width: 768px) {
    .ld-title-row--editorial::after { bottom: -4px; }
    .ld-section--headline { padding: 20px 18px 18px; }
    .ld-title-eyebrow { font-size: .65rem; gap: 6px; }
    .ld-title-eyebrow > span { padding: 4px 7px; }
    .ld-price-kicker { font-size: .66rem; }
}

/* ── Listing page: full visual composition ───────────────────────────────── */
body:has(.ld-page-shell) { background: #eef3ee; }
.ld-page-shell {
    position: relative;
}
.ld-page-shell::before,
.ld-page-shell::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    poMontserrat-events: none;
    filter: blur(2px);
}
.ld-page-shell::before { width: 360px; height: 360px; top: 180px; left: -170px; background: rgba(199,161,74,.10); }
.ld-page-shell::after { width: 420px; height: 420px; top: 760px; right: -240px; background: rgba(80,113,84,.08); }
.ld-page-shell > .ld-title-row { padding: 10px 2px 6px; margin-bottom: 22px; }
.ld-page-shell > .ld-title-row::after { bottom: -9px; }
.ld-page-shell > .ld-section--headline {
    display: flex;
    align-items: flex-end;
    min-height: 142px;
    margin: 0 0 22px;
    padding: 30px 34px;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(37,54,42,.10);
}
.ld-page-shell > .ld-section--headline::before { width: 8px; }
.ld-page-shell > .ld-section--headline .ld-title {font-size: clamp(1.8rem, 4vw, 2.1rem);letter-spacing: -.025em;    font-weight: 800;color: var(--green);line-height: 1.3;margin: 0 0 10px; }
.ld-page-shell > .ld-layout { display: grid; grid-template-columns: minmax(0,1.72fr) minmax(300px,.78fr); gap: 28px; align-items: start; }
.ld-page-shell .ld-left { width: auto; min-width: 0; }
.ld-page-shell .ld-right { width: auto; min-width: 0; top: 105px; }
.ld-page-shell .ld-gallery { border: 8px solid #fff; border-radius: 26px; box-shadow: 0 22px 55px rgba(37,54,42,.16); }
.ld-page-shell .ld-gallery__main { height: 520px; }
.ld-page-shell .ld-gallery__grid { height: 520px; gap: 6px; }
.ld-page-shell .ld-gallery__grid-item { height: 257px; }
.ld-page-shell .ld-section { border-color: rgba(80,113,84,.16); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(37,54,42,.07); }
.ld-page-shell .ld-section:not(.ld-section--headline) { background: rgba(255,255,255,.88); }
.ld-page-shell .ld-section__title { position: relative; padding-bottom: 12px; margin-bottom: 18px; }
.ld-page-shell .ld-section__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 99px; background: var(--gold); }
.ld-page-shell > .ld-layout .ld-right > .ld-sidebar-card:first-child { border: 0; border-radius: 22px; box-shadow: 0 18px 48px rgba(37,54,42,.15); }
.ld-page-shell .ld-price-block { padding: 26px 24px 20px; }
.ld-page-shell .ld-price { font-size: clamp(1.55rem, 3vw, 2.0rem); }
.ld-page-shell .ld-contact-actions { padding: 20px 24px 24px; }
.ld-page-shell .ld-seller { padding: 20px 24px; background: #fbfdfb; }
.ld-page-shell .ld-seller__avatar { box-shadow: 0 0 0 5px var(--primary-bg); }
.ld-page-shell .ld-sidebar-card + .sidebar-title { padding-left: 6px; font-weight: 800; letter-spacing: .03em; }
.ld-page-shell .ld-sidebar-card + .sidebar-title::before { content: '✦'; margin-right: 7px; color: var(--gold); }
.ld-page-shell .ld-prop-card { border-radius: 14px; background: #fbfdfb; }
@media (max-width: 992px) {
    body:has(.ld-page-shell) { background: var(--light); }
    .ld-page-shell > .ld-layout { grid-template-columns: 1fr; }
    .ld-page-shell .ld-right { position: static; order: -1; }
}
@media (max-width: 768px) {
    .ld-page-shell { padding-left: 16px !important; padding-right: 16px !important; }
    .ld-page-shell > .ld-section--headline { min-height: 0; padding: 22px; border-radius: 18px; }
    .ld-page-shell > .ld-section--headline .ld-title { font-size: 1.65rem; }
    .ld-page-shell .ld-gallery { border-width: 5px; border-radius: 18px; }
    .ld-page-shell .ld-gallery__main { height: 300px; }
    .ld-page-shell .ld-gallery__grid { height: 118px; }
    .ld-page-shell .ld-gallery__grid-item { height: 118px; }
}

/* Video is a gallery tile; the floor plan remains a compact full-width section. */
.ld-page-shell .ld-gallery__video-tile,
.ld-page-shell .ld-gallery__video-main {
    position: relative;
    overflow: hidden;
    cursor: poMontserrat;
    background: #16271d;
    z-index: 2;
}
.ld-page-shell .ld-gallery__video-tile { min-height: 0; }
.ld-page-shell .ld-gallery__video-main {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    min-height: 520px;
}
.ld-gallery__video-preview,
.ld-gallery__video-main video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.86);
    transition: transform .35s ease, filter .35s ease;
}
.ld-gallery__video-tile::after,
.ld-gallery__video-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,22,14,.04) 30%, rgba(10,22,14,.78) 100%);
    poMontserrat-events: none;
}
.ld-gallery__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.ld-gallery__video-play {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255,255,255,.86);
    border-radius: 50%;
    background: rgba(37,54,42,.72);
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.ld-gallery__video-play i { margin-left: 3px; }
.ld-gallery__video-tile:hover video,
.ld-gallery__video-main:hover video { transform: scale(1.045); filter: saturate(1); }
.ld-page-shell .ld-gallery__grid--1 .ld-gallery__video-tile,
.ld-page-shell .ld-gallery__grid--2 .ld-gallery__video-tile {
    grid-column: 1 / -1;
    height: auto;
}
.ld-page-shell .ld-section--media-plan-only .ld-plan-wrap { display: block; }
.ld-page-shell .ld-section--media-plan-only .ld-plan-wrap__image { width: 100%; }
.ld-page-shell .ld-section--media-plan-only .ld-floor-plan {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 14px;
    background: #f7faf7;
}
@media (max-width: 768px) {
    .ld-page-shell .ld-gallery__video-main { min-height: 300px; }
    .ld-page-shell .ld-section--media-plan-only .ld-floor-plan { max-height: 280px; }
}

/* Extra characteristics: calm editorial cards that match the listing composition. */
.ld-page-shell .ld-section--extra-details {
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(247,250,247,.92)) !important;
}
.ld-page-shell .ld-section--extra-details .ld-attrs-groups {
    gap: 14px;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group {
    height: auto;
    min-height: 154px;
    padding: 0;
    border: 1px solid rgba(80,113,84,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 7px 18px rgba(37,54,42,.045);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group:hover {
    transform: translateY(-2px);
    border-color: rgba(80,113,84,.32);
    box-shadow: 0 13px 26px rgba(37,54,42,.09);
}
.ld-page-shell .ld-section--extra-details .ld-attr-group__title {
    display: flex;
    min-height: 0;
    margin: 0;
    padding: 15px 16px 11px;
    border-bottom: 1px solid rgba(80,113,84,.12);
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, rgba(235,242,235,.78), rgba(255,255,255,.2));
    color: var(--green);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group__rows {
    max-height: 60px;
    padding: 2px 16px 0;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group.is-expanded .ld-attr-group__rows {
    max-height: 2000px;
}
.ld-page-shell .ld-section--extra-details .ld-attr-row {
    min-height: 28px;
    padding: 6px 0;
    gap: 14px;
    border-bottom-color: rgba(80,113,84,.11);
}
.ld-page-shell .ld-section--extra-details .ld-attr-row__label,
.ld-page-shell .ld-section--extra-details .ld-attr-row__value {
    font-size: .8rem;
    line-height: 1.3;
}
.ld-page-shell .ld-section--extra-details .ld-attr-row__label {
    color: #718077;
}
.ld-page-shell .ld-section--extra-details .ld-attr-row__label i {
    width: 17px;
    color: var(--gold);
    font-size: .7rem;
    text-align: center;
}
.ld-page-shell .ld-section--extra-details .ld-attr-row__value {
    color: #363636;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group__toggle {
    margin-top: auto;
    padding: 8px 16px 11px;
    border-top-color: rgba(80,113,84,.11);
    color: var(--primary);
    font-size: .72rem;
    letter-spacing: .02em;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group__toggle:hover {
    color: var(--gold);
}
.ld-page-shell .ld-section--extra-details .ld-attr-group.is-expanded {
    min-height: 154px;
}
@media (max-width: 768px) {
    .ld-page-shell .ld-section--extra-details .ld-attr-group {
        min-height: 0;
    }
    .ld-page-shell .ld-section--extra-details .ld-attr-group__title,
    .ld-page-shell .ld-section--extra-details .ld-attr-group__rows,
    .ld-page-shell .ld-section--extra-details .ld-attr-group__toggle {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Media section: gracefully handles plan-only, video-only and split layouts */
.ld-section--media { overflow: hidden; }
.ld-section--media .ld-plan-wrap { gap: 24px; }
.ld-section--media .ld-plan-wrap__image,
.ld-section--media .ld-plan-wrap__video { min-width: 0; }
.ld-section--media-split .ld-plan-wrap__image { flex: 1.6 1 0; }
.ld-section--media-split .ld-plan-wrap__video { flex: 1 1 0; }
.ld-section--media-split .ld-plan-wrap__video .ld-video-thumb { aspect-ratio: 16 / 10; }
.ld-section--media-plan-only .ld-plan-wrap__image { flex: 1 1 100%; }
.ld-section--media-plan-only .ld-floor-plan { width: 100%; max-height: 560px; object-fit: contain; background: #f7faf7; }
.ld-section--media-video-only {
    background: linear-gradient(135deg, #193124 0%, #2f5942 100%) !important;
    border-color: transparent !important;
    color: #fff;
}
.ld-section--media-video-only .ld-plan-wrap { display: block; }
.ld-section--media-video-only .ld-plan-wrap__video-title { color: #fff; font-size: 1.4rem; margin-bottom: 16px; }
.ld-section--media-video-only .ld-plan-wrap__video-title i { color: var(--gold); }
.ld-section--media-video-only .ld-video-thumb {
    aspect-ratio: 16 / 9;
    max-height: 560px;
    border: 6px solid rgba(255,255,255,.16);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.ld-section--media-video-only .ld-video-thumb__play i { font-size: 3rem; }
@media (max-width: 768px) {
    .ld-section--media .ld-plan-wrap { display: block; }
    .ld-section--media .ld-plan-wrap__video { margin-top: 22px; }
    .ld-section--media-video-only .ld-plan-wrap__video { margin-top: 0; }
    .ld-section--media-video-only .ld-video-thumb { border-width: 4px; border-radius: 14px; }
}

/* Listing palette: keep the page in the brand green family, without yellow accents. */
.ld-page-shell {
    --ld-accent: #78927d;
    --ld-accent-soft: #e7eee9;
}
.ld-page-shell::before {
    background: rgba(80,113,84,.08);
}

.ld-page-shell > .ld-section--headline {
    background: radial-gradient(circle at 94% 10%, rgba(80,113,84,.10), transparent 24%), linear-gradient(135deg, #fff 0%, #f5faf4 100%);
}
.ld-page-shell > .ld-section--headline::before {
    background: linear-gradient(var(--primary), var(--ld-accent));
}
.ld-page-shell .ld-section__title::after {
    background: var(--ld-accent);
}
.ld-page-shell .ld-sidebar-card + .sidebar-title::before {
    color: var(--ld-accent);
}
.ld-page-shell .ld-gallery__promo-badge--vip {
    background: linear-gradient(135deg, var(--primary), #3f6048);
}
.ld-page-shell .ld-section--extra-details .ld-attr-row__label i {
    color: var(--ld-accent);
}
.ld-page-shell .ld-section--extra-details .ld-attr-group__toggle:hover {
    color: var(--primary);
}
.ld-page-shell .ld-section--media-video-only .ld-plan-wrap__video-title i {
    color: var(--ld-accent);
}

/* Listing page: plain white surface without decorative overflow. */
body:has(.ld-page-shell) {
    background: #fff !important;
    overflow-x: hidden;
}
.ld-page-shell {
    background: #fff;
    overflow-x: clip;
}
.ld-page-shell::before,
.ld-page-shell::after {
    display: none;
}

/* ===== ЕДИНЫЙ БРЕНДОВЫЙ СТИЛЬ С ГЛАВНОЙ =====
   Галерея намеренно не переопределяется: её сетка фото/видео сохраняется. */
body:has(.ld-page-shell) {
    background: #f4f7f6 !important;
}
.ld-page-shell {
    --ld-accent: #507154;
    --ld-accent-soft: #e8f1e9;
    --green: #304b36;
    background: transparent;
}
.ld-page-shell > .ld-title-row {
    margin-bottom: 18px;
}
.ld-page-shell .ld-breadcrumb a,
.ld-page-shell .ld-breadcrumb__current,
.ld-page-shell .ld-address,
.ld-page-shell .ld-views-badge,
.ld-page-shell .ld-date-badge {
    color: #363636;
}
.ld-page-shell .ld-breadcrumb__sep { color: #a5b8a8; }
.ld-page-shell .ld-back-btn {
    border-color: #c8d9ca;
    border-radius: 10px;
    background: #fff;
    color: #363636;
}
.ld-page-shell .ld-back-btn:hover {
    border-color: #507154;
    background: #e8f1e9;
    color: #3d5f41;
}
.ld-page-shell > .ld-section--headline {
    min-height: 132px;
    padding: 28px 32px;
    border: 1px solid #d5e4d7;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5faf6 100%);
    box-shadow: 0 12px 30px rgba(80, 113, 84, .09);
}
.ld-page-shell > .ld-section--headline::before {
    width: 6px;
    background: #507154;
}
.ld-page-shell > .ld-section--headline .ld-title {
    color: #363636;
}
.ld-page-shell .ld-section:not(.ld-section--headline) {
    border-color: #d8e6da;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(80, 113, 84, .07);
}
.ld-page-shell .ld-section__title::after {
    background: #507154;
}
.ld-page-shell .ld-prop-card {
    border-color: #d8e6da;
    border-radius: 12px;
    background: #f7faf8;
}
.ld-page-shell > .ld-layout .ld-right > .ld-sidebar-card:first-child {
    border: 1px solid #d4e3d6;
    border-top: 4px solid #507154;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(80, 113, 84, .11);
}
.ld-page-shell .ld-right > .ld-sidebar-card:first-child .ld-price-block {
    background: linear-gradient(145deg, #f3f8f4 0%, #fff 72%);
}
.ld-page-shell .ld-price,
.ld-page-shell .ld-price-kicker,
.ld-page-shell .ld-price-per,
.ld-page-shell .ld-seller__profile-link,
.ld-page-shell .ld-seller__email {
    color: #363636;
}
.ld-page-shell .ld-seller {
    background: #f7faf8;
    border-top: 1px solid #e1ebe3;
    border-bottom: 1px solid #e1ebe3;
}
.ld-page-shell .ld-seller__avatar {
    background: #e8f1e9;
    color: #507154;
    box-shadow: 0 0 0 4px #dce9de;
}
.ld-page-shell .ld-btn-phone.btn-primary,
.ld-page-shell .ld-btn-phone--revealed.btn-primary {
    background: #507154;
    border-color: #507154;
}
.ld-page-shell .ld-btn-phone.btn-primary:hover,
.ld-page-shell .ld-btn-phone--revealed.btn-primary:hover {
    background: #3d5f41;
    border-color: #3d5f41;
}
.ld-page-shell .ld-btn-chat,
.ld-page-shell .ld-btn-fav-price {
    border-color: #bfd2c1;
    color: #507154;
}
.ld-page-shell .ld-btn-chat:hover,
.ld-page-shell .ld-btn-fav-price:hover {
    border-color: #507154;
    background: #e8f1e9;
    color: #3d5f41;
}
.ld-page-shell .ld-sidebar-card + .sidebar-title {
    color: #507154;
}
.ld-page-shell .ld-sidebar-card + .sidebar-title::before {
    color: #507154;
}
.ld-page-shell .ld-similar__title,
.ld-page-shell .ld-hot-offers__title {
    color: #507154;
}

.ld-page-shell .ld-section--extra-details .ld-attr-row__label i {
    color: #507154;
}
.ld-page-shell .ld-section--extra-details .ld-attr-group__toggle:hover {
    color: #3d5f41;
}
@media (max-width: 768px) {
    .ld-page-shell > .ld-section--headline {
        padding: 22px 20px;
        border-radius: 16px;
    }
}
