

/* Hover feedback must keep the target's hit area stationary. Animate colors,
   shadows and inner artwork; do not translate, rotate or scale the target. */
:root {
    
    --ink: #0c1d17;          
    --pine: #16322a;
    --pine-2: #1e4237;
    --pine-3: #2a5a4a;
    --gold: #c6a45c;
    --gold-bright: #e8cf8f;
    --gold-deep: #a4802f;
    --gold-dim: rgba(198, 164, 92, .42);
    --gold-soft: rgba(198, 164, 92, .12);

    
    --ivory: #f6f2e7;
    --paper: #fcfaf3;
    --paper-2: #f7f3e8;
    --card: #ffffff;
    --card-2: #fbf8ef;

    
    --text: #33332b;
    --text-2: #4d4d44;
    --text-muted: #71705f;
    --text-faint: #9a9888;
    --line: #ddd5c2;
    --line-2: #e8e1cf;

    
    --st-on_sale: #b8801f;       
    --st-on_sale-bg: #fff4d6;
    --st-available: #2a6f4d;     
    --st-available-bg: #e3f1e7;
    --st-rented: #5b5b5b;        
    --st-rented-bg: #ececec;
    --st-sold: #6e1424;          
    --st-sold-bg: #f6e0e4;
    --st-archived: #64748b;      
    --st-archived-bg: #e6eaf0;
    --st-maintenance: #6b4f8a;
    --st-maintenance-bg: #ece4f5;
    --st-withdrawn: #4b5563;
    --st-withdrawn-bg: #e5e8ec;
    --st-draft: #6b7280;
    --st-draft-bg: #eef0f3;
    --st-published: #2a6f4d;
    --st-published-bg: #e3f1e7;
    --st-completed: #2a6f4d;
    --st-completed-bg: #e3f1e7;
    --st-failed: #b91c1c;
    --st-failed-bg: #fde4e4;
    --st-cancelled: #b45309;
    --st-cancelled-bg: #fdecd6;

    
    --shadow-sm: 0 1px 2px rgba(16, 28, 22, .06);
    --shadow-md: 0 4px 14px -4px rgba(16, 28, 22, .12), 0 1px 2px rgba(16, 28, 22, .05);
    --shadow-lg: 0 12px 32px -10px rgba(16, 28, 22, .18), 0 2px 6px rgba(16, 28, 22, .06);
    --shadow-xl: 0 24px 60px -20px rgba(16, 28, 22, .3), 0 4px 12px rgba(16, 28, 22, .08);
    --shadow-gold: 0 8px 24px -8px rgba(198, 164, 92, .35);

    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --radius-xl: 22px;

    
    --serif: "Lato", sans-serif;
    --sans: "Lato", sans-serif;

    /* Modern Municipal Design System Tokens */
    --primary: #1e5a38;
    --primary-hover: #16442b;
    --color-primary: #1d4ed8;
    --color-primary-hover: #1e40af;
    --color-primary-active: #1e3a8a;
    --color-primary-subtle: #eff6ff;
    --color-accent: #c6a45c;
    --color-accent-bright: #e8cf8f;
    --color-accent-deep: #a4802f;
    --color-accent-subtle: rgba(198, 164, 92, .14);
    --color-bg-page: #fcfaf3;
    --color-bg-surface: #ffffff;
    --color-bg-surface-alt: #f8fafc;
    --color-bg-muted: #f1f5f9;
    --color-text-main: #0f172a;
    --color-text-secondary: #334155;
    --color-text-muted: #64748b;
    --color-text-faint: #94a3b8;
    --color-text-inverse: #ffffff;
    --color-border-main: #e2e8f0;
    --color-border-subtle: #f1f5f9;
    --color-border-focus: #1d4ed8;
    --font-family-base: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --touch-target-min: 44px;

    
    --ease: cubic-bezier(.2, .8, .25, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: .18s;
    --t: .28s;
    --t-slow: .5s;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background-color: var(--paper);
    background-image: radial-gradient(rgba(22, 50, 42, .045) 1px, transparent 1.3px);
    background-size: 22px 22px;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.skip-link {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    outline: none !important;
}

.skip-link:focus {
    position: fixed !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 10000 !important;
    width: auto !important;
    height: auto !important;
    padding: .75rem 1rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 2px solid var(--gold) !important;
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px !important;
    background: var(--ink) !important;
    color: #fff !important;
    box-shadow: 0 0 0 4px var(--ink) !important;
}

::selection {
    background: var(--pine);
    color: var(--gold-bright);
}

a {
    color: #1d5c46;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

a:hover {
    color: var(--gold-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Варианты в выпадающих списках наследуют единый шрифт портала
   (без правила <option> берёт системный шрифт формы). */
select option,
select optgroup {
    font-family: var(--sans);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}


.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.notice {
    background: var(--ink);
    border-top: 3px solid var(--gold);
    color: #c3cec2;
    font-size: 13px;
    line-height: 1.7;
    letter-spacing: .01em;
    padding: 10px 20px;
    text-align: center;
}

.notice b {
    color: var(--ivory);
    font-weight: 700;
}

.notice a {
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    transition: color var(--t-fast), border-color var(--t-fast);
}

.notice a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.notice-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}


.masthead {
    position: relative;
    text-align: center;
    color: var(--ivory);
    padding: 56px 24px 48px;
    border-bottom: 1px solid var(--gold-dim);
    overflow: hidden;
    background:
        radial-gradient(1100px 420px at 50% -12%, rgba(232, 207, 143, .16), transparent 60%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #153028, #0f231c 55%, #0c1d17);
}

.masthead-passepartout {
    position: absolute;
    inset: 14px;
    pointer-events: none;
    border: 1px solid rgba(198, 164, 92, .34);
}

.masthead-inner {
    position: relative;
    z-index: 1;
    animation: rise .7s var(--ease-out) both;
}

.masthead-inner > * {
    animation: rise .7s var(--ease-out) both;
}
.masthead-inner > *:nth-child(2) { animation-delay: .08s; }
.masthead-inner > *:nth-child(3) { animation-delay: .14s; }
.masthead-inner > *:nth-child(4) { animation-delay: .2s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.overline {
    font: 600 13px var(--sans);
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin: 0 0 16px;
}

.masthead-title {
    font-family: var(--serif);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(28px, 4.4vw, 50px);
    line-height: 1.14;
    letter-spacing: .05em;
    margin: 0 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
    color: var(--ivory);
}

.masthead-subtitle {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(15px, 1.8vw, 22px);
    line-height: 1.3;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin: 0;
    color: var(--ivory);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .45);
}

.rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 560px;
    margin: 0 auto 22px;
}

.rule::before,
.rule::after {
    content: "";
    height: 1px;
    flex: 1;
}

.rule::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.rule::after  { background: linear-gradient(90deg, var(--gold), transparent); }

.rule span {
    color: var(--gold-bright);
    font-size: 9px;
    line-height: 1;
}

.badge {
    display: inline-block;
    font: 700 12px/1 var(--sans);
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold-bright);
    border: 1px solid var(--gold-dim);
    background: rgba(198, 164, 92, .09);
    padding: 9px 18px 8px;
}

/* Long law-reference badge on the masthead: wraps gracefully on narrow screens */
@media (max-width: 960px) {
    .masthead .badge {
        max-width: 100%;
        white-space: normal;
        line-height: 1.7;
        letter-spacing: .14em;
        text-wrap: balance;
    }
}


.dentils {
    display: none;
}


.top-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background:
        linear-gradient(180deg, rgba(255, 252, 244, .98) 0%, rgba(248, 244, 232, .96) 100%);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--gold-dim);
    box-shadow:
        0 14px 36px -22px rgba(16, 28, 22, .42),
        0 1px 0 rgba(198, 164, 92, .12) inset;
    transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}

.top-nav::before {
    display: none;
}

.top-nav.is-scrolled {
    box-shadow:
        0 10px 28px -16px rgba(16, 28, 22, .3),
        0 1px 0 rgba(198, 164, 92, .12) inset;
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}


.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: none;
    color: var(--ink);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    padding: 4px 0;
}

.brand-logo:hover,
.brand-logo.lift-held{
    opacity: .92;
    color: var(--ink);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 3px;
}

.brand-title {
    font: 700 19px/1.2 var(--serif);
    color: var(--ink);
    letter-spacing: .01em;
}

.brand-subtitle {
    font: 600 11px/1.2 var(--sans);
    color: var(--gold-deep);
    letter-spacing: .26em;
    text-transform: uppercase;
    margin-top: 2px;
}


.main-menu-header {
    display: none;
}

.main-menu-items {
    display: contents;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 9px;
    white-space: nowrap;
    text-decoration: none;
    font: 700 15px var(--sans);
    letter-spacing: .01em;
    color: var(--pine);
    transition: color var(--t-fast) var(--ease), transform var(--t) var(--ease);
    border-radius: var(--radius-md);
}

.menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-deep);
    transition: color var(--t-fast) var(--ease), transform var(--t) var(--ease);
}

.menu-item-text {
    line-height: 1;
}

.menu-item::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t) var(--ease);
    border-radius: 2px;
}

.menu-item:hover,
.menu-item.is-active {
    color: var(--ink);
}

.menu-item:hover .menu-item-icon,
.menu-item.is-active .menu-item-icon {
    color: var(--gold);
    transform: scale(1.08);
}

.menu-item:hover::after,
.menu-item.is-active::after {
    transform: scaleX(1);
}

.operator-link {
    margin-left: 8px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
}


.hamburger {
    display: none;
    width: 52px;
    height: 52px;
    padding: 0 12px;
    margin-left: auto;
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--card) 0%, var(--paper-2) 100%);
    color: var(--pine);
    position: relative;
    transition:
        background var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        box-shadow var(--t) var(--ease),
        transform var(--t-fast) var(--ease);
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    flex-direction: column;
}

.hamburger:hover,
.hamburger.lift-held{
    background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 164, 92, .1), 0 8px 18px -8px rgba(198, 164, 92, .25);
}

.hamburger-label {
    font: 700 9px/1 var(--sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-top: 2px;
}

.hamburger-box {
    display: inline-block;
    width: 22px;
    height: 14px;
    position: relative;
    margin-top: 2px;
}

.hamburger-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pine);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pine);
    border-radius: 2px;
    transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}

.hamburger-inner::before { top: -6px; }
.hamburger-inner::after  { top: 6px; }

.hamburger.is-active {
    background: linear-gradient(180deg, var(--ink) 0%, var(--pine) 100%);
    border-color: var(--gold);
}

.hamburger.is-active .hamburger-label {
    color: var(--gold-bright);
}

.hamburger.is-active .hamburger-inner {
    background: transparent;
}

.hamburger.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--gold-bright);
}

.hamburger.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--gold-bright);
}


.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 29, 23, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t) var(--ease), backdrop-filter var(--t) var(--ease);
    z-index: 65;
}

.menu-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}


/* ==========================================================================
   Visually Impaired Mode Toggle Button
   ========================================================================== */
.visually-impaired-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: none;
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--card) 0%, var(--paper-2) 100%);
    color: var(--pine);
    cursor: pointer;
    transition:
        background var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        box-shadow var(--t) var(--ease),
        color var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
    position: relative;
    z-index: 90;
}

.visually-impaired-btn:hover,
.visually-impaired-btn.lift-held{
    background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198, 164, 92, .1), 0 8px 18px -8px rgba(198, 164, 92, .25);
}

.visually-impaired-btn.is-active {
    background: linear-gradient(180deg, var(--ink) 0%, var(--pine) 100%);
    border-color: var(--gold);
    color: var(--gold-bright);
    box-shadow: 0 0 0 3px rgba(198, 164, 92, .15), 0 4px 12px -4px rgba(198, 164, 92, .3);
}

.visually-impaired-btn.is-active:hover {
    background: linear-gradient(180deg, var(--pine) 0%, var(--pine-2) 100%);
}


/* ==========================================================================
   Visually Impaired Mode — High Contrast
   ========================================================================== */
html.visually-impaired {
    background-color: var(--vi-bg-custom, #ffffff);
    color: var(--vi-fg-custom, #000000);
}

body.visually-impaired {
    /* Токены цветовой схемы версии для слабовидящих — «чёрным по белому»
       (единственная встроенная схема, ГОСТ Р 52872-2019).
       Персональная настройка (меню кастомизации, vi-custom.js) подставляет
       значения через *-custom переменные; запасные значения — базовые
       монохромные цвета схемы. */
    --vi-bg: var(--vi-bg-custom, #ffffff);
    --vi-fg: var(--vi-fg-custom, #000000);
    /* Цвет границ настраивается отдельно от цвета текста; по умолчанию
       совпадает с ним («цвет текста и границ всегда один»). */
    --vi-line: var(--vi-line-custom, var(--vi-fg));
    /* Заливка активированной кнопки: по умолчанию нейтральный серый,
       чтобы ни чёрный, ни белый текст не сливались; настраивается ползунком. */
    --vi-active-bg: var(--vi-active-bg-custom, #808080);
    --vi-active-fg: var(--vi-active-fg-custom, #ffffff);

    --ink: var(--vi-fg);
    --pine: var(--vi-fg);
    --pine-2: var(--vi-fg);
    --pine-3: var(--vi-fg);
    --gold: var(--vi-fg);
    --gold-bright: var(--vi-fg);
    --gold-deep: var(--vi-fg);
    --gold-dim: var(--vi-fg);
    --gold-soft: rgba(0, 0, 0, .18);

    --ivory: var(--vi-fg);
    --paper: var(--vi-bg);
    --paper-2: var(--vi-bg);
    --card: var(--vi-bg);
    --card-2: var(--vi-bg);

    --text: var(--vi-fg);
    --text-2: var(--vi-fg);
    --text-muted: var(--vi-fg);
    --text-faint: var(--vi-fg);
    --line: var(--vi-fg);
    --line-2: var(--vi-fg);

    --c-bg-page: var(--vi-bg);
    --c-bg-surface: var(--vi-bg);
    --c-bg-surface-alt: var(--vi-bg);
    --c-bg-muted: var(--vi-bg);
    --c-text-main: var(--vi-fg);
    --c-text-secondary: var(--vi-fg);
    --c-text-muted: var(--vi-fg);
    --c-text-faint: var(--vi-fg);
    --c-border-main: var(--vi-line);
    --c-border-subtle: var(--vi-line);

    background: var(--vi-bg);
    color: var(--vi-fg);
}

/* Схема «белым по чёрному» убрана (раунд 10): используется единственная
   встроенная схема «чёрным по белому»; персональные цвета задаются
   ползунками меню кастомизации через *-custom переменные. */

body.visually-impaired *,
body.visually-impaired *::before,
body.visually-impaired *::after {
    text-shadow: none !important;
}

body.visually-impaired a {
    color: var(--vi-fg);
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

body.visually-impaired a:hover {
    color: var(--vi-fg);
    text-decoration-thickness: 2px;
}

body.visually-impaired a:focus-visible,
body.visually-impaired button:focus-visible,
body.visually-impaired input:focus-visible,
body.visually-impaired select:focus-visible,
body.visually-impaired textarea:focus-visible {
    outline: 3px solid var(--vi-line);
    outline-offset: 2px;
}

body.visually-impaired .top-nav {
    background: var(--vi-bg) !important;
    border-bottom: 3px solid var(--vi-line);
    box-shadow: none;
}

body.visually-impaired .brand-title,
body.visually-impaired .brand-subtitle,
body.visually-impaired .brand-text {
    color: var(--vi-fg);
}

body.visually-impaired .menu-item {
    color: var(--vi-fg);
    font-weight: 700;
}

body.visually-impaired .menu-item-icon {
    color: var(--vi-fg);
}

body.visually-impaired .menu-item:hover,
body.visually-impaired .menu-item.is-active {
    color: var(--vi-fg);
    background: var(--vi-bg);
}

body.visually-impaired .hamburger {
    background: var(--vi-bg);
    border: 2px solid var(--vi-line);
    color: var(--vi-fg);
}

body.visually-impaired .hamburger-inner,
body.visually-impaired .hamburger-inner::before,
body.visually-impaired .hamburger-inner::after {
    background: var(--vi-fg);
}

body.visually-impaired .visually-impaired-btn {
    background: var(--vi-bg);
    border: 2px solid var(--vi-line);
    color: var(--vi-fg);
}

body.visually-impaired .visually-impaired-btn.is-active {
    background: var(--vi-bg);
    color: var(--vi-fg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .notice {
    background: var(--vi-bg);
    border-bottom: 2px solid var(--vi-line);
    color: var(--vi-fg);
}

body.visually-impaired .notice a {
    color: var(--vi-fg);
    font-weight: 700;
}

body.visually-impaired .footer-main {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border-top: 3px solid var(--vi-line);
}

body.visually-impaired .footer-heading {
    color: var(--vi-fg);
}

body.visually-impaired .footer-contact a,
body.visually-impaired .footer-links a,
body.visually-impaired .footer-external a {
    color: var(--vi-fg);
}

body.visually-impaired .footer-tagline,
body.visually-impaired .footer-contact {
    color: var(--vi-fg);
}

body.visually-impaired .footer-bottom {
    color: var(--vi-fg);
    border-top: 1px solid var(--vi-line);
}

body.visually-impaired .btn,
body.visually-impaired .btn-primary {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
    font-weight: 700;
}

body.visually-impaired .btn:hover,
body.visually-impaired .btn-primary:hover {
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .btn-secondary {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
}

body.visually-impaired .btn-secondary:hover {
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .btn-property-to-lot,
body.visually-impaired .btn-prop-request-docs,
body.visually-impaired .btn-lot-bottom-action,
body.visually-impaired .btn-lot-property-card {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
}

body.visually-impaired .btn-property-to-lot:hover,
body.visually-impaired .btn-prop-request-docs:hover,
body.visually-impaired .btn-lot-bottom-action:hover,
body.visually-impaired .btn-lot-property-card:hover,
body.visually-impaired .btn-property-to-lot.lift-held{
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .btn-doc-download,
body.visually-impaired .btn-card-details,
body.visually-impaired .btn-download,
body.visually-impaired .btn-prop-doc-download,
body.visually-impaired .map-list-link,
body.visually-impaired .lot-doc-official-card {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
    text-decoration: none;
}

body.visually-impaired .btn-doc-download:hover,
body.visually-impaired .btn-card-details:hover,
body.visually-impaired .btn-download:hover,
body.visually-impaired .btn-prop-doc-download:hover,
body.visually-impaired .map-list-link:hover,
body.visually-impaired .lot-doc-official-card:hover,
body.visually-impaired .btn-card-details.lift-held,
body.visually-impaired .btn-download.lift-held{
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .lot-sticky-cta {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
    text-decoration: none;
    box-shadow: none;
}

body.visually-impaired .lot-sticky-cta:hover,
body.visually-impaired .lot-sticky-cta.lift-held{
    background: var(--vi-bg);
    color: var(--vi-fg);
    transform: none;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .form-control,
body.visually-impaired .catalog-search-input input,
body.visually-impaired .map-query input,
body.visually-impaired .catalog-filter-panel input,
body.visually-impaired .catalog-filter-panel select,
body.visually-impaired .map-toolbar select,
body.visually-impaired textarea {
    border-color: var(--vi-line);
    background: var(--vi-bg);
    color: var(--vi-fg);
}

body.visually-impaired .card,
body.visually-impaired .filter-card,
body.visually-impaired .property-card {
    border: 2px solid var(--vi-line);
    background: var(--vi-bg);
}

body.visually-impaired h1,
body.visually-impaired h2,
body.visually-impaired h3,
body.visually-impaired h4,
body.visually-impaired h5,
body.visually-impaired h6 {
    color: var(--vi-fg);
}

body.visually-impaired .dentils {
    background: var(--vi-fg);
}

body.visually-impaired .skip-link:focus {
    border-color: var(--vi-line) !important;
    outline-color: var(--vi-line) !important;
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    box-shadow: 0 0 0 4px var(--vi-fg) !important;
}

body.visually-impaired .section-heading,
body.visually-impaired .catalog-heading,
body.visually-impaired .map-heading {
    border-bottom: 2px solid var(--vi-line);
}

body.visually-impaired .stats-banner {
    border-top: 2px solid var(--vi-line);
    border-bottom: 2px solid var(--vi-line);
}

body.visually-impaired table {
    border: 2px solid var(--vi-line);
}

body.visually-impaired th,
body.visually-impaired td {
    border: 1px solid var(--vi-line);
    color: var(--vi-fg);
}

body.visually-impaired th {
    background: var(--vi-bg);
}

body.visually-impaired .back-to-top {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
}

body.visually-impaired .back-to-top:hover,
body.visually-impaired .back-to-top.lift-held{
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

/* --- Masthead: white bg + black text --- */
body.visually-impaired .masthead {
    background: var(--vi-bg) !important;
    border-bottom: 3px solid var(--vi-line);
    color: var(--vi-fg);
}

body.visually-impaired .masthead-passepartout {
    border-color: var(--vi-line);
}

body.visually-impaired .masthead-title {
    color: var(--vi-fg);
    text-shadow: none;
}

body.visually-impaired .overline {
    color: var(--vi-fg);
}

body.visually-impaired .rule,
body.visually-impaired .badge {
    color: var(--vi-fg);
    border-color: var(--vi-line);
    background: var(--vi-bg);
}

/* --- Purchase path: white bg + black text --- */
body.visually-impaired .purchase-path {
    background: var(--vi-bg) !important;
    color: var(--vi-fg);
    border-top: 3px solid var(--vi-line);
    border-bottom: 3px solid var(--vi-line);
}

body.visually-impaired .purchase-path::before {
    border-color: var(--vi-line);
}

body.visually-impaired .purchase-path .eyebrow {
    color: var(--vi-fg);
}

body.visually-impaired .purchase-path h2 {
    color: var(--vi-fg);
}

body.visually-impaired .purchase-path li {
    background: var(--vi-bg);
    border: 2px solid var(--vi-line);
    color: var(--vi-fg);
}

body.visually-impaired .purchase-path li span {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
}

body.visually-impaired .purchase-path li:hover,
body.visually-impaired .purchase-path li.lift-held{
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .outline-link {
    border-color: var(--vi-line);
    color: var(--vi-fg);
    background: transparent;
}

body.visually-impaired .outline-link:hover,
body.visually-impaired .outline-link.lift-held{
    background: var(--vi-bg);
    color: var(--vi-fg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

/* --- Hamburger menu header contrast --- */
body.visually-impaired .main-menu-header {
    background: var(--vi-bg) !important;
    border-bottom: 3px solid var(--vi-line);
}

body.visually-impaired .main-menu-header::after {
    background: linear-gradient(90deg, transparent, var(--vi-fg), var(--vi-fg), transparent) !important;
}

/* !important is mandatory here: body.nav-compact .main-menu-brand-* rules
   further down the file share the same specificity but win by cascade order,
   which left the gold/beige tones visible in the compact (hamburger) menu. */
body.visually-impaired .main-menu-brand-title {
    color: var(--vi-fg) !important;
}

body.visually-impaired .main-menu-brand-sub {
    color: var(--vi-fg) !important;
}

body.visually-impaired .main-menu-close {
    border-color: var(--vi-line) !important;
    color: var(--vi-fg) !important;
    background: var(--vi-bg) !important;
}

/* --- Search forms: only colors, no layout change --- */
body.visually-impaired .lux-search {
    background: var(--vi-bg);
    border-color: var(--vi-line);
}

body.visually-impaired .lux-search__icon {
    color: var(--vi-fg);
    filter: none;
}

body.visually-impaired .lux-search__input {
    color: var(--vi-fg);
}

body.visually-impaired .lux-search__input::placeholder {
    color: var(--vi-fg);
}

body.visually-impaired .lux-search__btn {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border-color: var(--vi-line);
}

body.visually-impaired .lux-search__btn:hover,
body.visually-impaired .lux-search__btn.lift-held{
    background: var(--vi-bg);
    color: var(--vi-fg);
    transform: none;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .lux-search:focus-within {
    transform: none;
    box-shadow: none;
}

body.visually-impaired .catalog-filter-panel {
    background: var(--vi-bg);
    border-color: var(--vi-line);
}

body.visually-impaired .catalog-search-input {
    background: var(--vi-bg);
    border-color: var(--vi-line);
}

body.visually-impaired .catalog-search-input i {
    color: var(--vi-fg);
}

body.visually-impaired .catalog-apply-button {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
}

body.visually-impaired .catalog-apply-button:hover {
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .map-toolbar {
    background: var(--vi-bg);
    border-color: var(--vi-line);
}

body.visually-impaired .map-query {
    background: var(--vi-bg);
    border-color: var(--vi-line);
}

body.visually-impaired .map-query i {
    color: var(--vi-fg);
}

body.visually-impaired .map-toolbar button[type="submit"] {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
}

body.visually-impaired .map-toolbar button[type="submit"]:hover {
    background: var(--vi-bg);
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .map-clear {
    color: var(--vi-fg);
    text-decoration: underline;
}

body.visually-impaired .home-hero {
    background: var(--vi-bg);
}

body.visually-impaired .hero-copy h1,
body.visually-impaired .hero-copy h2,
body.visually-impaired .hero-lead,
body.visually-impaired .eyebrow {
    color: var(--vi-fg);
}

body.visually-impaired .hero-categories a {
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    color: var(--vi-fg) !important;
}

body.visually-impaired .hero-categories a:hover,
body.visually-impaired .hero-categories a:focus-visible,
body.visually-impaired .hero-categories a.lift-held {
    background: var(--vi-active-bg) !important;
    border-color: var(--vi-line) !important;
    color: var(--vi-active-fg) !important;
}

body.visually-impaired .hero-task-links a {
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    color: var(--vi-fg) !important;
    box-shadow: none !important;
}

body.visually-impaired .hero-task-links a strong,
body.visually-impaired .hero-task-links a i,
body.visually-impaired .hero-task-links a span {
    color: var(--vi-fg) !important;
}

body.visually-impaired .hero-task-links a:hover,
body.visually-impaired .hero-task-links a:focus-visible,
body.visually-impaired .hero-task-links a.lift-held {
    background: var(--vi-active-bg) !important;
    border-color: var(--vi-line) !important;
    color: var(--vi-active-fg) !important;
}

body.visually-impaired .hero-task-links a:hover strong,
body.visually-impaired .hero-task-links a:hover i,
body.visually-impaired .hero-task-links a:hover span,
body.visually-impaired .hero-task-links a:focus-visible strong,
body.visually-impaired .hero-task-links a:focus-visible i,
body.visually-impaired .hero-task-links a:focus-visible span,
body.visually-impaired .hero-task-links a.lift-held strong,
body.visually-impaired .hero-task-links a.lift-held i,
body.visually-impaired .hero-task-links a.lift-held span {
    color: var(--vi-active-fg) !important;
}

body.visually-impaired .home-section {
    background: var(--vi-bg);
}

body.visually-impaired .home-section-tint {
    background: var(--vi-bg);
}

body.visually-impaired .registry-directory a {
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    color: var(--vi-fg) !important;
    box-shadow: none !important;
}

body.visually-impaired .registry-directory a span,
body.visually-impaired .registry-directory a strong,
body.visually-impaired .registry-directory a small {
    color: var(--vi-fg) !important;
}

body.visually-impaired .registry-directory a:hover,
body.visually-impaired .registry-directory a:focus-visible,
body.visually-impaired .registry-directory a.lift-held {
    background: var(--vi-active-bg) !important;
    border-color: var(--vi-line) !important;
    color: var(--vi-active-fg) !important;
}

body.visually-impaired .registry-directory a:hover span,
body.visually-impaired .registry-directory a:hover strong,
body.visually-impaired .registry-directory a:hover small,
body.visually-impaired .registry-directory a:focus-visible span,
body.visually-impaired .registry-directory a:focus-visible strong,
body.visually-impaired .registry-directory a:focus-visible small,
body.visually-impaired .registry-directory a.lift-held span,
body.visually-impaired .registry-directory a.lift-held strong,
body.visually-impaired .registry-directory a.lift-held small {
    color: var(--vi-active-fg) !important;
}

body.visually-impaired .catalog-heading,
body.visually-impaired .auction-heading,
body.visually-impaired .map-heading,
body.visually-impaired .stats-banner {
    background: var(--vi-bg) !important;
}

body.visually-impaired .dentils {
    background: var(--vi-fg);
}

body.visually-impaired .ambient-stage {
    display: none;
}

body.visually-impaired .menu-backdrop {
    background: rgba(0, 0, 0, .6);
}

/* ==========================================================================
   Visually Impaired Mode — strict monochrome enforcement
   The rules above restyle the token-based palette; the block below forces
   every remaining hard-coded accent (status pills, deadline highlights,
   colored icons, chips, tags) to the same black-on-white scheme, so all
   text, frames and borders stay black while backgrounds stay white.
   ========================================================================== */
body.visually-impaired ::selection {
    background: var(--vi-fg);
    color: var(--vi-bg);
}

body.visually-impaired::before,
body.visually-impaired .home-hero::before,
body.visually-impaired .home-section-tint::before,
body.visually-impaired .purchase-path::after,
body.visually-impaired .masthead::before {
    background: none;
    animation: none;
}

/* Status pills, badges and markers */
body.visually-impaired .status-badge,
body.visually-impaired .status-badge *,
body.visually-impaired .c-badge,
body.visually-impaired [class*="c-badge--"],
body.visually-impaired .lot-status-pill,
body.visually-impaired .prop-status-pill,
body.visually-impaired .map-selection-panel .status-badge,
body.visually-impaired .status-announced,
body.visually-impaired .status-applications,
body.visually-impaired .status-available,
body.visually-impaired .status-on_sale,
body.visually-impaired .status-sold,
body.visually-impaired .status-withdrawn,
body.visually-impaired .status-archived,
body.visually-impaired .status-draft,
body.visually-impaired .lot-timeline-badge,
body.visually-impaired .auction-card-state,
body.visually-impaired .auction-card-state *,
body.visually-impaired .auction-card-state--available,
body.visually-impaired .auction-card-state--preliminary,
body.visually-impaired .auction-card--working .auction-card-state,
body.visually-impaired .auction-state-label,
body.visually-impaired .auction-state-label *,
body.visually-impaired .auction-state-label--available,
body.visually-impaired .auction-state-label--approved,
body.visually-impaired .lot-status-pill .lot-status-dot,
body.visually-impaired .map-selection-panel .card-fact-badge {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.visually-impaired .lot-timeline-step .lot-timeline-dot {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line);
    box-shadow: none;
}

/* Deadline / urgent highlights */
body.visually-impaired .card-deadline,
body.visually-impaired .card-deadline i,
body.visually-impaired .auction-card--working .auction-card-deadline,
body.visually-impaired .auction-card--working .auction-card-deadline span,
body.visually-impaired .auction-card--working .auction-card-deadline.is-urgent strong,
body.visually-impaired .lot-fact-deadline-badge,
body.visually-impaired .lot-fact-deadline-badge.is-urgent,
body.visually-impaired .lot-fact-deadline-title,
body.visually-impaired .lot-sticky-deadline,
body.visually-impaired .prop-trading-deadline,
body.visually-impaired .map-selection-panel .card-deadline-badge,
body.visually-impaired .map-selection-panel .card-deadline-badge i,
body.visually-impaired .lot-hero-fact-card--deadline {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none;
}

/* Colored inline icons and labels */
body.visually-impaired .doc-icon,
body.visually-impaired .lot-doc-icon,
body.visually-impaired .prop-doc-icon,
body.visually-impaired .auction-procedure-tag,
body.visually-impaired .lot-bundle-tag,
body.visually-impaired .auction-bundle-note,
body.visually-impaired .auction-card--working .auction-card-number,
body.visually-impaired .auction-card--working .auction-card-price span,
body.visually-impaired .auction-card--working .auction-card-address,
body.visually-impaired .auction-card-cadastral,
body.visually-impaired .lot-sticky-disabled,
body.visually-impaired .property-mobile-bar__btn,
body.visually-impaired .participation-notice,
body.visually-impaired .ymap-clean-hint,
body.visually-impaired .ymap-clean-hint strong {
    color: var(--vi-fg) !important;
}

/* Filter chips, presets, checkboxes and advanced panels */
body.visually-impaired .active-chip,
body.visually-impaired .active-filter-chip {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}

body.visually-impaired .active-chip a,
body.visually-impaired .active-chip a:hover,
body.visually-impaired .chip-remove,
body.visually-impaired .chip-remove:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--vi-fg) !important;
}

body.visually-impaired .active-chip a:hover,
body.visually-impaired .chip-remove:hover {
    text-decoration: underline !important;
}

body.visually-impaired .active-chip-clear,
body.visually-impaired .active-chip-clear:hover,
body.visually-impaired .preset-btn,
body.visually-impaired .checkbox-box,
body.visually-impaired .custom-checkbox-item,
body.visually-impaired .advanced-section,
body.visually-impaired .advanced-actions-bar,
body.visually-impaired .advanced-section .section-title,
body.visually-impaired .map-selection-panel,
body.visually-impaired .map-selection-panel .card-price-block,
body.visually-impaired .property-card .card-price-block,
body.visually-impaired .auction-card .card-price-block,
body.visually-impaired .card-price-block {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 1px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .price-val,
body.visually-impaired .price-val.price-status,
body.visually-impaired .price-status,
body.visually-impaired .property-card .price-val,
body.visually-impaired .property-card .price-val.price-status,
body.visually-impaired .property-card .price-cadastral-note,
body.visually-impaired .property-card .price-cadastral-note *,
body.visually-impaired .property-card .price-cadastral-reference,
body.visually-impaired .property-card .price-cadastral-reference *,
body.visually-impaired .price-cadastral-note,
body.visually-impaired .price-cadastral-note *,
body.visually-impaired .price-cadastral-reference,
body.visually-impaired .price-cadastral-reference *,
body.visually-impaired .price-label,
body.visually-impaired .price-suffix,
body.visually-impaired .price-val__suffix {
    color: var(--vi-fg) !important;
}

body.visually-impaired .registry-tabs a,
body.visually-impaired .registry-subtabs a {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none;
}

body.visually-impaired .registry-tabs a.is-active,
body.visually-impaired .registry-subtabs a.is-active {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 3px solid var(--vi-line) !important;
    transform: none;
}

body.visually-impaired .registry-directory a,
body.visually-impaired .registry-hub-card {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none;
}

/* Gold-tinted hover borders declared with !important in luxe.css */
body.visually-impaired .lux-bordered:hover,
body.visually-impaired .property-card:hover,
body.visually-impaired .auction-card:hover,
body.visually-impaired .operator-dashboard__card:hover,
body.visually-impaired .document-card:hover,
body.visually-impaired .archive-card:hover,
body.visually-impaired .step-card:hover,
body.visually-impaired .contact-card:hover,
body.visually-impaired .info-card:hover,
body.visually-impaired .specs-card:hover,
body.visually-impaired .stats-banner:hover,
body.visually-impaired .callout-info:hover,
body.visually-impaired .btn-reset:hover,
body.visually-impaired .outline-link:hover,
body.visually-impaired .text-link:hover,
body.visually-impaired .hero-categories a:hover,
body.visually-impaired .catalog-price-filter:hover,
body.visually-impaired .auction-state-option:hover,
body.visually-impaired .empty-state:hover,
body.visually-impaired .lux-bordered.lift-held,
body.visually-impaired .property-card.lift-held,
body.visually-impaired .auction-card.lift-held,
body.visually-impaired .operator-dashboard__card.lift-held,
body.visually-impaired .document-card.lift-held,
body.visually-impaired .archive-card.lift-held,
body.visually-impaired .step-card.lift-held,
body.visually-impaired .contact-card.lift-held,
body.visually-impaired .info-card.lift-held,
body.visually-impaired .specs-card.lift-held,
body.visually-impaired .stats-banner.lift-held,
body.visually-impaired .callout-info.lift-held,
body.visually-impaired .btn-reset.lift-held,
body.visually-impaired .outline-link.lift-held,
body.visually-impaired .text-link.lift-held,
body.visually-impaired .hero-categories a.lift-held,
body.visually-impaired .catalog-price-filter.lift-held,
body.visually-impaired .auction-state-option.lift-held,
body.visually-impaired .empty-state.lift-held {
    border-color: var(--vi-line) !important;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
}

body.visually-impaired .btn-filter-submit:hover,
body.visually-impaired .btn-advanced-apply:hover,
body.visually-impaired .btn-empty-map:hover,
body.visually-impaired .btn-empty-reset:hover,
body.visually-impaired .btn-advanced-reset:hover,
body.visually-impaired .search-clear-btn:hover,
body.visually-impaired .map-selection-close:hover,
body.visually-impaired .btn-filter-submit.lift-held{
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg);
    transform: none;
}

body.visually-impaired .map-selection-panel .card-body::-webkit-scrollbar-thumb {
    background: var(--vi-fg);
}

/* --------------------------------------------------------------------------
   Visually impaired mode — refinements (round 2)
   -------------------------------------------------------------------------- */

/* «Витрина объектов недвижимости» in the masthead must stay black here;
   the inline style="color: white" on the element needs an !important win. */
body.visually-impaired .masthead .overline {
    color: var(--vi-fg) !important;
}

/* «Помещения» / «Здания» / «Земельные участки» quick links: on hover they
   must read black-on-white and carry the very same purple gradient as the
   «Разделы муниципального имущества» cards (enhancements.css palette),
   instead of the pine-inverted fill that turned black-on-black here. */
body.visually-impaired .hero-categories a {
    z-index: 0;
}

body.visually-impaired .hero-categories a:hover,
body.visually-impaired .hero-categories a.lift-held {
    background: var(--vi-bg);
    color: var(--vi-fg);
}

body.visually-impaired .hero-categories a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(60, 30, 100, .07) 0%, rgba(120, 80, 180, .15) 50%, rgba(60, 30, 100, .04) 100%);
    opacity: 0;
    transition: opacity .45s var(--ease-smooth, ease);
    pointer-events: none;
}

body.visually-impaired .hero-categories a::after {
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 50%), rgba(140, 100, 210, .24) 0%, rgba(80, 50, 140, .10) 35%, transparent 70%);
    opacity: 0;
}

body.visually-impaired .hero-categories a:hover::before,
body.visually-impaired .hero-categories a.lift-held::before,
body.visually-impaired .hero-categories a:hover::after,
body.visually-impaired .hero-categories a.lift-held::after {
    opacity: 1;
}

/* Offer counters («Сейчас на торгах», «Свободные объекты»): whatever the
   number is, the pill stays white with a black number and a black frame. */
body.visually-impaired .count-mark,
body.visually-impaired .count-mark-light {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
}

/* Every «Найти» / «Показать» / «Показать на карте» action across all
   sections: white surface, black label, black frame — resting, hovered
   and lift-held alike. */
body.visually-impaired .btn-filter-submit,
body.visually-impaired .btn-advanced-apply,
body.visually-impaired .btn-empty-map,
body.visually-impaired .auction-details-link--map {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .btn-filter-submit:hover,
body.visually-impaired .btn-advanced-apply:hover,
body.visually-impaired .btn-empty-map:hover,
body.visually-impaired .btn-filter-submit.lift-held,
body.visually-impaired .btn-advanced-apply.lift-held,
body.visually-impaired .btn-empty-map.lift-held,
body.visually-impaired .auction-details-link--map:hover,
body.visually-impaired .auction-details-link--map.lift-held {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg) !important;
    transform: none;
}

/* The rounded counter inside «Найти» follows the same scheme. */
body.visually-impaired .btn-count,
body.visually-impaired .btn-filter-submit .btn-count,
body.visually-impaired .auction-filter-submit .btn-count,
body.visually-impaired .auction-filter-apply-btn .btn-count,
body.visually-impaired .auction-inline-submit .btn-count,
body.visually-impaired .btn-advanced-apply .btn-count {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 1px solid var(--vi-line) !important;
    box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Visually impaired mode — refinements (round 3)
   -------------------------------------------------------------------------- */

/* Любое изображение — фотография или шаблонный плейсхолдер отсутствующей
   фотографии — заменяется конгруэнтной ему белой плоскостью, границы которой
   выделены чёрным. Механика: растровое содержимое смещается далеко за пределы
   рамки элемента и обрезается (object-fit: none + off-screen object-position),
   при этом сам <img> сохраняет исходные габариты и форму (включая
   border-radius), а белый фон и чёрная рамка образуют требуемую плоскость.
   color: #000 отвечает за читаемый alt-текст «битых» изображений. */
body.visually-impaired:not(.vi-show-images) .card-image-wrap,
body.visually-impaired:not(.vi-show-images) .prop-gallery-wrapper,
body.visually-impaired:not(.vi-show-images) .prop-gallery-card,
body.visually-impaired:not(.vi-show-images) .gallery-container,
body.visually-impaired:not(.vi-show-images) .prop-gallery-main,
body.visually-impaired:not(.vi-show-images) .prop-thumbs-row,
body.visually-impaired:not(.vi-show-images) .prop-no-photo-card,
body.visually-impaired:not(.vi-show-images) .auction-card-image,
body.visually-impaired:not(.vi-show-images) .notice-card-image {
    display: none !important;
}

body.visually-impaired:not(.vi-show-images) img {
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    color: var(--vi-fg);
    object-fit: none !important;
    object-position: -99999px -99999px !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
}

body.visually-impaired.vi-show-images img {
    border: 2px solid var(--vi-line);
    object-position: initial !important;
    object-fit: cover;
    mix-blend-mode: normal !important;
}

/* Страница 404 в режиме для слабовидящих: строгая чёрно-белая схема. */
body.visually-impaired .error-page__code {
    color: var(--vi-fg);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

body.visually-impaired .error-page,
body.visually-impaired .error-page__card {
    background: var(--vi-bg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .error-page__title,
body.visually-impaired .error-page__desc,
body.visually-impaired .error-page__reasons li,
body.visually-impaired .error-page__hint {
    color: var(--vi-fg);
}

body.visually-impaired .error-page__reasons li {
    border-color: var(--vi-line);
    background: var(--vi-bg);
}

body.visually-impaired .error-page__reasons li::before {
    color: var(--vi-fg);
}

body.visually-impaired .error-page__actions a {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .error-page__actions a:hover,
body.visually-impaired .error-page__actions a.lift-held {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg) !important;
    transform: none;
}

body.visually-impaired .error-page__divider {
    background: var(--vi-fg) !important;
}

body.visually-impaired .error-page__nav-note {
    color: var(--vi-fg);
}

/* Счётчики и переключатели каталога фильтров: серо-зелёные подложки — в ч/б. */
body.visually-impaired .category-tab-count,
body.visually-impaired .category-tab .category-tab-count {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 1px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .category-tab.is-active .category-tab-count,
body.visually-impaired .category-tab.is-active:hover .category-tab-count {
    background: var(--vi-active-fg, #ffffff) !important;
    color: var(--vi-active-bg, #000000) !important;
    border: 1px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .active-badge,
body.visually-impaired .btn-filter-toggle .active-badge {
    background: var(--vi-fg) !important;
    color: var(--vi-bg) !important;
    border: 1px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .checkbox-count-badge {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 1px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .btn-filter-toggle {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .btn-filter-toggle:hover,
body.visually-impaired .btn-filter-toggle.is-active {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: 0 0 0 2px var(--vi-bg), 0 0 0 4px var(--vi-fg) !important;
}

/* Карточки раздела «Контакты»: inline-акценты (зелёные ссылки, чипы,
   оттенки фона) приводятся к строгой чёрно-белой схеме. */
body.visually-impaired .specs-card {
    background: var(--vi-bg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .specs-card a,
body.visually-impaired .specs-card i,
body.visually-impaired .specs-card span,
body.visually-impaired .specs-card td.val {
    color: var(--vi-fg) !important;
}

body.visually-impaired .specs-card a span {
    background: transparent !important;
}

/* Активный пункт меню-шторки: правило body.nav-compact .menu-item.is-active
   ниже по файлу идёт позже с той же специфичностью — усиливаем важностью. */
body.visually-impaired .menu-item:hover,
body.visually-impaired .menu-item.is-active {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
}

body.visually-impaired .menu-item:hover .menu-item-icon {
    color: var(--vi-fg) !important;
}

body.visually-impaired .menu-item.is-active .menu-item-icon,
body.visually-impaired .menu-item.is-active svg,
body.visually-impaired .menu-item.is-active:hover .menu-item-icon,
body.visually-impaired .menu-item.is-active:hover svg,
body.visually-impaired .menu-item.is-active:focus .menu-item-icon,
body.visually-impaired .menu-item.is-active:focus svg {
    color: var(--vi-active-fg) !important;
    stroke: var(--vi-active-fg) !important;
}

/* Карта: подложка контейнера и янтарные маркеры количества — в ч/б. */
body.visually-impaired #full-map,
body.visually-impaired #catalog-map,
body.visually-impaired .map-canvas,
body.visually-impaired .property-map-canvas {
    background: var(--vi-bg) !important;
}

/* Интерактивная карта в версии для слабовидящих.
   1) Монохром: цветная картографическая основа (canvas векторного/растрового
   рендера, img-тайлы, подписи, объекты границ) переводится в чёрно-белую
   фильтром на контейнере карты — фильтр действует на всё её содержимое.
   Функциональная графика карты, в отличие от фотографий объектов, не
   заменяется белой плоскостью: карта обязана оставаться читаемой, но без
   каких-либо цветовых оттенков.
   2) Компенсация масштаба: страница в режиме для слабовидящих увеличена
   (zoom 1.2), при этом пиксельная математика картографических провайдеров —
   позиционирование DOM-меток, пересчёт экранных координат клика в координаты
   карты, попадание в фигуру объекта — работает в базовом масштабе 1:1.
   Из-за этого расхождения метки пропадают с карты, а клик по ним не
   открывает карточку объекта. Обратный zoom (1 / 1.2) на контейнерах карты
   возвращает содержимому карты экранные координаты 1:1, не уменьшая
   увеличенный текст и элементы остальной части страницы. */
body.visually-impaired #full-map,
body.visually-impaired #catalog-map,
body.visually-impaired #detail-map {
    zoom: 0.8333; /* 1 / 1.2 — обратная величина к увеличению страницы */
    filter: grayscale(1) contrast(1.05);
}

/* Растровые тайлы карты (если провайдер использует img-рендер) не
   превращаются в белые плоскости — они несут картографическую основу;
   их монохромизирует фильтр контейнера выше. */
body.visually-impaired #full-map img,
body.visually-impaired #catalog-map img,
body.visually-impaired #detail-map img {
    background: transparent !important;
    border: 0 !important;
    object-fit: fill !important;
    object-position: initial !important;
}

/* Метки объектов на карте: чёрный круг с белой пиктограммой; аукционная/
   выбранная метка — инверсная (белый круг с чёрной пиктограммой и чёрной
   рамкой). Цвета заданы литерально: подложка карты остаётся светлой
   монохромной в обеих цветовых схемах, поэтому метки обязаны контрастировать
   именно с ней, а не с фоном страницы. */
body.visually-impaired .property-map-marker,
body.visually-impaired .yandex-property-marker {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

body.visually-impaired .property-map-marker.is-active,
body.visually-impaired .property-map-marker-auction,
body.visually-impaired .yandex-property-marker.is-active,
body.visually-impaired .yandex-property-marker-auction {
    background: #fff !important;
    color: #000 !important;
    border: 3px solid #000 !important;
}

/* Контентные страницы: inline-цвета оттенков slate (архив, документы) — в ч/б. */
body.visually-impaired main [style*="color: #64748b"],
body.visually-impaired main [style*="color: #0f172a"],
body.visually-impaired main [style*="color: #334155"] {
    color: var(--vi-fg) !important;
}

body.visually-impaired main [style*="background: #f8fafc"] {
    background: var(--vi-bg) !important;
    border-color: var(--vi-line) !important;
}

body.visually-impaired main [style*="border-bottom: 1px solid #e2e8f0"] {
    border-color: var(--vi-line) !important;
}

/* «Как участвовать»: зелёные подложки и рамки шагов — в ч/б. */
body.visually-impaired .participation-notice {
    background: var(--vi-bg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .participation-notice * {
    color: var(--vi-fg) !important;
}

body.visually-impaired .participation-step {
    border-color: var(--vi-line) !important;
    background: var(--vi-bg) !important;
}

body.visually-impaired .map-count span,
body.visually-impaired .map-count strong {
    color: var(--vi-fg) !important;
}

/* Садовые участки: inline-цвета статусов и полей фильтра — в ч/б. */
body.visually-impaired .auction-state-option span,
body.visually-impaired .auction-state-option span b {
    color: var(--vi-fg) !important;
}

body.visually-impaired .auction-compact-filter input[type="text"],
body.visually-impaired .auction-compact-filter select {
    background: var(--vi-bg) !important;
    border-color: var(--vi-line) !important;
    color: var(--vi-fg) !important;
}

body.visually-impaired .auction-card p[style] {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 1px solid var(--vi-line) !important;
}


.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--pine);
    color: var(--gold-bright);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gold-dim);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), background var(--t-fast) var(--ease);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top.lift-held{
    background: var(--ink);
}


.footer-main {
    background: linear-gradient(180deg, #122a22, #0b1a14);
    color: #c9d2c6;
    flex: none;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 20px 44px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 46px;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.footer-emblem {
    width: 52px;
    height: auto;
    color: var(--gold);
    flex: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.footer-heading {
    font: 700 12px var(--sans);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 16px;
}

.footer-heading-sm {
    margin-top: 22px;
}

.footer-tagline {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #aebcae;
    font-family: var(--sans);
}

.footer-links {
    display: grid;
    gap: 10px;
    font-size: 15px;
}

.footer-links a {
    color: #ecead9;
    text-decoration: none;
    border-bottom: 1px solid rgba(236, 234, 217, .25);
    padding-bottom: 2px;
    transition: color var(--t-fast), border-color var(--t-fast);
    width: fit-content;
}

.footer-links a:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
}

.footer-contact {
    display: grid;
    gap: 8px;
    font-size: 14.5px;
    color: #aebcae;
    line-height: 1.6;
}

.footer-contact a {
    color: #ecead9;
    border-bottom: 1px solid rgba(236, 234, 217, .25);
    padding-bottom: 2px;
    width: fit-content;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.footer-contact a:hover {
    color: var(--gold-bright);
    border-color: var(--gold);
}

.footer-external {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.footer-external a {
    color: var(--gold-bright);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 2px;
    width: fit-content;
    transition: color var(--t-fast), border-color var(--t-fast);
}

.footer-external a:hover {
    color: #fff;
    border-color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(198, 164, 92, .25);
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    text-align: center;
    font-size: 12.5px;
    letter-spacing: .08em;
    color: #86998a;
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}


.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 11px;
    font: 700 10.5px/1 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .92);
    color: var(--text);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}

.status-on_sale     { background: var(--st-on_sale-bg);     color: var(--st-on_sale); }
.status-available   { background: var(--st-available-bg);   color: var(--st-available); }
.status-rented      { background: var(--st-rented-bg);      color: var(--st-rented); }
.status-sold        { background: var(--st-sold-bg);        color: var(--st-sold); }
.status-archived    { background: var(--st-archived-bg);    color: var(--st-archived); }
.status-maintenance { background: var(--st-maintenance-bg); color: var(--st-maintenance); }
.status-withdrawn   { background: var(--st-withdrawn-bg);   color: var(--st-withdrawn); }
.status-draft       { background: var(--st-draft-bg);       color: var(--st-draft); }
.status-published   { background: var(--st-published-bg);   color: var(--st-published); }
.status-completed   { background: var(--st-completed-bg);   color: var(--st-completed); }
.status-failed      { background: var(--st-failed-bg);      color: var(--st-failed); }
.status-cancelled   { background: var(--st-cancelled-bg);   color: var(--st-cancelled); }

.type-pill {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 11px;
    font: 700 10.5px/1 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--gold-bright);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: var(--shadow-sm);
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
    position: relative;
    cursor: default;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    content: "";
    cursor: pointer;
}

.property-card:has(.stretched-link:focus-visible) {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.property-card:hover .card-title a {
    color: var(--pine-2);
}

.property-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
    z-index: 3;
}

.property-card:hover,
.property-card.lift-held{
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-dim);
}

.property-card:hover::before,
.property-card.lift-held::before{
    transform: scaleX(1);
}

.card-image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--paper-2);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease-out), filter .5s var(--ease);
}

.property-card:hover .card-image,
.property-card.lift-held .card-image {
    transform: scale(1.08);
    filter: none;
}

.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-top-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lot-bundle-tag {
    font: 700 10.5px/1 var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1e4237;
    background: #e6f4ea;
    border: 1px solid #b7dfc4;
    padding: 3px 8px;
    border-radius: var(--radius-sm, 4px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-type {
    font: 700 10.5px/1 var(--sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.card-title {
    font: 700 18px/1.3 var(--serif);
    color: var(--ink);
    margin: 0;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

.card-title a:hover {
    color: var(--pine-2);
}

.card-address {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.card-address i {
    color: var(--gold-deep);
    margin-top: 3px;
    flex: none;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 12.5px;
    color: var(--text-2);
}

.card-meta span,
.card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: var(--gold-deep);
    font-size: 11px;
}

.card-price-block {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-val {
    font: 700 22px/1.1 var(--serif);
    color: var(--ink);
    letter-spacing: .01em;
}

.price-val.price-status {
    color: var(--pine-2);
    font-size: 18px;
}

.price-label {
    font: 600 11px/1 var(--sans);
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pine);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease), gap var(--t) var(--ease);
}

.card-details-link span {
    transition: transform var(--t) var(--ease);
}

.card-details-link:hover {
    color: var(--gold-deep);
    gap: 10px;
}


.home-hero {
    position: relative;
    background:
        radial-gradient(900px 320px at 12% 0%, rgba(198, 164, 92, .14), transparent 60%),
        radial-gradient(700px 280px at 100% 100%, rgba(30, 66, 55, .08), transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--line-2);
    overflow: hidden;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font: 700 12px var(--sans);
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 14px;
}

.hero-copy h1,
.hero-copy h2 {
    font: 700 clamp(32px, 4vw, 48px)/1.12 var(--serif);
    color: var(--ink);
    margin: 0 0 16px;
    letter-spacing: .01em;
}

.hero-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 0 26px;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 8px 8px 8px 18px;
    box-shadow: var(--shadow-md);
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
    max-width: 560px;
}

.hero-search:focus-within {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg), 0 0 0 3px var(--gold-soft);
}

.hero-search i {
    color: var(--gold-deep);
    font-size: 16px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: 15px var(--sans);
    color: var(--text);
    padding: 10px 6px;
}

.hero-search input::placeholder {
    color: var(--text-faint);
}

.hero-search button {
    flex: none;
    background: var(--pine);
    color: var(--gold-bright);
    border: 1px solid var(--pine);
    border-radius: var(--radius-md);
    padding: 11px 22px;
    font: 700 13px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}

.hero-search button:hover,
.hero-search button.lift-held{
    background: var(--ink);
    color: #fff;
}


.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-categories a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: var(--radius-full, 9999px);
    background: var(--card);
    color: var(--pine);
    font: 700 12px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--t-fast) var(--ease);
}

.hero-categories a:hover,
.hero-categories a.lift-held{
    background: var(--pine);
    color: var(--gold-bright);
    border-color: var(--pine);
}

.hero-images {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    aspect-ratio: 4 / 3;
}

.hero-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--paper-2);
}

.hero-image-main {
    grid-row: 1 / 3;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-image-caption {
    position: absolute;
    bottom: -28px;
    right: 0;
    font: 600 11px var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
}


.home-section {
    padding: 56px 0;
}

.home-section-tint {
    position: relative;
    background: var(--paper-2);
    border-top: 1px solid var(--line-2);
    border-bottom: 1px solid var(--line-2);
    overflow: hidden;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-heading h2 {
    font: 700 clamp(22px, 2.6vw, 32px)/1.2 var(--serif);
    color: var(--ink);
    margin: 0 0 6px;
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-heading p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    max-width: 540px;
}

.count-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 12px;
    background: var(--pine);
    color: var(--gold-bright);
    border-radius: var(--radius-sm);
    font: 700 16px/1 var(--serif);
    box-shadow: var(--shadow-sm);
}

.count-mark-light {
    background: var(--card);
    color: var(--pine);
    border: 1px solid var(--gold-dim);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pine);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease), gap var(--t) var(--ease);
}

.text-link span {
    transition: transform var(--t) var(--ease);
}

.text-link:hover {
    color: var(--gold-deep);
    gap: 10px;
}

.text-link:hover span {
    transform: translateX(4px);
}

.empty-state {
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}


.purchase-path {
    background: linear-gradient(135deg, var(--pine) 0%, var(--ink) 100%);
    color: var(--ivory);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.purchase-path::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(198, 164, 92, .25);
    pointer-events: none;
}

.purchase-path-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 40px;
    align-items: center;
}

.purchase-path .eyebrow {
    color: var(--gold-bright);
}

.purchase-path h2 {
    font: 700 clamp(24px, 2.8vw, 34px)/1.18 var(--serif);
    color: var(--ivory);
    margin: 0;
    letter-spacing: .02em;
}

.purchase-path ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    counter-reset: step;
}

.purchase-path li {
    position: relative;
    padding: 22px 18px 22px 70px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(198, 164, 92, .25);
    border-radius: var(--radius-md);
    color: var(--ivory);
    font: 700 15px var(--sans);
    letter-spacing: .02em;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.purchase-path li:hover,
.purchase-path li.lift-held{
    background: rgba(255, 255, 255, .08);
    border-color: var(--gold);
}

.purchase-path li span {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--ink);
    border-radius: 50%;
    font: 700 14px/1 var(--serif);
}

.outline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    text-decoration: none;
    font: 700 13px var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    background: rgba(198, 164, 92, .08);
    transition: background var(--t) var(--ease), color var(--t) var(--ease), gap var(--t) var(--ease);
}

.outline-link:hover,
.outline-link.lift-held{
    background: var(--gold);
    color: var(--ink);
    gap: 12px;
}


.catalog-heading,
.auction-heading,
.map-heading,
.stats-banner {
    background: #ffffff;
    border-bottom: 1px solid var(--line-2);
    padding: 36px 0 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.catalog-heading h1,
.auction-heading h1,
.map-heading h1,
.stats-banner h1 {
    font: 700 clamp(26px, 3vw, 38px)/1.2 var(--serif);
    color: var(--ink);
    margin: 4px 0 8px;
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.catalog-heading h1 i,
.auction-heading h1 i,
.stats-banner h1 i,
.map-heading h1 i {
    color: var(--gold-deep);
    font-size: .8em;
}

.catalog-heading p,
.auction-heading p,
.map-heading p,
.stats-banner p {
    color: var(--text-2);
    font-size: 15px;
    max-width: 700px;
    margin: 0;
}

.map-heading-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.map-list-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--pine);
    color: var(--pine);
    text-decoration: none;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    background: var(--card);
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.map-list-link:hover {
    background: var(--pine);
    color: var(--gold-bright);
}


.catalog-page,
.auction-registry,
.map-page {
    padding: 28px 0 50px;
}

.filter-card,
.auction-filter-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 22px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.catalog-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 8px 8px 8px 16px;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.catalog-search-row:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.catalog-search-row > i {
    color: var(--gold-deep);
    font-size: 15px;
}

.catalog-query {
    flex: 1;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-query input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: 15px var(--sans);
    color: var(--text);
    padding: 10px 0;
}

.btn-search {
    flex: none;
    background: var(--pine);
    color: var(--gold-bright);
    border: 1px solid var(--pine);
    border-radius: var(--radius-md);
    padding: 11px 22px;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}

.btn-search:hover,
.btn-search.lift-held{
    background: var(--ink);
    color: #fff;
}


.filter-grid,
.auction-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.catalog-filters {
    grid-template-columns: repeat(5, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font: 700 11px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font: 14px var(--sans);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23a4802f' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 32px;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.catalog-price-filter {
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    padding-top: 14px;
}

.catalog-price-filter summary {
    cursor: pointer;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pine);
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: color var(--t-fast);
}

.catalog-price-filter summary::-webkit-details-marker { display: none; }
.catalog-price-filter summary span {
    transition: transform var(--t) var(--ease);
    display: inline-block;
}
.catalog-price-filter[open] summary span { transform: rotate(180deg); }

.catalog-price-filter summary:hover { color: var(--gold-deep); }

.catalog-price-fields {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.catalog-price-fields label {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 600 12px var(--sans);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.catalog-price-fields input {
    width: 140px;
    border: 1px solid var(--line);
    background: var(--card);
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font: 14px var(--sans);
    color: var(--text);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.catalog-price-fields input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.filter-actions,
.auction-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 11px 18px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--pine);
    text-decoration: none;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--t-fast) var(--ease);
}

.btn-reset:hover {
    background: var(--paper-2);
    border-color: var(--gold-dim);
    color: var(--gold-deep);
}

.btn-card-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 1px solid var(--pine);
    background: var(--card);
    color: var(--pine);
    text-decoration: none;
    font: 700 12px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--t-fast) var(--ease);
}

.btn-card-details:hover,
.btn-card-details.lift-held{
    background: var(--pine);
    color: var(--gold-bright);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--paper-2);
    color: var(--pine);
    text-decoration: none;
    font: 700 12px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    transition: all var(--t-fast) var(--ease);
}

.btn-download:hover,
.btn-download.lift-held{
    background: var(--pine);
    color: var(--gold-bright);
    border-color: var(--pine);
}


.catalog-advanced-details {
    margin-top: 14px;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
}

.catalog-advanced-summary {
    cursor: pointer;
    font: 700 13px var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pine);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    user-select: none;
}

.catalog-advanced-summary:hover {
    color: var(--ink);
}

.catalog-advanced-content {
    margin-top: 14px;
}

.active-chips-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.active-chips-bar[hidden] { display: none; }

.active-chips-label {
    font: 700 12px var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.active-chips-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--card);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-full, 9999px);
    font: 600 12.5px var(--sans);
    color: var(--pine);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.active-chip a {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11px;
    margin-left: 2px;
    text-decoration: none;
    transition: color var(--t-fast);
}

.active-chip a:hover {
    color: var(--pine);
}

.active-chip-clear {
    font: 700 11.5px var(--sans);
    letter-spacing: .05em;
    color: var(--pine);
    text-decoration: none;
    min-height: 36px;
    height: 36px;
    padding: 4px 12px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: all var(--t-fast) var(--ease);
}

.active-chip-clear:hover {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

.catalog-results-head,
.auction-results-head {
    background: #ffffff;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-results-head p,
.auction-results-head h2 {
    font: 700 18px var(--serif);
    color: var(--ink);
    margin: 0;
}

.catalog-results-head p strong,
.auction-results-head span {
    color: var(--gold-deep);
    font-weight: 700;
}

.auction-results-head h2 {
    font-size: 22px;
}

.auction-results-head span {
    font-size: 14px;
    color: var(--text-muted);
    font: 600 14px var(--sans);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pine);
    text-decoration: none;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card);
    transition: all var(--t-fast) var(--ease);
}

.map-link:hover {
    background: var(--pine);
    color: var(--gold-bright);
    border-color: var(--pine);
}


.catalog-split-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.view-grid-only .map-column { display: none; }

.cards-column { min-width: 0; }


.auction-state-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.auction-state-option {
    position: relative;
    cursor: pointer;
}

.auction-state-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auction-state-option span {
    display: inline-block;
    padding: 8px 14px;
    font: 700 12px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-2);
    border-radius: var(--radius-sm);
    transition: all var(--t-fast) var(--ease);
    user-select: none;
}

.auction-state-option:hover span,
.auction-state-option.lift-held span {
    color: var(--pine);
    background: var(--card);
}

.auction-state-option input:checked + span {
    background: var(--pine);
    color: var(--gold-bright);
}

.auction-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.auction-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.auction-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
    position: relative;
    cursor: default;
}

.auction-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 50%, var(--gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
    z-index: 3;
}

.auction-card:hover,
.auction-card.lift-held{
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-dim);
}

.auction-card:hover::before,
.auction-card.lift-held::before{ transform: scaleX(1); }

.auction-card .card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.auction-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--paper-2);
}

.auction-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}

.auction-card:hover .auction-card-image img,
.auction-card.lift-held .auction-card-image img {
    transform: scale(1.06);
}

.auction-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font: 700 11px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.auction-card-state {
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    font-size: 10.5px;
}

.auction-card-title {
    font: 700 18px/1.3 var(--serif);
    color: var(--ink);
    margin: 0;
}

.auction-card-address {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.auction-card-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.auction-card-price span {
    font: 600 11px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.auction-card-price strong {
    font: 700 22px/1.1 var(--serif);
    color: var(--ink);
}

.auction-card-deadline {
    font-size: 12.5px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.auction-card-deadline span {
    color: var(--st-on_sale);
    font-size: 8px;
}

.auction-details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pine);
    text-decoration: none;
    transition: color var(--t-fast), gap var(--t) var(--ease);
}

.auction-details-link span {
    transition: transform var(--t) var(--ease);
}

.auction-details-link:hover {
    color: var(--gold-deep);
    gap: 10px;
}

.auction-card-number {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    font: 600 11px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.auction-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 10px;
    flex-wrap: wrap;
}

.auction-pagination span {
    font: 700 14px var(--sans);
    color: var(--text-2);
    letter-spacing: .05em;
}

.auction-empty {
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 56px 24px;
    text-align: center;
}

.auction-empty i {
    font-size: 44px;
    color: var(--gold-deep);
    margin-bottom: 14px;
    display: block;
}

.auction-empty h3 {
    font: 700 20px var(--serif);
    color: var(--ink);
    margin: 0 0 6px;
}

.auction-empty p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 18px;
}


.detail-header {
    background:
        radial-gradient(700px 220px at 5% 0%, rgba(198, 164, 92, .12), transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    padding: 36px 0 30px;
    border-bottom: 1px solid var(--line-2);
}

.detail-header > .container > div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.detail-title {
    font: 700 clamp(24px, 3vw, 36px)/1.18 var(--serif);
    color: var(--ink);
    margin: 6px 0 10px;
    letter-spacing: .01em;
}

.detail-address {
    font-size: 14px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-address i {
    color: var(--gold-deep);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.gallery-container {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.main-gallery-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--paper-2);
    transition: opacity var(--t) var(--ease);
}

.thumbs-row {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: var(--card);
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumb-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .7;
    transition: opacity var(--t-fast), border-color var(--t-fast);
    flex: none;
}

.thumb-img:hover { opacity: 1; }
.thumb-img.active {
    opacity: 1;
    border-color: var(--gold);
}

.specs-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.specs-card h2,
.specs-card h3 {
    font: 700 17px var(--serif);
    color: var(--ink);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-card h2 i,
.specs-card h3 i {
    color: var(--gold-deep);
    font-size: 16px;
}

.specs-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table tr {
    transition: background var(--t-fast);
}

.specs-table tr:hover {
    background: var(--paper-2);
}

.specs-table .label {
    width: 45%;
    padding: 11px 0;
    color: var(--text-muted);
    font: 600 13px var(--sans);
    border-bottom: 1px solid var(--line-2);
    vertical-align: top;
}

.specs-table .val {
    padding: 11px 0;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid var(--line-2);
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.specs-table tr:last-child .label,
.specs-table tr:last-child .val {
    border-bottom: none;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.doc-item:last-child {
    border-bottom: none;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.doc-content,
.doc-info > div {
    min-width: 0;
    flex: 1;
}

.doc-icon {
    font-size: 22px;
    color: #b91c1c;
    flex: none;
}

.doc-name {
    font: 700 14px var(--sans);
    color: var(--ink);
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

.specs-card .doc-item .btn-download {
    position: static;
    overflow: visible;
    transform: none !important;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease) !important;
}

.specs-card .doc-item .btn-download:hover,
.specs-card .doc-item .btn-download.lift-held{
    transform: none !important;
}

.specs-card .doc-item {
    transform: none;
}

.specs-card .doc-item * {
    transform: none !important;
    transition: none !important;
}

.specs-card.is-visible {
    transition: none !important;
    will-change: auto;
}

.doc-type {
    font: 600 11px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}


.auction-widget {
    background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.auction-widget::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}

.widget-price {
    font: 700 28px/1.1 var(--serif);
    color: var(--ink);
    margin: 4px 0 14px;
    letter-spacing: .01em;
}

.widget-sber-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--pine);
    color: var(--gold-bright);
    border: 1px solid var(--pine);
    border-radius: var(--radius-md);
    padding: 13px 18px;
    font: 700 13px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}

.widget-sber-btn:hover,
.widget-sber-btn.lift-held{
    background: var(--ink);
    color: #fff;
}



.map-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.map-query {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.map-query:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.map-query i {
    color: var(--gold-deep);
    font-size: 14px;
}

.map-query input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font: 14px var(--sans);
    color: var(--text);
    padding: 6px 0;
}

.map-toolbar select {
    border: 1px solid var(--line);
    background: var(--card);
    padding: 10px 32px 10px 12px;
    border-radius: var(--radius-md);
    font: 14px var(--sans);
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23a4802f' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color var(--t-fast);
}

.map-toolbar select:hover { border-color: var(--gold-dim); }
.map-toolbar select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.map-toolbar button[type="submit"] {
    background: var(--pine);
    color: var(--gold-bright);
    border: 1px solid var(--pine);
    border-radius: var(--radius-md);
    padding: 10px 22px;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.map-toolbar button[type="submit"]:hover {
    background: var(--ink);
    color: #fff;
}

.map-clear {
    color: var(--pine);
    text-decoration: none;
    font: 700 12px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 10px 14px;
    transition: color var(--t-fast);
}

.map-clear:hover { color: var(--gold-deep); }

.map-workspace {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: calc(100vh - 280px);
    min-height: 460px;
    position: relative;
}

.map-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#full-map,
#catalog-map,
#detail-map {
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: #e8e4d6;
}

.map-count {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: var(--card);
    color: var(--pine);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font: 700 12px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-count .map-count-dot,
.map-count > span:first-child { color: var(--st-on_sale); font-size: 8px; }
.map-count #objects-count-word { font-size: 12px; color: inherit; font-weight: 700; }
.map-count strong { color: var(--gold-deep); font-weight: 800; }


.map-selection-panel {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: auto;
    z-index: 10;
    width: 410px;
    max-width: calc(100% - 28px);
    max-height: calc(100% - 28px);
    background: #ffffff;
    border: 1px solid var(--line, #e2ded4);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.18), 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, visibility 0.28s;
}

.map-selection-panel.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Property card styles inside map panel */
.map-selection-panel .card-image-wrap {
    position: relative;
    display: block;
    height: 165px;
    min-height: 165px;
    overflow: hidden;
    background: var(--paper-2, #f5f4ef);
    flex-shrink: 0;
}

.map-selection-panel .card-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.map-selection-panel .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-selection-panel .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4.5px 10px;
    border-radius: 6px;
    font: 700 10.5px/1 var(--sans);
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.map-selection-panel .status-badge.status-applications {
    background: #b45309;
    color: #ffffff;
}

.map-selection-panel .status-badge.status-announced {
    background: #1e3a8a;
    color: #ffffff;
}

.map-selection-panel .status-badge.status-available {
    background: #1e3a2b;
    color: #ffffff;
}

.map-selection-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line, #e2ded4);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    z-index: 4;
    cursor: pointer;
}

.map-selection-close:hover {
    background: #ffffff;
    color: #ef4444;
}

.map-selection-panel .card-body {
    padding: 13px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.map-selection-panel .card-type {
    font: 700 11px/1.2 var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0;
}

.map-selection-panel .card-title {
    font: 700 15px/1.3 var(--sans);
    color: var(--ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.map-selection-panel .card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--t-fast);
}

.map-selection-panel .card-title a:hover {
    color: var(--pine);
}

.map-selection-panel .card-address {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.map-selection-panel .card-key-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1px;
}

.map-selection-panel .card-fact-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: var(--paper-2, #f5f4ef);
    border: 1px solid var(--line, #e2ded4);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
}

.map-selection-panel .card-fact-badge i {
    color: var(--gold-deep);
    font-size: 10.5px;
}

.map-selection-panel .card-deadline-badge {
    background: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.map-selection-panel .card-deadline-badge i {
    color: #b45309;
}

.map-selection-panel .card-price-block {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px dashed var(--line, #e2ded4);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.map-selection-panel .price-val {
    font: 700 17.5px/1.15 var(--serif);
    color: var(--ink);
    letter-spacing: .01em;
}

.map-selection-panel .price-val.price-status {
    color: var(--pine-2);
    font-size: 14px;
    font-family: var(--sans);
}

.map-selection-panel .price-label {
    font: 600 10px/1 var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.map-selection-panel .card-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--pine);
    color: #ffffff !important;
    border-radius: 8px;
    font: 700 13px var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(30, 58, 43, 0.2);
    white-space: nowrap;
    width: 100%;
    margin-top: 3px;
    min-height: 42px;
    box-sizing: border-box;
}

.map-selection-panel .card-details-btn:hover,
.map-selection-panel .card-details-btn.lift-held{
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.22);
}

.map-selection-panel .card-details-btn i {
    transition: transform 0.2s ease;
}

.map-selection-panel .card-details-btn:hover i,
.map-selection-panel .card-details-btn.lift-held i {
    transform: translateX(3px);
}

/* Multi-property location switcher inside map selection panel */
.map-selection-multibar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line, #e2ded4);
    font-size: 12.5px;
    flex-shrink: 0;
}

.map-selection-multibar[hidden] {
    display: none;
}

.map-multibar-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted, #64748b);
    font-size: 12px;
}

.map-multibar-badge {
    font-weight: 700;
    color: var(--pine, #3f6b57);
}

.map-marker-count {
    color: var(--pine);
}

.map-multibar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 36px;
}

.map-multibar-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--line, #e2ded4);
    background: #ffffff;
    color: var(--text, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.map-multibar-btn:hover {
    background: #f1f5f9;
    border-color: var(--pine, #3f6b57);
    color: var(--pine, #3f6b57);
}

.map-multibar-index {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text, #1e293b);
    min-width: 44px;
    text-align: center;
}

/* Empty state on map canvas */
.map-empty-state {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 241, 234, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
    pointer-events: auto;
}

.map-empty-state[hidden] {
    display: none;
}

.map-empty-box {
    background: #ffffff;
    border: 1px solid var(--line, #e2ded4);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 32px 24px;
    text-align: center;
    max-width: 440px;
    width: 100%;
}

.map-empty-box .empty-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(63, 107, 87, 0.1);
    color: var(--pine, #3f6b57);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.map-empty-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin: 0 0 6px 0;
}

.map-empty-box p {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    margin: 0 auto 18px;
    line-height: 1.45;
}

.map-empty-box .empty-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Cluster badge on marker for multiple properties */
.marker-cluster-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 3px;
    border-radius: 9px;
    background: #0f766e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 3;
}

.property-map-marker-auction .marker-cluster-badge,
.yandex-property-marker-auction .marker-cluster-badge {
    background: #dc2626;
}

/* Yandex Maps Clean Tooltip / Hint styling */
.ymap-clean-hint {
    font-family: "Lato", sans-serif;
    font-size: 12px;
    line-height: 1.35;
    color: var(--ink, #1a202c);
    max-width: 250px;
    white-space: normal;
    word-wrap: break-word;
    padding: 2px 4px;
}

.ymap-clean-hint strong {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold-deep, #926d27);
    margin-bottom: 2px;
    font-weight: 700;
}

.ymaps-2-1-79-hint {
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff !important;
    padding: 6px 10px !important;
    max-width: 270px !important;
    white-space: normal !important;
}

/* Close button on top of the image */
.map-selection-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--line);
    color: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--t-fast);
    z-index: 3;
    cursor: pointer;
}

.map-selection-close:hover {
    background: var(--pine);
    color: var(--gold-bright);
    border-color: var(--pine);
}


.map-popup-card {
    display: flex;
    width: 240px;
    background: var(--card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-popup-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex: none;
}

.map-popup-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.map-popup-title {
    font: 700 13px/1.25 var(--serif);
    color: var(--ink);
}

.map-popup-address,
.map-popup-info > div[style*="color"] {
    font-size: 11px;
    color: var(--text-muted);
}

.map-popup-price {
    font: 700 15px var(--serif);
    color: var(--ink);
    margin-top: 4px;
}

.map-popup-link {
    font: 700 10px var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pine);
    text-decoration: none;
    margin-top: 4px;
    transition: color var(--t-fast);
}

.map-popup-link:hover { color: var(--gold-deep); }


.property-map-marker,
.yandex-property-marker {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pine);
    color: var(--gold-bright);
    border: 2px solid #fff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--t) var(--ease), background var(--t-fast);
    font-size: 13px;
    font-family: inherit;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.property-map-marker:focus-visible,
.yandex-property-marker:focus-visible {
    outline: 3px solid #111827;
    outline-offset: 3px;
    z-index: 4;
}



.property-map-marker.is-active,
.property-map-marker-auction,
.yandex-property-marker-auction {
    background: var(--gold-deep) !important;
    color: #fff !important;
}

.property-map-marker-premises,
.yandex-property-marker-premises {
    background: #0f766e;
    color: #ffffff;
}

.property-map-marker-building,
.yandex-property-marker-building {
    background: #1d4ed8;
    color: #ffffff;
}

.property-map-marker-land,
.yandex-property-marker-land {
    background: #15803d;
    color: #ffffff;
}

.property-map-marker-garden,
.yandex-property-marker-garden {
    background: #16a34a;
    color: #ffffff;
}

.property-map-marker-vehicle,
.yandex-property-marker-vehicle {
    background: #d97706;
    color: #ffffff;
}

.property-map-marker-non_capital,
.yandex-property-marker-non_capital {
    background: #0891b2;
    color: #ffffff;
}

.property-map-marker-other,
.yandex-property-marker-other {
    background: #7c3aed;
    color: #ffffff;
}

.marker-svg-icon {
    display: block;
    width: 18px;
    height: 18px;
    pointer-events: none;
    flex-shrink: 0;
}

.property-map-marker-auction::after,
.yandex-property-marker-auction::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: pulseRing 1.8s ease-out infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0%   { transform: scale(.85); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.map-load-failed {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    min-height: 240px;
}

.map-fallback-notice {
    text-align: center;
    color: var(--text-2, #64748b);
    font-size: 14px;
    padding: 24px;
}

.map-fallback-retry {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    min-height: 44px;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--line, #cbd5e1);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.map-fallback-retry:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}


@media (max-width: 1100px) {
    .catalog-filters {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* ==========================================================================
   Responsive Navigation — compact (hamburger) mode
   Triggered either by `@media (max-width: ...)` or by JS adding `.nav-compact`
   to <body> when overflow measurement says the inline menu no longer fits.
   ========================================================================== */
@media (max-width: 1240px) {
    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 90;
        margin-left: auto;
    }

    .top-nav {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 80;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        filter: none !important;
    }

    .main-menu {
        position: fixed;
        top: 0;
        left: auto;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        width: min(380px, 88vw);
        background:
            linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
        border-left: 1px solid var(--gold-dim);
        box-shadow:
            -24px 0 60px -20px rgba(12, 29, 23, .35),
            0 0 0 1px rgba(198, 164, 92, .04);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 0;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--t) var(--ease-out), visibility 0s var(--t);
        z-index: 95;
        overflow: hidden;
    }

    .main-menu.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        transition: transform var(--t) var(--ease-out), visibility 0s 0s;
    }

    .main-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 22px;
        border-bottom: 1px solid var(--gold-dim);
        background:
            linear-gradient(180deg, var(--ink) 0%, var(--pine) 100%);
        flex: 0 0 auto;
        position: relative;
    }

    .main-menu-header::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 2px;
        background: linear-gradient(90deg,
            transparent,
            var(--gold-deep),
            var(--gold-bright),
            var(--gold-deep),
            transparent);
    }

    .main-menu-brand {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .main-menu-brand-title {
        font: 700 13px/1.2 var(--serif);
        color: var(--gold-bright);
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .main-menu-brand-sub {
        font: 600 11px/1.3 var(--sans);
        color: rgba(246, 242, 231, .75);
        letter-spacing: .04em;
    }

    .main-menu-title {
        font: 700 13px var(--serif);
        color: var(--gold-bright);
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .main-menu-close {
        width: 38px;
        height: 38px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(198, 164, 92, .35);
        background: rgba(255, 255, 255, .08);
        color: var(--gold-bright);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
    }

    .main-menu-close:hover {
        background: rgba(198, 164, 92, .15);
        border-color: var(--gold);
    }

    .main-menu-items {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .menu-item {
        padding: 16px 22px;
        border-bottom: 1px solid var(--line-2);
        font-size: 16px;
        border-radius: 0;
        margin: 0 12px;
        gap: 14px;
    }

    .menu-item-icon svg {
        width: 26px;
        height: 26px;
    }

    .menu-item::after {
        display: none;
    }

    .menu-item:hover,
    .menu-item.is-active {
        background: rgba(198, 164, 92, .08);
        color: var(--ink);
    }

    .menu-item:hover .menu-item-icon,
    .menu-item.is-active .menu-item-icon {
        transform: none;
        color: var(--gold);
    }

    .operator-link {
        flex: 0 0 auto;
        margin: 0;
        padding: 14px 18px;
        border-left: none;
        border-top: 1px solid var(--line);
        background: var(--paper);
    }

    .admin-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    .menu-backdrop {
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 8px 12px;
        gap: 8px;
        flex-wrap: nowrap !important;
        max-width: 100%;
        box-sizing: border-box;
        align-items: center;
        min-height: 54px;
    }
    .brand-logo {
        min-width: 0;
        flex: 0 1 auto;
        gap: 8px;
        padding: 0;
    }
    .brand-logo .gavel-wrap {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }
    .brand-logo .gavel-wrap::after {
        display: none !important;
    }
    .brand-text {
        min-width: 0;
    }
    .brand-title {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.15;
    }
    .brand-subtitle {
        display: none !important;
    }
    .visually-impaired-btn {
        order: 1;
        margin-left: auto !important;
    }
    .vi-settings-btn {
        order: 2;
    }
    .hamburger,
    body.nav-compact .hamburger {
        order: 3;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .brand-subtitle {
        display: none !important;
    }
    .nav-container {
        padding: 6px 10px;
        gap: 6px;
    }
    .brand-title {
        font-size: 14px;
    }
}

body.nav-compact .hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 90;
    margin-left: auto;
}

body.nav-compact .top-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
}

body.nav-compact .notice {
    margin-top: 0;
}

body.nav-compact .main-menu {
    position: fixed;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    width: min(380px, 88vw);
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
    border-left: 1px solid var(--gold-dim);
    box-shadow:
        -24px 0 60px -20px rgba(12, 29, 23, .35),
        0 0 0 1px rgba(198, 164, 92, .04);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t) var(--ease-out), visibility 0s var(--t);
    z-index: 95;
    overflow: hidden;
}

body.nav-compact .main-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--t) var(--ease-out), visibility 0s 0s;
}

body.nav-compact .main-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gold-dim);
    background:
        linear-gradient(180deg, var(--ink) 0%, var(--pine) 100%);
    flex: 0 0 auto;
    position: relative;
}

body.nav-compact .main-menu-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--gold-deep),
        var(--gold-bright),
        var(--gold-deep),
        transparent);
}

body.nav-compact .main-menu-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.nav-compact .main-menu-brand-title {
    font: 700 13px/1.2 var(--serif);
    color: var(--gold-bright);
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.nav-compact .main-menu-brand-sub {
    font: 600 11px/1.3 var(--sans);
    color: rgba(246, 242, 231, .75);
    letter-spacing: .04em;
}

body.nav-compact .main-menu-title {
    font: 700 13px var(--serif);
    color: var(--gold-bright);
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.nav-compact .main-menu-close {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(198, 164, 92, .35);
    background: rgba(255, 255, 255, .08);
    color: var(--gold-bright);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}

body.nav-compact .main-menu-close:hover {
    background: rgba(198, 164, 92, .15);
    border-color: var(--gold);
}

body.nav-compact .main-menu-items {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.nav-compact .menu-item {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
    border-radius: 0;
    margin: 0 12px;
    gap: 14px;
}

body.nav-compact .menu-item-icon svg {
    width: 26px;
    height: 26px;
}

body.nav-compact .menu-item::after {
    display: none;
}

body.nav-compact .menu-item:hover,
body.nav-compact .menu-item.is-active {
    background: rgba(198, 164, 92, .08);
    color: var(--ink);
}

body.nav-compact .menu-item:hover .menu-item-icon,
body.nav-compact .menu-item.is-active .menu-item-icon {
    transform: none;
    color: var(--gold);
}

body.nav-compact .operator-link {
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 18px;
    border-left: none;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

body.nav-compact .admin-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
}

body.nav-compact .menu-backdrop {
    display: block;
}

/* Measurement helper: forces the inline menu visible for width measuring */
.main-menu.is-measuring {
    visibility: visible !important;
    pointer-events: none !important;
    transform: none !important;
    opacity: 0 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
}

/* «Тихое окно измерения» навигации (см. navigation.js): на время принудительных
   пересчётов стилей переходы отключаются во всём документе, поэтому снятие и
   возврат классов nav-compact / is-measuring не запускают анимацию шторки
   (transform/visibility) — меню больше не «разворачивается и тут же
   сворачивается» при включении режима для слабовидящих и при переходах между
   разделами. Окно снимается отложенно, после коммита итоговых стилей, поэтому
   штатная анимация открытия/закрытия шторки полностью сохраняется. */
body.nav-measuring,
body.nav-measuring *,
body.nav-measuring *::before,
body.nav-measuring *::after {
    transition: none !important;
}

/* ==========================================================================
   Property Detail Mobile Summary & Sticky Action Bar
   ========================================================================== */
.property-mobile-summary {
    display: none;
}
.property-mobile-bar {
    display: none;
}

@media (max-width: 760px) {
    .property-mobile-summary {
        display: block;
        margin-top: 18px;
        padding: 16px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid var(--gold-dim);
        border-radius: var(--radius-lg, 12px);
    }

    .property-mobile-summary__price-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .property-mobile-summary__price {
        font: 700 24px/1.1 var(--serif);
        color: var(--gold-bright);
    }

    .property-mobile-summary__price-label {
        font: 600 11px var(--sans);
        text-transform: uppercase;
        letter-spacing: .1em;
        color: #d1dcd5;
    }

    .property-mobile-summary__meta {
        font-size: 13px;
        color: #d1dcd5;
        margin-bottom: 14px;
        line-height: 1.5;
    }

    .property-mobile-summary__meta strong {
        color: #fff;
    }

    .property-mobile-summary .widget-sber-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 16px;
    }

    .property-mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 75;
        background: rgba(15, 35, 28, .96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--gold-dim);
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
    }

    .property-mobile-bar__info {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }

    .property-mobile-bar__price {
        font: 700 17px var(--serif);
        color: var(--gold-bright);
    }

    .property-mobile-bar__deadline {
        font: 600 10px var(--sans);
        color: #d1dcd5;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-top: 2px;
    }

    .property-mobile-bar__btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font: 700 12px var(--sans);
        letter-spacing: .08em;
        text-transform: uppercase;
        border-radius: var(--radius-md, 8px);
        background: linear-gradient(135deg, var(--gold-deep), var(--gold-bright));
        color: #0c1d17;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 8px rgba(198, 164, 92, .3);
    }

    /* Padding on body so content is not obscured by sticky bottom bar */
    body.has-mobile-bar {
        padding-bottom: 64px;
    }
}

@media (max-width: 960px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-images {
        max-width: 480px;
        margin: 0 auto;
    }

    .purchase-path-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .purchase-path ol {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 20px 36px;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (max-width: 760px) {
    .masthead {
        padding: 42px 18px 38px;
    }
    .masthead-passepartout {
        inset: 8px;
    }
    .catalog-filters {
        grid-template-columns: 1fr 1fr;
    }
    .home-hero {
        padding: 36px 0 44px;
    }
    .home-section {
        padding: 40px 0;
    }
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .catalog-page,
    .auction-registry,
    .map-page {
        padding: 22px 0 36px;
    }
    .filter-card,
    .auction-filter-card {
        padding: 16px 16px 14px;
    }
    .auction-filter-actions {
        justify-content: stretch;
    }
    .auction-filter-actions .btn-search,
    .auction-filter-actions .btn-reset {
        flex: 1;
        justify-content: center;
    }
    .map-selection-panel {
        width: 100%;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        max-height: 85%;
        border-radius: 20px 20px 0 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        border-top: 1px solid var(--line, #e2ded4);
        box-shadow: 0 -8px 28px rgba(17, 24, 39, 0.22), 0 -2px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(calc(100% + 30px));
        display: flex;
        flex-direction: column;
    }
    .map-selection-panel.is-open {
        transform: translateY(0);
    }
    .map-selection-panel .card-image-wrap {
        height: 160px;
        min-height: 160px;
    }
    .map-selection-panel .card-body {
        padding: 13px 16px 16px;
        gap: 6px;
        overflow: hidden;
    }
    .map-selection-panel .card-title {
        font-size: 15.5px;
        line-height: 1.3;
    }
    .map-selection-panel .card-address {
        font-size: 12.5px;
        line-height: 1.35;
        -webkit-line-clamp: 1;
    }
    .map-selection-panel .card-fact-badge {
        font-size: 11.5px;
        padding: 3px 8px;
    }
    .map-selection-panel .price-val {
        font-size: 18px;
    }
    .map-selection-panel .card-details-btn {
        min-height: 44px;
        font-size: 13.5px;
        padding: 10px 16px;
    }
    .map-selection-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .map-selection-multibar {
        padding: 11px 16px;
        font-size: 13px;
    }
    .map-multibar-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .map-workspace {
        height: calc(100vh - 220px);
        min-height: 520px;
    }
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: 18px;
        right: 18px;
    }
    .hamburger {
        width: 48px;
        height: 48px;
        padding: 0 8px;
    }
    .hamburger-label { display: none; }
}

@media (max-width: 480px) {
    .catalog-filters {
        grid-template-columns: 1fr;
    }
    .cards-grid,
    .auction-grid {
        grid-template-columns: 1fr;
    }
    .hero-images {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        aspect-ratio: auto;
    }
    .hero-image-main {
        grid-row: auto;
        aspect-ratio: 16 / 10;
    }
    .hero-image-small {
        aspect-ratio: 16 / 10;
    }
    .notice {
        font-size: 12px;
        padding: 8px 14px;
    }
    .masthead-title {
        font-size: 26px;
    }
    .overline {
        font-size: 11px;
        letter-spacing: .32em;
    }
    .badge {
        font-size: 11px;
        padding: 8px 14px 7px;
    }
    .detail-header > .container > div {
        flex-direction: column;
    }
    .widget-sber-btn {
        font-size: 12px;
        padding: 12px 14px;
    }
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .property-card:hover,
    .auction-card:hover {
        transform: none;
    }
}
/* Реестры обновлённого ТЗ */
.registry-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 26px 0 16px;
}
.registry-tabs a, .registry-subtabs a {
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 10px 14px;
    border: 1px solid #d8dfdc; border-radius: 10px;
    background: #ffffff; color: var(--pine, #16322a);
    font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
    transition: .2s ease;
}
.registry-tabs a:hover, .registry-subtabs a:hover,
.registry-tabs a:focus-visible, .registry-subtabs a:focus-visible,
.registry-tabs a:active, .registry-subtabs a:active,
.registry-tabs a.lift-held, .registry-subtabs a.lift-held {
    border-color: var(--pine-2, #1e4237);
    background: #f1f5f3;
    color: var(--pine, #16322a) !important;
}
.registry-tabs a.is-active, .registry-subtabs a.is-active {
    border-color: var(--pine, #16322a);
    background: var(--pine, #16322a) !important;
    color: #ffffff !important;
    transform: none;
    box-shadow: 0 2px 8px rgba(22, 50, 42, 0.18);
}
.registry-tabs a.is-active:hover, .registry-subtabs a.is-active:hover,
.registry-tabs a.is-active:focus-visible, .registry-subtabs a.is-active:focus-visible,
.registry-tabs a.is-active:active, .registry-subtabs a.is-active:active {
    border-color: var(--pine-2, #1e4237);
    background: var(--pine-2, #1e4237) !important;
    color: #ffffff !important;
}
.registry-subtabs {
    display: flex;
    gap: 10px;
    margin: 0 0 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: 100%;
}
.registry-subtabs a {
    min-width: min(230px, 100%);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.registry-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.registry-directory a {
    display: grid; grid-template-columns: 42px 1fr; gap: 3px 12px;
    padding: 22px; border: 1px solid rgba(63,107,87,.2); border-radius: 14px;
    background: #fff; color: var(--text-main); text-decoration: none;
    box-shadow: 0 8px 24px rgba(15,35,28,.07); transition: .2s ease;
}
.registry-directory a:hover,
.registry-directory a.lift-held{  box-shadow: 0 13px 30px rgba(15,35,28,.12); }
.registry-directory span { grid-row: 1 / span 2; color: var(--primary); font-size: 22px; font-weight: 800; }
.registry-directory strong { font-size: 16px; }
.registry-directory small { color: var(--text-muted); }
.notice-registry { display: grid; gap: 16px; }
.notice-card { 
    display: grid; 
    grid-template-columns: 220px 1fr; 
    gap: 20px; 
    align-items: stretch; 
    padding: 20px; 
    border: 1px solid #dde5e1; 
    border-radius: 14px; 
    background: #fff; 
    box-shadow: 0 8px 24px rgba(15,35,28,.06); 
}
.notice-card-media { 
    position: relative; 
    border-radius: 10px; 
    overflow: hidden; 
    background: #f1f5f9; 
    height: 100%; 
    min-height: 140px; 
}
.notice-card-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}
.notice-card-image--placeholder { 
    object-fit: cover; 
}
.notice-card-content { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.notice-card-meta { display: flex; justify-content: space-between; color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.notice-card h2 { margin: 10px 0; font-size: 21px; }
.notice-card > strong, .notice-card > a { display: block; margin-top: 14px; }
@media (max-width: 768px) {
    .notice-card { grid-template-columns: 1fr; }
    .notice-card-media { height: 160px; }
}
@media (max-width: 900px) {
    .registry-tabs, .registry-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .registry-tabs, .registry-directory { grid-template-columns: 1fr; }
    .registry-subtabs { flex-direction: column; }
    .registry-subtabs a { min-width: 0; }
}

/* Hub cards on /sections/ */
.registry-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.registry-hub-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg, 14px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t) var(--ease-spring), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.registry-hub-card:hover,
.registry-hub-card.lift-held {
    border-color: var(--gold-dim);
    box-shadow: var(--shadow-xl);
}

.registry-hub-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.registry-hub-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.registry-hub-card__num {
    font: 800 20px var(--sans);
    color: var(--gold-deep);
}

.registry-hub-card__law {
    font: 700 10.5px var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(63, 107, 87, .1);
    padding: 4px 10px;
    border-radius: var(--radius-full, 999px);
}

.registry-hub-card__icon {
    font-size: 28px;
    color: var(--pine);
    margin-bottom: 12px;
}

.registry-hub-card__title {
    font: 700 18px var(--serif);
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--ink);
    transition: color var(--t-fast);
}

.registry-hub-card__title a {
    color: inherit;
    text-decoration: none;
}

.registry-hub-card:hover .registry-hub-card__title,
.registry-hub-card.lift-held .registry-hub-card__title,
.registry-hub-card:focus-visible .registry-hub-card__title {
    color: var(--gold-deep);
}

.registry-hub-card__desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 20px;
    flex: 1;
}

.registry-hub-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
}

.registry-hub-card__count {
    font-size: 13px;
    color: var(--text-muted);
}

.registry-hub-card__count strong {
    font-size: 16px;
    color: var(--pine);
}

.registry-hub-card__btn {
    font: 700 12px var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform var(--t-fast), color var(--t-fast);
}

.registry-hub-card:hover .registry-hub-card__btn,
.registry-hub-card.lift-held .registry-hub-card__btn,
.registry-hub-card:focus-visible .registry-hub-card__btn {
    color: var(--ink);
    transform: translateX(3px);
}

@media (max-width: 992px) {
    .registry-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .registry-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact working registry for municipal sale and auction sections */
.auction-heading--compact {
    padding-block: 28px;
}

.auction-heading--compact .eyebrow {
    margin-bottom: 4px;
}

.auction-heading--compact h1 {
    margin-bottom: 6px;
}

.auction-heading-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.auction-heading-meta strong {
    color: var(--pine);
    font-weight: 750;
}

.auction-heading-meta a {
    color: var(--text-muted);
    font-weight: 700;
    text-decoration: none;
}

.auction-heading-meta a:hover {
    color: var(--pine);
    text-decoration: underline;
}

.auction-registry--section {
    padding-top: 16px;
}

.auction-registry .registry-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 18px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.auction-registry .registry-tabs::-webkit-scrollbar {
    display: none;
}

.auction-registry .registry-tabs a {
    flex: 0 0 auto;
    min-height: 0;
    padding: 12px 18px 11px;
    border: 0;
    border-bottom: 3.5px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    transition: color var(--t), border-color var(--t), background var(--t);
}

.auction-registry .registry-tabs a:hover,
.auction-registry .registry-tabs a.lift-held{
    border-color: rgba(63, 107, 87, 0.4);
    background: rgba(23, 99, 59, 0.04);
    color: var(--pine);
    transform: none;
}

.auction-registry .registry-tabs a.is-active {
    border-color: var(--pine);
    background: rgba(23, 99, 59, 0.08);
    color: var(--pine-dark, #0f231c);
    font-weight: 800;
    transform: none;
}

.auction-compact-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
}

.auction-compact-filter .auction-state-filter {
    flex: 0 1 auto;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.auction-compact-filter .auction-state-option span {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
}

.auction-compact-filter .auction-state-option:hover span,
.auction-compact-filter .auction-state-option.lift-held span {
    border-color: var(--pine-2);
    color: var(--pine);
    background: var(--paper);
}

.auction-compact-filter .auction-state-option span b {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding-inline: 5px;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.auction-compact-filter .auction-state-option input:checked + span {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

.auction-compact-filter .auction-state-option input:checked + span b {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.auction-inline-filters {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 14px;
}

.auction-inline-field {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 700;
}

.auction-inline-field select {
    min-width: 180px;
}

.auction-price-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 13.5px;
}

.auction-price-filter-label {
    color: var(--text);
    font-weight: 750;
    font-size: 13.5px;
    margin-right: 2px;
}

.auction-price-inputs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auction-price-inputs input {
    width: 110px;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    color: var(--text);
    font: 13.5px var(--sans);
    transition: border-color var(--t), box-shadow var(--t);
}

.auction-price-inputs input:last-of-type {
    width: 140px;
}

.auction-price-inputs input:focus {
    border-color: var(--pine);
    outline: none;
    box-shadow: 0 0 0 3px rgba(63, 107, 87, .14);
}

.auction-price-divider {
    color: var(--text-muted);
    font-weight: 600;
}

.auction-filter-reset {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.auction-filter-reset:hover {
    color: var(--pine);
    text-decoration: underline;
}

.auction-results-head--working {
    align-items: flex-end;
    margin: 0 0 18px;
}

.auction-results-head--working h2 {
    margin: 0 0 3px;
    font-size: 28px;
}

.auction-results-head--working > div > span {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-2);
}

.auction-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.auction-sort-form[hidden] {
    display: none !important;
}

.auction-sort-form select {
    min-width: 230px;
    padding: 9px 34px 9px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--card);
    color: var(--text);
    font: 14px var(--sans);
}

.auction-grid--working {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auction-card--working {
    position: relative;
    cursor: default;
    min-width: 0;
    padding: 22px;
    overflow: visible;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}

.auction-card--working .auction-card-media {
    position: relative;
    width: 100%;
    height: 180px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.auction-card--working .auction-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t) var(--ease);
}

.auction-card--working .auction-card-image--placeholder {
    object-fit: cover;
}

.auction-card--working:hover .auction-card-image,
.auction-card--working.lift-held .auction-card-image {
    transform: scale(1.02);
}

.auction-card--working::before {
    display: none;
}

.auction-card--working:hover,
.auction-card--working.lift-held{
    box-shadow: var(--shadow-md);
    border-color: rgba(63, 107, 87, .3);
}

.auction-card--working .auction-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    color: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.auction-card-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.auction-card--working .auction-card-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #e8f4ed;
    color: #17633b;
    font-size: 12px;
    font-weight: 800;
}

.auction-card--working .auction-card-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.auction-procedure-tag {
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--paper-2);
    color: #2d3748;
    font-size: 12px;
    font-weight: 700;
}

.auction-card-main {
    min-height: 134px;
}

.auction-bundle-note {
    margin: 0 0 6px;
    color: #926315;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.auction-card--working .auction-card-title {
    display: -webkit-box;
    min-height: 56px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--ink);
    font: 750 22px/1.3 var(--serif);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.auction-card--working .auction-card-address {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0 0 6px;
    color: #2d3748;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.auction-card--working .auction-card-address i {
    margin-top: 3px;
    color: var(--gold-deep);
    font-size: 14px;
    flex-shrink: 0;
}

.auction-card-cadastral {
    margin: 0;
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.auction-card-keyfacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.auction-card--working .auction-card-price,
.auction-card--working .auction-card-deadline {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.auction-card--working .auction-card-price strong {
    color: var(--ink);
    font: 800 24px/1.15 var(--serif);
    margin-bottom: 3px;
}

.auction-card--working .auction-card-price span {
    display: block;
    color: #5a6a60;
    font: 600 12.5px var(--sans);
    letter-spacing: .02em;
}

.auction-card--working .auction-card-deadline strong {
    display: block;
    color: var(--pine);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    margin-bottom: 3px;
}

.auction-card--working .auction-card-deadline span {
    display: block;
    color: #5a6a60;
    font: 600 12.5px var(--sans);
    letter-spacing: .01em;
}

.auction-card--working .auction-card-deadline.is-urgent strong {
    color: #9b3a2e;
}

.auction-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
}

.auction-card--working .auction-card-number {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #4a5568;
    font: 600 12.5px var(--sans);
    letter-spacing: .01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-card--working .auction-details-link {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--pine);
    color: #fff;
    border: 1px solid var(--pine);
    font-size: 13.5px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t), gap var(--t), transform var(--t), border-color var(--t);
}

.auction-card--working .auction-details-link::after {
    display: none;
}

.auction-card--working .auction-details-link:hover,
.auction-card--working.lift-held .auction-details-link {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    gap: 9px;
    cursor: pointer;
}

.auction-details-link--map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    min-height: 40px;
    border-radius: 9px;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--pine);
    font-size: 13.5px;
    font-weight: 750;
    text-decoration: none;
    transition: background var(--t), color var(--t), border-color var(--t);
}

.auction-details-link--map:hover {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

@media (max-width: 1100px) {
    .auction-compact-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .auction-inline-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .auction-grid--working {
        grid-template-columns: 1fr;
    }

    .auction-results-head--working {
        align-items: stretch;
        flex-direction: column;
    }

    .auction-sort-form {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .auction-heading--compact {
        padding-block: 22px;
    }

    .auction-registry--section {
        padding-top: 10px;
    }

    .auction-registry .registry-tabs {
        margin-inline: -20px;
        padding-inline: 10px;
        scrollbar-width: none;
    }

    .auction-registry .registry-tabs::-webkit-scrollbar,
    .auction-compact-filter .auction-state-filter::-webkit-scrollbar {
        display: none;
    }

    .auction-registry .registry-tabs a {
        padding-inline: 12px;
    }

    .auction-compact-filter {
        margin-inline: -4px;
        padding: 12px;
    }

    .auction-compact-filter .auction-state-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .auction-compact-filter .auction-state-option {
        flex: 0 0 auto;
    }

    .auction-inline-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 10px;
    }

    .auction-price-filter {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .auction-price-filter > span:first-child {
        grid-column: 1 / -1;
    }

    .auction-price-filter > span:last-child {
        display: none;
    }

    .auction-price-filter input,
    .auction-price-filter input:last-of-type {
        width: 100%;
        min-width: 0;
    }

    .auction-filter-reset {
        padding: 7px 0;
    }

    .auction-sort-form {
        align-items: stretch;
        flex-direction: column;
    }

    .auction-sort-form select {
        width: 100%;
        min-width: 0;
    }

    .auction-card--working {
        padding: 17px;
    }

    .auction-card-main {
        min-height: 0;
    }

    .auction-card--working .auction-card-title {
        min-height: 0;
        font-size: 20px;
    }

    .auction-card-keyfacts {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .auction-card-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .auction-card--working .auction-details-link {
        width: 100%;
    }
}

/* Task-first public interface refresh */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.notice {
    font-size: 12px;
}

.notice-inner {
    padding-block: 7px;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 250, 242, .97);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: 1440px;
    min-height: 72px;
}

.menu-item {
    padding: 11px 9px;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: none;
}

.menu-item::after {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
}

.home-hero {
    padding: 38px 0 42px;
}

.home-hero-grid--focused {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.home-hero-grid--focused .hero-copy {
    width: 100%;
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    font-size: clamp(34px, 4.5vw, 54px);
}

.hero-lead {
    max-width: 760px;
    margin-bottom: 20px;
}

.lux-search--hero {
    max-width: none;
}

.eyebrow,
.overline {
    letter-spacing: .12em;
    color: var(--pine-2);
}

.hero-task-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.hero-task-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 16px;
    color: var(--pine);
    text-decoration: none;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.hero-task-links a:hover,
.hero-task-links a.lift-held{
    border-color: rgba(30, 66, 55, .42);
    background: #fff;
}

.hero-task-links strong,
.hero-task-links i {
    min-width: 26px;
    font-size: 21px;
    color: var(--pine);
}

.hero-task-links span {
    font-size: 14px;
    font-weight: 650;
}

.home-section {
    padding-block: 48px;
}

.section-heading {
    margin-bottom: 24px;
}

.cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.property-card {
    border-color: #dce3df;
    box-shadow: 0 8px 24px rgba(15, 35, 28, .055);
}

.property-card:hover,
.property-card.lift-held{
    border-color: rgba(30, 66, 55, .35);
    box-shadow: 0 14px 34px rgba(15, 35, 28, .11);
}

.property-card::before {
    background: var(--pine);
}

.card-image-wrap {
    aspect-ratio: 16 / 9;
}

.card-image--placeholder,
.auction-card-image--placeholder,
.notice-card-image--placeholder,
.main-gallery-img--placeholder {
    object-fit: cover;
    filter: none !important;
}

.property-card:hover .card-image--placeholder,
.auction-card--working:hover .auction-card-image--placeholder,
.property-card.lift-held .card-image--placeholder,
.auction-card--working.lift-held .auction-card-image--placeholder {
    transform: none;
}

.status-badge {
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
}

.status-applications {
    background: #e9f6ee;
    color: #17643a;
}

.status-announced {
    background: #fff4d6;
    color: #7a5700;
}

.status-available {
    background: #eef1f0;
    color: #405048;
}

.lot-bundle-tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 35, 28, .9);
    border: 0;
    backdrop-filter: blur(5px);
}

.card-body {
    gap: 10px;
    padding: 18px 20px 20px;
}

.card-type {
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
}

.card-title {
    min-height: 2.7em;
    font: 700 19px/1.35 var(--serif);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-address {
    min-height: 3em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-address.card-address--full {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    overflow-wrap: anywhere;
}

.card-key-facts {
    display: grid;
    gap: 7px;
    padding: 10px 0 2px;
    font-size: 13px;
    color: var(--text-2);
}

.card-key-facts span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-deadline {
    color: #7a4a12 !important;
}

.card-deadline i {
    color: #a66c22;
}

.card-area {
    font-weight: 650;
}

.card-area-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #14532d;
    padding: 6px 13px;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.card-area-badge i {
    color: #16a34a;
    font-size: 15px;
    flex-shrink: 0;
}

.card-area-badge .area-value {
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
}

.price-label,
.card-details-link {
    letter-spacing: 0;
    text-transform: none;
}

.price-label {
    font-size: 12px;
}

.card-details-link {
    font-size: 13px;
}

.catalog-heading,
.map-heading,
.stats-banner {
    padding-block: 30px;
}

.catalog-page {
    padding-top: 22px;
}

/* ==========================================================================
   Каталог имущества: Сегментные табы, многофакторный фильтр, пресеты и чипсы
   ========================================================================== */

/* 1. Сегментные табы категорий имущества */
.catalog-category-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.catalog-category-nav::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 35, 28, 0.03);
}

.category-tab i {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s ease;
}

.category-tab:hover {
    border-color: var(--pine);
    color: var(--pine);
    background: rgba(63, 107, 87, 0.04);
}

.category-tab:hover i {
    color: var(--pine);
}

.category-tab.is-active {
    background: var(--pine);
    color: #ffffff;
    border-color: var(--pine);
    box-shadow: 0 4px 14px rgba(63, 107, 87, 0.25);
}

.category-tab.is-active i {
    color: #ffffff;
}

.category-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.category-tab.is-active .category-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 2. Главная карточка фильтрации */
.catalog-filter-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 35, 28, 0.05);
    margin-bottom: 18px;
}

.filter-top-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-search-box {
    flex: 1 1 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(63, 107, 87, 0.12);
}

.search-input-wrapper .search-icon {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 8px;
}

.search-input-wrapper input {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
}

.search-clear-btn {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    transition: color 0.15s ease;
}

.search-clear-btn[hidden] {
    display: none !important;
}

.search-clear-btn:hover {
    color: #dc2626;
}

.btn-filter-toggle {
    min-height: 44px;
    height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-filter-toggle:hover,
.btn-filter-toggle.is-active {
    background: rgba(63, 107, 87, 0.08);
    border-color: var(--pine);
    color: var(--pine);
}

.btn-filter-toggle .active-badge {
    background: var(--pine);
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
}

.btn-filter-submit {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 0;
    border-radius: 10px;
    background: var(--pine);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(63, 107, 87, 0.2);
}

.btn-filter-submit:hover,
.btn-filter-submit.lift-held{
    background: #284739;
    box-shadow: 0 6px 16px rgba(63, 107, 87, 0.3);
}

.btn-filter-submit .btn-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 800;
}

/* 3. Раскрывающаяся панель чекбоксов */
.catalog-advanced-drawer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.25s ease, padding-top 0.25s ease, visibility 0.35s ease;
}

.catalog-advanced-drawer.is-open {
    max-height: 1400px;
    opacity: 1;
    visibility: visible;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line-2);
}

/* Версия для слабовидящих: крупный шрифт и zoom делают панель выше —
   фиксированные 1400px обрезали нижние чекбоксы (они оставались в Tab-порядке,
   но были невидимы и недоступны для клика). Высота — по содержимому. */
body.visually-impaired .catalog-advanced-drawer.is-open {
    max-height: none;
}

.advanced-drawer-inner {
    padding-top: 4px;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.advanced-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advanced-section .section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--pine);
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
}

.advanced-section .section-title i {
    font-size: 12px;
}

/* Чекбоксы */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-checkbox-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    margin: 0;
    user-select: none;
    transition: all 0.15s ease;
}

.custom-checkbox-item:hover {
    border-color: var(--pine);
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.custom-checkbox-item input[type="checkbox"] {
    /* Доступный паттерн: инпут прозрачен, но накрывает ВСЮ строку целиком.
       Клик в любом месте строки — нативное переключение, Tab приводит фокус
       к чекбоксу в позиции строки, Enter/Space меняют состояние,
       :focus-visible подсвечивает рамку (см. VI-блоки ниже). */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
    font-size: inherit;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.checkbox-box i {
    font-size: 10px;
    color: #ffffff;
    display: none;
}

.custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-box {
    background: var(--pine);
    border-color: var(--pine);
}

.custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-box i {
    display: block;
}

/* Видимый фокус с клавиатуры для всех пользователей (A-02) */
.custom-checkbox-item input[type="checkbox"]:focus-visible ~ .checkbox-box {
    outline: 2px solid var(--pine);
    outline-offset: 2px;
    border-color: var(--pine);
}

.custom-checkbox-item:has(input[type="checkbox"]:focus-visible) {
    border-color: var(--pine);
    box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.12);
}

.checkbox-label-text {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    flex: 1;
    transition: color 0.15s ease;
}

.custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-label-text {
    color: var(--pine);
    font-weight: 700;
}

.checkbox-count-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-count-badge {
    background: rgba(63, 107, 87, 0.12);
    color: var(--pine);
}

/* Состояния для неактивных фильтров (0 объектов) — визуальное отличие и запрет нажатия */
.custom-checkbox-item.is-disabled,
.custom-checkbox-item:has(input:disabled) {
    opacity: 0.42;
    cursor: not-allowed !important;
    pointer-events: none !important;
    user-select: none;
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: none !important;
}

.custom-checkbox-item.is-disabled input,
.custom-checkbox-item:has(input:disabled) input {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.custom-checkbox-item.is-disabled .checkbox-box,
.custom-checkbox-item:has(input:disabled) .checkbox-box {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.custom-checkbox-item.is-disabled .checkbox-label-text,
.custom-checkbox-item:has(input:disabled) .checkbox-label-text {
    color: #94a3b8;
}

.custom-checkbox-item.is-disabled .checkbox-count-badge,
.custom-checkbox-item:has(input:disabled) .checkbox-count-badge {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.category-tab.is-disabled {
    opacity: 0.42;
    cursor: not-allowed !important;
    pointer-events: none !important;
    user-select: none;
}

.category-tab.is-disabled .category-tab-count {
    background: #f1f5f9;
    color: #94a3b8;
}

.auction-state-option.is-disabled,
.auction-state-option:has(input:disabled) {
    opacity: 0.42;
    cursor: not-allowed !important;
    pointer-events: none !important;
    user-select: none;
}

.range-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.range-input {
    height: 38px;
    font-size: 13px;
    border-radius: 8px;
    padding: 0 10px;
}

.range-separator {
    color: #475569;
    font-weight: 700;
}

.preset-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.preset-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.preset-btn:hover {
    border-color: var(--pine);
    color: var(--pine);
    background: rgba(63, 107, 87, 0.04);
}

.preset-btn.is-active {
    background: var(--pine);
    color: #ffffff;
    border-color: var(--pine);
}

.advanced-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.btn-advanced-apply {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    background: var(--pine);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-advanced-apply:hover {
    background: #284739;
}

.btn-advanced-reset {
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
    gap: 5px;
    transition: color 0.15s ease;
}

.btn-advanced-reset:hover {
    color: var(--pine);
}

/* 5. Панель активных фильтров */
.active-chips-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.active-chips-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.active-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.active-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
    min-height: 36px;
    padding: 4px 10px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.active-chip a,
.chip-remove {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 4px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.active-chip a:hover,
.chip-remove:hover {
    color: var(--pine);
    background: transparent;
}

.active-chip-clear {
    color: var(--pine);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    min-height: 36px;
    height: 36px;
    padding: 4px 12px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    margin-left: 2px;
}

.active-chip-clear:hover {
    background: var(--pine);
    color: #ffffff;
    border-color: var(--pine);
}

/* 6. Шапка результатов и сортировка */
.catalog-results-head {
    background: #ffffff;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-results-counter {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.results-count-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.results-count-title strong {
    color: var(--pine);
}

.results-count-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.catalog-results-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-sort-form label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.catalog-sort-form select {
    min-height: 38px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
}

/* 7. Пустая выдача (Empty State) */
.catalog-empty-state {
    background: #ffffff;
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
}

.empty-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(63, 107, 87, 0.1);
    color: var(--pine);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.catalog-empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.catalog-empty-state p {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.empty-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-empty-reset {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    background: var(--pine);
    color: #ffffff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-empty-reset:hover {
    background: #284739;
}

.btn-empty-map {
    min-height: 44px;
    height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    background: #f1f5f9;
    color: var(--text-2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.btn-empty-map:hover {
    background: #e2e8f0;
}

/* 8. Пагинация */
.catalog-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}

.btn-pagination {
    min-height: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-pagination:hover {
    background: rgba(63, 107, 87, 0.08);
    color: var(--pine);
    border-color: var(--pine);
}

.pagination-current {
    min-height: 44px;
    min-width: 44px;
    height: 44px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.active-chip,
.active-chip-clear,
.map-link,
.map-toolbar button[type="submit"],
.map-clear {
    letter-spacing: 0;
    text-transform: none;
}

.map-toolbar {
    flex-wrap: nowrap;
}

.map-toolbar select {
    min-width: 135px;
}

.map-count {
    letter-spacing: 0;
    text-transform: none;
}

.registry-hub-card__law {
    max-width: 70%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    text-align: right;
}

.registry-hub-card__btn {
    letter-spacing: 0;
    text-transform: none;
}

.participation-page {
    max-width: 980px;
    padding-top: 28px;
    padding-bottom: 64px;
}

.participation-notice {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
    color: #254638;
    background: #edf4f0;
    border: 1px solid #d2e2da;
    border-radius: 14px;
}

.participation-notice i {
    margin-top: 3px;
    color: var(--pine-2);
}

.participation-notice p {
    margin: 4px 0 0;
    color: var(--text-2);
    line-height: 1.55;
}

.participation-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.participation-step {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 35, 28, .045);
}

.participation-step--accent {
    border-color: rgba(30, 66, 55, .4);
    background: linear-gradient(135deg, #fff, #f0f6f2);
}

.participation-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    background: var(--pine);
    font: 750 15px var(--sans);
}

.participation-step__eyebrow {
    margin: 0 0 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 650;
}

.participation-step h2 {
    margin: 0 0 7px;
    font-size: 22px;
}

.participation-step__content > p:not(.participation-step__eyebrow) {
    margin: 0;
    color: var(--text-2);
    line-height: 1.6;
}

.participation-step__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--pine);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.participation-step__action:hover {
    color: var(--ink);
    text-decoration: underline;
}

@media (max-width: 1180px) {
    .filter-main-row {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search-box {
        grid-column: span 2;
    }

    .advanced-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advanced-grid > .advanced-section:nth-child(odd):last-child {
        grid-column: span 2;
    }

    .map-toolbar {
        flex-wrap: wrap;
    }

    .main-menu,
    body.nav-compact .main-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(380px, 100vw) !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: var(--paper) !important;
    }

    .main-menu-items,
    body.nav-compact .main-menu-items {
        padding: 12px 0 !important;
    }

    .main-menu-header,
    body.nav-compact .main-menu-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex !important;
        min-height: 76px;
        background: linear-gradient(180deg, var(--ink) 0%, var(--pine) 100%) !important;
        border-bottom: 1px solid var(--gold-dim) !important;
    }

    .main-menu-items,
    body.nav-compact .main-menu-items {
        display: flex !important;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-results-head,
    .catalog-results-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-sort-form {
        justify-content: space-between;
    }

    .map-toolbar > * {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 640px) {
    .notice-inner {
        padding: 8px 14px;
        line-height: 1.45;
    }

    .nav-container {
        min-height: 62px;
    }

    .home-hero {
        padding: 28px 0 32px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 34px;
    }

    .hero-lead {
        font-size: 16px;
        line-height: 1.5;
    }

    .lux-search--hero {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .lux-search--hero .lux-search__icon {
        display: none;
    }

    .lux-search--hero .lux-search__input {
        min-width: 0;
    }

    .hero-task-links,
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-task-links {
        gap: 8px;
    }

    .hero-task-links a {
        min-height: 50px;
    }

    .home-section {
        padding-block: 38px;
    }

    .catalog-heading,
    .map-heading,
    .stats-banner {
        padding-block: 24px;
    }

    .catalog-filter-card {
        padding: 14px;
    }

    .filter-main-row {
        grid-template-columns: 1fr;
    }

    .filter-top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search-box {
        grid-column: auto;
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .filter-top-bar > .btn-filter-toggle,
    .filter-top-bar > .btn-filter-submit {
        width: 100%;
        justify-content: center;
    }

    .advanced-grid {
        grid-template-columns: 1fr;
    }

    .advanced-grid > .advanced-section:nth-child(odd):last-child {
        grid-column: auto;
    }

    .advanced-subgrid {
        grid-template-columns: 1fr;
    }

    .advanced-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-advanced-drawer.is-open {
        max-height: none;
        overflow: visible;
    }

    .btn-advanced-apply,
    .btn-advanced-reset {
        justify-content: center;
    }

    .catalog-sort-form {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-results-actions .map-link {
        justify-content: center;
    }

    .card-title,
    .card-address {
        min-height: 0;
    }

    .map-toolbar > * {
        flex-basis: 100%;
        min-width: 0 !important;
    }

    .map-selection-panel {
        top: auto;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-width: 520px;
        margin: 0 auto;
        max-height: calc(100% - 16px);
        border-radius: 16px;
        border: 1px solid var(--line, #e2ded4);
        box-shadow: 0 10px 32px rgba(17, 24, 39, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(calc(100% + 20px));
    }

    .map-selection-panel.is-open {
        transform: translateY(0);
    }

    .map-selection-panel .card-image-wrap {
        height: 155px;
        min-height: 155px;
    }

    .map-selection-panel .card-body {
        padding: 12px 14px 14px;
        gap: 5px;
        overflow: hidden;
    }

    .map-selection-panel .card-title {
        font-size: 14.5px;
        line-height: 1.28;
    }

    .map-selection-panel .card-address {
        font-size: 12px;
        line-height: 1.32;
        -webkit-line-clamp: 1;
    }

    .map-selection-panel .price-val {
        font-size: 17.5px;
    }

    .map-selection-panel .card-details-btn {
        min-height: 42px;
        font-size: 13px;
        padding: 9px 14px;
        margin-top: 2px;
    }

    .participation-step {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        padding: 18px;
    }

    .participation-step__number {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .participation-step h2 {
        font-size: 19px;
    }
}

@media print {
    .top-nav {
        position: static !important;
        box-shadow: none !important;
        background: #fff !important;
    }
    .notice {
        position: static !important;
    }
}

/* ==========================================================================
   AUCTION LOT DETAIL REDESIGN (Professional Trading System UI)
   ========================================================================== */

.lot-hero {
    background: linear-gradient(180deg, var(--card-2) 0%, var(--paper-2) 100%);
    border-bottom: 1px solid var(--line);
    padding: 24px 0 32px;
}

.lot-hero-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lot-back-link {
    color: var(--pine-2);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--t-fast);
}

.lot-back-link:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

.lot-hero-nav-divider {
    color: var(--text-faint);
}

.lot-hero-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.lot-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lot-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font: 700 12px/1 var(--sans);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lot-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.lot-status-pill.status-on_sale,
.lot-status-pill.status-available,
.lot-status-pill.status-completed {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.lot-status-pill.status-on_sale .lot-status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

.lot-status-pill.status-scheduled,
.lot-status-pill.status-published {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.lot-status-pill.status-sold {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.lot-status-pill.status-failed,
.lot-status-pill.status-cancelled,
.lot-status-pill.status-withdrawn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.lot-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(22, 50, 42, .06);
    border: 1px solid rgba(22, 50, 42, .12);
    color: var(--pine);
    font: 700 11px/1 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lot-number-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.lot-number-text {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    overflow-wrap: anywhere;
    word-break: break-all;
}

.lot-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px 4px;
    border-radius: 4px;
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.lot-copy-btn:hover {
    color: var(--pine);
    background: var(--paper-2);
}

.lot-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: all .2s var(--ease);
    white-space: nowrap;
    z-index: 20;
}

.lot-copy-tooltip.is-shown {
    opacity: 1;
    transform: translateY(0);
}

.lot-hero-title {
    font: 700 clamp(24px, 3.2vw, 36px)/1.2 var(--serif);
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: .01em;
}

.lot-hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lot-location-address {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lot-location-address i {
    color: var(--gold-deep);
}

.lot-location-specs {
    color: var(--text-muted);
}

.lot-hero-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .lot-hero-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .lot-hero-facts {
        grid-template-columns: 1fr;
    }
}

.lot-hero-fact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.lot-hero-fact-card:hover,
.lot-hero-fact-card.lift-held{
    box-shadow: var(--shadow-md);
}

.lot-hero-fact-card--price {
    border-color: var(--gold-dim);
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf3 100%);
}

.lot-fact-value {
    font: 700 clamp(22px, 2.2vw, 26px)/1.1 var(--serif);
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: .01em;
}

.lot-hero-fact-card--price .lot-fact-value {
    color: var(--pine);
}

.lot-fact-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.35;
}

.lot-fact-sub {
    color: var(--gold-deep);
    font-weight: 600;
    font-size: 12px;
}

.lot-hero-fact-card--deadline {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
}

.lot-fact-deadline-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.lot-fact-deadline-date {
    font: 700 15px/1.3 var(--sans);
    color: var(--ink);
}

.lot-fact-deadline-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.lot-fact-deadline-badge.is-urgent {
    color: #b91c1c;
    background: #fee2e2;
}

/* 2-Column Main Page Layout */

.lot-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .lot-page-grid {
        grid-template-columns: 1fr;
    }
    .lot-page-grid .lot-sidebar {
        display: none;
    }
}

.lot-section {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.lot-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.lot-section-title {
    font: 700 18px var(--serif);
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lot-section-title i {
    color: var(--gold-deep);
    font-size: 18px;
}

/* Состав лота */

.lot-property-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.lot-property-card:last-child {
    margin-bottom: 0;
}

.lot-property-card:hover,
.lot-property-card.lift-held{
    box-shadow: var(--shadow-md);
    background: #fff;
}

@media (max-width: 600px) {
    .lot-property-card {
        grid-template-columns: 1fr;
    }
}

.lot-property-media {
    width: 100%;
    height: 135px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--paper-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lot-property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lot-property-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.lot-property-role {
    font: 700 11px var(--sans);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--pine-2);
    margin-bottom: 4px;
}

.lot-property-heading {
    font: 700 16px var(--serif);
    color: var(--ink);
    margin: 0 0 6px;
}

.lot-property-addr {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lot-property-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.lot-property-badge {
    background: #fff;
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-lot-property-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-sm);
    font: 700 12px var(--sans);
    text-decoration: none;
    align-self: flex-start;
    transition: all var(--t-fast);
}

.btn-lot-property-card:hover {
    background: var(--ink);
    color: var(--gold-bright);
}

/* Условия торгов */

.lot-conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .lot-conditions-grid {
        grid-template-columns: 1fr;
    }

    .filter-top-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .filter-search-box {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .filter-top-bar > .btn-filter-toggle,
    .filter-top-bar > .btn-filter-submit {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .search-input-wrapper {
        width: 100%;
        min-width: 0;
    }

    .catalog-sort-form select,
    .catalog-results-actions .map-link,
    .range-input,
    .search-input-wrapper input {
        min-height: 44px;
        box-sizing: border-box;
    }

    .card-details-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.lot-subcard {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
}

.lot-subcard-title {
    font: 700 13px var(--sans);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pine);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lot-subcard-title i {
    color: var(--gold-deep);
}

/* Timeline */

.lot-timeline {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.lot-timeline-step {
    position: relative;
    padding-left: 36px;
    padding-bottom: 24px;
}

.lot-timeline-step:last-child {
    padding-bottom: 0;
}

.lot-timeline-step::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.lot-timeline-step:last-child::before {
    display: none;
}

.lot-timeline-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 2;
}

.lot-timeline-step.is-completed .lot-timeline-dot {
    border-color: #16a34a;
    background: #dcfce7;
    color: #15803d;
}

.lot-timeline-step.is-active .lot-timeline-dot {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-deep);
    box-shadow: 0 0 0 4px rgba(198, 164, 92, .2);
}

.lot-timeline-step.is-deadline .lot-timeline-dot {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.lot-timeline-date {
    font: 700 15px var(--sans);
    color: var(--ink);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lot-timeline-name {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
}

.lot-timeline-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.lot-timeline-badge.is-active {
    background: #dcfce7;
    color: #15803d;
}

.lot-timeline-badge.is-urgent {
    background: #fee2e2;
    color: #b91c1c;
}

/* Документы */

.lot-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all var(--t-fast);
}

.lot-doc-item:hover {
    border-color: var(--gold);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.lot-doc-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.lot-doc-icon {
    font-size: 24px;
    color: #dc2626;
    flex-shrink: 0;
}

.lot-doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.lot-doc-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

.lot-doc-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.lot-doc-empty {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.btn-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: 700 12px var(--sans);
    color: var(--pine);
    text-decoration: none;
    flex-shrink: 0;
    transition: all var(--t-fast);
}

.btn-doc-download:hover {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

.lot-official-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

@media (max-width: 600px) {
    .lot-official-links {
        grid-template-columns: 1fr;
    }
}

.lot-official-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--t-fast);
}

.lot-official-btn:hover {
    border-color: var(--gold);
    color: var(--pine);
    box-shadow: var(--shadow-sm);
}

/* Организатор */

.lot-organizer-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-top: 14px;
}

/* Нижний CTA блок */

.lot-bottom-cta {
    background: linear-gradient(180deg, var(--card-2) 0%, var(--paper-2) 100%);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.lot-bottom-warning {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.45;
}

/* Sticky Sidebar Widget */

.lot-sticky-widget {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.lot-sticky-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}

.lot-sticky-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.lot-sticky-price-box {
    margin-bottom: 16px;
}

.lot-sticky-price {
    font: 700 30px/1.1 var(--serif);
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: .01em;
}

.lot-sticky-price-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.35;
}

.lot-sticky-deadline {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #1e3a8a;
}

.lot-sticky-deadline strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-top: 2px;
}

.lot-sticky-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}

.lot-sticky-table tr {
    border-bottom: 1px solid var(--line-2);
}

.lot-sticky-table td {
    padding: 8px 0;
}

.lot-sticky-table .label {
    color: var(--text-muted);
}

.lot-sticky-table .val {
    font-weight: 700;
    text-align: right;
    color: var(--ink);
}

.lot-sticky-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.4;
    text-align: center;
}

.lot-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-md);
    font: 700 13px/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--t-fast);
    box-shadow: 0 4px 12px rgba(22, 50, 42, .2);
}

.lot-sticky-cta:hover,
.lot-sticky-cta.lift-held{
    background: var(--ink);
    color: var(--gold-bright);
    box-shadow: 0 6px 16px rgba(22, 50, 42, .28);
}


.lot-sticky-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    font: 700 13px/1 var(--sans);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.lot-sticky-gis {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pine);
    text-decoration: underline;
    transition: color var(--t-fast);
}

.lot-sticky-gis:hover {
    color: var(--gold-deep);
}

/* ==========================================================================
   PROPERTY DETAIL REDESIGN (Real Estate Showcase & Architecture)
   ========================================================================== */

.prop-hero {
    background: var(--card);
    border-bottom: 1px solid var(--line-2);
    padding: 24px 0 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.prop-hero-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.prop-back-link {
    color: var(--pine-2);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--t-fast);
}

.prop-back-link:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

.prop-hero-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.prop-hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.prop-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(22, 50, 42, .06);
    border: 1px solid rgba(22, 50, 42, .12);
    color: var(--pine);
    font: 700 11px/1 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.prop-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font: 700 12px/1 var(--sans);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.prop-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.prop-status-pill.status-available {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.prop-status-pill.status-on_sale {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.prop-status-pill.status-sold {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.prop-status-pill.status-withdrawn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.prop-status-pill.status-archived {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
}

.prop-number-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 100%;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.prop-number-text {
    font-family: "Lato", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    overflow-wrap: anywhere;
    word-break: break-all;
}

.prop-copy-btn,
.lot-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    border-radius: 4px;
    transition: all var(--t-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.prop-copy-btn:hover,
.lot-copy-btn:hover {
    color: var(--pine);
    background: var(--paper-2);
}

.prop-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: var(--ink);
    color: #fff;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: all .2s var(--ease);
    white-space: nowrap;
    z-index: 20;
}

.prop-copy-tooltip.is-shown {
    opacity: 1;
    transform: translateY(0);
}

.prop-hero-title {
    font: 700 clamp(24px, 3.2vw, 36px)/1.2 var(--serif);
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.prop-hero-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.prop-hero-sub {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 2-Column Grid Layout */

.prop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    margin-top: 28px;
    margin-bottom: 60px;
    align-items: start;
}

@media (max-width: 1024px) {
    .prop-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.prop-main-content {
    min-width: 0;
}

/* Gallery & Visual Elements */

.prop-gallery-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}

.prop-gallery-main {
    position: relative;
    background: var(--paper-2);
    overflow: hidden;
}

.prop-gallery-main-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: opacity var(--t-fast);
}

.prop-no-photo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 44px 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--paper-2) 100%);
}

.prop-no-photo-img {
    width: 100%;
    max-width: 320px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
    opacity: .92;
}

.prop-no-photo-title {
    font: 700 17px var(--serif);
    color: var(--ink);
    margin: 0 0 6px;
}

.prop-no-photo-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0;
    line-height: 1.45;
}

.prop-thumbs-row {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: var(--card);
    border-top: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: thin;
    min-width: 0;
    max-width: 100%;
}

.prop-thumb-img {
    width: 84px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .75;
    transition: all var(--t-fast);
    flex: none;
}

.prop-thumb-img:hover {
    opacity: 1;
}

.prop-thumb-img.active {
    opacity: 1;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(198, 164, 92, .3);
}

/* 4 Highlight Metrics Cards */

.prop-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .prop-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .prop-metrics-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.prop-metric-card {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 84px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.prop-metric-card:hover,
.prop-metric-card.lift-held{
    box-shadow: var(--shadow-md);
    border-color: var(--gold-dim);
}

.prop-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.prop-metric-label {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    line-height: 1.25;
}

.prop-metric-icon {
    font-size: 14px;
    color: var(--gold-deep);
    opacity: .9;
    flex-shrink: 0;
}

.prop-metric-val {
    font: 700 clamp(15px, 1.3vw, 18px)/1.25 var(--sans);
    color: var(--ink);
    letter-spacing: -.01em;
    min-width: 0;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Content Sections */

.prop-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.prop-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.prop-card-title {
    font: 700 18px var(--serif);
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prop-card-title i {
    color: var(--gold-deep);
    font-size: 18px;
}

/* Utilities Grid */

.prop-utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin-top: 16px;
}

.prop-util-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
}

.prop-util-chip:hover {
    border-color: var(--gold);
    background: #fff;
}

.prop-util-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--paper-2);
    color: var(--pine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.prop-util-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.prop-util-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.prop-util-status {
    font-size: 12px;
    color: var(--text-2);
}

/* Documents */

.prop-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all var(--t-fast);
}

.prop-doc-item:hover {
    border-color: var(--gold);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.prop-doc-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.prop-doc-icon {
    font-size: 24px;
    color: #dc2626;
    flex-shrink: 0;
}

.prop-doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.prop-doc-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    line-height: 1.4;
}

.prop-doc-type {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-prop-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font: 700 12px var(--sans);
    color: var(--pine);
    text-decoration: none;
    flex-shrink: 0;
    transition: all var(--t-fast);
}

.btn-prop-doc-download:hover {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

/* History */

.prop-history-item {
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all var(--t-fast);
}

.prop-history-item:hover {
    background: #fff;
    border-color: var(--gold-dim);
}

.prop-history-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.prop-history-lot-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--pine-2);
    text-decoration: none;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.prop-history-lot-link:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

.prop-history-prices {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive visibility for property trading widget */
.prop-trading-widget-mobile {
    display: none;
}

.prop-trading-widget-desktop {
    display: block;
}

@media (max-width: 1024px) {
    .prop-trading-widget-mobile {
        display: block;
        margin-bottom: 24px;
    }

    .prop-trading-widget-desktop {
        display: none;
    }

    .prop-sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    .prop-trading-widget,
    .prop-no-trading-widget {
        padding: 16px;
    }

    .prop-trading-price {
        font-size: 24px;
    }
}

/* Right Sticky Sidebar Column (Unified Container) */

.prop-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
    min-width: 0;
}

.prop-trading-widget {
    background: var(--card);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.prop-trading-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}

.prop-trading-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.prop-trading-top > * {
    flex-shrink: 1;
    min-width: 0;
}

.prop-trading-heading {
    font: 700 13px var(--sans);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pine);
    margin: 0 0 12px;
}

.prop-trading-price-box {
    margin-bottom: 16px;
}

.prop-trading-price {
    font: 700 30px/1.1 var(--serif);
    color: var(--ink);
    margin-bottom: 4px;
    letter-spacing: .01em;
}

.prop-trading-price-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.35;
}

.prop-trading-deadline {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #1e3a8a;
}

.prop-trading-deadline strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-top: 2px;
}

.prop-trading-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
}

.prop-trading-table tr {
    border-bottom: 1px solid var(--line-2);
}

.prop-trading-table td {
    padding: 8px 0;
}

.prop-trading-table .label {
    color: var(--text-muted);
}

.prop-trading-table .val {
    font-weight: 700;
    text-align: right;
    color: var(--ink);
}

.btn-property-to-lot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-md);
    font: 600 14px/1.2 var(--sans);
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    transition: all var(--t-fast);
    box-shadow: 0 4px 12px rgba(22, 50, 42, .2);
}

.btn-property-to-lot:hover,
.btn-property-to-lot.lift-held{
    background: var(--ink);
    color: var(--gold-bright);
    box-shadow: 0 6px 16px rgba(22, 50, 42, .28);
}


.prop-trading-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.4;
}

/* No trading widget */

.prop-no-trading-widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-property-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: var(--radius-md);
    font: 600 13px/1.2 var(--sans);
    text-transform: none;
    text-decoration: none;
    transition: all var(--t-fast);
    margin-top: 14px;
}

.btn-property-contact:hover {
    background: var(--pine);
    color: #fff;
    border-color: var(--pine);
}

/* Organizer Card */

.prop-organizer-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.prop-organizer-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pine);
    margin-bottom: 6px;
}

.prop-organizer-name {
    font: 700 15px/1.3 var(--serif);
    color: var(--ink);
    margin-bottom: 12px;
}

.prop-organizer-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2);
}

.prop-org-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.prop-org-row i {
    color: var(--pine);
    font-size: 13px;
    margin-top: 3px;
    flex-shrink: 0;
}

.prop-org-row a {
    color: var(--pine-2);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--t-fast);
}

.prop-org-row a:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

/* Open sections (No card soup) */

.prop-section {
    background: #ffffff;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.prop-section:first-of-type {
    border-top: 1px solid var(--line-2);
    padding-top: 24px;
}

.prop-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.prop-section-title {
    font: 700 18px var(--serif);
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.prop-section-title i {
    color: var(--gold-deep);
    font-size: 16px;
}

.prop-map-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-2);
    flex-wrap: wrap;
    gap: 8px;
}

.btn-prop-big-map {
    color: var(--pine-2);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--t-fast);
}

.btn-prop-big-map:hover {
    color: var(--gold-deep);
    text-decoration: underline;
}

.prop-doc-action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.prop-doc-action-text {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.45;
    flex: 1;
    min-width: 240px;
}

.btn-prop-request-docs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-sm);
    font: 600 13px var(--sans);
    text-decoration: none;
    transition: all var(--t-fast);
    white-space: nowrap;
}

.btn-prop-request-docs:hover {
    background: var(--ink);
    color: var(--gold-bright);
}

.prop-history-empty {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Lot Detail Polish Styles */

.lot-doc-official-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    margin-top: 14px;
}

.lot-doc-official-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--ink);
    transition: all var(--t-fast);
}

.lot-doc-official-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    color: var(--pine);
}

.lot-doc-official-title {
    font: 600 14px var(--sans);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lot-doc-official-arrow {
    color: var(--gold-deep);
    font-size: 14px;
}

.lot-bottom-cta-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--paper-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    margin-top: 32px;
    flex-wrap: wrap;
}

.lot-bottom-cta-simple-text {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.45;
    flex: 1 1 260px;
    min-width: 0;
}

.btn-lot-bottom-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    gap: 8px;
    padding: 12px 24px;
    background: var(--pine);
    color: #fff;
    border-radius: var(--radius-sm);
    font: 600 14px var(--sans);
    text-decoration: none;
    transition: all var(--t-fast);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .btn-lot-bottom-action {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Mobile Document Cards Layout (prevent narrow titles, text squeezing & letter-by-letter wrapping) */
    .doc-item,
    .prop-doc-item,
    .lot-doc-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .doc-info,
    .prop-doc-left,
    .lot-doc-left {
        width: 100% !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .doc-icon,
    .prop-doc-icon,
    .lot-doc-icon {
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }

    .doc-content,
    .doc-info > div,
    .prop-doc-info,
    .lot-doc-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .doc-name,
    .prop-doc-title,
    .lot-doc-title {
        word-break: normal !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        line-height: 1.4 !important;
        font-size: 14px !important;
    }

    .doc-meta,
    .prop-doc-type,
    .lot-doc-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 4px 8px !important;
        margin-top: 4px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .btn-download,
    .btn-prop-doc-download,
    .btn-doc-download,
    .lot-section-doc-wrap .btn-doc-download,
    .btn-prop-request-docs {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        min-height: 44px !important;
        padding: 10px 16px !important;
    }
}

.btn-lot-bottom-action:hover {
    background: var(--ink);
    color: var(--gold-bright);
}






/* ==========================================================================
   Страница 404 — «Страница не найдена»
   ========================================================================== */

.error-page {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(36px, 6vw, 72px) 20px clamp(48px, 7vw, 88px);
}

.error-page__card {
    width: 100%;
    max-width: 860px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(28px, 5vw, 56px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-page__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
    opacity: .85;
}

.error-page__code {
    font: 900 clamp(72px, 14vw, 128px)/0.95 var(--serif);
    letter-spacing: .06em;
    color: var(--pine);
    margin: 6px 0 10px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.error-page__code-dot {
    width: clamp(12px, 2vw, 18px);
    height: clamp(12px, 2vw, 18px);
    border-radius: 50%;
    background: var(--gold);
    align-self: center;
    margin-top: 18px;
}

.error-page__title {
    font: 700 clamp(22px, 3.4vw, 32px)/1.2 var(--serif);
    color: var(--ink);
    margin: 0 0 14px;
}

.error-page__desc {
    font: 400 15.5px/1.7 var(--sans);
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto 26px;
}

.error-page__reasons {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    max-width: 620px;
    display: grid;
    gap: 10px;
    text-align: left;
}

.error-page__reasons li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font: 400 14.5px/1.55 var(--sans);
    color: var(--text-2);
    background: var(--paper-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    padding: 11px 16px;
}

.error-page__reasons li::before {
    content: "•";
    color: var(--gold-deep);
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.error-page__actions a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font: 700 14px var(--sans);
    letter-spacing: .02em;
    text-decoration: none;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.error-page__actions a.is-secondary {
    background: transparent;
    color: var(--pine);
    border: 1.5px solid var(--gold-dim);
}



.error-page__actions a:not(.is-secondary):hover,
.error-page__actions a:not(.is-secondary).lift-held {
    background: var(--ink);
    color: var(--gold-bright);
    box-shadow: var(--shadow-md);
}

.error-page__actions a.is-secondary:hover,
.error-page__actions a.is-secondary.lift-held {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--ink);
}

.error-page__divider {
    width: 64px;
    height: 2px;
    background: var(--line);
    margin: 0 auto 14px;
    border-radius: 2px;
}

.error-page__hint {
    font: 400 13.5px/1.6 var(--sans);
    color: var(--text-muted);
    margin: 0 0 20px;
}

.error-page__nav-note {
    font: 400 12.5px/1.6 var(--sans);
    color: var(--text-faint);
    margin: 0;
}

@media (max-width: 640px) {
    .error-page__card {
        padding: 24px 18px 28px;
    }

    .error-page__actions a {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   ГОСТ Р 52872-2019 — доступность (оба режима)
   Воспринимаемость / Управляемость / Понятность / Совместимость
   со вспомогательными технологиями (программы экранного доступа).
   ========================================================================== */

/* 2.4.7 + 1.4.11 (уровень AA): видимый контрастный индикатор фокуса.
   Двойное кольцо «золото + чернильная подложка» гарантированно контрастно
   (не менее 3:1) и на светлых, и на тёмных поверхностях. !important
   переопределяет локальные outline:none у поисковых полей и кнопок;
   body:not(.visually-impaired) сохраняет чёрный фокус режима для слабовидящих. */
body:not(.visually-impaired) a:focus-visible,
body:not(.visually-impaired) button:focus-visible,
body:not(.visually-impaired) input:focus-visible,
body:not(.visually-impaired) select:focus-visible,
body:not(.visually-impaired) textarea:focus-visible,
body:not(.visually-impaired) [role="button"]:focus-visible,
body:not(.visually-impaired) [tabindex]:focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px var(--ink) !important;
}

/* 2.2.2 / 2.3.1: полная остановка анимаций и плавных переходов по
   системной настройке пользователя («уменьшить движение»). */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 1.3.1: таблицы характеристик. Ячейки-заголовки строк (th scope="row")
   сохраняют выравнивание прежних td.label. */
.specs-table th.label {
    text-align: left;
}

/* 3.3.2: подсказка обязательности полей в сводке ошибок читается
   программами экранного доступа вместе с aria-describedby полей. */

/* ==========================================================================
   ГОСТ Р 52872-2019 — режим для слабовидящих: типографика и движение
   ========================================================================== */

/* 1.4.4 / 1.4.12: межстрочный интервал не менее 1.5; межбуквенные и
   межсловные интервалы, отключённая плавная прокрутка — статичная,
   предсказуемая вёрстка. */
/* Масштаб страницы (размер шрифта), межстрочные/межбуквенные/межсловные
   интервалы регулируются меню кастомизации (ползунки vi-custom.js).
   Значения по умолчанию (100 %) соответствуют размерам обычного режима
   сайта; динамический предел увеличения вычисляется по размеру окна
   (vi-custom.js) — контент не выходит за края экрана. */
body.visually-impaired {
    zoom: var(--vi-font-scale, 1);
    line-height: calc(1.5 * var(--vi-spacing-scale, 1));
    letter-spacing: calc(.02em * var(--vi-spacing-scale, 1));
    word-spacing: calc(.04em * var(--vi-spacing-scale, 1));
    scroll-behavior: auto;
}

/* Размер иконок — отдельный ползунок: знаки FontAwesome и инлайновые SVG
   масштабируются независимо от текста; гербовая эмблема не масштабируется. */
body.visually-impaired [class*="fa-"],
body.visually-impaired svg:not(.gavel-scene) {
    zoom: var(--vi-icon-scale, 1);
}

/* Фолбэк масштабирования для браузеров без поддержки CSS zoom (Firefox ESR) */
@supports not (zoom: 1) {
    body.visually-impaired {
        transform: scale(var(--vi-font-scale, 1));
        transform-origin: top left;
        width: calc(100% / var(--vi-font-scale, 1));
    }
    body.visually-impaired [class*="fa-"],
    body.visually-impaired svg:not(.gavel-scene) {
        transform: scale(var(--vi-icon-scale, 1));
        display: inline-block;
    }
}
html.no-zoom body.visually-impaired {
    transform: scale(var(--vi-font-scale, 1));
    transform-origin: top left;
    width: calc(100% / var(--vi-font-scale, 1));
}
html.no-zoom body.visually-impaired [class*="fa-"],
html.no-zoom body.visually-impaired svg:not(.gavel-scene) {
    transform: scale(var(--vi-icon-scale, 1));
    display: inline-block;
}

/* 2.2.2: в версии для слабовидящих страница полностью статична —
   декоративные анимации отключены независимо от настроек ОС. */
body.visually-impaired *,
body.visually-impaired *::before,
body.visually-impaired *::after {
    animation: none !important;
}

/* 2.4.7: контрастный фокус в версии для слабовидящих — для программных
   фокусируемых элементов (role="button", tabindex). */
body.visually-impaired [role="button"]:focus-visible,
body.visually-impaired [tabindex]:focus-visible {
    outline: 3px solid var(--vi-line);
    outline-offset: 2px;
}



/* ==========================================================================
   Cookie-баннер (уведомление об использовании файлов cookies)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
    z-index: 950;
    width: min(560px, calc(100vw - 32px));
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px 12px 18px;
    background: rgba(15, 27, 22, .97);
    border: 1px solid rgba(198, 164, 92, .38);
    border-radius: 14px;
    box-shadow: 0 24px 64px -24px rgba(5, 12, 9, .65);
    color: #ece9dd;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--sans);
    transition: opacity .24s var(--ease), transform .24s var(--ease);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner.is-leaving {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
    pointer-events: none;
}

.cookie-banner:focus {
    outline: none;
}

.cookie-banner:focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px var(--ink) !important;
}

.cookie-banner__emblem {
    flex: none;
    color: var(--gold-bright);
    margin-top: 2px;
}

.cookie-banner__body {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 3px;
}

.catalog-map-mode-notice {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #9bb8a8;
    border-inline-start: 4px solid var(--pine);
    border-radius: var(--radius-md);
    background: #f2f7f4;
    color: var(--ink);
    line-height: 1.55;
}

.catalog-map-mode-notice strong {
    display: block;
    margin-bottom: 3px;
}

body.visually-impaired .catalog-map-mode-notice {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
}

.cookie-banner__overline {
    grid-column: 1;
    margin: 0;
    font: 700 11px/1 var(--sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.cookie-banner__text {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font: 400 13px/1.35 var(--sans);
    color: #e6e2d4;
}

.cookie-banner__accept {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 26px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-bright) 100%);
    color: #10231c;
    border: 1px solid rgba(198, 164, 92, .5);
    border-radius: 9px;
    font: 800 13px/1 var(--sans);
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.cookie-banner__accept:hover {
    box-shadow: 0 10px 22px -10px rgba(198, 164, 92, .55);
}

/* --- Cookie-баннер в версии для слабовидящих: строгие токены схемы.
       Геометрия делится на --vi-zoom (эффективный масштаб страницы),
       поэтому баннер вписывается в окно при любом увеличении. --- */
body.visually-impaired .cookie-banner {
    bottom: calc(24px / var(--vi-zoom, 1));
    width: calc(min(560px, 100vw - 32px) / var(--vi-zoom, 1));
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 3px solid var(--vi-line);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.visually-impaired .cookie-banner:focus-visible {
    outline: 3px solid var(--vi-line) !important;
    outline-offset: 3px !important;
    box-shadow: none !important;
}

body.visually-impaired .cookie-banner__emblem {
    color: var(--vi-fg);
}

body.visually-impaired .cookie-banner__overline,
body.visually-impaired .cookie-banner__text {
    color: var(--vi-fg);
}

body.visually-impaired .cookie-banner__body {
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
}

body.visually-impaired .cookie-banner__overline,
body.visually-impaired .cookie-banner__text,
body.visually-impaired .cookie-banner__accept {
    grid-column: 1;
    grid-row: auto;
}

body.visually-impaired .cookie-banner__accept {
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
    border-radius: 0;
    font-weight: 800;
    letter-spacing: .06em;
    justify-self: start;
}

body.visually-impaired .cookie-banner__accept:hover,
body.visually-impaired .cookie-banner__accept.lift-held,
body.visually-impaired .cookie-banner__accept:focus {
    transform: none;
    box-shadow: none;
    background: var(--vi-bg);
    color: var(--vi-fg);
}

@media (max-width: 640px) {
    .cookie-banner {
        bottom: 10px;
        padding: 12px;
        gap: 8px;
    }

    .cookie-banner__emblem,
    .cookie-banner__emblem svg {
        width: 26px;
        height: 26px;
    }

    .cookie-banner__emblem {
        margin-top: 0;
    }

    .cookie-banner__body {
        column-gap: 10px;
    }

    .cookie-banner__overline {
        font-size: 10px;
        letter-spacing: .12em;
    }

    .cookie-banner__text {
        font-size: 12px;
        line-height: 1.4;
    }

    .cookie-banner__accept {
        padding: 10px 12px;
    }
}


/* ==========================================================================
   Раунд 8: строгая монохромность версии для слабовидящих.
   В режиме для слабовидящих не остаётся ни одного цветного элемента:
   цветные тени, градиентные ореолы, узорные подложки и золотые кольца
   эмблемы убираются или переводятся в чёрно-белые токены схемы.
   ========================================================================== */

/* 1) Декоративная узорная сетка фона страниц — вне монохромной палитры. */
body.visually-impaired .ambient-grid {
    display: none !important;
}

/* 2) Гербовая эмблема (молоток): в версии для слабовидящих остаётся
   ТОЖДЕСТВЕННОЙ обычному логотипу (те же цвета, фон и рамка — единственное
   осмысленное исключение из монохромной палитры, раунд 8), но становится
   статичной: анимация замораживается в JS в верхней точке замаха.
   Полные правила эмблемы — в блоке «Статичная гербовая эмблема» ниже. */

/* 3) Светящиеся градиентные ореолы карточек (главная, разделы, «Как
   участвовать», золотое послесвечение карточек объектов) — декоративные
   пустые псевдоэлементы, в монохромном режиме скрываются целиком. */
body.visually-impaired .hero-categories a::before,
body.visually-impaired .hero-categories a::after,
body.visually-impaired .hero-task-links a::before,
body.visually-impaired .hero-task-links a::after,
body.visually-impaired .registry-directory a::before,
body.visually-impaired .registry-directory a::after,
body.visually-impaired .registry-hub-card::before,
body.visually-impaired .registry-hub-card::after,
body.visually-impaired .participation-notice::before,
body.visually-impaired .participation-notice::after,
body.visually-impaired .participation-step::before,
body.visually-impaired .participation-step::after,
body.visually-impaired .property-card::before,
body.visually-impaired .property-card::after,
body.visually-impaired .auction-card::before,
body.visually-impaired .auction-card::after {
    display: none !important;
}

/* 4) Золотая градиентная подложка переключателей состояния торгов. */
body.visually-impaired .auction-state-option {
    background-image: none !important;
}

/* 5) Цветные полутени карточек, форм и элементов карт — в монохромном
   режиме страница плоская: тени убираются. Функциональные ч/б кольца
   фокуса и наведения (box-shadow на токенах схемы) задаются правилами
   с большей специфичностью выше по файлу и не затрагиваются. */
body.visually-impaired .lux-search,
body.visually-impaired .lux-search__btn,
body.visually-impaired .category-tab,
body.visually-impaired .prop-gallery-card,
body.visually-impaired .prop-metric-card,
body.visually-impaired .catalog-filter-card,
body.visually-impaired .auction-filter-card,
body.visually-impaired .auction-compact-filter,
body.visually-impaired .map-workspace,
body.visually-impaired .map-count,
body.visually-impaired .card-details-btn,
body.visually-impaired .property-card,
body.visually-impaired .lot-number-box,
body.visually-impaired .lot-hero-fact-card,
body.visually-impaired .participation-step {
    box-shadow: none !important;
}

/* 6) Плашки типа объекта и категории лота: цветная тонированная подложка
   заменяется контрастной ч/б плашкой с рамкой. */
body.visually-impaired .prop-type-badge,
body.visually-impaired .lot-category-tag {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
}

/* 7) Страница лота: золотая точка активного шага и голубая точка дедлайна
   таймлайна торгов — строго в ч/б (активный шаг инвертируется). */
body.visually-impaired .lot-timeline-step.is-active .lot-timeline-dot {
    background: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    color: var(--vi-bg) !important;
    box-shadow: none !important;
}

body.visually-impaired .lot-timeline-step.is-deadline .lot-timeline-dot {
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    color: var(--vi-fg) !important;
    box-shadow: none !important;
}

/* 8) Inline-акценты на страницах объектов и лотов (например, голубой
   остатка дней приёма заявок) — в ч/б в обоих вариантах записи цвета. */
body.visually-impaired main [style*="color: #1d4ed8"],
body.visually-impaired main [style*="color:#1d4ed8"],
body.visually-impaired main [style*="color: #2563eb"],
body.visually-impaired main [style*="color:#2563eb"],
body.visually-impaired main [style*="color: #15803d"],
body.visually-impaired main [style*="color:#15803d"],
body.visually-impaired main [style*="color: #16a34a"],
body.visually-impaired main [style*="color:#16a34a"] {
    color: var(--vi-fg) !important;
}

/* 9) Страницы объектов, лотов и предпросмотра: оставшиеся цветные
   полутени виджетов, галереи и секций — в монохромном режиме убираются. */
body.visually-impaired .prop-hero {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-bottom: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .prop-hero-title,
body.visually-impaired .prop-hero-location,
body.visually-impaired .prop-hero-sub,
body.visually-impaired .prop-hero-loc-icon,
body.visually-impaired .prop-hero-dot,
body.visually-impaired .prop-back-link,
body.visually-impaired .prop-hero-slash,
body.visually-impaired .prop-hero-nav__current,
body.visually-impaired .prop-number-label,
body.visually-impaired .quick-price-note,
body.visually-impaired .prop-desc-content {
    color: var(--vi-fg) !important;
}

body.visually-impaired .prop-trading-widget,
body.visually-impaired .prop-no-trading-widget,
body.visually-impaired .prop-sidebar,
body.visually-impaired .prop-sidebar-card,
body.visually-impaired .prop-organizer-card {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .prop-trading-widget::before {
    background: var(--vi-line) !important;
}

body.visually-impaired .prop-trading-heading,
body.visually-impaired .prop-trading-price,
body.visually-impaired .prop-trading-price-label,
body.visually-impaired .prop-trading-price-suffix,
body.visually-impaired .prop-trading-rent-note,
body.visually-impaired .prop-trading-table,
body.visually-impaired .prop-trading-table th,
body.visually-impaired .prop-trading-table td,
body.visually-impaired .prop-trading-table .label,
body.visually-impaired .prop-trading-table .val {
    color: var(--vi-fg) !important;
}

body.visually-impaired .prop-trading-deadline {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
}

body.visually-impaired .prop-trading-deadline strong,
body.visually-impaired .prop-trading-deadline__days,
body.visually-impaired .prop-trading-deadline__icon {
    color: var(--vi-fg) !important;
}

body.visually-impaired .btn-property-to-lot,
body.visually-impaired .lot-section,
body.visually-impaired .lot-sticky-widget,
body.visually-impaired .gallery-container,
body.visually-impaired .auction-widget {
    box-shadow: none !important;
}

/* Подложка и рамка неактивного липкого блока лота — нейтральный slate —
   в ч/б. */
body.visually-impaired .lot-sticky-disabled,
body.visually-impaired span.lot-sticky-disabled {
    background: var(--vi-bg) !important;
    border-color: var(--vi-line) !important;
}

/* Золотое радиальное свечение шапки детальной карточки и золотой отблеск
   под секциями главной — вне монохромной палитры. */
body.visually-impaired .detail-header {
    background-image: none !important;
}

body.visually-impaired .home-section::after {
    box-shadow: none !important;
}

/* 10) Золотые кольцо и градиент переключателей состояния торгов
   (свободные помещения, МСП, садовые участки) — строго ч/б. */
body.visually-impaired .auction-state-option,
body.visually-impaired .auction-state-option:hover,
body.visually-impaired .auction-state-option:has(input:checked) {
    background-image: none !important;
    box-shadow: none !important;
}

/* 11) Служебная страница предпросмотра карточки (оранжевая лента
   статуса, красный блок ошибок, зелёный блок успешных проверок и
   цветные inline-акценты) — вся в границах монохромной палитры. */
body.visually-impaired main [style*="background: #f59e0b"],
body.visually-impaired main [style*="background:#f59e0b"] {
    background: var(--vi-fg) !important;
    color: var(--vi-bg) !important;
    box-shadow: none !important;
}

body.visually-impaired main [style*="color: #f59e0b"],
body.visually-impaired main [style*="color:#f59e0b"],
body.visually-impaired main [style*="color: #991b1b"],
body.visually-impaired main [style*="color:#991b1b"],
body.visually-impaired main [style*="color: #ef4444"],
body.visually-impaired main [style*="color:#ef4444"],
body.visually-impaired main [style*="color: #166534"],
body.visually-impaired main [style*="color:#166534"],
body.visually-impaired main [style*="color: #22c55e"],
body.visually-impaired main [style*="color:#22c55e"] {
    color: var(--vi-fg) !important;
}

body.visually-impaired main [style*="background: #fef2f2"],
body.visually-impaired main [style*="background:#fef2f2"],
body.visually-impaired main [style*="background: #f0fdf4"],
body.visually-impaired main [style*="background:#f0fdf4"] {
    background: var(--vi-bg) !important;
}

body.visually-impaired main [style*="border: 2px solid #ef4444"],
body.visually-impaired main [style*="border:2px solid #ef4444"],
body.visually-impaired main [style*="border: 2px solid #22c55e"],
body.visually-impaired main [style*="border:2px solid #22c55e"] {
    border-color: var(--vi-line) !important;
}


/* ==========================================================================
   РАУНД 8 — версия для слабовидящих: мгновенная загрузка, строгий монохром,
   никаких избыточных анимаций и свечений; раздел «Карта» замещается списком
   объектов; гербовая эмблема статична и тождественна обычному логотипу
   (ГОСТ Р 52872-2019, ГОСТ Р 52872-2019 пп. 2.2.2 / 2.3.1 / 2.4.7).
   ========================================================================== */

/* --- 1) Мгновенная полная загрузка страницы ------------------------------ */
/* Поэтапное «появление при скролле» (reveal-анимации) отключается целиком:
   весь контент видим с первого кадра, сразу доступен навигации по Tab и
   программам экранного доступа. */
body.visually-impaired .reveal,
body.visually-impaired .reveal--left,
body.visually-impaired .reveal--right,
body.visually-impaired .reveal--scale,
body.visually-impaired .reveal-stagger,
body.visually-impaired .reveal-stagger > *,
body.visually-impaired [class*="reveal"] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    will-change: auto !important;
}

/* --- 2) Никаких анимаций, переходов, теней, свечений и размытий ---------- */
/* Вращающийся крестик сворачивания меню, кручение и оранжевое свечение
   «Понятного участия в торгах», свечения рамок форм поиска и кнопки
   меню-гамбургера, послесвечение подразделов «Документов», ореол иконки
   архива и любые другие эффекты — всё это в версии для слабовидящих
   не воспроизводится вовсе. */
body.visually-impaired *,
body.visually-impaired *::before,
body.visually-impaired *::after {
    transition: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
}

/* Остаточные цветные подложки фона и декоративных псевдоэлементов:
   строгий монохром — без малейших цветных оттенков. */
body.visually-impaired .ambient-stage {
    background: none !important;
}

body.visually-impaired .notice::after,
body.visually-impaired .empty-icon-wrap {
    background: none !important;
    background-image: none !important;
}

body.visually-impaired .empty-icon-wrap {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
}

/* Disable decorative transforms in every state in VI mode. Never reset
   transforms on *:hover: positioning (centering, map markers, gallery controls)
   must stay identical when the pointer enters or leaves an element. */
body.visually-impaired .menu-item-icon,
body.visually-impaired .card-image,
body.visually-impaired .card-image--placeholder,
body.visually-impaired .auction-card-image,
body.visually-impaired .auction-card-image img,
body.visually-impaired .hero-image img,
body.visually-impaired .footer-emblem,
body.visually-impaired .doc-icon,
body.visually-impaired .text-link span,
body.visually-impaired .text-link .arrow,
body.visually-impaired .outline-link span,
body.visually-impaired .outline-link .arrow,
body.visually-impaired .card-details-link span,
body.visually-impaired .registry-hub-card__btn,
body.visually-impaired .lux-search__icon,
body.visually-impaired .count-mark,
body.visually-impaired .count-mark-light,
body.visually-impaired .lux-counter {
    transform: none !important;
}

/* --- 3) Концентрация обратной связи на фокусе ----------------------------- */
/* Эффекты наведения убраны; единственная интерактивная подсказка —
   контрастная рамка фокуса (outline), необходимая для навигации с клавиатуры. */
body.visually-impaired a:focus-visible,
body.visually-impaired button:focus-visible,
body.visually-impaired input:focus-visible,
body.visually-impaired select:focus-visible,
body.visually-impaired textarea:focus-visible,
body.visually-impaired [role="button"]:focus-visible,
body.visually-impaired [tabindex]:focus-visible,
body.visually-impaired summary:focus-visible {
    outline: 3px solid var(--vi-line) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* Подчёркивание ссылок при наведении не утолщается: текст не «дёргается». */
body.visually-impaired a:hover {
    text-decoration-thickness: 1px;
}

/* --- 4) Карточки объектов: наведение не меняет их вовсе ------------------- */
body.visually-impaired .property-card,
body.visually-impaired .property-card *,
body.visually-impaired .property-card:hover,
body.visually-impaired .property-card.lift-held,
body.visually-impaired .property-card:hover *,
body.visually-impaired .property-card.lift-held *,
body.visually-impaired .auction-card,
body.visually-impaired .auction-card *,
body.visually-impaired .auction-card:hover,
body.visually-impaired .auction-card.lift-held,
body.visually-impaired .auction-card:hover *,
body.visually-impaired .auction-card.lift-held * {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Кнопка карточки в разделах (Свободные помещения, Для МСП, Садовые участки):
   в режиме для слабовидящих имеет рамку и не сливается с фоном карточки при наведении. */
body.visually-impaired .auction-card--working .auction-details-link,
body.visually-impaired .auction-card--working .auction-details-link:hover,
body.visually-impaired .auction-card--working:hover .auction-details-link {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer !important;
}

body.visually-impaired .auction-card--working .auction-details-link:hover,
body.visually-impaired .auction-card--working:hover .auction-details-link {
    text-decoration: underline !important;
}

/* Курсор мыши: наведение на саму карточку оставляет курсор по умолчанию,
   курсор указателя (pointer) появляется только на кнопке перехода и ссылках. */
body.visually-impaired .property-card,
body.visually-impaired .auction-card,
body.visually-impaired .auction-card--working {
    cursor: default !important;
}

body.visually-impaired .card-details-link,
body.visually-impaired .auction-details-link,
body.visually-impaired .card-image-wrap,
body.visually-impaired .card-title a,
body.visually-impaired .auction-card-title a {
    cursor: pointer !important;
}

/* --- 5) Карты не отображаются вовсе --------------------------------------- */
/* В версии для слабовидящих раздел «Карта» фактически замещается списком
   объектов: картографическая основа, контейнеры и элементы управления
   картой не выводятся. */
body.visually-impaired .map-column,
body.visually-impaired .map-canvas,
body.visually-impaired #catalog-map,
body.visually-impaired #detail-map,
body.visually-impaired #full-map,
body.visually-impaired #garden-map-container,
body.visually-impaired #pane-view-map,
body.visually-impaired .garden-map-workspace,
body.visually-impaired .map-workspace,
body.visually-impaired .ymap-clean-hint,
body.visually-impaired .yandex-property-marker {
    display: none !important;
}

/* Ссылки и кнопки, ведущие к картам, скрываются: навигация по Tab и
   скринридеру остаётся без ложных «тупиков». Раздел «Карта» в основном
   меню остаётся — его доступное имя объясняет замену (см. navigation.js). */
body.visually-impaired .map-link,
body.visually-impaired .btn-empty-map,
body.visually-impaired .auction-details-link--map,
body.visually-impaired .btn-prop-big-map,
body.visually-impaired .map-list-link,
body.visually-impaired #tab-btn-map,
body.visually-impaired .snt-btn-map,
body.visually-impaired .snt-card-pin-btn,
body.visually-impaired .hero-task-links a[href*="/map/"] {
    display: none !important;
}

/* Список объектов занимает всю ширину вместо колонки рядом с картой. */
body.visually-impaired .view-grid-only .map-column {
    display: none !important;
}


/* --- 7) Активные состояния — настраиваемая серая заливка ----------------- */
/* (переехали в итоговый блок «Round 9» в конце файла) */

/* Автозаполнение полей входа оператора: заливка цветом схемы сохраняется
   (исключение из глобального запрета теней — функциональная необходимость). */
body.operator-login-page.visually-impaired .operator-login__control input:-webkit-autofill,
body.operator-login-page.visually-impaired .operator-login__control input:-webkit-autofill:hover,
body.operator-login-page.visually-impaired .operator-login__control input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--vi-fg) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--vi-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--vi-bg) inset !important;
    caret-color: var(--vi-fg) !important;
}

/* --- 8) Статичная чёрно-белая гербовая эмблема (молоток) ------------------ */
/* В версии для слабовидящих эмблема чёрно-белая: движение остановлено
   (JS замораживает анимацию в верхней точке замаха), SVG переведён
   в градации серого, золотые свечения и эффекты наведения убраны.
   Подробное словесное описание для скринридеров добавляет gavel-logo.js. */
body.visually-impaired .gavel-wrap {
    filter: none !important;
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
    cursor: default;
}

body.visually-impaired .gavel-wrap:hover,
body.visually-impaired .gavel-wrap.lift-held,
body.visually-impaired .gavel-wrap:active {
    transform: none !important;
    box-shadow: none !important;
    background: var(--vi-bg) !important;
}

body.visually-impaired .gavel-wrap::after {
    display: none !important;
}

/* Сам SVG — строго в градациях серого (чёрно-белый вид эмблемы):
   правило более специфично, чем глобальный запрет filter выше. */
body.visually-impaired .gavel-scene,
body.visually-impaired .gavel-scene * {
    filter: grayscale(1) contrast(1.05) !important;
}


/* ==========================================================================
   ROUND 9 — режим для слабовидящих: корректный фокус и состояние чекбоксов,
   кнопки без заливки при наведении, серая заливка активных кнопок,
   меню кастомизации (иконка-карандаш): схемы, цвета, размеры.
   ========================================================================== */

/* --- 1) Чекбоксы фильтров: видимое состояние и видимый фокус ------------- */
/* Отмеченное состояние обязано читаться на ч/б схеме: коробка — цветом
   текста, галочка — цветом фона (правило «bg !important» выше больше
   не убивает признак выбора). Рамка строки утолщается. */
body.visually-impaired .custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-box {
    background: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
}

body.visually-impaired .custom-checkbox-item input[type="checkbox"]:checked ~ .checkbox-box i {
    color: var(--vi-bg) !important;
}

body.visually-impaired .custom-checkbox-item:has(input[type="checkbox"]:checked) {
    border-width: 2px;
    border-color: var(--vi-line) !important;
}

/* Фокус с клавиатуры виден на всей строке чекбокса (инпут прозрачен и
   накрывает строку целиком — см. доступный паттерн в разделе фильтров). */
body.visually-impaired .custom-checkbox-item:has(input:focus-visible) {
    outline: 3px solid var(--vi-line) !important;
    outline-offset: 2px;
}

body.visually-impaired .custom-checkbox-item input:focus-visible ~ .checkbox-box {
    outline: 3px solid var(--vi-line);
    outline-offset: 2px;
}

/* Числовые поля диапазона и поля форм — та же контрастная рамка фокуса. */
body.visually-impaired .range-input:focus-visible,
body.visually-impaired .form-control:focus-visible {
    outline: 3px solid var(--vi-line) !important;
    outline-offset: 1px;
    border-color: var(--vi-line) !important;
}

/* --- 2) Кнопки «Сбросить фильтры» и все прочие: константные цвета -------- */
/* Кнопка «Сбросить все фильтры» в пустом состоянии имела чёрную заливку с
   чёрным текстом; все кнопки: текст и границы — цвет текста схемы, фон —
   цвет фона схемы, и НИЧЕГО не меняется при наведении курсора. */
body.visually-impaired .category-tab,
body.visually-impaired .btn-filter-toggle,
body.visually-impaired .preset-btn,
body.visually-impaired .btn-empty-reset,
body.visually-impaired .btn-advanced-reset,
body.visually-impaired .btn-empty-map,
body.visually-impaired .btn-pagination,
body.visually-impaired .pagination-current,
body.visually-impaired .prop-gallery-nav,
body.visually-impaired .prop-gallery-counter {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
}

body.visually-impaired .category-tab i,
body.visually-impaired .category-tab span,
body.visually-impaired .category-tab .category-tab-name,
body.visually-impaired .btn-filter-toggle i,
body.visually-impaired .btn-filter-toggle span {
    color: var(--vi-fg) !important;
}

body.visually-impaired .prop-gallery-nav {
    top: calc(50% - 22px) !important;
    transform: none !important;
}

body.visually-impaired .catalog-category-nav {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
}

/* Наведение не меняет НИЧЕГО: ни заливку, ни цвет текста, ни тени
   (двойные кольца из прежних раундов для кнопок убраны; индикатор
   клавиатурного фокуса — :focus-visible — остаётся). */
body.visually-impaired button:hover,
body.visually-impaired .btn-filter-submit:hover,
body.visually-impaired .auction-filter-submit:hover,
body.visually-impaired .btn-advanced-apply:hover,
body.visually-impaired .btn-empty-reset:hover,
body.visually-impaired .btn-empty-map:hover,
body.visually-impaired .btn-advanced-reset:hover,
body.visually-impaired .btn-reset:hover,
body.visually-impaired .btn-pagination:hover,
body.visually-impaired .prop-gallery-nav:hover,
body.visually-impaired .active-chip-clear:hover,
body.visually-impaired .search-clear-btn:hover,
body.visually-impaired .map-selection-close:hover,
body.visually-impaired .preset-btn:hover,
body.visually-impaired .category-tab:hover,
body.visually-impaired .btn-filter-toggle:hover,
body.visually-impaired .cookie-banner__accept:hover {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none;
}

/* Прежние hover-кольца «двойной обводкой» для кнопок и ссылок-кнопок
   заменены константным состоянием (см. список в «refinements round 2»). */
body.visually-impaired .btn-filter-submit.lift-held,
body.visually-impaired .btn-advanced-apply.lift-held,
body.visually-impaired .btn-empty-reset.lift-held,
body.visually-impaired .btn-empty-map.lift-held,
body.visually-impaired .btn-advanced-reset.lift-held,
body.visually-impaired .btn-reset.lift-held,
body.visually-impaired .active-chip-clear.lift-held,
body.visually-impaired .search-clear-btn.lift-held,
body.visually-impaired .map-selection-close.lift-held,
body.visually-impaired .btn-filter-toggle.lift-held,
body.visually-impaired .category-tab.lift-held,
body.visually-impaired .preset-btn.lift-held {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
}

/* --- 3) Активированные кнопки — серая заливка (настраиваемая) ------------ */
/* Цвет заливки — var(--vi-active-bg) (по умолчанию нейтральный серый,
   меняется ползунком «цвет активированной кнопки»); цвет текста на ней
   подбирается автоматически (var(--vi-active-fg)) так, чтобы не сливаться.
   Объявлено ПОСЛЕ hover-правил: активное состояние держится и при наведении. */
body.visually-impaired .is-active,
body.visually-impaired button.is-active,
body.visually-impaired a.is-active,
body.visually-impaired [aria-pressed="true"],
body.visually-impaired .visually-impaired-btn.is-active,
body.visually-impaired .registry-tabs a.is-active,
body.visually-impaired .registry-subtabs a.is-active,
body.visually-impaired .category-tab.is-active,
body.visually-impaired .menu-item.is-active {
    background: var(--vi-active-bg) !important;
    color: var(--vi-active-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
    outline: none !important;
}

body.visually-impaired .menu-item.is-active .menu-item-icon,
body.visually-impaired .menu-item.is-active svg {
    color: var(--vi-active-fg) !important;
    stroke: var(--vi-active-fg) !important;
}

body.visually-impaired .is-active:hover,
body.visually-impaired button.is-active:hover,
body.visually-impaired a.is-active:hover,
body.visually-impaired [aria-pressed="true"]:hover,
body.visually-impaired .category-tab.is-active:hover,
body.visually-impaired .preset-btn.is-active:hover,
body.visually-impaired .btn-filter-toggle.is-active:hover {
    background: var(--vi-active-bg) !important;
    color: var(--vi-active-fg) !important;
    border-color: var(--vi-line) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.visually-impaired .category-tab.is-active,
body.visually-impaired .category-tab.is-active:hover,
body.visually-impaired .category-tab.is-active:focus {
    background: #000000 !important;
    background: var(--vi-fg) !important;
    color: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
}

body.visually-impaired .category-tab.is-active i,
body.visually-impaired .category-tab.is-active:hover i,
body.visually-impaired .category-tab.is-active span,
body.visually-impaired .category-tab.is-active:hover span {
    color: var(--vi-bg) !important;
}

body.visually-impaired .category-tab.is-active .category-tab-count,
body.visually-impaired .category-tab.is-active:hover .category-tab-count {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 1px solid var(--vi-bg) !important;
    box-shadow: none !important;
}

/* --- 4) Иконка-карандаш: вход в меню кастомизации ------------------------ */
/* Появляется между иконкой «глаз» и меню-гамбургером только в режиме
   для слабовидящих. */
.vi-settings-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0;
    flex: none;
    background: transparent;
    border: 2px solid var(--line-2);
    border-radius: 10px;
    color: var(--text);
    cursor: pointer;
    margin-right: -6px;
}

body.visually-impaired .vi-settings-btn {
    display: inline-flex;
    background: var(--vi-bg);
    border-color: var(--vi-line);
    color: var(--vi-fg);
}

.vi-settings-btn:hover {
    background: var(--vi-bg);
    color: var(--text);
}

body.visually-impaired .vi-settings-btn:hover {
    background: var(--vi-bg);
    color: var(--vi-fg);
}

.vi-settings-btn[aria-expanded="true"] {
    background: var(--vi-active-bg);
    color: var(--vi-active-fg);
}

body.visually-impaired .vi-settings-btn[aria-expanded="true"] {
    background: var(--vi-active-bg);
    color: var(--vi-active-fg);
    border-color: var(--vi-line);
}

/* --- 5) Меню кастомизации (панель настроек) ------------------------------ */
/* Панель всегда вписывается в окно при любом увеличении: отступы, ширина
   и высота делятся на --vi-zoom (эффективный масштаб страницы, задаётся
   vi-custom.js); верх привязан к нижнему краю шапки (--vi-panel-header-h
   измеряется при открытии), содержимое прокручивается по вертикали —
   все ползунки остаются доступными и для мыши, и для клавиатуры. */
.vi-settings-panel {
    display: none;
    position: fixed;
    top: calc(var(--vi-panel-header-h, 94px) + 8px / var(--vi-zoom, 1));
    right: calc(16px / var(--vi-zoom, 1));
    z-index: 965;
    width: calc(min(400px, 100vw - 24px) / var(--vi-zoom, 1));
    max-height: calc((100svh - 24px) / var(--vi-zoom, 1) - var(--vi-panel-header-h, 94px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 18px 20px;
    background: var(--card);
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-family: var(--sans);
}

.vi-settings-panel.is-open {
    display: block;
}

body.visually-impaired .vi-settings-panel {
    background: var(--vi-bg);
    border: 2px solid var(--vi-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--vi-fg);
}

.vi-settings-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.vi-settings-panel__head > div {
    flex: 1;
    min-width: 0;
}

.vi-settings-panel__title {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    color: inherit;
    overflow-wrap: anywhere;
}

.vi-settings-panel__hint {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 400;
    color: inherit;
    overflow-wrap: anywhere;
}

.vi-settings-panel__close {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
    cursor: pointer;
}

body.visually-impaired .vi-settings-panel__close:hover {
    background: var(--vi-bg);
    color: var(--vi-fg);
}

.vi-settings-section {
    margin: 0 0 16px;
    padding: 0;
    border: none;
    min-width: 0;
}

.vi-settings-section legend,
.vi-settings-section__legend {
    padding: 0;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: inherit;
}

/* Строка ползунка */
.vi-settings-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 13px;
}

.vi-settings-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.vi-settings-row__title {
    font-size: 13.5px;
    font-weight: 700;
    color: inherit;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vi-settings-row__value {
    font-size: 12.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: none;
}

.vi-settings-row__body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vi-settings-row input[type="range"] {
    flex: 1;
    width: 100%;
    height: 28px;
    margin: 0;
    accent-color: var(--vi-fg, #000);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.vi-settings-row input[type="range"]:focus-visible {
    outline: 3px solid var(--vi-line, #000);
    outline-offset: 2px;
}

.vi-settings-row input[type="checkbox"],
.vi-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--vi-fg, #000);
    cursor: pointer;
    margin: 0;
}

.vi-settings-row input[type="checkbox"]:focus-visible,
.vi-checkbox:focus-visible {
    outline: 3px solid var(--vi-line, #000);
    outline-offset: 2px;
}

/* Ползунки цвета — полноценная палитра (как у «Цвета активированной
   кнопки»): дорожка — спектр оттенков, бегунок — цвет схемы. */
.vi-settings-row input[type="range"][data-vi-param="textHue"],
.vi-settings-row input[type="range"][data-vi-param="bgHue"],
.vi-settings-row input[type="range"][data-vi-param="lineHue"],
.vi-settings-row input[type="range"][data-vi-param="activeHue"] {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    border: 2px solid var(--vi-line, #000);
    background: linear-gradient(to right,
        hsl(0, 70%, 50%), hsl(60, 70%, 50%), hsl(120, 70%, 50%),
        hsl(180, 70%, 50%), hsl(240, 70%, 50%), hsl(300, 70%, 50%),
        hsl(360, 70%, 50%));
}

.vi-settings-row input[type="range"][data-vi-param="textHue"]::-webkit-slider-thumb,
.vi-settings-row input[type="range"][data-vi-param="bgHue"]::-webkit-slider-thumb,
.vi-settings-row input[type="range"][data-vi-param="lineHue"]::-webkit-slider-thumb,
.vi-settings-row input[type="range"][data-vi-param="activeHue"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--vi-bg, #fff);
    border: 3px solid var(--vi-fg, #000);
}

.vi-settings-row input[type="range"][data-vi-param="textHue"]::-moz-range-thumb,
.vi-settings-row input[type="range"][data-vi-param="bgHue"]::-moz-range-thumb,
.vi-settings-row input[type="range"][data-vi-param="lineHue"]::-moz-range-thumb,
.vi-settings-row input[type="range"][data-vi-param="activeHue"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vi-bg, #fff);
    border: 3px solid var(--vi-fg, #000);
}

.vi-settings-row input[type="range"][data-vi-param="textHue"]::-moz-range-track,
.vi-settings-row input[type="range"][data-vi-param="bgHue"]::-moz-range-track,
.vi-settings-row input[type="range"][data-vi-param="lineHue"]::-moz-range-track,
.vi-settings-row input[type="range"][data-vi-param="activeHue"]::-moz-range-track {
    background: transparent;
}

.vi-settings-swatch {
    flex: none;
    width: 26px;
    height: 26px;
    border: 2px solid var(--vi-line, #000);
    background: transparent;
}

/* Кнопка возврата к стандартным настройкам схемы */
.vi-settings-reset {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--vi-bg);
    color: var(--vi-fg);
    border: 2px solid var(--vi-line);
    font: 700 13.5px/1.2 var(--sans);
    cursor: pointer;
}

body.visually-impaired .vi-settings-reset:hover {
    background: var(--vi-active-bg);
    color: var(--vi-active-fg);
}

/* Убедиться, что панель не перекрывается кнопкой «наверх» и cookie-баннером */
body.visually-impaired .back-to-top {
    z-index: 940;
}

/* ==========================================================================
   Кнопки стандартных цветовых схем по ГОСТ Р 52872-2019
   ========================================================================== */
.vi-preset-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 14px;
    min-width: 0;
}

.vi-preset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 2px solid var(--vi-line, #000);
    background: var(--vi-bg, #fff);
    color: var(--vi-fg, #000);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    transition: none;
}

.vi-preset-btn:hover {
    outline: 2px solid var(--vi-line, #000);
    outline-offset: 1px;
}

.vi-preset-btn:focus-visible {
    outline: 3px solid var(--vi-line, #000);
    outline-offset: 2px;
}

.vi-preset-btn.is-active,
.vi-preset-btn[aria-pressed="true"],
.vi-preset-btn[aria-checked="true"] {
    background: var(--vi-active-bg, #808080) !important;
    color: var(--vi-active-fg, #fff) !important;
    box-shadow: inset 0 0 0 1px var(--vi-line, #000);
}

.vi-preset-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.vi-preset-preview--bw {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.vi-preset-preview--wb {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.vi-preset-preview--yb {
    background: #000000;
    color: #ffff00;
    border: 2px solid #ffff00;
}

.vi-preset-preview--bc {
    background: #cbebf5;
    color: #063462;
    border: 2px solid #063462;
}

.vi-custom-colors-details {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--vi-line, #ccc);
}

.vi-custom-colors-summary {
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: inherit;
    margin-bottom: 12px;
}

.vi-custom-colors-summary:focus-visible {
    outline: 2px solid var(--vi-line, #000);
    outline-offset: 2px;
}

/* ==========================================================================
   Устранение обрезания текста при увеличении шрифта (150-200%) в VI
   ========================================================================== */
body.visually-impaired .card-title,
body.visually-impaired .card-address,
body.visually-impaired .c-card__title,
body.visually-impaired .c-card__address,
body.visually-impaired .auction-card-title,
body.visually-impaired .auction-card-address,
body.visually-impaired .property-card .card-title,
body.visually-impaired .property-card .card-address {
    -webkit-line-clamp: unset !important;
    display: block !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

/* ==========================================================================
   Фокус карточек объектов и быстрые действия
   ========================================================================== */
.property-card:focus-within {
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(63, 107, 87, 0.22), var(--shadow-md);
}

body.visually-impaired .property-card:focus-within {
    outline: 3px solid var(--vi-line) !important;
    outline-offset: 2px !important;
}

.card-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.card-action-btn:hover {
    background: #ffffff;
    color: var(--pine);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.card-action-btn:focus-visible {
    outline: 2px solid var(--pine);
    outline-offset: 2px;
}

.card-action-share.is-copied {
    color: #2e7d32;
    background: #ffffff;
}

body.visually-impaired .card-action-btn {
    background: var(--vi-bg) !important;
    border: 2px solid var(--vi-line) !important;
    color: var(--vi-fg) !important;
    border-radius: 4px;
    backdrop-filter: none;
    box-shadow: none !important;
}

body.visually-impaired .card-action-btn:hover,
body.visually-impaired .card-action-btn:focus-visible {
    background: var(--vi-active-bg) !important;
    color: var(--vi-active-fg) !important;
    outline: 3px solid var(--vi-line);
}

body.visually-impaired:not(.vi-show-images) .property-card {
    padding-top: 42px;
}

body.visually-impaired:not(.vi-show-images) .property-card > .status-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
}

.card-district-badge {
    color: var(--pine-2);
    font-weight: 600;
}

body.visually-impaired .card-district-badge {
    color: var(--vi-fg) !important;
}

.price-cadastral-reference {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.price-cadastral-reference .cadastral-ref-val {
    font-weight: 600;
    color: var(--text-2);
}

body.visually-impaired .price-cadastral-reference {
    color: var(--vi-fg) !important;
}
body.visually-impaired .price-cadastral-reference .cadastral-ref-val {
    color: var(--vi-fg) !important;
}

/* Текстовая альтернатива для карты на детальной странице */
.prop-map-text-alt {
    display: none;
}

body.visually-impaired .prop-map-text-alt {
    display: block !important;
    padding: 16px 20px;
    margin: 14px 0;
    border: 2px solid var(--vi-line);
    background: var(--vi-bg);
    color: var(--vi-fg);
}

.prop-map-text-alt__title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--vi-line);
}

.prop-map-text-alt__list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.prop-map-text-alt__row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.prop-map-text-alt__row dt {
    font-weight: 700;
    min-width: 170px;
    color: inherit;
    margin: 0;
}

.prop-map-text-alt__row dd {
    margin: 0;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-copy-cadastre,
.btn-copy-coords {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--vi-line);
    background: var(--vi-bg);
    color: var(--vi-fg);
    border-radius: 3px;
    cursor: pointer;
}

.btn-copy-cadastre:hover,
.btn-copy-coords:hover {
    background: var(--vi-active-bg);
    color: var(--vi-active-fg);
}

.btn-copy-cadastre.copied,
.btn-copy-coords.copied {
    background: var(--vi-active-bg);
    color: var(--vi-active-fg);
}

/* Поддержка контрастных тем по всем разделам и компонентам */
body.visually-impaired .prop-section,
body.visually-impaired .prop-gallery-card,
body.visually-impaired .prop-no-photo-card,
body.visually-impaired .prop-mobile-quick-card,
body.visually-impaired .prop-sidebar,
body.visually-impaired .prop-sidebar-card,
body.visually-impaired .specs-table,
body.visually-impaired .specs-table th,
body.visually-impaired .specs-table td,
body.visually-impaired .specs-table .label,
body.visually-impaired .specs-table .val,
body.visually-impaired .prop-doc-item,
body.visually-impaired .prop-auction-banner,
body.visually-impaired .catalog-filter-card,
body.visually-impaired .search-input-wrapper,
body.visually-impaired .advanced-drawer-inner,
body.visually-impaired .filter-top-bar,
body.visually-impaired .modal-dialog,
body.visually-impaired .modal-content {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border-color: var(--vi-line) !important;
}

body.visually-impaired .search-input-wrapper input {
    color: var(--vi-fg) !important;
    background: transparent !important;
}

body.visually-impaired .search-input-wrapper .search-icon,
body.visually-impaired .search-clear-btn {
    color: var(--vi-fg) !important;
}

body.visually-impaired .prop-section-title,
body.visually-impaired .prop-section-title i,
body.visually-impaired .prop-doc-title,
body.visually-impaired .prop-map-meta,
body.visually-impaired .prop-map-meta i {
    color: var(--vi-fg) !important;
}

body.visually-impaired .status-badge {
    background: var(--vi-bg) !important;
    color: var(--vi-fg) !important;
    border: 2px solid var(--vi-line) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html.vi-theme-dark body.visually-impaired .gavel-scene,
body.visually-impaired.vi-theme-dark .gavel-scene {
    filter: grayscale(1) invert(1) contrast(1.1) !important;
}
