/* ResaleCenter — pixel-accurate design from resale-center.com */

:root {
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --color-primary: #007469;
    --color-primary-dark: #065B52;
    --color-primary-light: #008D7D;
    --color-accent: #F9C500;
    --color-accent-dark: #564400;
    --color-text: #000000;
    --color-title: #000929;
    --color-muted: #4B5563;
    --color-subtle: #374151;
    --color-border: #D1CFD7;
    --color-bg: #FFFFFF;
    --color-bg-gray: #F3F4F6;
    --color-write-bg: #FFF6D4;
    --color-call-bg: #E5F1F0;
    --gradient-teal: linear-gradient(to right, #008D7D, #00A895);
    --gradient-yellow: linear-gradient(to right, #F9C500, #FFE275);
    /* Layout baseline 1440px — shrink proportionally, never upscale above design */
    --layout-scale: clamp(0.72, calc(min(100vw, 1440px) / 1440), 1);
    --container-max: clamp(960px, calc(min(100vw, 1440px) * 1320 / 1440), 1320px);
    --container-pad: clamp(16px, calc(min(100vw, 1440px) * 42 / 1440), 42px);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-hero: 30px;
    --site-header-sticky-offset: 72px;
    /* Buttons — default / hover / disabled */
    --btn-primary-bg: #007469;
    --btn-primary-bg-hover: #065B52;
    --btn-primary-text: #FFFFFF;
    --btn-primary-bg-disabled: #E9EAED;
    --btn-primary-text-disabled: #878C94;
    --btn-secondary-bg: #FFFFFF;
    --btn-secondary-bg-hover: #F7F8F9;
    --btn-secondary-border: #E9EAED;
    --btn-secondary-text: #374151;
    --btn-secondary-text-disabled: #878C94;
    --btn-ghost-text: #374151;
    --btn-ghost-text-disabled: #C5CAD1;
    --btn-icon-text: #374151;
    --btn-icon-text-hover: #007469;
    --btn-icon-text-disabled: #C5CAD1;
    /* Checkboxes */
    --checkbox-size: 20px;
    --checkbox-radius: 8px;
    --checkbox-bg: #F7F8F9;
    --checkbox-border: #E9EAED;
    --checkbox-bg-checked: #007469;
    --checkbox-border-checked: #007469;
    --checkbox-bg-hover: #F7F8F9;
    --checkbox-border-hover: #007469;
    --checkbox-bg-disabled: #F0F2F4;
    --checkbox-border-disabled: #E9EAED;
    --checkbox-bg-checked-disabled: #A8C5C1;
    --checkbox-border-checked-disabled: #A8C5C1;
    --checkbox-check-icon: url("/static/icons/check-white.svg");
    /* Viewport scale from 1440px design — shrink only, never upscale */
    --page-scale: min(1, calc(100vw / 1440px));
    /* Call / Write paired CTAs */
    --action-pair-scale: var(--page-scale);
    /* Property card image chrome (Популярно badge, favorite) */
    --card-chrome-inset: calc(12px * var(--page-scale));
    --badge-hot-size: calc(36px * var(--page-scale));
    --badge-hot-font: calc(13px * var(--page-scale));
    --badge-hot-icon: calc(22px * var(--page-scale));
    --badge-hot-gap: calc(6px * var(--page-scale));
    --badge-hot-pad-end: calc(12px * var(--page-scale));
    --badge-hot-pad-start: calc(10px * var(--page-scale));
    --badge-hot-max: calc(240px * var(--page-scale));
    --badge-hot-text-max: calc(220px * var(--page-scale));
    --favorite-btn-size: calc(36px * var(--page-scale));
    /* Property card v2 body — 1440px baselines */
    --card-v2-title-size: calc(16px * var(--page-scale));
    --card-v2-price-size: calc(22px * var(--page-scale));
    --card-v2-address-size: calc(13px * var(--page-scale));
    --card-v2-address-icon: calc(16px * var(--page-scale));
    --card-v2-meta-size: calc(13px * var(--page-scale));
    --card-v2-meta-icon: calc(18px * var(--page-scale));
    --card-v2-meta-gap: calc(5px * var(--page-scale));
    --card-v2-meta-dot-gap: calc(8px * var(--page-scale));
    --card-v2-title-row-gap: calc(8px * var(--page-scale));
    --card-v2-meta-margin-top: calc(6px * var(--page-scale));
    --card-v2-menu-btn-size: calc(24px * var(--page-scale));
    --card-v2-menu-dots-w: calc(16px * var(--page-scale));
    --card-v2-menu-dots-h: calc(4px * var(--page-scale));
    --card-v2-menu-radius: calc(8px * var(--page-scale));
    --card-v2-content-pad-x: calc(14px * var(--page-scale));
    --card-v2-content-pad-y: calc(12px * var(--page-scale));
    --card-v2-content-pad-bottom: calc(14px * var(--page-scale));
    --card-v2-actions-pad-x: calc(14px * var(--page-scale));
    --card-v2-actions-pad-bottom: calc(14px * var(--page-scale));
    --card-v2-actions-margin-top: calc(12px * var(--page-scale));
    /* Home section titles (1440px baselines) */
    --home-section-title-size: calc(28px * var(--page-scale));
    --home-section-title-mb: calc(60px * var(--page-scale));
    --home-section-header-mb: calc(60px * var(--page-scale));
    --action-pair-height: calc(44px * var(--action-pair-scale));
    --action-pair-font-size: calc(14px * var(--action-pair-scale));
    --action-pair-font-size-lg: calc(16px * var(--action-pair-scale));
    --action-pair-icon: calc(18px * var(--action-pair-scale));
    --action-pair-gap: calc(6px * var(--action-pair-scale));
    --action-pair-pad-x: calc(12px * var(--action-pair-scale));
    --action-pair-radius: calc(16px * var(--action-pair-scale));
    --action-pair-row-gap: calc(8px * var(--action-pair-scale));
    /* Image-overlay pills — smaller baselines at 1440 */
    --action-pair-overlay-height: calc(36px * var(--action-pair-scale));
    --action-pair-overlay-pad-x: calc(14px * var(--action-pair-scale));
    --action-pair-overlay-font: calc(13px * var(--action-pair-scale));
    --action-pair-overlay-gap: calc(6px * var(--action-pair-scale));
    --action-pair-overlay-icon: calc(16px * var(--action-pair-scale));
    --action-pair-overlay-row-gap: calc(8px * var(--action-pair-scale));
    --action-pair-overlay-inset: calc(12px * var(--action-pair-scale));
}

picture.rc-picture {
    display: contents;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-padding-top: var(--site-header-sticky-offset);
}

body {
    font-family: var(--font);
    font-size: clamp(14px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.page-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.page-section {
    padding: 0 0 60px;
}

.page-section + .page-section {
    padding-top: 0;
}

#frequently-searched .page-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#frequently-searched .section-header {
    gap: 12px;
    margin: 32px 0 0;
}

#hot-offers .page-container,
#new-buildings .page-container,
#popular .page-container,
#resale .page-container,
#articles .page-container,
#consultation .page-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#hot-offers .section-header,
#new-buildings .section-header,
#popular .section-header,
#resale .section-header,
#articles .section-header {
    margin-bottom: 0;
}

#hot-offers .property-grid {
    margin-bottom: 0;
}

#hot-offers {
    padding-bottom: 60px;
}

#hot-offers + .promo-section {
    padding-top: 0;
}

.promo-section {
    padding-bottom: 60px;
    container-type: inline-size;
    container-name: promo-page;
}

.promo-section + .page-section,
.listing-promo-section + .page-section {
    padding-top: 0;
}

#resale {
    padding-bottom: 60px;
}

#resale + #articles {
    padding-top: 0;
}

#articles {
    padding-bottom: 60px;
}

#articles + .consultation-section {
    padding-top: 0;
}

.hero + .page-section {
    padding-top: 70px;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    pointer-events: none;
    background: var(--color-bg);
    border-bottom-left-radius: var(--radius-hero);
    border-bottom-right-radius: var(--radius-hero);
    /* Desktop nav: 14px / 16px gaps at 1440px viewport */
    --header-nav-font: clamp(10px, calc(100vw * 14 / 1440), 14px);
    --header-nav-line: clamp(14px, calc(100vw * 18 / 1440), 18px);
    --header-nav-gap: clamp(8px, calc(100vw * 16 / 1440), 16px);
    --header-nav-icon: clamp(12px, calc(100vw * 16 / 1440), 16px);
    --header-nav-pad-y: clamp(6px, calc(100vw * 8 / 1440), 8px);
    --header-nav-pad-x-active: clamp(10px, calc(100vw * 14 / 1440), 14px);
    --header-nav-create-gap: clamp(4px, calc(100vw * 6 / 1440), 6px);
    --header-logo-w: clamp(60px, calc(100vw * 88 / 1440), 88px);
    /* Header right: lang / currency / profile at 1440px */
    --header-right-gap: clamp(8px, calc(100vw * 16 / 1440), 16px);
    --header-right-pill-h: clamp(28px, calc(100vw * 36 / 1440), 36px);
    --header-right-pill-pad: clamp(6px, calc(100vw * 8 / 1440), 8px);
    --header-right-pill-gap: clamp(4px, calc(100vw * 6 / 1440), 6px);
    --header-right-font: clamp(10px, calc(100vw * 14 / 1440), 14px);
    --header-right-line: clamp(12px, calc(100vw * 16 / 1440), 16px);
    --header-right-icon: clamp(14px, calc(100vw * 20 / 1440), 20px);
    --header-right-chevron: clamp(11px, calc(100vw * 16 / 1440), 16px);
    --header-right-lang-w: clamp(64px, calc(100vw * 80 / 1440), 80px);
    --header-right-curr-w: clamp(72px, calc(100vw * 90 / 1440), 90px);
    --header-right-inner-gap: clamp(4px, calc(100vw * 8 / 1440), 8px);
    --header-right-label-gap: clamp(1px, calc(100vw * 2 / 1440), 2px);
    --header-right-profile-max: clamp(120px, calc(100vw * 148 / 1440), 148px);
    --header-right-avatar: clamp(22px, calc(100vw * 28 / 1440), 28px);
    --header-right-name-max: clamp(72px, calc(100vw * 96 / 1440), 96px);
    --header-right-login-h: var(--header-right-pill-h);
    --header-right-login-pad-x: clamp(12px, calc(100vw * 16 / 1440), 16px);
}

.header-shell {
    background: var(--color-bg);
    border-bottom-left-radius: var(--radius-hero);
    border-bottom-right-radius: var(--radius-hero);
}

.site-header .logo,
.site-header .header-mobile-create,
.site-header .header-menu-toggle,
.site-header .header-right,
.site-header .main-nav-desktop,
.site-header.mobile-nav-open .main-nav,
.site-header.mobile-nav-open .mobile-nav-backdrop {
    pointer-events: auto;
}

.header-container {
    max-width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(12px, calc(min(100vw, 1440px) * 16 / 1440), 16px)
        clamp(24px, calc(min(100vw, 1440px) * 50 / 1440), 50px);
    display: grid;
    grid-template-columns: var(--header-logo-w) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(16px, calc(min(100vw, 1440px) * 28 / 1440), 28px);
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: var(--header-logo-w);
    height: auto;
    max-width: 100%;
}

.logo-resale {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-center {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--header-nav-gap);
    flex-wrap: nowrap;
    min-width: 0;
}

.main-nav-desktop {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--header-nav-gap);
    flex-wrap: nowrap;
    min-width: 0;
}

.mobile-nav-panel {
    display: none;
}

.main-nav a,
.main-nav-desktop a {
    text-decoration: none;
    color: var(--color-subtle);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.main-nav a {
    font-size: 14px;
    line-height: 1.2;
    padding: 8px 0;
}

.main-nav a:hover { color: var(--color-primary); }

.main-nav a.is-active {
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 999px;
}

.main-nav a.is-active:hover {
    color: #FFFFFF;
    opacity: 0.92;
}

.main-nav a.main-nav-create {
    display: inline-flex;
    align-items: center;
    color: #007469;
    font-family: Inter, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.site-header .main-nav-desktop a {
    font-size: var(--header-nav-font);
    line-height: var(--header-nav-line);
    padding-top: var(--header-nav-pad-y);
    padding-bottom: var(--header-nav-pad-y);
}

.site-header .main-nav-desktop a.is-active {
    padding: var(--header-nav-pad-y) var(--header-nav-pad-x-active);
}

.site-header .main-nav-desktop a.main-nav-create {
    gap: var(--header-nav-create-gap);
    padding-top: var(--header-nav-pad-y);
    padding-bottom: var(--header-nav-pad-y);
    font-size: var(--header-nav-font);
    line-height: var(--header-nav-line);
}

.site-header .main-nav-desktop .main-nav-create-icon {
    width: var(--header-nav-icon);
    height: var(--header-nav-icon);
}

.site-header .main-nav-desktop .main-nav-create-label {
    font-size: var(--header-nav-font);
    line-height: var(--header-nav-line);
}

.main-nav-create:hover {
    color: var(--color-primary-dark);
}

.main-nav-create.is-active {
    color: #FFFFFF;
    padding: 8px 14px;
}

.main-nav-create-icon {
    flex-shrink: 0;
    display: block;
    width: 16px;
    height: 16px;
}

.main-nav-create-label {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0;
    color: inherit;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--header-right-gap);
    flex-shrink: 0;
}

.site-header .header-right .currency-header-btn.header-settings-trigger {
    width: var(--header-right-curr-w);
    min-width: var(--header-right-curr-w);
    height: var(--header-right-pill-h);
    padding: var(--header-right-pill-pad);
    gap: var(--header-right-pill-gap);
}

.site-header .header-right .lang-btn.header-settings-trigger {
    width: var(--header-right-lang-w);
    min-width: var(--header-right-lang-w);
    height: var(--header-right-pill-h);
    padding: var(--header-right-pill-pad);
    gap: var(--header-right-pill-gap);
}

.site-header .header-right .currency-header-code,
.site-header .header-right .lang-btn-code {
    font-size: var(--header-right-font);
    line-height: var(--header-right-line);
}

.site-header .header-right .currency-header-label-group,
.site-header .header-right .lang-btn-label-group {
    gap: var(--header-right-label-gap);
}

.site-header .header-right .currency-header-btn.header-settings-trigger .header-currency-icon-wrap,
.site-header .header-right .currency-header-btn.header-settings-trigger .currency-header-icon-img {
    width: var(--header-right-icon);
    height: var(--header-right-icon);
    max-width: var(--header-right-icon);
    max-height: var(--header-right-icon);
    flex-basis: var(--header-right-icon);
}

.site-header .header-right .lang-btn.header-settings-trigger .lang-btn-global-icon {
    width: var(--header-right-icon);
    height: var(--header-right-icon);
}

.site-header .header-right .currency-header-btn.header-settings-trigger .currency-header-chevron,
.site-header .header-right .lang-btn.header-settings-trigger .lang-btn-chevron {
    width: var(--header-right-chevron);
    height: var(--header-right-chevron);
}

.site-header .header-right .header-profile-link {
    gap: 0;
    max-width: none;
    width: var(--header-right-pill-h);
    height: var(--header-right-pill-h);
    padding: clamp(3px, calc(100vw * 4 / 1440), 4px);
}

.site-header .header-right .header-profile-avatar {
    width: var(--header-right-avatar);
    height: var(--header-right-avatar);
}

.site-header .header-right .header-profile-initials,
.site-header .header-right .header-profile-name {
    font-size: var(--header-right-font);
    line-height: var(--header-right-line);
}

.site-header .header-right .header-profile-name {
    max-width: var(--header-right-name-max);
}

.site-header .header-right .header-login-btn {
    box-sizing: border-box;
    height: var(--header-right-pill-h);
    min-height: var(--header-right-pill-h);
    padding: 0 var(--header-right-login-pad-x);
    font-size: var(--header-right-font);
    line-height: var(--header-right-line);
}

.header-right .lang-switcher,
.header-right .header-currency-switcher,
.header-right .header-auth-wrap {
    display: flex;
    align-items: center;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    min-width: 48px;
    padding: 0 14px;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    background: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.site-header .header-right .currency-header-btn.header-settings-trigger {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    border: 1px solid #E8E8E8;
    border-radius: 100px;
    background: #F7F8F9;
    box-shadow: none;
}

.currency-header-label-group {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex: none;
}

.currency-header-code {
    font-weight: 500;
    color: #171B22;
    letter-spacing: 0;
}

.site-header .header-right .currency-header-btn.header-settings-trigger .header-currency-icon-wrap {
    flex: none;
}

.site-header .header-right .currency-header-btn.header-settings-trigger .currency-header-icon-img {
    flex: 0 0 auto;
}

.site-header .header-right .currency-header-btn.header-settings-trigger .currency-header-chevron {
    flex: none;
    opacity: 1;
}

.site-header .header-right .currency-header-btn.header-settings-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 100px;
}

.site-header .header-right .lang-btn.header-settings-trigger {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: none;
    box-sizing: border-box;
    border: 1px solid #E8E8E8;
    border-radius: 100px;
    background: #F7F8F9;
    box-shadow: none;
}

.lang-btn-label-group {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    flex: none;
}

.lang-btn-code {
    font-weight: 500;
    color: #171B22;
    letter-spacing: 0;
}

.site-header .header-right .lang-btn.header-settings-trigger .lang-btn-global-icon {
    display: block;
    flex: none;
    object-fit: contain;
}

.site-header .header-right .lang-btn.header-settings-trigger .lang-btn-chevron {
    flex: none;
    opacity: 1;
}

.site-header .header-right .lang-btn.header-settings-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 100px;
}

.lang-btn.header-pill {
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    padding: 0 12px 0 10px;
}

.site-header .currency-header-menu,
.site-header .lang-menu {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    top: calc(100% + 8px * var(--page-scale));
    border-radius: calc(16px * var(--page-scale));
    padding: calc(8px * var(--page-scale));
    box-shadow: 0 calc(8px * var(--page-scale)) calc(24px * var(--page-scale)) rgba(15, 23, 42, 0.08);
}

.site-header .currency-header-menu {
    min-width: calc(180px * var(--page-scale));
}

.site-header .lang-menu {
    min-width: calc(220px * var(--page-scale));
}

.site-header .currency-menu-item,
.site-header .lang-menu-item {
    gap: calc(12px * var(--page-scale));
    padding: calc(10px * var(--page-scale)) calc(12px * var(--page-scale));
    font-size: calc(16px * var(--page-scale));
    border-radius: calc(10px * var(--page-scale));
}

.site-header .currency-header-menu .currency-menu-icon,
.site-header .lang-menu-item .header-flag-img {
    width: calc(20px * var(--page-scale));
    height: calc(20px * var(--page-scale));
    max-width: calc(20px * var(--page-scale));
    max-height: calc(20px * var(--page-scale));
}

.site-header .currency-menu-check,
.site-header .lang-menu-check {
    width: calc(20px * var(--page-scale));
    height: calc(20px * var(--page-scale));
}

.currency-header-badge-img,
.currency-menu-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.currency-header-menu .currency-menu-icon {
    width: 20px;
    height: 20px;
}

.currency-header-badge--symbol {
    display: inline-flex;
}

.lang-btn:focus {
    outline: none;
}

.lang-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.lang-btn-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.45;
}

.currency-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none;
    filter: none;
}

.currency-header-btn.header-pill {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    padding: 0 14px;
}

.currency-header-btn:focus {
    outline: none;
}

.currency-header-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.currency-header-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.45;
}

.header-currency-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.currency-header-icon-img {
    display: block;
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
}

.site-header .header-right .header-currency-icon-wrap,
.site-header .header-right .currency-header-icon-img {
    width: 30px;
    height: 30px;
}

.site-header .header-right .currency-header-icon-badge {
    width: 30px;
    height: 30px;
    font-size: 15px;
}

.currency-header-icon-badge {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #E8E8E8;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.header-currency-icon-wrap:has(.currency-header-icon-badge:not([hidden])) .currency-header-icon-img {
    display: none;
}

.header-currency-icon-wrap:has(.currency-header-icon-badge:not([hidden])) .currency-header-icon-badge {
    display: inline-flex;
}

.header-currency-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #171B22;
    white-space: nowrap;
}

.header-pill-chevron {
    opacity: 0.55;
    flex-shrink: 0;
}

.header-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    overflow: hidden;
}

.currency-header-symbol {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
    min-width: 14px;
    text-align: center;
}

.site-header .header-right .header-login-btn {
    min-width: 0;
    font-weight: 600;
    line-height: var(--header-right-line);
    border-radius: 999px;
}

.site-header .header-right .header-settings-trigger:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 6px;
}

.header-menu-toggle {
    display: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: var(--header-right-pill-h);
    height: var(--header-right-pill-h);
    padding: clamp(3px, calc(100vw * 4 / 1440), 4px);
    border: 1px solid #E8E8E8;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--color-title);
    flex-shrink: 0;
}

.header-menu-toggle .header-menu-icon {
    display: block;
    flex-shrink: 0;
    width: calc(var(--header-right-avatar) * 0.65);
    height: calc(var(--header-right-avatar) * 0.65);
}

.header-menu-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header-menu-toggle .header-menu-icon-close {
    display: none;
}

.site-header.mobile-nav-open .header-menu-toggle .header-menu-icon-open {
    display: none;
}

.site-header.mobile-nav-open .header-menu-toggle .header-menu-icon-close {
    display: block;
}

.mobile-nav-backdrop {
    display: none;
}

.header-mobile-create {
    display: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: var(--header-right-pill-h);
    height: var(--header-right-pill-h);
    min-width: var(--header-right-pill-h);
    max-width: var(--header-right-pill-h);
    min-height: var(--header-right-pill-h);
    max-height: var(--header-right-pill-h);
    padding: clamp(3px, calc(100vw * 4 / 1440), 4px);
    border: 1px solid #E8E8E8;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--color-primary);
    flex-shrink: 0;
    text-decoration: none;
    overflow: hidden;
}

.header-mobile-create img {
    display: block;
    width: calc(var(--header-right-avatar) * 0.65);
    height: calc(var(--header-right-avatar) * 0.65);
    object-fit: contain;
}

.mobile-tabbar {
    display: none;
}

.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 48px;
    padding: 0 24px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    box-sizing: border-box;
}

.header-login-btn:hover {
    opacity: 0.92;
    color: #FFFFFF;
}

.header-currency-switcher {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 0;
    box-shadow: none;
}

/* ── Shared dropdown menus (header currency/lang, card menus, etc.) ── */
.currency-header-menu,
.lang-menu,
.property-menu-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    padding: 8px;
    z-index: 200;
    overflow: hidden;
}

.lang-menu {
    min-width: 220px;
}

.header-currency-switcher.open .currency-header-menu,
.lang-switcher.open .lang-menu {
    display: flex;
}

.property-menu-dropdown {
    display: flex;
    min-width: calc(200px * var(--page-scale));
    z-index: 400;
    top: calc(100% + 8px * var(--page-scale));
    border-radius: calc(16px * var(--page-scale));
    box-shadow: 0 calc(8px * var(--page-scale)) calc(24px * var(--page-scale)) rgba(0, 0, 0, 0.1);
    padding: calc(8px * var(--page-scale));
}

.property-menu-dropdown[hidden] {
    display: none !important;
}

.currency-menu-item,
.lang-menu-item,
.property-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title);
    cursor: pointer;
    border-radius: 10px;
    white-space: nowrap;
    text-decoration: none;
    text-align: left;
}

.currency-menu-item:hover,
.lang-menu-item:hover,
.property-menu-item:hover {
    background: var(--color-bg-gray);
}

.property-menu-item {
    gap: calc(12px * var(--page-scale));
    padding: calc(10px * var(--page-scale)) calc(12px * var(--page-scale));
    font-size: calc(16px * var(--page-scale));
    border-radius: calc(10px * var(--page-scale));
}

.currency-menu-check,
.lang-menu-check {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
}

.currency-menu-item.is-active .currency-menu-check,
.lang-menu-item.is-active .lang-menu-check {
    display: block;
}

/* ── Lang switcher ── */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}
.lang-menu-item img:first-child,
.lang-menu-item .header-flag-img {
    flex-shrink: 0;
}

.currency-header-badge,
.currency-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E6F4F2;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
}

.currency-header-badge {
    font-size: 18px;
}

.currency-menu-badge {
    font-size: 15px;
}

.header-flag-img {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
}

.site-header .header-right .lang-btn.header-pill .header-flag-img,
.site-header .header-right .lang-btn:not(.header-settings-trigger) .header-flag-img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex: 0 0 30px;
    box-sizing: border-box;
}

.site-header .header-right .currency-header-icon-img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    flex: 0 0 30px;
    box-sizing: border-box;
}

.site-header .header-right .header-currency-icon-wrap {
    width: 30px;
    height: 30px;
}

.lang-btn .header-flag-img {
    width: 24px;
    height: 24px;
}

.lang-menu-item .header-flag-img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.header-profile-icon {
    display: block;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.currency-menu-item img:first-of-type {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 367px;
    padding: 0;
    margin: calc(-1 * var(--radius-hero)) 0 0;
    width: 100%;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url('https://3a50bbba9509bbdfe50e4240309a5b64.cdn.bubble.io/cdn-cgi/image/w=1280,h=400,f=auto,dpr=1,fit=cover/f1771056771125x931986952403342800/resized-image%20-%202026-02-14T111218.330.jpeg') center center / cover no-repeat;
    border-bottom-left-radius: var(--radius-hero);
    border-bottom-right-radius: var(--radius-hero);
    overflow: hidden;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.15) 100%);
    border-bottom-left-radius: var(--radius-hero);
    border-bottom-right-radius: var(--radius-hero);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: calc(86px + var(--radius-hero)) 50px 48px;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0 auto 16px;
    width: 100%;
    max-width: 1244px;
}

.hero.hero--search-hub {
    margin: 0;
    min-height: 0;
    box-sizing: border-box;
    padding: calc(50px * var(--page-scale)) 0;
    background: #FFFFFF;
}

.hero.hero--search-hub .hero-inner {
    padding: 0 var(--container-pad);
    max-width: var(--container-max);
    margin: 0 auto;
}

.hero.hero--search-hub h1 {
    color: var(--color-title);
    text-align: center;
    font-size: calc(32px * var(--page-scale));
    margin: 0 auto;
    margin-bottom: calc(24px * var(--page-scale));
    max-width: calc(920px * var(--page-scale));
}

.hero.hero--search-hub .hero-search,
.hero.hero--search-hub .hero-search.hero-search--bar {
    width: 100%;
    max-width: none;
}

.hero.hero--search-hub .hero-search-bar {
    width: 100%;
}

/* Home search hub — desktop filter bar scales with --page-scale (1440px baseline); tablet uses stacked bar in max-width: 991px */
@media (min-width: 992px) {
    .hero.hero--search-hub .hero-search-bar,
    .hero.hero--search-hub form.hero-search.hero-search--bar .hero-search-bar {
        height: calc(64px * var(--page-scale));
        min-height: calc(64px * var(--page-scale));
        max-height: calc(64px * var(--page-scale));
        padding: 0 calc(12px * var(--page-scale));
        gap: calc(8px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search-bar-filters {
        gap: calc(2px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search-bar-divider {
        height: calc(24px * var(--page-scale));
        margin: 0 calc(4px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search-segment {
        gap: calc(8px * var(--page-scale));
        padding: 0 calc(10px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-search-segment-icon,
    .hero.hero--search-hub .hero-search-all-filters-icon,
    .hero.hero--search-hub .hero-search-map-link img,
    .hero.hero--search-hub .hero-search--bar .hero-search-filters-icon-img,
    .hero.hero--search-hub .hero-search--bar .hero-select-icon {
        width: calc(20px * var(--page-scale));
        height: calc(20px * var(--page-scale));
        min-width: calc(20px * var(--page-scale));
        min-height: calc(20px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search-all-filters-label {
        font-size: calc(16px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search-bar-actions,
    .hero.hero--search-hub .hero-search--bar .hero-search-all-filters,
    .hero.hero--search-hub .hero-search-map-link {
        align-items: center;
        gap: calc(8px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-search-segment.hero-select-wrap,
    .hero.hero--search-hub .hero-search--bar .hero-search-segment.hero-price-wrap,
    .hero.hero--search-hub .hero-search--bar .custom-select-trigger,
    .hero.hero--search-hub .hero-search--bar .hero-price-trigger,
    .hero.hero--search-hub .hero-search--bar .hero-price-control,
    .hero.hero--search-hub .hero-search--bar .hero-price-wrap .hero-price-trigger,
    .hero.hero--search-hub .hero-search--bar .hero-price-wrap .custom-select-trigger {
        height: calc(44px * var(--page-scale));
        min-height: calc(44px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .custom-select-trigger,
    .hero.hero--search-hub .hero-search--bar .hero-price-trigger,
    .hero.hero--search-hub .hero-search--bar .custom-select-label {
        font-size: calc(16px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-select-wrap:not(.hero-price-wrap) .custom-select-dropdown,
    .hero.hero--search-hub .hero-search--bar .hero-price-wrap .hero-price-dropdown.custom-select-dropdown {
        border-radius: calc(16px * var(--page-scale));
        top: calc(100% + 18px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-search-all-filters.btn,
    .hero.hero--search-hub .hero-search--bar .hero-search-map-link.btn,
    .hero.hero--search-hub .hero-search--bar .hero-search-submit-btn.btn-primary {
        height: calc(44px * var(--page-scale));
        min-height: calc(44px * var(--page-scale));
        padding: 0 calc(16px * var(--page-scale));
        font-size: calc(16px * var(--page-scale));
        border-radius: calc(16px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-search-bar-filters > .hero-search-segment.hero-select-wrap:first-of-type,
    .hero.hero--search-hub .hero-search--bar .hero-select-wrap:not(.hero-price-wrap) .custom-select-dropdown {
        max-width: calc(240px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-price-wrap {
        max-width: calc(180px * var(--page-scale));
    }

    .hero.hero--search-hub .hero-search--bar .hero-bedrooms-wrap {
        max-width: calc(240px * var(--page-scale));
    }
}

/* ── Search form ── */
.hero-search {
    width: 100%;
    max-width: 1244px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search--bar {
    max-width: 1080px;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #F7F8F9;
    border-radius: 999px;
    box-shadow: none;
    border: 1px solid #E9EAED;
}

form.hero-search.hero-search--bar .hero-search-bar {
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    padding-left: 12px;
    padding-right: 12px;
}

.hero-search-bar-filters {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.hero-search-bar-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 24px;
    background: #E5E7EB;
    margin: 0 4px;
}

.hero-search-segment {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 10px;
    position: relative;
}

.hero-search--bar .hero-search-segment-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    object-fit: contain;
    display: block;
}

.hero-search-all-filters {
    flex: 0 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.hero-search--bar .hero-search-all-filters {
    gap: 8px;
}

.hero-search-all-filters-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.hero-search-all-filters-label {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-search-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 6;
    pointer-events: auto;
}

.hero-search-bar-title {
    display: none;
    margin: 0;
    padding: 0;
    font-family: Inter, var(--font), sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #171B22;
    align-self: stretch;
}

.hero-search--bar .hero-search-bar-filters-pair {
    display: contents;
}

.hero-search--bar .hero-search-submit-btn {
    position: relative;
    z-index: 7;
    pointer-events: auto;
}

.hero-search-filters-icon-img {
    flex-shrink: 0;
    display: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    object-fit: contain;
    object-position: center;
}

.hero-search-map-link {
    gap: 6px;
    text-decoration: none;
}

.hero-search-map-link img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hero-search--bar .hero-search-bar-filters {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.hero-search--bar .hero-search-bar:has(.is-open),
.hero-search--bar .hero-search-bar-filters:has(.is-open) {
    overflow: visible;
}

.hero-search--bar .hero-search-bar-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.hero-search--bar .hero-select-wrap,
.hero-search--bar .hero-price-wrap {
    flex: 1 1 0;
    min-width: 0;
    max-width: 240px;
}

.hero-search--bar .hero-search-segment.hero-select-wrap,
.hero-search--bar .hero-search-segment.hero-price-wrap {
    height: 44px;
    min-height: 44px;
    align-items: center;
    box-sizing: border-box;
    min-width: 0;
}

.hero-search--bar .hero-search-bar-filters > .hero-search-segment.hero-select-wrap:first-of-type {
    flex: 1.2 1 0;
    max-width: 240px;
}

.hero-search--bar .hero-price-wrap {
    flex: 1 1 0;
    max-width: 180px;
}

.hero-search--bar .hero-bedrooms-wrap {
    flex: 1.2 1 0;
    max-width: 240px;
}

.hero-search--bar .custom-select-trigger,
.hero-search--bar .hero-price-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: none;
    background: transparent;
    height: 44px;
    padding: 0 20px 0 0;
    font-family: Inter, var(--font), sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--color-text);
    box-shadow: none;
    text-align: left;
}

.hero-search--bar [data-custom-select].custom-select > select.hero-select.custom-select-native,
.hero-search--bar [data-custom-select]:has(.custom-select-trigger) > select.hero-select {
    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;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    display: none !important;
    pointer-events: none;
}

.hero-search--bar .custom-select-label.is-placeholder {
    color: #6B7280;
}

.hero-search--bar .hero-price-control {
    height: 44px;
    flex: 1 1 auto;
    min-width: 0;
}

.hero-search--bar .hero-price-wrap .custom-select-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding-right: 24px;
}

.hero-search--bar .hero-select-icon {
    right: 0;
    width: 20px;
    height: 20px;
    opacity: 0.45;
}

.hero-search--bar .hero-price-symbol {
    display: none;
}

.hero-search--bar .custom-select-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

.hero-search--bar .hero-select-wrap:not(.hero-price-wrap) .custom-select-dropdown {
    top: calc(100% + 18px);
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
}

.hero-search--bar .hero-price-wrap .hero-price-dropdown.custom-select-dropdown {
    top: calc(100% + 18px);
    left: 0;
    right: auto;
    width: 100%;
    min-width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 16px;
}

.hero-search-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.hero-search-fields {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    border: 0.8px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    background: #FFFFFF;
    outline: none;
}

.hero-search-input:focus {
    border-color: var(--color-primary);
}

.hero-filter-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.hero-filter-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.hero-select-wrap {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.hero-search--bar .hero-select-wrap .hero-select {
    display: none !important;
}

.hero-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.hero-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.custom-select.is-open .hero-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.hero-price-control {
    position: relative;
    height: 48px;
}

.hero-price-control .hero-select-icon {
    top: 50%;
}

.hero-price-wrap .custom-select-trigger {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding-right: 40px;
    overflow: hidden;
}

.hero-search--bar .hero-price-wrap .hero-price-trigger,
.hero-search--bar .hero-price-wrap .custom-select-trigger {
    height: 44px;
}

.hero-search--bar .hero-price-control {
    height: 44px;
}

.hero-price-wrap .hero-price-symbol {
    position: static;
    transform: none;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    pointer-events: none;
}

.hero-price-wrap .custom-select-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.hero-price-wrap:not(.hero-price-has-range) .custom-select-label {
    color: #6B7280;
}

.hero-price-wrap.hero-price-has-range .custom-select-label {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.hero-price-wrap.is-open .hero-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.hero-price-wrap .hero-price-dropdown.custom-select-dropdown {
    min-width: 100%;
    max-height: none;
    overflow: visible;
    padding: 10px 12px 12px;
    border: 1px solid var(--color-border);
}

.hero-price-wrap .hero-price-dropdown.custom-select-dropdown:has(.hero-price-currency-open) {
    overflow: visible;
    max-height: none;
    z-index: 310;
}

.hero-price-dropdown .custom-select-reset-row {
    margin-bottom: 10px;
}

.hero-price-to-wrap {
    position: relative;
    z-index: 1;
}

.hero-price-to-wrap.hero-price-currency-open {
    z-index: 2;
}

.hero-price-to-wrap .hero-price-input {
    padding-right: 72px;
}

.hero-price-input-currency-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    line-height: 1;
    z-index: 2;
}

.hero-price-input-currency-chevron {
    opacity: 0.45;
    transition: transform 0.2s ease;
}

.hero-price-to-wrap.hero-price-currency-open .hero-price-input-currency-chevron {
    transform: rotate(180deg);
}

.hero-price-currency-menu {
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 6px);
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 148px;
    width: max-content;
    padding: 6px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-price-currency-menu[hidden] {
    display: none !important;
}

.hero-price-currency-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-title);
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.hero-price-currency-item:hover {
    background: var(--color-bg-gray);
}

.hero-price-currency-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.hero-price-currency-item-label {
    flex: 1 1 auto;
    min-width: 0;
}

.hero-price-currency-item-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-left: auto;
    display: none;
}

.hero-price-currency-item.is-active .hero-price-currency-item-check {
    display: block;
}

.hero-price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-price-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    outline: none;
    -moz-appearance: textfield;
}

.hero-price-input::-webkit-outer-spin-button,
.hero-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hero-price-input::placeholder {
    color: #9CA3AF;
}

.hero-price-input:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.hero-price-input-wrap {
    position: relative;
}

.hero-price-input-symbol {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-select-trigger {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    background: #FFFFFF;
    cursor: pointer;
    outline: none;
    text-align: left;
}

.custom-select-trigger:focus-visible {
    border-color: var(--color-primary);
}

.custom-select-label.is-placeholder {
    color: #6B7280;
}

select:has(> option[value=""]:checked) {
    color: #6B7280;
}

.custom-select-dropdown[hidden],
.hero-price-dropdown[hidden] {
    display: none !important;
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 300;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 16px 16px;
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #C5C9D1 transparent;
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #C5C9D1;
    border-radius: 999px;
}

.custom-select-dropdown::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.hero-bedrooms-wrap .custom-select-dropdown {
    max-height: 280px;
}

.custom-select-reset-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.custom-select-reset {
    border: none;
    background: none;
    padding: 4px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #006B5F;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.custom-select-reset:hover {
    opacity: 0.75;
}

.custom-select-options {
    display: flex;
    flex-direction: column;
}

.custom-select.has-select-search .custom-select-dropdown {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.custom-select.has-select-search .custom-select-dropdown[hidden] {
    display: none;
}

.custom-select-search-wrap {
    position: relative;
    flex: 0 0 auto;
    margin: 0 0 8px;
}

.custom-select-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.45;
    pointer-events: none;
}

.custom-select-search-input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 12px 0 36px;
    border: none;
    border-radius: 10px;
    background: #F3F4F6;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text);
    outline: none;
}

.custom-select-search-input::placeholder {
    color: #9CA3AF;
    font-weight: 500;
}

.custom-select-search-input:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.custom-select-search-input::-webkit-search-decoration,
.custom-select-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.custom-select.has-select-search .custom-select-reset-row {
    flex: 0 0 auto;
}

.custom-select.has-select-search .custom-select-options {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 220px;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #C5C9D1 transparent;
}

.custom-select.has-select-search .custom-select-options::-webkit-scrollbar {
    width: 4px;
}

.custom-select.has-select-search .custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select.has-select-search .custom-select-options::-webkit-scrollbar-thumb {
    background: #C5C9D1;
    border-radius: 999px;
}

.custom-select-option.is-search-hidden,
.custom-select-group.is-search-hidden {
    display: none !important;
}

.custom-select-search-empty {
    padding: 16px 4px 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #9CA3AF;
    text-align: center;
}

.custom-select-group {
    display: flex;
    flex-direction: column;
}

.custom-select-group-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-title);
    padding: 10px 0 2px;
}

.custom-select-group:first-child .custom-select-group-label {
    padding-top: 2px;
}

.custom-select-option-parent {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-title);
    padding: 10px 0 2px;
}

.custom-select-group:first-child .custom-select-option-parent {
    padding-top: 2px;
}

.custom-select-option-parent.is-active {
    color: #006B5F;
}

.custom-select-option.custom-select-option-parent {
    font-weight: 700;
}

.custom-select-option {
    display: block;
    width: 100%;
    padding: 10px 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    color: #000000;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    transition: color 0.15s ease;
}

.custom-select-option[hidden] {
    display: none !important;
}

.custom-select-option:hover {
    color: #006B5F;
}

.custom-select-option.is-active {
    font-weight: 600;
    color: #006B5F;
}

.custom-select-option.custom-select-option-nested {
    font-weight: 400;
    padding-left: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: var(--font);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(0.98); }

.whatsapp-link[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Button variants (Figma: default / hover / disabled) ── */
.btn-primary {
    height: 44px;
    padding: 0 16px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-primary-bg-hover);
}

.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
    background: var(--btn-primary-bg-disabled);
    color: var(--btn-primary-text-disabled);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    height: 44px;
    padding: 0 16px;
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--btn-secondary-border);
    border-radius: var(--radius-md);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-secondary-bg-hover);
}

.btn-secondary:disabled,
.btn-secondary[aria-disabled="true"] {
    background: var(--btn-secondary-bg-hover);
    border-color: var(--btn-secondary-border);
    color: var(--btn-secondary-text-disabled);
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.btn-ghost {
    height: auto;
    min-height: 44px;
    padding: 0 4px;
    background: transparent;
    color: var(--btn-ghost-text);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.btn-ghost:hover:not(:disabled):not([aria-disabled="true"]) {
    color: var(--color-primary);
}

.btn-ghost:disabled,
.btn-ghost[aria-disabled="true"] {
    color: var(--btn-ghost-text-disabled);
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: var(--btn-icon-text);
    border: none;
    border-radius: var(--radius-md);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.btn-icon:hover:not(:disabled):not([aria-disabled="true"]) {
    color: var(--btn-icon-text-hover);
}

.btn-icon:hover:not(:disabled):not([aria-disabled="true"]) img,
.btn-icon:hover:not(:disabled):not([aria-disabled="true"]) svg {
    opacity: 1;
    filter: none;
}

.btn-icon:disabled,
.btn-icon[aria-disabled="true"] {
    color: var(--btn-icon-text-disabled);
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

/* ── Checkboxes (Figma: default / hover / disabled × active) ── */
.rc-checkbox,
.profile-checkbox,
.create-hot-offer-input,
.search-advantage input[type="checkbox"],
.search-modal-filters .search-advantage input[type="checkbox"],
.search-filters-form .search-advantage input[type="checkbox"],
.privacy-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    margin: 0;
    flex-shrink: 0;
    border: 1px solid var(--checkbox-border);
    border-radius: var(--checkbox-radius);
    background: var(--checkbox-bg);
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rc-checkbox:hover:not(:disabled):not(:checked),
.profile-checkbox:hover:not(:disabled):not(:checked),
.create-hot-offer-input:hover:not(:disabled):not(:checked),
.search-advantage input[type="checkbox"]:hover:not(:disabled):not(:checked),
.search-modal-filters .search-advantage input[type="checkbox"]:hover:not(:disabled):not(:checked),
.search-filters-form .search-advantage input[type="checkbox"]:hover:not(:disabled):not(:checked),
.privacy-check input[type="checkbox"]:hover:not(:disabled):not(:checked) {
    border-color: var(--checkbox-border-hover);
    background: var(--checkbox-bg-hover);
}

.rc-checkbox:checked,
.profile-checkbox:checked,
.create-hot-offer-input:checked,
.search-advantage input[type="checkbox"]:checked,
.search-modal-filters .search-advantage input[type="checkbox"]:checked,
.search-filters-form .search-advantage input[type="checkbox"]:checked,
.privacy-check input[type="checkbox"]:checked {
    border-color: var(--checkbox-border-checked);
    background: var(--checkbox-bg-checked) var(--checkbox-check-icon) center / 12px 12px no-repeat;
}

.rc-checkbox:checked:hover:not(:disabled),
.profile-checkbox:checked:hover:not(:disabled),
.create-hot-offer-input:checked:hover:not(:disabled),
.search-advantage input[type="checkbox"]:checked:hover:not(:disabled),
.search-modal-filters .search-advantage input[type="checkbox"]:checked:hover:not(:disabled),
.search-filters-form .search-advantage input[type="checkbox"]:checked:hover:not(:disabled),
.privacy-check input[type="checkbox"]:checked:hover:not(:disabled) {
    background-color: var(--btn-primary-bg-hover);
    border-color: var(--btn-primary-bg-hover);
}

.rc-checkbox:disabled,
.profile-checkbox:disabled,
.create-hot-offer-input:disabled,
.search-advantage input[type="checkbox"]:disabled,
.privacy-check input[type="checkbox"]:disabled {
    background: var(--checkbox-bg-disabled);
    border-color: var(--checkbox-border-disabled);
    cursor: not-allowed;
}

.rc-checkbox:disabled:checked,
.profile-checkbox:disabled:checked,
.create-hot-offer-input:disabled:checked,
.search-advantage input[type="checkbox"]:disabled:checked,
.privacy-check input[type="checkbox"]:disabled:checked {
    background: var(--checkbox-bg-checked-disabled) var(--checkbox-check-icon) center / 12px 12px no-repeat;
    border-color: var(--checkbox-border-checked-disabled);
}

.btn-search {
    height: 48px;
    min-width: 200px;
    padding: 0 20px;
    background: var(--color-accent);
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.hero-search-row .hero-search-submit,
.hero-search-row .hero-search-map {
    flex: 0 0 auto;
    min-width: 200px;
}

.btn-search:hover { opacity: 0.92; }

.btn-map {
    height: 48px;
    min-width: 200px;
    padding: 0 20px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.hero-map-row .btn-map {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.btn-map:hover { opacity: 0.92; }

/* ── Section titles ── */
.section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 60px;
}

.home-page .section-title {
    font-size: var(--home-section-title-size);
    margin-bottom: var(--home-section-title-mb);
}

.home-page h2.section-title.consultation-title,
#consultation .consultation-title {
    font-size: var(--home-section-title-size);
}

.home-page .section-header {
    margin-bottom: var(--home-section-header-mb);
}

.home-page .section-header h2 {
    font-size: var(--home-section-title-size);
}

.section-title.center {
    text-align: center;
    margin-left: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #171B22;
}

.section-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: opacity 0.2s;
}

.section-all-link:hover:not([aria-disabled="true"]) {
    color: var(--color-primary);
    opacity: 1;
}

/* ── Category list page ── */
.category-page {
    padding-top: 8px;
}

.category-page .page-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.category-page .page-container > .category-page-title,
.category-page .page-container > .category-search,
.category-page .page-container > .property-grid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.category-page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin: 30px 0 16px;
    padding: 0;
    box-sizing: border-box;
}

.category-search {
    display: block;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

.category-search-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.category-search-input {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    border: 0.8px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    background: #FFFFFF;
    outline: none;
    box-sizing: border-box;
}

.category-search-input:focus {
    border-color: var(--color-primary);
}

.category-search-filter {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.category-search-filter:hover {
    background: var(--color-bg-gray);
}

.seo-landing-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin: 0 0 24px;
    --search-sort-height: 40px;
}

.seo-landing-query,
.seo-landing-price {
    min-width: 0;
    flex: 1 1 220px;
}

.seo-landing-query span,
.seo-landing-price legend {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.seo-landing-price {
    margin: 0;
    padding: 0;
    border: 0;
}

.seo-landing-filters > .btn {
    min-height: 40px;
}

.seo-landing-copy {
    margin-top: 32px;
    overflow-x: auto;
}

.seo-landing-copy img,
.seo-landing-copy video {
    max-width: 100%;
    height: auto;
}

.seo-landing-picture {
    display: block;
    margin: 0 0 24px;
    border-radius: var(--radius-md);
}

.seo-district-jump {
    align-self: flex-start;
    margin: 0 0 16px;
}

#seo-districts {
    scroll-margin-top: 12px;
}

.seo-links {
    margin: 24px 0 0;
}

.seo-links h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.seo-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-links a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Category cards (Frequently searched) ── */
.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    text-decoration: none;
    color: var(--color-text);
    text-align: center;
}

.category-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.category-card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 116, 105, 0.72);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.category-card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover .category-card-image::before,
.category-card:hover .category-card-hover,
.category-card:focus-visible .category-card-image::before,
.category-card:focus-visible .category-card-hover {
    opacity: 1;
}

.category-card-label {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.category-card-sublabel {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-subtle);
    margin-top: 2px;
}

/* ── Property grid ── */
.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.property-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    isolation: isolate;
}

.property-card-main {
    position: relative;
    min-width: 0;
}

.property-card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
}

.property-card-main:hover .property-title {
    color: var(--color-primary-light);
}

.property-card-image-link {
    text-decoration: none;
    display: block;
}

.property-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #E5F1F0;
}

.property-card-image .property-card-cover-link {
    z-index: 1;
}

.property-card-image .property-badge-hot {
    z-index: 4;
}

.property-card-image .property-favorite {
    z-index: 5;
}

.property-card-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 0;
}

.property-card-image .property-image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: #E5F1F0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.property-badge-hot {
    position: absolute;
    top: var(--card-chrome-inset);
    left: var(--card-chrome-inset);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: var(--badge-hot-size);
    min-width: var(--badge-hot-size);
    max-width: var(--badge-hot-size);
    height: var(--badge-hot-size);
    padding: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: var(--badge-hot-font);
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 calc(2px * var(--page-scale)) calc(10px * var(--page-scale)) rgba(0, 116, 105, 0.28);
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.28s ease, width 0.28s ease, padding 0.28s ease, border-radius 0.28s ease, gap 0.28s ease;
    pointer-events: auto;
    cursor: default;
}

.property-badge-hot-icon {
    flex-shrink: 0;
    width: var(--badge-hot-icon);
    height: var(--badge-hot-icon);
    display: block;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

.property-badge-hot-text {
    opacity: 0;
    visibility: hidden;
    width: 0;
    max-width: 0;
    flex: 0 0 auto;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s ease, max-width 0.25s ease, visibility 0s linear 0.25s;
}

.property-card-image:hover .property-badge-hot,
.property-card-map-image:hover .property-badge-hot,
.property-gallery-main-wrap:hover .property-badge-hot,
.property-badge-hot:hover,
.property-badge-hot:focus-visible {
    width: auto;
    max-width: var(--badge-hot-max);
    min-width: var(--badge-hot-size);
    gap: var(--badge-hot-gap);
    padding: 0 var(--badge-hot-pad-end) 0 var(--badge-hot-pad-start);
    border-radius: 999px;
}

.property-card-image:hover .property-badge-hot-text,
.property-card-map-image:hover .property-badge-hot-text,
.property-gallery-main-wrap:hover .property-badge-hot-text,
.property-badge-hot:hover .property-badge-hot-text,
.property-badge-hot:focus-visible .property-badge-hot-text {
    opacity: 1;
    visibility: visible;
    width: auto;
    max-width: var(--badge-hot-text-max);
    transition: opacity 0.2s ease 0.05s, max-width 0.25s ease, visibility 0s;
}

/* Mobile — hot badge expanded by default (no hover on cards) */
@media (max-width: 991px) {
    .property-card-image .property-badge-hot,
    .property-card-map-image .property-badge-hot,
    .property-gallery-main-wrap .property-badge-hot,
    .property-card-list-main .property-badge-hot,
    .profile-listing-main-photo .property-badge-hot {
        width: auto;
        max-width: var(--badge-hot-max);
        min-width: var(--badge-hot-size);
        gap: var(--badge-hot-gap);
        padding: 0 var(--badge-hot-pad-end) 0 var(--badge-hot-pad-start);
        border-radius: 999px;
    }

    .property-card-image .property-badge-hot-text,
    .property-card-map-image .property-badge-hot-text,
    .property-gallery-main-wrap .property-badge-hot-text,
    .property-card-list-main .property-badge-hot-text,
    .profile-listing-main-photo .property-badge-hot-text {
        opacity: 1;
        visibility: visible;
        width: auto;
        max-width: var(--badge-hot-text-max);
        transition: opacity 0.2s ease 0.05s, max-width 0.25s ease, visibility 0s;
    }
}

.property-favorite {
    position: absolute;
    top: var(--card-chrome-inset);
    right: var(--card-chrome-inset);
    z-index: 3;
    width: var(--favorite-btn-size);
    height: var(--favorite-btn-size);
    padding: 0;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.property-favorite:hover {
    transform: scale(1.06);
}

.property-favorite .property-favorite-icon {
    display: block;
    width: var(--favorite-btn-size);
    height: var(--favorite-btn-size);
    object-fit: contain;
    flex-shrink: 0;
}

.property-favorite .icon-favorite-filled {
    display: none;
}

.property-favorite.active .icon-favorite-outline {
    display: none;
}

.property-favorite.active .icon-favorite-filled {
    display: block;
}

.property-card-content {
    padding: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.property-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.property-menu-wrap {
    position: relative;
    z-index: 3;
}

.property-menu-wrap:has(.property-menu-dropdown:not([hidden])) {
    z-index: 400;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.property-menu-btn {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 7px;
    letter-spacing: 1px;
    padding: 2px 4px;
    line-height: 1;
    cursor: pointer;
}

.property-card-body-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.property-title {
    transition: color 0.2s ease;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-title);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-address {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.4;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-address svg {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    flex-shrink: 0;
    opacity: 0.6;
}

.property-address-text {
    display: inline;
}

.property-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.property-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    flex-shrink: 0;
}

.property-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 2;
}

.property-card-actions .btn-write,
.property-card-actions .btn-call {
    width: 100%;
    min-width: 0;
    height: 38px;
    font-size: 13px;
    gap: 6px;
    scroll-margin-top: calc(var(--site-header-sticky-offset) + 16px);
}

.property-card-actions .btn-write img,
.property-card-actions .btn-call img {
    width: 14px;
    height: 14px;
}

.property-card-actions .lead-result {
    grid-column: 1 / -1;
}

.property-card-actions .lead-result:empty {
    display: none;
}

/* Property & complex cards — v2 layout */
.property-card--v2 {
    background: #FFFFFF;
    border: 1px solid #F0F1F3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    container-type: inline-size;
}

.property-card--v2 .property-card-main {
    position: relative;
    z-index: 2;
}

.property-card:has(.property-menu-dropdown:not([hidden])),
.profile-listing-card:has(.property-menu-dropdown:not([hidden])) {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.property-card--v2:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.property-card--v2 .property-card-image {
    aspect-ratio: 4 / 3;
    border-radius: 16px 16px 0 0;
}

.property-card--v2 .property-card-cover-link {
    border-radius: 0;
}

.property-card--v2 .property-favorite {
    top: var(--card-chrome-inset);
    right: var(--card-chrome-inset);
}

.property-card--v2 .property-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--card-v2-content-pad-y) var(--card-v2-content-pad-x) 0;
    gap: calc(4px * var(--page-scale));
}

.property-card--v2 .property-card-title-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--card-v2-title-row-gap);
    width: 100%;
    min-width: 0;
}

.property-card--v2 .property-card-title-row .property-title {
    flex: 1 1 0%;
    min-width: 0;
}

.property-card--v2 .property-price {
    margin: 0;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--card-v2-price-size);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-primary-dark);
    letter-spacing: -0.02em;
}

.property-card--v2 .property-menu-wrap {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    align-self: center;
}

.property-card--v2 .property-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--card-v2-menu-btn-size);
    height: var(--card-v2-menu-btn-size);
    min-width: var(--card-v2-menu-btn-size);
    flex-shrink: 0;
    padding: 0;
    border-radius: var(--card-v2-menu-radius);
    transition: background 0.2s ease;
}

.property-card--v2 .property-menu-btn:hover {
    background: #F3F4F6;
}

.property-card--v2 .property-menu-dots {
    display: block;
    width: var(--card-v2-menu-dots-w);
    height: var(--card-v2-menu-dots-h);
    flex-shrink: 0;
    background: radial-gradient(
        circle,
        #878C94 calc(1.25px * var(--page-scale)),
        transparent calc(1.25px * var(--page-scale))
    ) center / calc(5px * var(--page-scale)) var(--card-v2-menu-dots-h) repeat-x;
}

/* Lot page — similar listings (lot-similar-mobile variant at all breakpoints) */
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile {
    min-width: 0;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-content {
    min-width: 0;
    box-sizing: border-box;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-title-row {
    flex-wrap: nowrap;
    align-items: center;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-title-row .property-title {
    flex: 1 1 0%;
    min-width: 0;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-menu-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center;
}

/* Lot similar — meta row: one line, symmetric dot separators, no truncation */
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    text-align: left;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span {
    display: inline-flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    gap: clamp(2px, 1.1cqi, 4px);
    min-width: 0;
    max-width: none;
    padding: 0;
    font-size: clamp(9px, 3.85cqi, min(11px, calc(11px * var(--page-scale))));
    font-weight: 500;
    line-height: 1;
    color: #374151;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span:not(:last-child)::after {
    content: '•';
    display: inline-flex;
    align-items: center;
    align-self: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0 clamp(3px, 1.5cqi, min(6px, var(--card-v2-meta-dot-gap)));
    line-height: 1;
    color: #878C94;
    font-weight: 400;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span img {
    width: clamp(11px, 5cqi, min(14px, calc(15px * var(--page-scale))));
    height: clamp(11px, 5cqi, min(14px, calc(15px * var(--page-scale))));
    flex-shrink: 0;
    opacity: 0.85;
}

@container (max-width: 268px) {
    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span {
        font-size: 9px;
        gap: 2px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span:not(:last-child)::after {
        padding: 0 3px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span img {
        width: 11px;
        height: 11px;
    }
}

/* Lot similar — address: pin + label vertically centered */
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-address {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: max(11px, min(12px, var(--card-v2-address-size)));
    font-weight: 500;
    line-height: 16px;
    color: #4B5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-address-icon {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border: none;
    opacity: 0.85;
    object-fit: contain;
    object-position: center;
    vertical-align: middle;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-address-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lot similar — compact footer call/write (mobile 2-col). Overlay CTAs use home hover styles. */
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile,
.lot-page .lot-similar .property-card--lot-similar-mobile {
    --action-pair-font-size: 12px;
    --action-pair-font-size-lg: 12px;
    --action-pair-icon: 14px;
    --action-pair-gap: 4px;
    --action-pair-pad-x: 8px;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover),
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) {
    display: none;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-action-call,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-action-write,
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call,
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write {
    font-size: 12px;
    line-height: 1.2;
    gap: 4px;
    white-space: nowrap;
}

.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call img,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call svg,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write img,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write svg,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-action-call img,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-action-call svg,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-action-write img,
.lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-action-write svg,
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call img,
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call svg,
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write img,
.lot-page .lot-similar .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write svg {
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    flex-shrink: 0;
    object-fit: contain;
}

.property-card--v2 .property-title {
    font-size: var(--card-v2-title-size);
    font-weight: 600;
    line-height: 1.35;
    color: #171B22;
    margin: 0;
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.property-card--v2 .property-address {
    display: flex;
    align-items: flex-start;
    gap: calc(6px * var(--page-scale));
    font-size: var(--card-v2-address-size);
    font-weight: 400;
    line-height: 1.4;
    color: #6B7280;
    white-space: nowrap;
}

.property-card--v2 .property-address-icon {
    flex-shrink: 0;
    width: var(--card-v2-address-icon);
    height: var(--card-v2-address-icon);
    margin-top: calc(2px * var(--page-scale));
    opacity: 0.75;
    object-fit: contain;
}

.property-card--v2 .property-address-text {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.property-card--v2 .property-meta--v2 {
    gap: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: var(--card-v2-meta-margin-top);
    min-width: 0;
    overflow: hidden;
    text-align: left;
}

.property-card--v2 .property-meta--v2 span {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: var(--card-v2-meta-size);
    font-weight: 500;
    line-height: 1;
    color: #4B5563;
    gap: var(--card-v2-meta-gap);
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.property-card--v2 .property-meta--v2 span:not(:last-child)::after {
    content: '•';
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding-inline: var(--card-v2-meta-dot-gap);
    margin: 0;
    line-height: 1;
    color: #878C94;
    font-weight: 400;
    flex-shrink: 0;
}

.property-card--v2 .property-meta--v2 span img {
    display: block;
    width: var(--card-v2-meta-icon);
    height: var(--card-v2-meta-icon);
    object-fit: contain;
    object-position: center;
    opacity: 0.85;
    flex-shrink: 0;
    align-self: center;
}

.property-card--v2 .property-card-actions {
    padding: 0 var(--card-v2-actions-pad-x) var(--card-v2-actions-pad-bottom);
    margin-top: var(--card-v2-actions-margin-top);
    container-type: inline-size;
}

.property-card--v2 .property-card-actions .btn-write,
.property-card--v2 .property-card-actions .btn-call {
    font-weight: 600;
    box-sizing: border-box;
}

.property-card--v2 .property-card-actions .btn-call {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    transition: background 0.2s ease;
}

.property-card--v2 .property-card-actions .btn-call:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-primary-bg-hover);
}

.property-card--v2 .property-card-actions .btn-call:disabled,
.property-card--v2 .property-card-actions .btn-call[aria-disabled="true"] {
    background: var(--btn-primary-bg-disabled);
    color: var(--btn-primary-text-disabled);
    cursor: not-allowed;
}

.property-card--v2 .property-card-actions .btn-call img {
    filter: brightness(0) invert(1);
}

.property-card--v2 .property-card-actions .btn-write {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
    transition: background 0.2s ease;
}

.property-card--v2 .property-card-actions .btn-write:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-secondary-bg-hover);
}

.property-card--v2 .property-card-actions .btn-write:disabled,
.property-card--v2 .property-card-actions .btn-write[aria-disabled="true"] {
    color: var(--btn-secondary-text-disabled);
    cursor: not-allowed;
    opacity: 0.85;
}

.lot-similar .property-card--v2:hover {
    transform: translateY(-2px);
}

/* Home grid — call/write on image hover */
.property-card--image-hover-actions.property-card--v2 .property-card-content {
    padding-bottom: var(--card-v2-content-pad-bottom);
}

.property-card--image-hover-actions .property-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0) 35%,
        rgba(15, 23, 42, 0.35) 72%,
        rgba(15, 23, 42, 0.62) 100%
    );
    opacity: 0;
    transition: opacity 0.28s ease;
}

.property-card--image-hover-actions .property-card-actions--image-hover {
    position: absolute;
    left: var(--action-pair-overlay-inset);
    right: var(--action-pair-overlay-inset);
    bottom: var(--action-pair-overlay-inset);
    z-index: 6;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: var(--action-pair-overlay-row-gap);
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: visible;
    transform: translateY(6px);
    transition: opacity 0.26s ease, transform 0.26s ease;
    pointer-events: none;
    scroll-margin-top: calc(var(--site-header-sticky-offset) + 12px);
}

.property-card--image-hover-actions .property-card-actions--image-hover .lead-result {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .property-card--image-hover-actions:hover .property-card-image::after,
    .property-card--image-hover-actions:focus-within .property-card-image::after {
        opacity: 1;
    }

    .property-card--image-hover-actions:hover .property-card-actions--image-hover,
    .property-card--image-hover-actions:focus-within .property-card-actions--image-hover {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Mobile / touch — call & write always on image (matches site-wide ≤991px layout) */
@media (max-width: 991px), (hover: none) {
    .property-card--image-hover-actions .property-card-image::after {
        opacity: 0.75;
    }

    .property-card--image-hover-actions .property-card-actions--image-hover {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-call,
.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-write {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    position: relative;
    z-index: 2;
    pointer-events: none;
    scroll-margin-top: calc(var(--site-header-sticky-offset) + 12px);
    height: var(--action-pair-overlay-height);
    min-height: var(--action-pair-overlay-height);
    max-height: var(--action-pair-overlay-height);
    padding: 0 var(--action-pair-overlay-pad-x);
    margin: 0;
    font-size: var(--action-pair-overlay-font);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    border-radius: 999px;
    gap: var(--action-pair-overlay-gap);
    box-sizing: border-box;
    overflow: hidden;
    opacity: 1;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .property-card--image-hover-actions:hover .property-card-actions--image-hover .property-card-hover-btn-call,
    .property-card--image-hover-actions:hover .property-card-actions--image-hover .property-card-hover-btn-write,
    .property-card--image-hover-actions:focus-within .property-card-actions--image-hover .property-card-hover-btn-call,
    .property-card--image-hover-actions:focus-within .property-card-actions--image-hover .property-card-hover-btn-write {
        pointer-events: auto;
    }
}

@media (max-width: 991px), (hover: none) {
    .property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-call,
    .property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-write {
        pointer-events: auto;
    }
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-call {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 116, 105, 0.35);
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-call:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-primary-bg-hover);
    box-shadow: 0 6px 18px rgba(0, 116, 105, 0.4);
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-call img {
    width: var(--action-pair-overlay-icon);
    height: var(--action-pair-overlay-icon);
    max-width: var(--action-pair-overlay-icon);
    max-height: var(--action-pair-overlay-icon);
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-write {
    background: #FFFFFF;
    color: var(--color-primary-dark);
    border: none;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-write:hover:not(:disabled):not([aria-disabled="true"]) {
    background: #F9FAFB;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-write img {
    width: var(--action-pair-overlay-icon);
    height: var(--action-pair-overlay-icon);
    max-width: var(--action-pair-overlay-icon);
    max-height: var(--action-pair-overlay-icon);
    flex-shrink: 0;
    object-fit: contain;
}

.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-call:active:not(:disabled),
.property-card--image-hover-actions .property-card-actions--image-hover .property-card-hover-btn-write:active:not(:disabled):not([aria-disabled="true"]) {
    transform: scale(0.97);
}

.btn-write {
    height: 44px;
    background: var(--color-write-bg);
    color: var(--color-accent-dark);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
}

.btn-write:hover:not([aria-disabled="true"]) { opacity: 0.9; }

.btn-call {
    height: 44px;
    background: var(--color-call-bg);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-call:hover { opacity: 0.9; }

/* ── Call / Write paired actions (fluid typography + icons) ── */
.lot-page--v2 .lot-sidebar-card,
.property-card--v2 {
    container-type: inline-size;
}

.lot-page--v2 .lot-sidebar-actions,
.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover),
.agency-actions-row {
  gap: var(--action-pair-row-gap);
}

.lot-page--v2 .lot-sidebar-btn-call,
.lot-page--v2 .lot-sidebar-btn-write,
.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover) .btn-call,
.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover) .btn-write,
.agency-actions-row .btn-call,
.agency-actions-row .btn-write {
  height: var(--action-pair-height);
  min-height: var(--action-pair-height);
  padding: 0 var(--action-pair-pad-x);
  font-size: var(--action-pair-font-size);
  gap: var(--action-pair-gap);
  border-radius: var(--action-pair-radius);
}

.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover) .btn-call,
.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover) .btn-write {
  overflow: hidden;
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--action-pair-font-size-lg);
}

.lot-page--v2 .lot-sidebar-btn-call img,
.lot-page--v2 .lot-sidebar-btn-write img,
.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover) .btn-call img,
.property-card--v2 .property-card-actions:not(.property-card-actions--image-hover) .btn-write img,
.agency-actions-row .btn-call img,
.agency-actions-row .btn-write img {
  width: var(--action-pair-icon);
  height: var(--action-pair-icon);
  max-width: var(--action-pair-icon);
  max-height: var(--action-pair-icon);
  flex-shrink: 0;
  object-fit: contain;
}

/* Image-overlay — same viewport scale, overlay baselines (not footer pair rules) */
.property-card--image-hover-actions .property-card-actions--image-hover .btn-call,
.property-card--image-hover-actions .property-card-actions--image-hover .btn-write {
  height: var(--action-pair-overlay-height);
  min-height: var(--action-pair-overlay-height);
  max-height: var(--action-pair-overlay-height);
  padding: 0 var(--action-pair-overlay-pad-x);
  font-size: var(--action-pair-overlay-font);
  gap: var(--action-pair-overlay-gap);
  overflow: hidden;
  min-width: 0;
}

.property-card--image-hover-actions .property-card-actions--image-hover .btn-call img,
.property-card--image-hover-actions .property-card-actions--image-hover .btn-write img {
  width: var(--action-pair-overlay-icon);
  height: var(--action-pair-overlay-icon);
  max-width: var(--action-pair-overlay-icon);
  max-height: var(--action-pair-overlay-icon);
  flex-shrink: 0;
  object-fit: contain;
}

/* ── Promo cards ── */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.promo-grid--v2 {
    --promo-v2-scale: var(--page-scale);
    gap: calc(24px * var(--promo-v2-scale));
}

.promo-grid--v2 .promo-card {
    border-radius: calc(32px * var(--promo-v2-scale));
}

.promo-grid--v2 .promo-card-inner {
    min-height: calc(280px * var(--promo-v2-scale));
    height: calc(280px * var(--promo-v2-scale));
    padding: calc(32px * var(--promo-v2-scale));
    align-items: stretch;
}

.promo-grid--v2 .promo-card-content {
    flex: 1 1 auto;
    width: min(calc(340px * var(--promo-v2-scale)), 72%);
    max-width: calc(340px * var(--promo-v2-scale));
    min-width: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

.promo-grid--v2 .promo-card-content .btn-promo-white,
.promo-grid--v2 .promo-card-content .btn-promo-dark {
    margin-top: auto;
}

.promo-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: left;
    color: #FFFFFF;
}

.promo-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 300px;
    padding: 36px 40px;
    box-sizing: border-box;
}

.promo-card-teal {
    background-color: #007469;
    background-image: url('/static/images/promo/banner-rent-teal.png?v=3');
    background-image: -webkit-image-set(
        url('/static/images/promo/banner-rent-teal.webp?v=3') type('image/webp'),
        url('/static/images/promo/banner-rent-teal.png?v=3') type('image/png')
    );
    background-image: image-set(
        url('/static/images/promo/banner-rent-teal.webp?v=3') type('image/webp'),
        url('/static/images/promo/banner-rent-teal.png?v=3') type('image/png')
    );
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.promo-card-teal .promo-card-inner {
    background: transparent;
    justify-content: flex-start;
}

.promo-card-teal .promo-card-blur,
.promo-card-teal .promo-card-deco,
.promo-card-teal .promo-card-heart,
.promo-card-teal .promo-card-photos-mobile {
    display: none;
    pointer-events: none;
    user-select: none;
}

.promo-card-yellow {
    color: var(--color-text);
    background-color: var(--color-accent);
    background-image: url('/static/images/promo/banner-find-yellow.png?v=3');
    background-image: -webkit-image-set(
        url('/static/images/promo/banner-find-yellow.webp?v=3') type('image/webp'),
        url('/static/images/promo/banner-find-yellow.png?v=3') type('image/png')
    );
    background-image: image-set(
        url('/static/images/promo/banner-find-yellow.webp?v=3') type('image/webp'),
        url('/static/images/promo/banner-find-yellow.png?v=3') type('image/png')
    );
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.promo-card-yellow .promo-card-inner {
    background: transparent;
    justify-content: flex-start;
}

.promo-card-yellow .promo-card-blur,
.promo-card-yellow .promo-card-phones {
    display: none;
    pointer-events: none;
    user-select: none;
}

.promo-card-content {
    position: relative;
    z-index: 1;
    flex: 1 1 52%;
    max-width: 420px;
    min-width: 0;
}

.promo-card-art {
    flex: 0 1 46%;
    width: min(46%, 320px);
    max-width: 320px;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
    user-select: none;
}

.promo-card-teal h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
    color: #FFFFFF;
}

.promo-card-teal p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
}

.promo-card-yellow h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
    color: var(--color-text);
}

.promo-card-yellow p {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--color-accent-dark);
}

.promo-grid--v2 .promo-card-teal h3 {
    font-size: calc(28px * var(--promo-v2-scale));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(10px * var(--promo-v2-scale));
    max-width: 100%;
}

.promo-grid--v2 .promo-card-teal p {
    font-size: calc(16px * var(--promo-v2-scale));
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.92);
}

.promo-grid--v2 .promo-card-yellow .promo-card-content {
    width: min(52%, calc(280px * var(--promo-v2-scale)));
    max-width: calc(280px * var(--promo-v2-scale));
}

html[lang="en"] .promo-grid--v2 .promo-card-yellow .promo-card-content {
    width: min(54%, calc(302px * var(--promo-v2-scale)));
    max-width: calc(302px * var(--promo-v2-scale));
}

html[lang="ru"] .promo-grid--v2 .promo-card-yellow .promo-card-content {
    width: min(52%, calc(280px * var(--promo-v2-scale)));
    max-width: calc(280px * var(--promo-v2-scale));
}

.promo-grid--v2 .promo-card-yellow h3 {
    font-size: calc(28px * var(--promo-v2-scale));
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(10px * var(--promo-v2-scale));
    color: #171B22;
    max-width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-wrap: balance;
}

.promo-grid--v2 .promo-card-yellow p {
    font-size: calc(16px * var(--promo-v2-scale));
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    max-width: 100%;
    color: #564400;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-wrap: balance;
}

.promo-grid--v2 .promo-card-yellow .btn-promo-dark {
    background: #171B22;
    color: #FFFFFF;
}

.promo-grid--v2 .promo-card-yellow .btn-promo-dark:hover {
    opacity: 0.9;
}

.promo-card .btn {
    border-radius: 999px;
}

.btn-promo-accent {
    height: 48px;
    padding: 0 32px;
    background: var(--color-accent);
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
}

.btn-promo-accent:hover { opacity: 0.92; }

.btn-promo-white {
    height: 48px;
    padding: 0 32px;
    background: #FFFFFF;
    color: #007469;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
}

.btn-promo-white:hover {
    opacity: 0.92;
}

.btn-promo-dark {
    height: 48px;
    padding: 0 32px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 999px;
}

.promo-grid--v2 .promo-card .btn-promo-white,
.promo-grid--v2 .promo-card .btn-promo-dark {
    flex-shrink: 0;
    width: calc(166px * var(--promo-v2-scale));
    max-width: 100%;
    height: calc(44px * var(--promo-v2-scale));
    min-height: calc(44px * var(--promo-v2-scale));
    padding: 0 calc(12px * var(--promo-v2-scale));
    border-radius: calc(16px * var(--promo-v2-scale));
    font-size: calc(16px * var(--promo-v2-scale));
    font-weight: 600;
    box-sizing: border-box;
    justify-content: center;
}

/* ── Articles ── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.article-card a {
    text-decoration: none;
    color: inherit;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ── Consultation ── */
.consultation-section {
    background: transparent;
    padding-bottom: 60px;
}

.consultation-title {
    margin-bottom: 60px;
}

#consultation .consultation-title {
    margin-bottom: 0;
}

.consultation-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
    padding: 40px;
    background: var(--color-bg-gray);
    border-radius: var(--radius-lg);
}

.consultation-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.consultation-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E5F1F0;
    flex-shrink: 0;
}

.contact-card-icon-flag {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
}

.contact-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-card-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title);
    line-height: 1.3;
}

.contact-card-text span {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.3;
}

#consultation .contact-card-icon-img--mobile {
    display: none;
}

.consultation-agent {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 992px) {
    .consultation-info > .consultation-agent {
        margin-top: auto;
        padding-top: 48px;
    }
}

.consultation-agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-teal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.consultation-agent-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 2px;
}

.consultation-agent-text p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.4;
}

.consultation-form-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-title);
    line-height: 1.3;
    margin-bottom: 20px;
}

.consultation-form-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consultation-select-wrap {
    position: relative;
}

.consultation-select {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.consultation-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
}

.consultation-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.consultation-form-full input[type="text"],
.consultation-form-full input[type="tel"]:not(.phone-field-input) {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    background: #FFFFFF;
    outline: none;
    min-width: 0;
}

.consultation-form-full input:focus,
.consultation-select:focus {
    border-color: var(--color-primary);
}

/* ── Phone field (country selector + tel input) ── */
.phone-field {
    position: relative;
    width: 100%;
    min-width: 0;
}

.phone-field-shell {
    position: relative;
}

.phone-field-control {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
    transition: border-color 0.2s;
}

.phone-field-control:focus-within {
    border-color: var(--color-primary);
}

.phone-field-country-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 78px;
    padding: 0 10px;
    border: none;
    border-right: 1px solid var(--color-border);
    background: #F3F4F6;
    cursor: pointer;
    flex-shrink: 0;
}

.phone-field-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.phone-field-flag-img,
.phone-field-option-flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.phone-field-chevron {
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.phone-field.is-open .phone-field-chevron {
    transform: rotate(180deg);
}

.phone-field-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: none !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.phone-field-input::placeholder {
    color: #9CA3AF;
}

.phone-field-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 400;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.phone-field-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    margin: 0;
    cursor: text;
}

.phone-field-search-icon {
    flex-shrink: 0;
    opacity: 0.45;
}

.phone-field-search-input {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.phone-field-search-input::placeholder {
    color: #9CA3AF;
}

.phone-field-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
}

.phone-field-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-title);
    text-align: left;
    cursor: pointer;
}

.phone-field-option:hover,
.phone-field-option.is-active {
    background: #F3F4F6;
}

.phone-field-option-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.phone-field-option-label {
    flex: 1;
    min-width: 0;
}

.phone-field--auth .phone-field-control {
    min-height: 44px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
}

.phone-field--auth .phone-field-control:focus-within {
    box-shadow: inset 0 0 0 2px rgba(0, 116, 105, 0.35);
    border-color: transparent;
}

.phone-field--auth .phone-field-country-btn {
    width: 56px;
    gap: 4px;
    padding: 0 6px;
    background: transparent;
    border-right-color: #E5E7EB;
}

.phone-field--auth .phone-field-flag-img {
    width: 20px;
    height: 15px;
}

.phone-field--auth .phone-field-chevron {
    width: 12px;
    height: 12px;
}

.phone-field--auth .phone-field-input {
    height: 44px;
    font-size: 14px;
    font-weight: 400;
}

.phone-field--auth .phone-field-dropdown {
    top: calc(100% + 6px);
    border-radius: 12px;
}

.phone-field--auth .phone-field-search {
    gap: 6px;
    padding: 6px 8px;
}

.phone-field--auth .phone-field-search-icon {
    width: 13px;
    height: 13px;
}

.phone-field--auth .phone-field-search-input {
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}

.phone-field--auth .phone-field-list {
    max-height: 160px;
    padding: 4px;
}

.phone-field--auth .phone-field-option {
    gap: 6px;
    padding: 5px 6px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.phone-field--auth .phone-field-option-flag-img {
    width: 16px;
    height: 12px;
}

.auth-panel[data-auth-panel="register"] .auth-panel-head {
    margin-bottom: 16px;
}

.auth-panel[data-auth-panel="register"] .auth-panel-title {
    font-size: 22px;
}

.auth-panel[data-auth-panel="register"] .auth-form {
    gap: 12px;
}

.auth-panel[data-auth-panel="register"] .auth-form-row {
    gap: 10px;
}

.auth-panel[data-auth-panel="register"] .auth-field {
    gap: 5px;
}

.auth-panel[data-auth-panel="register"] .auth-label {
    font-size: 13px;
}

.auth-panel[data-auth-panel="register"] .auth-input,
.auth-panel[data-auth-panel="register"] .auth-submit-btn {
    height: 40px;
    font-size: 13px;
}

.auth-panel[data-auth-panel="register"] .phone-field--auth .phone-field-control {
    min-height: 40px;
}

.auth-panel[data-auth-panel="register"] .phone-field--auth .phone-field-input {
    height: 40px;
    font-size: 13px;
}

.auth-panel[data-auth-panel="register"] .phone-field--auth .phone-field-country-btn {
    width: 50px;
    gap: 3px;
    padding: 0 5px;
}

.auth-panel[data-auth-panel="register"] .phone-field--auth .phone-field-flag-img {
    width: 18px;
    height: 13px;
}

.auth-panel[data-auth-panel="register"] .phone-field--auth .phone-field-chevron {
    width: 10px;
    height: 10px;
}

.auth-panel[data-auth-panel="register"] .auth-password-toggle {
    font-size: 12px;
}

.auth-panel[data-auth-panel="register"] .auth-password-toggle svg {
    width: 16px;
    height: 16px;
}

.consultation-form-row .phone-field,
.blog-form-field .phone-field,
.lead-modal-dialog .phone-field {
    width: 100%;
}

.lead-modal-dialog .phone-field {
    margin-bottom: 12px;
}

.blog-sidebar-form .phone-field-input:focus {
    box-shadow: none !important;
}

.btn-consultation-send {
    height: 48px;
    background: #D1D5DB;
    color: var(--color-title);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
}

.btn-consultation-send:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-consultation-send:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-primary-bg-hover);
}

.consultation-subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.consultation-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 640px;
    margin: 0 auto 40px;
}

.consultation-form input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
    min-width: 200px;
    outline: none;
}

.consultation-form input:focus {
    border-color: var(--color-primary);
}

.consultation-contacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--color-muted);
}

/* ── Footer ── */
.site-footer {
    margin-top: 0;
    background: var(--color-bg);
}

footer.site-footer .footer-shell {
    --footer-scale: var(--page-scale);
    background: var(--color-primary);
    border-top-left-radius: calc(48px * var(--footer-scale));
    border-top-right-radius: calc(48px * var(--footer-scale));
    padding: calc(28px * var(--footer-scale)) 0 calc(32px * var(--footer-scale));
}

.footer-shell {
    background: var(--color-primary);
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    padding: 28px 0 32px;
}

footer.site-footer .footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 calc(50px * var(--footer-scale));
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 50px;
}

footer.site-footer .footer-bar {
    gap: calc(24px * var(--footer-scale)) calc(32px * var(--footer-scale));
    min-height: calc(56px * var(--footer-scale));
}

.footer-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 32px;
    min-height: 56px;
}

footer.site-footer .footer-brand {
    gap: calc(10px * var(--footer-scale));
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}

.footer-nav-block {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer.site-footer .footer-nav-block {
    gap: calc(12px * var(--footer-scale));
}

footer.site-footer .footer-nav-list {
    gap: calc(8px * var(--footer-scale)) calc(28px * var(--footer-scale));
}

footer.site-footer .footer-nav-list a {
    font-size: calc(15px * var(--footer-scale));
}

.footer-nav-list a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.footer-nav-list a:hover {
    opacity: 0.88;
}

footer.site-footer .footer-details {
    margin-top: calc(24px * var(--footer-scale));
    padding-top: calc(20px * var(--footer-scale));
}

.footer-details {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-extra-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer.site-footer .footer-extra-links {
    gap: calc(8px * var(--footer-scale)) calc(24px * var(--footer-scale));
}

footer.site-footer .footer-extra-links a {
    font-size: calc(14px * var(--footer-scale));
}

.footer-extra-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.footer-extra-links a:hover {
    color: #FFFFFF;
}

@media (min-width: 901px) {
    footer.site-footer .footer-bar {
        column-gap: calc(24px * var(--footer-scale));
        row-gap: calc(10px * var(--footer-scale));
    }

    .footer-bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 24px;
        row-gap: 10px;
    }

    .footer-brand {
        display: contents;
    }

    .footer-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
    }

    .footer-tagline {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        align-self: start;
    }

    .footer-nav-block {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: center;
    }

    .footer-nav {
        justify-content: center;
    }

    footer.site-footer .footer-nav-list {
        gap: calc(8px * var(--footer-scale)) calc(22px * var(--footer-scale));
    }

    .footer-nav-list {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px 22px;
    }

    footer.site-footer .footer-bottom {
        margin-top: calc(20px * var(--footer-scale));
    }

    .footer-bottom {
        margin-top: 20px;
    }
}

.footer-logo {
    display: block;
    text-decoration: none;
}

footer.site-footer .footer-logo-img {
    width: calc(88px * var(--footer-scale));
    height: calc(38px * var(--footer-scale));
}

.footer-logo-img {
    display: block;
    width: 88px;
    height: 38px;
}

footer.site-footer .footer-tagline {
    font-size: calc(11px * var(--footer-scale));
    max-width: calc(168px * var(--footer-scale));
}

.footer-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    line-height: 1.35;
    max-width: 10.5rem;
}

footer.site-footer .footer-contacts-list {
    gap: calc(8px * var(--footer-scale)) calc(24px * var(--footer-scale));
    margin: calc(12px * var(--footer-scale)) 0 0;
}

footer.site-footer .footer-contacts-list a {
    font-size: calc(12px * var(--footer-scale));
}

.footer-contacts-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.footer-contacts-list a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.35;
    transition: color 0.2s;
}

.footer-contacts-list a:hover {
    color: #FFFFFF;
}

footer.site-footer .footer-contact-link {
    gap: calc(6px * var(--footer-scale));
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

footer.site-footer .footer-contact-icon {
    width: calc(15px * var(--footer-scale));
    height: calc(15px * var(--footer-scale));
}

.footer-contact-icon {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

footer.site-footer .footer-bottom {
    gap: calc(24px * var(--footer-scale)) calc(32px * var(--footer-scale));
    margin-top: calc(24px * var(--footer-scale));
    padding-top: calc(16px * var(--footer-scale));
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 32px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-bottom-start {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-legal {
    margin: 0;
    min-width: 0;
}

.footer-bottom .footer-copy {
    margin: 0;
    white-space: nowrap;
}

footer.site-footer .footer-legal,
footer.site-footer .footer-copy {
    font-size: calc(12px * var(--footer-scale));
}

.footer-legal,
.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
}

.footer-legal a,
.footer-bottom a {
    color: #FFFFFF;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-copy {
    flex-shrink: 0;
    text-align: right;
}

.footer-mobile {
    display: none;
}

.footer-desktop {
    display: block;
}

@media (max-width: 768px) {
    .site-footer {
        display: none;
    }
}

/* ── Chat widget ── */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,116,105,0.35);
    cursor: pointer;
}

.chat-fab img {
    filter: brightness(0) invert(1);
}

.chat-panel {
    display: none;
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 320px;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 20px;
}

.chat-panel.open { display: block; }

.chat-panel-header {
    margin-bottom: 16px;
}

.chat-panel-header strong {
    font-size: 16px;
    font-weight: 600;
}

.chat-panel-header p {
    font-size: 14px;
    color: var(--color-muted);
    margin-top: 4px;
}

.chat-panel form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-panel input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
}

.btn-primary-full {
    height: 44px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
}

.chat-panel-contacts p {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--color-muted);
}

.chat-panel-contacts strong {
    color: var(--color-text);
}

/* ── Form success ── */
.form-success {
    padding: 12px 16px;
    background: #ECFDF5;
    border-radius: var(--radius-sm);
    color: #065F46;
    font-size: 14px;
    font-weight: 500;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--color-muted);
    font-size: 16px;
}

/* ── Search page ── */
.search-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    margin-left: 18px;
}

/* ── Property detail ── */
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 24px;
}

.back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover { text-decoration: underline; }

.property-detail-actions form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 16px;
}

.property-detail-actions input,
.property-detail-actions textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
    outline: none;
}

.property-detail-actions textarea {
    min-height: 100px;
    resize: vertical;
}

/* ── Legal pages ── */
.legal-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.legal-page p, .legal-page li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ── About us page (resale-center.com/about-us) ── */
.about-page {
    padding-top: 40px;
    padding-bottom: 72px;
    background: #FFFFFF;
}

.about-page-shell {
    max-width: 1120px;
}

.about-prose {
    max-width: 100%;
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #000000;
}

.about-page-title {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #000000;
}

.about-prose p {
    margin: 0 0 20px;
}

.about-prose strong {
    font-weight: 700;
    color: #000000;
}

.about-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.about-list li {
    position: relative;
    margin: 0 0 4px;
    padding-left: 22px;
    color: #000000;
}

.about-list li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: 0;
    font-weight: 400;
}

.about-section-title {
    margin: 36px 0 20px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #000000;
}

.about-section-title:first-of-type {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .about-page {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .about-prose {
        font-size: 16px;
        line-height: 1.55;
    }

    .about-page-title,
    .about-section-title {
        font-size: 26px;
    }

    .about-section-title {
        margin-top: 28px;
    }
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .property-grid { grid-template-columns: repeat(3, 1fr); }
    .category-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: 1fr; }
    .promo-card-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
        padding: 28px 24px 24px;
    }
    .promo-card-content {
        flex-basis: auto;
        max-width: 100%;
    }
    .promo-card-art {
        align-self: center;
        width: min(100%, 280px);
        max-width: 280px;
        max-height: 200px;
    }
    .consultation-contacts { grid-template-columns: repeat(2, 1fr); }
    .article-grid { grid-template-columns: 1fr; }
    .property-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    :root { --container-pad: 16px; }
    .hero-filter-row { flex-direction: column; align-items: stretch; }
    .hero-search-row { flex-direction: column; align-items: stretch; }
    .hero-select-wrap { max-width: none; }
    .hero-search-row .hero-search-submit,
    .hero-search-row .hero-search-map { width: 100%; min-width: 0; }
    .property-grid { grid-template-columns: 1fr; }
    .category-cards { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .section-header h2, .section-title { font-size: 24px; }
    .property-title { font-size: 20px; }
    .property-price { font-size: 20px; }
    .consultation-contacts { grid-template-columns: 1fr; }
    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
    }
    .footer-nav-block { width: 100%; align-items: flex-start; }
    .footer-nav { width: 100%; justify-content: flex-start; }
    .footer-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-extra-links { justify-content: flex-start; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer-copy { text-align: left; }
}

/* Frequently searched keeps the 1440 layout and shrinks with the page. */
@media (min-width: 992px) {
    .home-page {
        container-type: inline-size;
    }

    #frequently-searched {
        width: 1440px;
        max-width: none;
        margin-inline: auto;
        zoom: min(1, calc(100cqi / 1440px));
    }

    #frequently-searched .page-container {
        max-width: 1320px;
        padding-left: 42px;
        padding-right: 42px;
    }

    #frequently-searched .category-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

/* ── Property grid variants ── */
.property-grid-4 { grid-template-columns: repeat(4, 1fr); }
.property-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Compact property card (new buildings) ── */
.property-card-compact {
    padding: 0 0 8px;
}

.property-card-compact-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 12px;
}

.property-address-compact {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Listing promo ── */
.listing-promo-section { background: transparent; }

.listing-promo {
    --listing-promo-scale: var(--page-scale);
    position: relative;
    overflow: hidden;
    min-height: calc(280px * var(--listing-promo-scale));
    padding: calc(40px * var(--listing-promo-scale)) calc(48px * var(--listing-promo-scale));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(32px * var(--listing-promo-scale));
    border-radius: calc(24px * var(--listing-promo-scale));
    background: linear-gradient(90deg, #00a895 0%, #008d7d 55%, #007469 100%);
}

.listing-promo-circles {
    position: absolute;
    right: calc(120px * var(--listing-promo-scale));
    top: 50%;
    transform: translateY(-50%);
    width: calc(360px * var(--listing-promo-scale));
    height: calc(360px * var(--listing-promo-scale));
    pointer-events: none;
    background:
        radial-gradient(circle, transparent 58%, rgba(255, 255, 255, 0.14) 58.5%, rgba(255, 255, 255, 0.14) 59.5%, transparent 60%),
        radial-gradient(circle, transparent 68%, rgba(255, 255, 255, 0.11) 68.5%, rgba(255, 255, 255, 0.11) 69.5%, transparent 70%),
        radial-gradient(circle, transparent 78%, rgba(255, 255, 255, 0.08) 78.5%, rgba(255, 255, 255, 0.08) 79.5%, transparent 80%),
        radial-gradient(circle, transparent 88%, rgba(255, 255, 255, 0.06) 88.5%, rgba(255, 255, 255, 0.06) 89.5%, transparent 90%);
}

.listing-promo-content {
    position: relative;
    z-index: 1;
    flex: 0 1 52%;
    max-width: calc(520px * var(--listing-promo-scale));
    color: #FFFFFF;
}

.listing-promo h2 {
    font-size: calc(28px * var(--listing-promo-scale));
    font-weight: 700;
    margin-bottom: calc(8px * var(--listing-promo-scale));
    line-height: 1.25;
    color: #FFFFFF;
}

.listing-promo p {
    color: #FFFFFF;
    font-size: calc(16px * var(--listing-promo-scale));
    font-weight: 400;
    margin-bottom: calc(24px * var(--listing-promo-scale));
    line-height: 1.45;
    opacity: 0.95;
}

.listing-promo-btn {
    height: calc(44px * var(--listing-promo-scale));
    min-height: calc(44px * var(--listing-promo-scale));
    padding: 0 calc(32px * var(--listing-promo-scale));
    border-radius: calc(16px * var(--listing-promo-scale));
    font-size: calc(16px * var(--listing-promo-scale));
    font-weight: 600;
    color: var(--color-accent-dark);
    box-sizing: border-box;
}

.listing-promo-visual {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: calc(380px * var(--listing-promo-scale));
    min-height: calc(180px * var(--listing-promo-scale));
}

.listing-promo-card-stack {
    position: relative;
    width: 100%;
    height: calc(176px * var(--listing-promo-scale));
}

.listing-promo-card-shadow {
    position: absolute;
    right: 0;
    top: 0;
    width: calc(340px * var(--listing-promo-scale));
    height: calc(156px * var(--listing-promo-scale));
    border-radius: calc(16px * var(--listing-promo-scale));
    background: rgba(255, 255, 255, 0.14);
}

.listing-promo-card-shadow-1 {
    top: calc(10px * var(--listing-promo-scale));
    right: calc(16px * var(--listing-promo-scale));
    transform: rotate(-2deg);
}

.listing-promo-card-shadow-2 {
    top: calc(20px * var(--listing-promo-scale));
    right: calc(8px * var(--listing-promo-scale));
    transform: rotate(-4deg);
    background: rgba(255, 255, 255, 0.08);
}

.listing-promo-card {
    position: absolute;
    top: 0;
    right: calc(24px * var(--listing-promo-scale));
    display: flex;
    gap: calc(12px * var(--listing-promo-scale));
    width: calc(340px * var(--listing-promo-scale));
    padding: calc(12px * var(--listing-promo-scale));
    background: #FFFFFF;
    border-radius: calc(16px * var(--listing-promo-scale));
    box-shadow: 0 calc(12px * var(--listing-promo-scale)) calc(40px * var(--listing-promo-scale)) rgba(0, 0, 0, 0.14);
}

.listing-promo-card-image {
    flex-shrink: 0;
    width: calc(112px * var(--listing-promo-scale));
    height: calc(112px * var(--listing-promo-scale));
    border-radius: calc(12px * var(--listing-promo-scale));
    background-size: cover;
    background-position: center;
}

.listing-promo-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: calc(2px * var(--listing-promo-scale));
}

.listing-promo-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(8px * var(--listing-promo-scale));
    margin-bottom: calc(4px * var(--listing-promo-scale));
}

.listing-promo-card-price {
    font-size: calc(18px * var(--listing-promo-scale));
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.listing-promo-card-heart {
    display: flex;
    flex-shrink: 0;
    width: calc(20px * var(--listing-promo-scale));
    height: calc(20px * var(--listing-promo-scale));
}

.listing-promo-card-heart img {
    width: calc(20px * var(--listing-promo-scale));
    height: calc(20px * var(--listing-promo-scale));
}

.listing-promo-card-title {
    font-size: calc(15px * var(--listing-promo-scale));
    font-weight: 600;
    color: var(--color-title);
    line-height: 1.3;
    margin-bottom: calc(2px * var(--listing-promo-scale));
}

.listing-promo-card-location {
    font-size: calc(13px * var(--listing-promo-scale));
    color: var(--color-muted);
    line-height: 1.3;
    margin-bottom: calc(8px * var(--listing-promo-scale));
}

.listing-promo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(8px * var(--listing-promo-scale)) calc(10px * var(--listing-promo-scale));
    margin-top: auto;
    font-size: calc(12px * var(--listing-promo-scale));
    color: var(--color-muted);
}

.listing-promo-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: calc(4px * var(--listing-promo-scale));
    white-space: nowrap;
}

.listing-promo-card-meta img {
    width: calc(16px * var(--listing-promo-scale));
    height: calc(16px * var(--listing-promo-scale));
    opacity: 0.7;
}

/* ── Article cards (home/blog) ── */
.article-card-home {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.article-card-home:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.article-card-home a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-card-body {
    padding: 20px;
}

.article-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-card-body p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.article-card-body time {
    font-size: 14px;
    color: var(--color-subtle);
}

.article-grid-home,
.article-grid-blog {
    grid-template-columns: repeat(3, 1fr);
}

/* ── Articles home layout ── */
#articles {
    --articles-home-scale: var(--page-scale);
}

.articles-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

#articles .articles-home-layout {
    gap: calc(20px * var(--articles-home-scale));
}

.article-featured {
    border-radius: 20px;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.article-featured-link {
    display: block;
    position: relative;
    height: 100%;
    min-height: 480px;
    text-decoration: none;
    color: #FFFFFF;
}

#articles .article-featured {
    border-radius: calc(20px * var(--articles-home-scale));
}

#articles .article-featured-link {
    min-height: calc(480px * var(--articles-home-scale));
}

.article-featured-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.article-featured-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.34) 52%, transparent 100%);
}

#articles .article-featured-overlay {
    padding: calc(28px * var(--articles-home-scale)) calc(24px * var(--articles-home-scale)) calc(24px * var(--articles-home-scale));
}

.article-featured-overlay h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
}

#articles .article-featured-overlay h3 {
    font-size: calc(22px * var(--articles-home-scale));
    margin-bottom: calc(8px * var(--articles-home-scale));
}

.article-featured-overlay p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#articles .article-featured-overlay p {
    font-size: calc(15px * var(--articles-home-scale));
}

.article-list-home {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    height: 100%;
}

#articles .article-list-home {
    gap: calc(20px * var(--articles-home-scale));
}

.article-list-item {
    flex: 1 1 0;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.article-list-item:hover {
    box-shadow: none;
}

.article-list-link {
    display: flex;
    gap: 16px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
    height: 100%;
}

#articles .article-list-link {
    gap: calc(16px * var(--articles-home-scale));
}

.article-list-link:hover .article-list-body h3 {
    color: var(--color-primary-light);
}

.article-list-thumb {
    flex: 0 0 195px;
    width: 195px;
    height: 186px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg-gray);
}

#articles .article-list-thumb {
    flex: 0 0 calc(195px * var(--articles-home-scale));
    width: calc(195px * var(--articles-home-scale));
    height: calc(186px * var(--articles-home-scale));
    border-radius: calc(16px * var(--articles-home-scale));
}

.article-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#articles .article-list-body h3 {
    font-size: calc(18px * var(--articles-home-scale));
    margin-bottom: calc(8px * var(--articles-home-scale));
}

.article-list-body h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--color-title);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

#articles .article-list-body p {
    font-size: calc(14px * var(--articles-home-scale));
}

.article-list-body p {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.45;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-body time {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 12px;
}

#articles .article-list-body time {
    font-size: calc(14px * var(--articles-home-scale));
    margin-top: calc(12px * var(--articles-home-scale));
}

/* ── Consultation home layout (1440px baseline) ── */
#consultation {
    --consultation-home-scale: var(--page-scale);
}

#consultation .consultation-contacts-grid {
    gap: calc(24px * var(--consultation-home-scale)) calc(32px * var(--consultation-home-scale));
}

#consultation .contact-card {
    gap: calc(12px * var(--consultation-home-scale));
}

#consultation .contact-card-icon,
#consultation .contact-card-icon-flag {
    width: calc(48px * var(--consultation-home-scale));
    height: calc(48px * var(--consultation-home-scale));
}

#consultation .contact-card-icon-img--desktop {
    width: calc(24px * var(--consultation-home-scale));
    height: calc(24px * var(--consultation-home-scale));
}

#consultation .contact-card-text {
    gap: calc(2px * var(--consultation-home-scale));
}

#consultation .contact-card-text strong {
    font-size: calc(16px * var(--consultation-home-scale));
}

#consultation .contact-card-text span {
    font-size: calc(14px * var(--consultation-home-scale));
}

#consultation .consultation-agent {
    gap: calc(12px * var(--consultation-home-scale));
}

@media (min-width: 992px) {
    #consultation .consultation-info > .consultation-agent {
        padding-top: calc(48px * var(--consultation-home-scale));
    }
}

#consultation .consultation-agent-avatar,
#consultation .consultation-agent-avatar--photo {
    width: calc(48px * var(--consultation-home-scale));
    height: calc(48px * var(--consultation-home-scale));
    font-size: calc(18px * var(--consultation-home-scale));
}

#consultation .consultation-agent-text strong {
    font-size: calc(16px * var(--consultation-home-scale));
    margin-bottom: calc(2px * var(--consultation-home-scale));
}

#consultation .consultation-agent-text p {
    font-size: calc(14px * var(--consultation-home-scale));
}

#consultation .consultation-form-title {
    font-size: calc(22px * var(--consultation-home-scale));
    margin-bottom: calc(20px * var(--consultation-home-scale));
}

#consultation .consultation-form-full {
    gap: calc(12px * var(--consultation-home-scale));
}

#consultation .consultation-form-row {
    gap: calc(12px * var(--consultation-home-scale));
}

#consultation .consultation-select {
    height: calc(48px * var(--consultation-home-scale));
    padding: 0 calc(40px * var(--consultation-home-scale)) 0 calc(16px * var(--consultation-home-scale));
    font-size: calc(16px * var(--consultation-home-scale));
    border-radius: calc(16px * var(--consultation-home-scale));
}

#consultation .consultation-select-icon {
    right: calc(12px * var(--consultation-home-scale));
    width: calc(24px * var(--consultation-home-scale));
    height: calc(24px * var(--consultation-home-scale));
}

#consultation .consultation-form-full input[type="text"],
#consultation .consultation-form-full input[type="tel"]:not(.phone-field-input) {
    height: calc(48px * var(--consultation-home-scale));
    padding: 0 calc(16px * var(--consultation-home-scale));
    font-size: calc(16px * var(--consultation-home-scale));
    border-radius: calc(16px * var(--consultation-home-scale));
}

#consultation .phone-field-control {
    min-height: calc(48px * var(--consultation-home-scale));
    border-radius: calc(12px * var(--consultation-home-scale));
}

#consultation .phone-field-country-btn {
    width: calc(78px * var(--consultation-home-scale));
    gap: calc(6px * var(--consultation-home-scale));
    padding: 0 calc(10px * var(--consultation-home-scale));
}

#consultation .phone-field-input {
    height: calc(48px * var(--consultation-home-scale));
    font-size: calc(16px * var(--consultation-home-scale));
}

#consultation .phone-field-flag-img,
#consultation .phone-field-option-flag-img {
    width: calc(24px * var(--consultation-home-scale));
    height: calc(18px * var(--consultation-home-scale));
}

#consultation .privacy-check {
    gap: calc(8px * var(--consultation-home-scale));
    font-size: calc(13px * var(--consultation-home-scale));
}

#consultation .privacy-check input[type="checkbox"] {
    width: calc(20px * var(--consultation-home-scale));
    height: calc(20px * var(--consultation-home-scale));
}

#consultation .btn-consultation-send {
    height: calc(48px * var(--consultation-home-scale));
    font-size: calc(16px * var(--consultation-home-scale));
    border-radius: calc(16px * var(--consultation-home-scale));
}

.blog-page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 18px;
}

.blog-page-subtitle {
    color: var(--color-muted);
    margin: 0 0 32px 18px;
    max-width: 720px;
    line-height: 1.6;
}

/* ── Blog page ── */
.blog-page {
    background: #F3F4F6;
    padding-top: 24px;
    padding-bottom: 48px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 408px);
    gap: 24px;
    align-items: start;
}

.blog-layout > .blog-sidebar-card {
    max-width: 408px;
    width: 100%;
    justify-self: end;
}

.article-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 408px);
    gap: 20px;
}

.blog-feed-card,
.blog-sidebar-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 32px;
}

.blog-breadcrumbs {
    margin-bottom: 24px;
    min-width: 0;
    overflow: hidden;
}

.blog-breadcrumbs-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    min-width: 0;
}

.blog-breadcrumbs-item {
    flex-shrink: 0;
    min-width: 0;
}

.blog-breadcrumbs-item a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-breadcrumbs-item a:hover {
    color: var(--color-primary);
}

.blog-breadcrumbs-item.is-current {
    color: var(--color-primary);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-breadcrumbs-sep {
    color: #D1D5DB;
    font-weight: 400;
    user-select: none;
}

.blog-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-feed-card > .blog-feed-title {
    margin-bottom: 8px;
}

.blog-feed-item {
    border-bottom: 1px solid #E5E7EB;
}

.blog-feed-item:last-child {
    border-bottom: none;
}

.blog-feed-link {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}

.blog-feed-link:hover h2 {
    color: var(--color-primary);
}

.blog-feed-thumb {
    width: 200px;
    height: 191px;
    border-radius: 16px;
    background-color: #FAFAFA;
    flex-shrink: 0;
    object-fit: cover;
}

.blog-feed-thumb-empty {
    background: linear-gradient(135deg, #E5F1F0 0%, #F3F4F6 100%);
}

.blog-feed-body {
    min-width: 0;
    min-height: 191px;
    display: flex;
    flex-direction: column;
}

.blog-feed-body h2 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--color-title);
    transition: color 0.2s;
}

.blog-feed-body p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    color: #9CA3AF;
    margin-top: auto;
}

.blog-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--color-title);
}

.blog-sidebar-subtitle {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0 0 20px;
}

.blog-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
}

.blog-sidebar-form input[type="text"],
.blog-sidebar-form input[type="tel"]:not(.phone-field-input) {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    outline: none;
}

.blog-sidebar-form input:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.blog-sidebar-form .consultation-select:focus {
    box-shadow: none;
}

.blog-phone-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
}

.blog-phone-prefix {
    text-align: center;
    padding: 0 8px !important;
}

.blog-privacy-check {
    margin-top: -4px;
}

.btn-blog-send {
    height: 48px;
    background: #E5E7EB;
    color: var(--color-title);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    transition: background 0.2s;
}

.btn-blog-send:hover {
    background: #D1D5DB;
}

@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-card {
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .blog-feed-link {
        grid-template-columns: 1fr;
    }

    .blog-feed-thumb {
        width: 100%;
        height: 180px;
    }

    .blog-feed-card,
    .blog-sidebar-card {
        padding: 24px 20px;
    }
}

/* Blog index keeps the 1440 layout and shrinks text and images with the page. */
@media (max-width: 1440px) and (min-width: 761px) {
    html:has(.blog-page:not(.article-page)) {
        overflow-x: clip;
    }

    body:has(.blog-page:not(.article-page)) {
        width: 1440px;
        zoom: calc(100vw / 1440px);
        padding-bottom: 0;
        font-size: 16px;
        --container-max: 1320px;
        --container-pad: 42px;
    }

    body:has(.blog-page:not(.article-page)) .site-header {
        --header-nav-font: 14px;
        --header-nav-line: 18px;
        --header-nav-gap: 16px;
        --header-nav-icon: 16px;
        --header-nav-pad-y: 8px;
        --header-nav-pad-x-active: 14px;
        --header-nav-create-gap: 6px;
        --header-logo-w: 88px;
        --header-right-gap: 16px;
        --header-right-pill-h: 36px;
        --header-right-pill-pad: 8px;
        --header-right-pill-gap: 6px;
        --header-right-font: 14px;
        --header-right-line: 16px;
        --header-right-icon: 20px;
        --header-right-chevron: 16px;
        --header-right-lang-w: 80px;
        --header-right-curr-w: 90px;
        --header-right-inner-gap: 8px;
        --header-right-label-gap: 2px;
        --header-right-profile-max: 148px;
        --header-right-avatar: 28px;
        --header-right-name-max: 96px;
        --header-right-login-h: 36px;
        --header-right-login-pad-x: 16px;
    }

    body:has(.blog-page:not(.article-page)) .header-container {
        max-width: 1440px;
        padding: 16px 50px;
        gap: 28px;
    }

    body:has(.blog-page:not(.article-page)) .header-menu-toggle,
    body:has(.blog-page:not(.article-page)) .mobile-tabbar,
    body:has(.blog-page:not(.article-page)) .mobile-nav-panel {
        display: none;
    }

    body:has(.blog-page:not(.article-page)) .main-nav,
    body:has(.blog-page:not(.article-page)) .main-nav-desktop {
        position: static;
        display: flex;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        inset: auto;
    }

    body:has(.blog-page:not(.article-page)) .header-right,
    body:has(.blog-page:not(.article-page)) .header-right:not(:has(.header-profile-link:not([hidden]))) {
        display: flex;
    }

    body:has(.blog-page:not(.article-page)) .header-right .lang-switcher,
    body:has(.blog-page:not(.article-page)) .header-right .header-currency-switcher,
    body:has(.blog-page:not(.article-page)) .header-right .header-login-btn {
        display: flex;
    }

    body:has(.blog-page:not(.article-page)) .blog-layout,
    body:has(.blog-page:not(.article-page)) .article-page-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 408px);
    }

    body:has(.blog-page:not(.article-page)) .blog-feed-link {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    body:has(.blog-page:not(.article-page)) .blog-feed-thumb {
        width: 200px;
        height: 191px;
    }

    body:has(.blog-page:not(.article-page)) .blog-feed-card,
    body:has(.blog-page:not(.article-page)) .blog-sidebar-card {
        padding: 32px;
    }
}

@media (max-width: 760px) {
    body:has(.blog-page:not(.article-page)) {
        width: auto;
        zoom: 1;
    }
}

.article-page-cover {
    height: 320px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    margin: 16px 0 24px;
}

.article-excerpt {
    font-size: 18px;
    color: var(--color-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.article-detail-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.article-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 24px;
    max-width: 408px;
    width: 100%;
    justify-self: end;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

.article-back-link img {
    flex-shrink: 0;
}

.article-detail-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.article-detail-cover {
    width: 100%;
    aspect-ratio: 100 / 36.567;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    background-color: #E5E7EB;
    margin: 0;
}

.article-detail-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
}

.article-detail-date {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #4B5563;
}

.article-detail-content {
    width: 100%;
    font-size: 14px;
    line-height: 1.55;
    color: #000000;
}

.article-detail-content p {
    width: 100%;
    margin: 0 0 16px;
    text-align: justify;
    text-justify: inter-word;
}

.article-detail-content h2 {
    margin: 28px 0 16px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #252525;
}

.article-detail-content h2:first-child {
    margin-top: 0;
}

.article-detail-content h2[id] {
    scroll-margin-top: 12px;
}

.article-toc {
    margin: 24px 0;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--color-bg-gray);
}

.article-toc .article-toc-title {
    margin: 0 0 12px;
    font-size: 18px;
}

.article-toc ol {
    padding-left: 20px;
}

.article-toc li {
    text-align: start;
}

.article-toc li:last-child {
    margin-bottom: 0;
}

.article-toc a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-illustration {
    margin: 24px 0;
}

.article-illustration img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.article-detail-content h3 {
    margin: 20px 0 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #252525;
}

.article-detail-content ul {
    width: 100%;
    margin: 0 0 16px;
    padding-left: 24px;
}

.article-detail-content li {
    width: 100%;
    margin-bottom: 8px;
    text-align: justify;
    text-justify: inter-word;
}

.article-detail-content strong {
    display: block;
    margin: 0 0 8px;
    color: #252525;
    font-weight: 600;
}

.article-detail-sidebar {
    max-width: none;
    width: 100%;
}

.article-other-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.article-other-item {
    display: block;
    padding: 12px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
}

.article-other-item:hover h3 {
    color: var(--color-primary);
}

.article-other-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 195 / 186;
    max-height: 186px;
    border-radius: 20px;
    object-fit: cover;
    background-color: #FAFAFA;
    margin-bottom: 16px;
}

.article-other-thumb-empty {
    background: linear-gradient(135deg, #E5F1F0 0%, #F3F4F6 100%);
}

.article-other-body h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-title);
    transition: color 0.2s;
}

.article-other-body p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-page .blog-breadcrumbs-list {
    font-size: 12px;
    line-height: 18px;
}

.article-page .article-other-articles .blog-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 1100px) {
    .article-page-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar-stack {
        position: static;
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 640px) {
    .article-detail-title {
        font-size: 24px;
    }

    .article-other-list {
        grid-template-columns: 1fr;
    }
}

/* ── Consultation (legacy helpers) ── */
.consultation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
}

.phone-input-row {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.phone-input-row input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.4;
}

.privacy-check a { color: var(--color-primary); }

.btn-full { width: 100%; }

/* ── Chat widget (redesign) ── */
.chat-panel {
    width: 360px;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
}

.chat-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0;
}

.chat-agent {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-teal);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.chat-agent strong { font-size: 16px; }

.chat-agent p {
    font-size: 13px;
    color: var(--color-muted);
}

.chat-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
}

.chat-panel-subtitle {
    padding: 12px 20px 0;
    font-size: 14px;
    color: var(--color-muted);
}

.chat-panel-form {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-panel-form input[type="text"],
.chat-panel-form input[type="tel"] {
    width: 100%;
}

/* ── Property detail page ── */
.property-page {
    padding-top: 24px;
    padding-bottom: 48px;
}

.property-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}

.property-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 380px;
    gap: 40px 32px;
    align-items: start;
    margin-bottom: 28px;
}

.property-page-body {
    min-width: 0;
}

.property-page-agency {
    width: 380px;
    max-width: 100%;
    justify-self: end;
}

.property-page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.property-page-intro {
    min-width: 0;
}

.property-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-title);
    margin-bottom: 12px;
}

.property-page-title-text {
    min-width: 0;
}

.property-page-title-link {
    flex-shrink: 0;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.property-page-title-link:hover {
    opacity: 0.8;
}

.property-page-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 16px;
    max-width: 520px;
}

.property-page-address img {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.55;
}

.property-page-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.property-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.property-action-favorite {
    background: var(--color-call-bg);
    color: var(--color-primary);
}

.property-action-share {
    background: var(--color-write-bg);
    color: var(--color-accent-dark);
}

.property-page-price-block {
    text-align: left;
    flex-shrink: 0;
    min-width: 200px;
    padding-top: 4px;
}

.property-page-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-title);
    line-height: 1;
    margin-bottom: 8px;
    white-space: nowrap;
}

.property-page-price-value {
    font-size: inherit;
    font-weight: inherit;
}

.property-page-price-sqm {
    font-size: 16px;
    color: var(--color-muted);
    margin-bottom: 12px;
}

.property-currency-switcher {
    display: inline-flex;
    background: #ECEEF2;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.property-currency-switcher .currency-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title);
    cursor: pointer;
}

.property-currency-switcher .currency-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-radius: 50%;
}

.property-gallery-main-wrap {
    position: relative;
    display: grid;
    margin-bottom: 12px;
}

.property-gallery-main-wrap > .property-gallery-main {
    grid-area: 1 / 1;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.property-gallery-main-wrap > .gallery-fullscreen-btn,
.property-gallery-main-wrap > .gallery-nav-overlay {
    grid-area: 1 / 1;
    z-index: 2;
    pointer-events: auto;
}

.property-gallery-main-wrap > .gallery-fullscreen-btn {
    z-index: 3;
}

.property-gallery-main {
    height: 480px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
}

.property-gallery-placeholder {
    background: var(--color-bg-gray);
}

.gallery-fullscreen-btn {
    justify-self: end;
    align-self: start;
    margin: 16px 16px 0 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-title);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
}

.gallery-fullscreen-btn:hover {
    background: #fff;
}

/* Gallery lightbox */
body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 40px 40px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    cursor: pointer;
}

.gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1080px, 100%);
    max-height: calc(100vh - 96px);
}

.gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-title);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.gallery-lightbox-nav:hover {
    background: #fff;
}

.gallery-lightbox-prev {
    left: -64px;
}

.gallery-lightbox-next {
    right: -64px;
}

@media (max-width: 900px) {
    .gallery-lightbox-prev {
        left: 8px;
    }

    .gallery-lightbox-next {
        right: 8px;
    }
}

.gallery-nav-overlay {
    align-self: center;
    justify-self: start;
    margin-left: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-title);
}

.gallery-prev.gallery-nav-overlay { margin-left: 16px; }

.gallery-next.gallery-nav-overlay {
    justify-self: end;
    margin-right: 16px;
    margin-left: 0;
}

.lot-gallery .gallery-nav-overlay {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    color: var(--color-primary);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s, color 0.2s;
}

.lot-gallery .gallery-nav-overlay svg {
    display: block;
    flex-shrink: 0;
    opacity: 0.9;
}

.lot-gallery .gallery-nav-overlay:hover {
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transform: scale(1.04);
    color: #006B5F;
}

.lot-gallery .gallery-nav-overlay:hover svg {
    opacity: 1;
}

.lot-gallery .gallery-nav-overlay:active {
    transform: scale(0.98);
}

.property-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.property-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    flex-shrink: 0;
}

.property-gallery-thumb.active {
    border-color: var(--color-primary);
}

.property-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 20px;
}

.property-specs-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    margin-bottom: 32px;
}

.property-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.property-spec-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E5F1F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.property-spec-label {
    display: block;
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.property-spec-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title);
}

.property-description-section {
    margin-bottom: 28px;
}

.property-description-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
    word-break: break-word;
}

.property-description-text p {
    margin: 0 0 12px;
}

.property-description-text p:last-child {
    margin-bottom: 0;
}

.property-submit-request {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 52px;
    padding: 0 28px;
    margin-bottom: 32px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.property-submit-request:hover {
    opacity: 0.92;
}

.property-location-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.property-location-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.property-location-head .property-location-title {
    margin-bottom: 0;
    flex-shrink: 0;
}

.property-location-head .property-location-address {
    margin-bottom: 0;
    justify-content: flex-end;
    text-align: right;
    max-width: min(560px, 58%);
    min-width: 0;
}

.property-location-head .property-location-address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.property-location-address {
    margin-bottom: 16px;
}

.property-lot-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-muted);
}

.property-lot-meta span:not(:first-child)::before {
    content: ' · ';
}

.property-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 0 24px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.property-report-btn img {
    filter: brightness(0) invert(1);
}

.property-report-btn:hover {
    opacity: 0.92;
}

.property-map {
    height: 420px;
    border-radius: 12px;
    margin-top: 0;
    z-index: 1;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    background: #EEF2F6;
}

.property-map .leaflet-container {
    font-family: var(--font);
    border-radius: 12px;
}

.property-map .leaflet-control-attribution {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.88);
}

.map-marker-overlay {
    position: absolute;
    pointer-events: none;
}

.map-marker-overlay.map-search-marker {
    pointer-events: auto;
    cursor: pointer;
}

.map-search-marker .map-marker-pin {
    width: 22px;
    height: 22px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.map-search-marker .map-marker-house {
    width: 11px;
    height: 11px;
}

.map-search-marker .map-marker-tail {
    bottom: -4px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
}

.map-type-control {
    display: inline-flex;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.map-type-btn {
    border: none;
    background: #FFFFFF;
    color: #1F2937;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    cursor: pointer;
}

.map-type-btn + .map-type-btn {
    border-left: 1px solid #E5E7EB;
}

.map-type-btn.is-active {
    font-weight: 600;
}

.map-fullscreen-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 2px;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.map-marker-wrap {
    background: transparent;
    border: none;
}

.map-marker-pin {
    position: relative;
    width: 46px;
    height: 46px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.map-marker-house {
    width: 22px;
    height: 22px;
    background: url('/static/icons/home.svg') center / contain no-repeat;
    filter: brightness(0) invert(1);
}

.map-marker-pin--yellow {
    background: #F4C430;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.map-marker-pin--yellow .map-marker-house {
    filter: brightness(0) invert(1);
}

.map-marker-tail {
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid var(--color-primary);
}

.property-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 28px 0;
    font-size: 14px;
    color: var(--color-muted);
}

.similar-properties {
    margin-top: 12px;
}

.similar-properties-title {
    margin-bottom: 24px;
}

.property-page-sidebar {
    position: sticky;
    top: 24px;
}

.agency-card-inner {
    background: #F3F4F6;
    border-radius: 20px;
    padding: 24px;
}

.agency-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.agency-card-heading {
    flex: 1;
    min-width: 0;
}

.agency-card-chevron {
    flex-shrink: 0;
    opacity: 0.45;
}

.agency-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.agency-name {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.agency-label {
    font-size: 14px;
    color: var(--color-muted);
    margin-top: 2px;
}

.agency-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    container-type: inline-size;
}

.agency-actions-row .lead-result {
    grid-column: 1 / -1;
}

.agency-actions-row .lead-result:empty {
    display: none;
}

.agency-actions-row .btn-agency-write,
.agency-actions-row .btn-agency-call {
    width: 100%;
    min-width: 0;
}

.btn-favorite-page.active,
.property-action-favorite.active {
    background: var(--color-primary);
    color: #fff;
}

/* Header currency switcher — must stay flat (override page-level .currency-switcher) */
.header-currency-switcher {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 0;
    box-shadow: none;
}

.header-currency-switcher .currency-header-btn {
    box-shadow: none;
    filter: none;
}

.header-currency-switcher .currency-header-btn.header-pill {
    background: #FFFFFF;
}


.property-promo-inline {
    margin: 32px 0;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--gradient-teal);
    color: #FFFFFF;
    text-align: center;
}

.property-promo-inline h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.property-promo-inline p {
    margin-bottom: 16px;
    opacity: 0.9;
}

.report-link {
    color: var(--color-primary);
    text-decoration: none;
}

.btn-agency-write { width: 100%; }

.btn-agency-call {
    width: 100%;
    background: var(--color-primary) !important;
    color: #FFFFFF !important;
    justify-content: center;
}

.btn-agency-call img {
    filter: brightness(0) invert(1);
}

.search-map {
    height: 480px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    z-index: 1;
}

.auth-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-subtitle {
    color: var(--color-muted);
    margin-bottom: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input:not(.phone-field-input):not(.phone-field-search-input),
.auth-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
}

.auth-form textarea { min-height: 120px; resize: vertical; }

.auth-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-muted);
}

@media (max-width: 1100px) {
    .property-page-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .property-page-agency {
        width: 100%;
        justify-self: stretch;
    }

    .property-page-layout { grid-template-columns: 1fr; }
    .property-page-sidebar { order: -1; }
    .agency-card-inner { position: static; }
    .property-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .property-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .consultation-panel { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }

    .consultation-form-row { grid-template-columns: 1fr; }
    .footer-bar {
        flex-wrap: wrap;
    }
    .footer-nav-list {
        justify-content: flex-start;
        gap: 8px 20px;
    }
    .articles-home-layout { grid-template-columns: 1fr; }

    .article-featured,
    .article-featured-link { min-height: 320px; }
    .listing-promo {
        flex-direction: column;
        align-items: flex-start;
        min-height: 240px;
        padding: 32px 24px;
    }
    .listing-promo-content { max-width: 100%; flex-basis: auto; }
    .listing-promo-visual { width: 100%; max-width: 360px; margin: 8px auto 0; }
    .listing-promo-circles { right: 50%; transform: translate(50%, -50%); opacity: 0.6; }
    .listing-promo-card { right: 50%; transform: translateX(50%); }
}

@media (max-width: 900px) {
    .header-right { grid-column: 2; grid-row: 1; }
    .property-page-top { flex-direction: column; }
    .property-page-price-block { text-align: left; }
    .property-specs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chat-panel { width: calc(100vw - 48px); }
    .hero-filter-row { display: none; }
    .hero-filter-row.filters-expanded { display: flex; flex-direction: column; align-items: stretch; }
    .hero-search--bar .hero-search-bar-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

/* ── Property card menu ── */
.property-menu-wrap { position: relative; }

.property-menu-item img,
.property-menu-item-icon {
    flex-shrink: 0;
    width: calc(20px * var(--page-scale));
    height: calc(20px * var(--page-scale));
    display: block;
}

/* ── Lead modal ── */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lead-modal[hidden] { display: none; }
.lead-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.lead-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: min(440px, calc(100vw - 32px));
    z-index: 1;
}
.lead-modal-dialog h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.lead-modal-subtitle { color: var(--color-muted); margin-bottom: 20px; }
.lead-modal-dialog input[type="text"],
.lead-modal-dialog input[type="tel"]:not(.phone-field-input):not(.phone-field-search-input) {
    width: 100%;
    height: 48px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    margin-bottom: 12px;
    font-family: var(--font);
}
.lead-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
}
.lead-modal-dialog form .btn-search.btn-full {
    margin-top: 32px;
}
.phone-error { color: #DC2626; font-size: 13px; margin: -8px 0 12px; }
.lead-result { width: 100%; font-size: 14px; color: var(--color-primary); }

/* ── Agency card enhanced ── */
.agency-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}
.agency-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}
.agency-verified {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    background: #E5F1F0;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
}
.agency-agent { font-size: 14px; color: var(--color-muted); margin-bottom: 16px; }

.gallery-counter {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0;
}

.gallery-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 8px 0;
}

.gallery-nav.gallery-nav-overlay {
    position: static;
    width: 44px;
    height: 44px;
    border: none;
    padding: 0;
}

.gallery-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover { border-color: var(--color-primary); color: var(--color-primary); }

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ── Search modal ── */
.search-modal {
    --search-modal-scale: min(1, 100vw / 1440px);
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px * var(--search-modal-scale)) calc(16px * var(--search-modal-scale));
}

.search-modal[hidden] { display: none; }

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.search-modal-shell {
    position: relative;
    width: 960px;
    z-index: 1;
    zoom: var(--search-modal-scale);
}

.search-modal-close {
    position: absolute;
    top: -18px;
    right: -26px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.search-modal-close:hover {
    background: #F3F4F6;
}

.search-modal-dialog {
    background: #FFFFFF;
    border-radius: 32px;
    overflow: hidden;
    max-height: min(calc(90vh / var(--search-modal-scale)), 860px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.search-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 32px 20px;
    flex-shrink: 0;
}

.search-modal-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-title);
    margin: 0;
}

.search-modal-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    color: #DC2626;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
}

.search-modal-clear:hover { opacity: 0.85; }

.search-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 32px 24px;
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
}

.search-modal-body::-webkit-scrollbar {
    width: 6px;
}

.search-modal-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 999px;
}

.search-modal-query-wrap {
    position: relative;
    margin-bottom: 24px;
}

.search-modal-query {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    outline: none;
}

.search-modal-query:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.search-modal-query-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.45;
    pointer-events: none;
}

.search-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.search-modal-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    min-width: 0;
}

.search-modal-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.search-modal-field-full {
    grid-column: 1 / -1;
}

.search-modal-field-type .search-type-chips {
    flex-wrap: wrap;
}

.search-modal-field-type .search-type-chip {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
}

.search-modal-field-price {
    gap: 10px;
}

.search-modal-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
}

.search-modal-price-head .search-modal-label {
    margin: 0;
    flex-shrink: 0;
}

.search-modal-field-price .search-modal-currency {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin: 0;
    flex-shrink: 0;
}

.search-modal-field-price .search-currency-btn {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-title);
}

.search-modal-field-price .search-currency-btn.is-active {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-modal-price-range {
    margin-top: 2px;
}

.search-modal-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-title);
}

.search-modal-select-wrap {
    position: relative;
}

.search-modal-select,
.search-modal-input {
    width: 100%;
    height: 48px;
    padding: 0 40px 0 16px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.search-modal-input {
    padding: 0 16px;
}

.search-modal-select:focus,
.search-modal-input:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.search-modal-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.45;
    transition: transform 0.2s ease;
}

.search-modal-grid .custom-select .custom-select-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 40px 0 16px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.search-modal-grid .custom-select-locked .custom-select-trigger,
.search-modal-grid .custom-select-locked .custom-select-dropdown,
.search-modal-grid .custom-select-locked select.custom-select-native {
    pointer-events: none;
}

.search-modal-grid .custom-select-locked .custom-select-trigger:disabled {
    cursor: default;
    opacity: 1;
    color: var(--color-text);
}

.search-modal-grid .custom-select-locked .custom-select-label {
    color: var(--color-text);
}

.search-modal-grid .custom-select-locked .search-modal-select-icon {
    opacity: 0.35;
}

.search-modal-grid .custom-select .custom-select-label {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.search-modal-grid .custom-select .custom-select-trigger:focus-visible {
    border: none;
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.search-modal-grid .custom-select.is-open .search-modal-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.search-modal-grid .custom-select-dropdown {
    top: calc(100% + 6px);
    border: none;
    border-radius: 12px;
    padding: 8px 12px 12px;
    max-height: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 30;
}

.search-modal-grid .custom-select.has-select-search .custom-select-dropdown {
    max-height: 320px;
}

.search-modal-grid .custom-select.is-open {
    z-index: 40;
}

.search-modal-grid .custom-select-option-parent {
    font-weight: 700;
    color: var(--color-title);
}

.search-modal-field-type .search-type-chips {
    display: flex;
    gap: 8px;
}

.search-modal-field-type .search-type-chip {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 8px;
    font-size: 14px;
}

.search-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-type-chip {
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.search-type-chip.is-active {
    background: var(--color-primary);
    color: #FFFFFF;
}

.search-modal-currency {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.search-currency-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.search-currency-btn.is-active {
    background: var(--color-primary);
    color: #FFFFFF;
}

.search-modal-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.search-modal-advantages {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.search-modal-advantages-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-title);
    margin: 0 0 16px;
}

.search-advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
}

.search-advantage {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color-text);
}

.search-advantage input {
    margin-top: 1px;
}

.search-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 32px 28px;
    flex-shrink: 0;
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
}

.search-modal-footer.is-category-results .search-modal-map {
    display: none;
}

.search-modal-footer.is-category-results .search-modal-submit {
    flex: 1 1 auto;
}

.search-modal-submit,
.search-modal-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.search-modal-submit {
    background: var(--color-primary);
    color: #FFFFFF;
}

.search-modal-submit img {
    filter: brightness(0) invert(1);
}

.search-modal-map {
    background: var(--color-accent);
    color: #000000;
}

.search-modal-submit:hover:not(:disabled):not([aria-disabled="true"]),
.search-modal-map:hover:not([aria-disabled="true"]):not(.is-disabled) {
    opacity: 0.92;
}

.search-modal-submit:disabled,
.search-modal-submit[aria-disabled="true"],
.search-modal-map[aria-disabled="true"],
.search-modal-map.is-disabled {
    background: var(--btn-primary-bg-disabled);
    color: var(--btn-primary-text-disabled);
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.search-modal-submit:disabled img,
.search-modal-submit[aria-disabled="true"] img,
.search-modal-map[aria-disabled="true"] img,
.search-modal-map.is-disabled img {
    filter: none;
    opacity: 0.45;
}

body.search-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .search-modal {
        --search-modal-scale: 1;
        padding: 16px;
    }

    .search-modal-shell {
        width: 100%;
        zoom: 1;
    }

    .search-modal-dialog {
        max-height: min(90vh, 860px);
    }

    .search-modal-grid {
        grid-template-columns: 1fr;
    }

    .search-modal-row {
        grid-template-columns: 1fr;
    }

    .search-modal-field-full {
        grid-column: auto;
    }

    .search-advantages-grid {
        grid-template-columns: 1fr;
    }

    .search-modal-header,
    .search-modal-body,
    .search-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .search-modal-close {
        top: -12px;
        right: -10px;
    }

    .search-modal-footer {
        flex-direction: column;
    }

    .search-modal-submit,
    .search-modal-map {
        width: 100%;
    }
}

/* ── Auth modal (login / registration / recovery) ── */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.auth-modal-shell {
    position: relative;
    width: min(480px, 100%);
    z-index: 1;
}

.auth-modal-close {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s;
}

.auth-modal-close:hover {
    background: #F3F4F6;
}

.auth-modal-dialog {
    background: #FFFFFF;
    border-radius: 32px;
    padding: 32px 40px 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}

.auth-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-panel-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

.auth-panel-switch {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.35em;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #000000;
    text-align: right;
    white-space: nowrap;
}

.auth-switch-link {
    display: inline;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    vertical-align: baseline;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.auth-switch-link:hover {
    opacity: 0.85;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.auth-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
}

.auth-input {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    padding: 0 14px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    outline: none;
}

.auth-input::placeholder {
    color: #9CA3AF;
}

.auth-input:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 116, 105, 0.35);
}

.auth-password-wrap {
    position: relative;
    display: block;
}

.auth-input-password {
    padding-right: 88px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
}

.auth-password-toggle svg {
    flex-shrink: 0;
}

.auth-phone-wrap {
    display: flex;
    align-items: stretch;
    background: #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
}

.auth-phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 10px 0 12px;
    border: none;
    border-right: 1px solid #E5E7EB;
    background: transparent;
    flex-shrink: 0;
    cursor: pointer;
}

.auth-phone-input {
    border-radius: 0;
    background: transparent;
    padding-left: 12px;
}

.auth-select-wrap {
    position: relative;
    display: block;
}

.auth-select-wrap select.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.auth-select {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.auth-select-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.auth-select-wrap.custom-select.is-open .auth-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.auth-select-wrap.custom-select .custom-select-trigger {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 14px;
    border: none;
    border-radius: 12px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    box-shadow: none;
}

.auth-select-wrap.custom-select .custom-select-trigger:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(0, 116, 105, 0.35);
}

.auth-select-wrap.custom-select .custom-select-dropdown {
    top: calc(100% + 6px);
    padding: 8px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: none;
    overflow-y: auto;
}

.auth-select-wrap.custom-select .custom-select-options {
    gap: 2px;
}

.auth-role-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #000929;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-role-option:hover {
    background: #F3F4F6;
    color: #000929;
}

.auth-role-option.is-active {
    background: #E6F4F2;
    color: #000929;
    font-weight: 500;
}

.auth-role-option-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #007469;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    line-height: 18px;
    text-align: center;
}

.auth-role-option-label {
    min-width: 0;
}

.auth-panel[data-auth-panel="register"] .auth-select-wrap.custom-select .custom-select-trigger {
    height: 40px;
    font-size: 13px;
}

.auth-panel[data-auth-panel="register"] .auth-role-option {
    font-size: 13px;
    padding: 7px 8px;
}

.auth-forgot-wrap {
    margin-top: -8px;
    text-align: right;
}

.auth-forgot-link {
    border: none;
    background: none;
    padding: 0;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    height: 44px;
    margin-top: 2px;
    border: none;
    border-radius: 14px;
    background: var(--color-primary) var(--gradient-teal);
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.auth-submit-btn:hover:not(:disabled) {
    background: var(--color-primary);
}

.auth-submit-btn:disabled {
    background: #D1D5DB;
    color: #000929;
    cursor: not-allowed;
    opacity: 1;
}

.auth-password-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-password-block[hidden] {
    display: none !important;
}

.auth-mode-link {
    display: block;
    width: 100%;
    margin: 0;
    border: none;
    background: none;
    padding: 4px 0 0;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #374151;
    text-align: center;
    cursor: pointer;
}

.auth-mode-link:hover {
    color: var(--color-primary);
}

.auth-panel[data-auth-panel="register"] .auth-password-block {
    gap: 12px;
}

.auth-panel[data-auth-panel="register"] .auth-mode-link {
    font-size: 13px;
}

.auth-recovery-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-back-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-back-btn:hover {
    background: #F3F4F6;
}

.auth-recovery-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #4B5563;
    margin-bottom: 20px;
}

.auth-link-action {
    font-size: 14px;
    line-height: 1.5;
    color: #4B5563;
    margin: 0;
}

.auth-panel[data-auth-panel="recovery"] .auth-recovery-head {
    gap: 10px;
    margin-bottom: 8px;
}

.auth-panel[data-auth-panel="recovery"] .auth-panel-title {
    font-size: 22px;
}

.auth-panel[data-auth-panel="recovery"] .auth-back-btn {
    width: 28px;
    height: 28px;
}

.auth-panel[data-auth-panel="recovery"] .auth-recovery-subtitle {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.auth-panel[data-auth-panel="recovery"] .auth-form {
    gap: 12px;
}

.auth-panel[data-auth-panel="recovery"] .auth-field {
    gap: 5px;
}

.auth-panel[data-auth-panel="recovery"] .auth-label {
    font-size: 13px;
}

.auth-panel[data-auth-panel="recovery"] .auth-input,
.auth-panel[data-auth-panel="recovery"] .auth-submit-btn {
    height: 40px;
    font-size: 13px;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-form-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-form-message.is-error {
    background: #FEE2E2;
    color: #B91C1C;
}

.auth-form-message.is-success {
    background: #E5F1F0;
    color: #065B52;
}

.header-auth-wrap {
    display: inline-flex;
    align-items: center;
}

.header-profile-link {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    border: 1px solid #E8E8E8;
    border-radius: 100px;
    background: #007469;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
    transition: background 0.2s ease;
}

.header-profile-link:hover {
    background: var(--btn-primary-bg-hover);
}

.header-profile-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.header-profile-link[hidden],
.header-login-btn[hidden],
.header-auth-pending .header-login-btn {
    display: none !important;
}

.header-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 100px;
    background: #FFFFFF;
    overflow: hidden;
}

.header-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.header-profile-avatar-img[hidden] {
    display: none;
}

[data-avatar-image][hidden],
[data-avatar-placeholder][hidden] {
    display: none;
}

.header-profile-avatar.has-photo .header-profile-initials {
    display: none;
}

.header-profile-initials {
    font-weight: 600;
    color: #007469;
    letter-spacing: -0.02em;
}

.header-profile-name {
    display: none;
}

.auth-reset-page {
    padding-top: 40px;
    background: var(--color-bg-gray);
    min-height: calc(100vh - 72px);
}

.auth-reset-container {
    display: flex;
    justify-content: center;
}

.auth-reset-card {
    width: min(100%, 520px);
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.auth-reset-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-reset-subtitle {
    color: var(--color-muted);
    margin-bottom: 24px;
}

.auth-back-login {
    display: inline-block;
    margin-top: 16px;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 640px) {
    .auth-modal-dialog {
        padding: 32px 24px 36px;
        border-radius: 28px;
    }

    .auth-modal-close {
        top: -22px;
        right: -16px;
    }

    .auth-panel-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .auth-panel-switch {
        justify-content: flex-start;
        text-align: left;
        white-space: normal;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-panel-title {
        font-size: 22px;
    }

    .auth-mode-link {
        min-height: 44px;
        padding: 10px 8px 0;
    }
}

/* ── Search results page ── */
.search-results-page {
    background: #FFFFFF;
    padding-top: 24px;
    padding-bottom: 48px;
}

.search-results-layout {
    --search-sidebar-scale: min(1, 100vw / 1440px);
    display: grid;
    grid-template-columns: calc(280px * var(--search-sidebar-scale)) minmax(0, 1fr);
    gap: calc(24px * var(--search-sidebar-scale));
    align-items: start;
    max-width: 1320px;
    margin: 0 auto;
}

.search-results-sidebar {
    --search-sidebar-scale: min(1, 100vw / 1440px);
    --search-filter-control-height: 40px;
    position: sticky;
    top: 24px;
    width: 280px;
    max-height: calc((100vh - 48px) / var(--search-sidebar-scale));
    overflow-y: auto;
    padding-right: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    zoom: var(--search-sidebar-scale);
}

.search-results-sidebar:has(.hero-price-wrap.is-open) {
    overflow: visible;
}

.search-results-sidebar::-webkit-scrollbar {
    display: none;
}

.search-results-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-title);
    margin: 0 0 16px;
}

.search-results-main > .search-results-count {
    display: none;
}

.search-mobile-sort {
    --search-sort-height: var(--search-filter-control-height);
    display: none;
    margin-bottom: 16px;
}

.search-results-view-toggle {
    display: flex;
    gap: 0;
    padding: 3px;
    margin-bottom: 18px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
}

.search-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: transparent;
    color: var(--color-subtle);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    flex: 1;
}

.search-view-btn img,
.search-view-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-view-btn.is-active {
    background: #E5F1F0;
    color: var(--color-primary);
    font-weight: 600;
}

.search-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 22px;
}

.search-filters-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-title);
}

.search-filters-title img {
    width: 16px;
    height: 16px;
}

.search-filters-reset {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.search-filters-reset:hover {
    text-decoration: underline;
}

.search-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.search-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-title);
}

.search-filter-select-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.search-filters-form .hero-select-wrap,
.search-modal-filters .hero-select-wrap {
    flex: none;
    min-width: 0;
}

.search-filters-form .hero-select,
.search-modal-filters .hero-select {
    height: var(--search-filter-control-height, 40px);
    padding: 0 34px 0 12px;
    border-radius: 10px;
    font-size: 14px;
}

.search-filters-form [data-custom-select]:has(.custom-select-trigger) > select.hero-select,
.search-modal-filters [data-custom-select]:has(.custom-select-trigger) > select.hero-select,
.search-filters-form select.hero-select.custom-select-native,
.search-modal-filters select.hero-select.custom-select-native {
    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;
    opacity: 0 !important;
    pointer-events: none !important;
}

.search-filters-form [data-custom-select],
.search-modal-filters [data-custom-select] {
    min-height: var(--search-filter-control-height, 40px);
}

.search-filters-form [data-custom-select-multi]:not(:has(> .custom-select-trigger)) > select.hero-select {
    display: none;
}

.search-filters-form .custom-select-trigger,
.search-modal-filters .custom-select-trigger,
.search-filters-form [data-custom-select-multi]:not(:has(> .custom-select-trigger))::before {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: var(--search-filter-control-height, 40px);
    padding: 0 34px 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
}

.search-filters-form [data-custom-select-multi]:not(:has(> .custom-select-trigger))::before {
    content: attr(data-select-placeholder);
    background: #FFFFFF;
    color: #6B7280;
    font-weight: 500;
}

.search-filters-form [data-custom-select-multi]:has(> select option:checked):not(:has(> .custom-select-trigger))::before {
    content: "";
}

.search-filters-form .custom-select-label,
.search-modal-filters .custom-select-label {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-filters-form .custom-select-trigger:focus-visible,
.search-modal-filters .custom-select-trigger:focus-visible {
    border-color: var(--color-primary);
}

.search-filters-form .hero-select-icon,
.search-modal-filters .hero-select-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
    z-index: 2;
}

.search-filters-form .custom-select.is-open .hero-select-icon,
.search-modal-filters .custom-select.is-open .hero-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.search-filters-form .custom-select-dropdown,
.search-modal-filters .custom-select-dropdown {
    top: calc(100% + 6px);
    border-radius: 12px;
    padding: 8px 12px 12px;
    max-height: 320px;
    z-index: 60;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.search-filters-form .custom-select-group-label,
.search-modal-filters .custom-select-group-label {
    font-size: 14px;
    padding-top: 8px;
}

.search-filters-form .custom-select-option,
.search-modal-filters .custom-select-option {
    font-size: 14px;
    padding: 8px 0;
}

.search-filters-form .custom-select-option.custom-select-option-nested,
.search-modal-filters .custom-select-option.custom-select-option-nested,
.search-modal-grid .custom-select-option.custom-select-option-nested {
    font-size: 14px;
    padding: 6px 0 6px 12px;
}

.search-filters-form .custom-select-option-parent,
.search-modal-filters .custom-select-option-parent {
    font-weight: 700;
    color: var(--color-title);
}

.search-filter-district-wrap.custom-select.is-open .hero-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.search-modal-district-wrap .custom-select-option-parent {
    font-weight: 700;
    color: var(--color-title);
}

.search-filters-form .custom-select-reset,
.search-modal-filters .custom-select-reset {
    font-size: 13px;
}

.search-filters-form .custom-select.is-open,
.search-modal-filters .custom-select.is-open {
    z-index: 20;
}

.search-modal-filters {
    margin-top: 12px;
}

.search-modal-filters .search-advantage {
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.search-modal-filters .search-advantage input {
    margin-top: 1px;
}

.search-filter-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    outline: none;
}

.search-filter-input:focus {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.search-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.search-filter-chip {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #F3F4F6;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.search-filter-chip.is-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #FFFFFF;
    font-weight: 500;
}

.search-filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.search-filter-advantages {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #E5E7EB;
}

.search-filter-advantages-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-title);
    margin: 0 0 8px;
}

.search-advantages-grid-sidebar {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.search-filters-form .search-advantage {
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.search-filters-form .search-advantage input {
    margin-top: 1px;
}

.search-filter-field-price .search-modal-price-head {
    margin-bottom: 6px;
}

.search-filter-field-price .search-filter-currency {
    margin-bottom: 0;
    gap: 6px;
}

.search-filter-field-price .search-currency-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
}

.search-results-main {
    min-width: 0;
}

.search-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.search-sort-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 220px;
}

.search-sort-wrap.custom-select .custom-select-trigger {
    flex: 1 1 auto;
    min-width: 220px;
    width: auto;
    height: var(--search-sort-height, 34px);
    padding: 0 30px 0 10px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: none;
}

.search-sort-wrap.custom-select .custom-select-trigger:focus-visible {
    border-color: #BFDBFE;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.search-sort-wrap.custom-select .custom-select-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    width: 100%;
    min-width: 220px;
    box-sizing: border-box;
    padding: 8px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: none;
    overflow-y: auto;
}

.search-sort-wrap.custom-select .custom-select-options {
    gap: 0;
}

.search-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: none;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #000929;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-sort-option:hover {
    background: #F9FAFB;
    color: #000929;
}

.search-sort-option.is-active {
    font-weight: 500;
    color: #000929;
}

.search-sort-option-label {
    min-width: 0;
}

.search-sort-option-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0;
    visibility: hidden;
}

.search-sort-option.is-active .search-sort-option-check {
    opacity: 1;
    visibility: visible;
}

.search-sort-select {
    width: 100%;
    height: var(--search-sort-height, 34px);
    padding: 0 30px 0 6px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
}

.search-sort-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.45;
    transition: transform 0.2s ease;
}

.search-sort-wrap.custom-select.is-open .search-sort-icon {
    transform: translateY(-50%) rotate(180deg);
}

.search-card-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    background: #FFFFFF;
}

.search-card-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    background: transparent;
    color: var(--color-subtle);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.search-card-view-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-card-view-btn.is-active {
    background: #E5F1F0;
    color: var(--color-primary);
    font-weight: 600;
}

.property-grid-search {
    --search-card-scale: min(1, 100vw / 1440px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(20px * var(--search-card-scale)) calc(24px * var(--search-card-scale));
}

.property-grid-search .property-title {
    font-size: 20px;
}

.property-grid-search .property-price {
    font-size: 20px;
}

.property-grid-search.property-grid-search-list {
    grid-template-columns: 1fr;
    gap: calc(30px * var(--search-card-scale));
}

.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding-bottom: 10px;
}

.search-map-cards-scroll .search-pagination {
    margin-top: 16px;
    padding: 0 4px 10px;
}

.search-pagination-bar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 100%);
    box-shadow: 0 4px 16px rgba(0, 41, 41, 0.05);
}

.search-pagination-arrow,
.search-pagination-page,
.search-pagination-ellipsis {
    flex-shrink: 0;
}

.search-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #FFFFFF;
    color: var(--color-primary);
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-pagination-arrow svg {
    width: 16px;
    height: 16px;
}

.search-pagination-arrow:hover {
    background: var(--color-call-bg);
    border-color: rgba(0, 116, 105, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 116, 105, 0.1);
}

.search-pagination-arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    box-shadow: none;
}

.search-pagination-pages {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0 2px;
    min-width: 0;
}

.search-pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-subtle);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.search-pagination-page:hover {
    background: var(--color-call-bg);
    color: var(--color-primary);
    border-color: rgba(0, 116, 105, 0.12);
}

.search-pagination-page.is-active {
    background: var(--gradient-teal);
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 116, 105, 0.22);
    transform: translateY(-1px);
}

.search-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 32px;
    color: #9CA3AF;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    user-select: none;
}

/* Search list view cards */
.property-card-list {
    position: relative;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #FFFFFF;
}

.property-card-list-media {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.property-card-list-main-link {
    display: block;
    text-decoration: none;
}

.property-card-list-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #E5F1F0;
}

.property-card-list-main .property-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.property-card-list-main .property-badge-hot {
    top: calc(8px * var(--page-scale));
    left: calc(8px * var(--page-scale));
}

.property-card-list-main:hover .property-badge-hot,
.property-card-list-main .property-badge-hot:hover,
.property-card-list-main .property-badge-hot:focus-visible {
    width: auto;
    max-width: var(--badge-hot-max);
    min-width: var(--badge-hot-size);
    gap: var(--badge-hot-gap);
    padding: 0 var(--badge-hot-pad-end) 0 var(--badge-hot-pad-start);
    border-radius: 999px;
}

.property-card-list-main:hover .property-badge-hot-text,
.property-card-list-main .property-badge-hot:hover .property-badge-hot-text,
.property-card-list-main .property-badge-hot:focus-visible .property-badge-hot-text {
    opacity: 1;
    visibility: visible;
    width: auto;
    max-width: var(--badge-hot-text-max);
    transition: opacity 0.2s ease 0.05s, max-width 0.25s ease, visibility 0s;
}

.property-card-list-thumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.property-card-list-thumbs::-webkit-scrollbar {
    height: 4px;
}

.property-card-list-thumbs::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.property-card-list-thumb {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #E5E7EB;
}

.property-card-list-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.property-card-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.property-card-list-head .property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-title);
    line-height: 1.2;
}

.property-card-list-actions-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.property-favorite-inline {
    position: static;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.property-card-list-body-link {
    text-decoration: none;
    color: inherit;
}

.property-card-list .property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.property-card-list-specs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 12px 0;
    padding: 12px 0;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
}

.property-card-list-specs span {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
}

.property-card-list-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-list-footer {
    margin-top: auto;
    justify-content: flex-end;
}

.property-card-list-footer .btn-call {
    order: 1;
}

.property-card-list-footer .btn-write {
    order: 2;
}

.search-empty-state {
    grid-column: 1 / -1;
}

.search-alternatives {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.search-alternatives .property-section-title {
    margin: 0;
}

.search-alternatives-note,
.search-alternatives-adjustments {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.search-alternatives-adjustments {
    padding-left: 20px;
}

.search-map-results {
    height: 640px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ── Search map view (map + property panel) ── */
html:has(.search-results-page--map),
body:has(.search-results-page--map) {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(.search-results-page--map)::-webkit-scrollbar,
body:has(.search-results-page--map)::-webkit-scrollbar {
    display: none;
}

body:has(.search-results-page--map) .site-footer {
    display: none;
}

body:has(.search-results-page--map) .main-content {
    overflow: hidden;
}

#search-results-shell.htmx-swapping {
    opacity: 0.55;
    transition: opacity 0.12s ease;
    pointer-events: none;
}

.search-results-page--map {
    padding: 0;
    margin: 0;
    background: transparent;
    height: calc(100vh - 72px);
    min-height: calc(100vh - 72px);
}

.search-map-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.search-map-stage {
    position: relative;
    order: 2;
    flex: 1;
    min-width: 0;
    z-index: 0;
    background: #D1D5DB;
}

.search-map-stage .search-map {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    border-radius: 0;
    z-index: 1;
}

.search-map-panel {
    --search-map-panel-scale: min(1, 100vw / 1440px);
    position: relative;
    order: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 0 0 526px;
    width: 526px;
    max-width: none;
    padding: 24px 28px;
    min-height: calc((100vh - 72px) / var(--search-map-panel-scale));
    max-height: calc((100vh - 72px) / var(--search-map-panel-scale));
    background: #FFFFFF;
    border-top-right-radius: 40px;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    zoom: var(--search-map-panel-scale);
}

.search-map-panel-head {
    flex-shrink: 0;
    margin-bottom: clamp(8px, calc(100vw * 34 / 1440), 34px);
}

.search-map-panel .search-results-view-toggle {
    margin-bottom: 0;
}

.search-map-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.search-map-panel-toolbar .search-sort-wrap {
    flex: 1;
    min-width: 0;
}

.search-map-panel-toolbar .search-sort-wrap.custom-select .custom-select-trigger {
    height: 44px;
    min-height: 44px;
    padding: 0 36px 0 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    box-sizing: border-box;
}

.search-map-filters-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-sizing: border-box;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    flex-shrink: 0;
    white-space: nowrap;
}

.search-map-filters-btn:hover {
    background: #F9FAFB;
}

.search-map-cards-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 4px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-map-note {
    flex-shrink: 0;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 13px;
}

.search-map-popup {
    display: grid;
    gap: 12px;
    max-height: 240px;
    overflow-y: auto;
    overflow-wrap: anywhere;
    font-family: var(--font);
}

.search-map-popup-property {
    display: grid;
    gap: 6px;
}

.search-map-popup-title {
    font-weight: 700;
}

.search-map-popup-viewed {
    color: var(--color-muted);
    font-size: 12px;
}

.search-map-popup-show-card {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
}

.map-search-marker-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    padding: 2px 4px;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--color-title);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.search-map-cards-scroll::-webkit-scrollbar {
    display: none;
}

.search-map-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.search-map-cards-grid .search-empty-state {
    grid-column: 1 / -1;
}

/* Map property cards */
.property-card-map {
    min-width: 0;
    max-width: 100%;
    position: relative;
    padding: 8px;
    border-radius: 24px;
    transition: box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.search-map-cards-grid:has(.property-card-map.is-highlighted) .property-card-map:not(.is-highlighted) {
    opacity: 0.65;
}

.property-card-map.is-highlighted {
    background: rgba(229, 241, 240, 0.98);
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    z-index: 1;
    opacity: 1 !important;
}

.property-card-map-image-link {
    display: block;
    text-decoration: none;
    margin-bottom: 8px;
}

.property-card-map-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
}

.property-card-map-image .property-image-placeholder {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.property-card-map-image .property-favorite {
    top: calc(8px * var(--page-scale));
    right: calc(8px * var(--page-scale));
    width: var(--favorite-btn-size);
    height: var(--favorite-btn-size);
}

.property-card-map-image .property-badge-hot {
    top: calc(8px * var(--page-scale));
    left: calc(8px * var(--page-scale));
    width: var(--badge-hot-size);
    min-width: var(--badge-hot-size);
    max-width: var(--badge-hot-size);
    height: var(--badge-hot-size);
}

.property-card-map-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.property-card-map-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.property-card-map-top .property-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.2;
}

.property-card-map-icons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.property-map-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.property-card-map-body-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.property-card-map .property-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-title);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-map .property-address-compact {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.property-meta-map {
    gap: 8px;
    margin-top: 4px;
}

.property-meta-map span {
    font-size: 12px;
    gap: 4px;
}

.property-meta-map img {
    width: 14px !important;
    height: 14px !important;
}

/* Leaflet house markers */
.map-house-marker {
    background: none !important;
    border: none !important;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.map-house-marker-img {
    display: block;
    width: 24px;
    height: 35px;
    transform-origin: center bottom;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.22));
    transition: transform 0.18s ease, filter 0.18s ease;
}

.map-house-marker:hover {
    z-index: 900 !important;
}

.map-house-marker:hover .map-house-marker-img {
    transform: scale(1.2);
    filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.3));
}

.map-house-marker.is-active {
    z-index: 1000 !important;
}

.map-search-marker.is-active .map-marker-pin {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 116, 105, 0.35));
}

.map-search-marker.is-visited .map-marker-pin {
    background: var(--color-muted);
}

.map-search-marker.is-visited .map-marker-tail {
    border-top-color: var(--color-muted);
}

.map-house-marker.is-active .map-house-marker-img {
    transform: scale(1.22);
    filter: drop-shadow(0 0 0 3px rgba(15, 23, 42, 0.55)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.28));
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 4px 8px 8px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18) !important;
}

.leaflet-popup-content {
    margin: 10px 12px !important;
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    html:has(.search-results-page--map),
    body:has(.search-results-page--map) {
        overflow-y: auto;
    }

    .search-results-page--map {
        height: auto;
        min-height: 0;
    }

    .search-map-shell {
        flex-direction: column;
        height: auto;
    }

    .search-map-stage {
        position: relative;
        order: 1;
        flex: 0 0 clamp(220px, 40dvh, 400px);
    }

    .search-map-panel {
        --search-map-panel-scale: 1;
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - var(--site-header-sticky-offset) - var(--mobile-tabbar-height, 0px) - env(safe-area-inset-bottom, 0px));
        min-height: 360px;
        zoom: 1;
        border-top-right-radius: 0;
        border-bottom: 1px solid #E5E7EB;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }
}

@media (max-width: 640px) {
    .search-pagination-bar {
        width: 100%;
        justify-content: center;
        padding: 3px;
    }

    .search-pagination-arrow,
    .search-pagination-page {
        width: 30px;
        min-width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .search-pagination-ellipsis {
        width: 18px;
        height: 30px;
        font-size: 14px;
    }

    .search-map-panel {
        padding: 16px;
    }

    .search-map-cards-grid {
        grid-template-columns: 1fr;
    }

    .search-map-panel-toolbar {
        gap: 8px;
    }

    .search-map-filters-btn {
        padding: 0 12px;
    }
}

@media (max-width: 1100px) {
    .search-results-layout {
        grid-template-columns: 1fr;
    }

    .search-mobile-sort {
        display: block;
    }

    .search-results-toolbar > .search-sort-wrap {
        display: none;
    }

    .search-results-sidebar {
        --search-sidebar-scale: 1;
        position: static;
        width: auto;
        max-height: none;
        zoom: 1;
    }

    .property-grid-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-card-list {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .search-results-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-sort-wrap {
        width: 100%;
    }

    .search-card-view-toggle {
        width: 100%;
    }

    .search-card-view-btn {
        flex: 1;
        justify-content: center;
    }

    .property-grid-search {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .property-card-list {
        padding: 12px;
    }

    .property-card-list-media {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .property-card-list-main {
        aspect-ratio: 1;
    }

    .property-card-list-thumbs,
    .property-card-list-desc {
        display: none;
    }

    .property-card-list-body {
        display: contents;
    }

    .property-card-list-head {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        gap: 4px;
        margin-bottom: 0;
    }

    .property-card-list-head .property-price {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .property-card-list-body-link {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
    }

    .property-card-list .property-title {
        -webkit-line-clamp: 2;
        overflow-wrap: anywhere;
    }

    .property-card-list .property-address {
        font-size: 13px;
    }

    .property-card-list-specs {
        grid-column: 1 / -1;
        grid-row: 3;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        margin: 0;
        padding: 8px 0;
    }

    .property-card-list-specs span {
        flex: 1 1 calc(50% - 4px);
        justify-content: flex-start;
        overflow-wrap: anywhere;
    }

    .property-card-list-footer {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 0;
    }
}

/* ── Complex detail page ── */
.complex-page {
    padding-top: 24px;
    padding-bottom: 48px;
    font-family: "Inter", Helvetica, Arial, sans-serif;
}

.complex-page-layout {
    max-width: 100%;
}

.complex-page-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-top: 30px;
    margin-bottom: 24px;
}

.complex-page-intro {
    min-width: 0;
    flex: 1;
}

.complex-page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 33.6px;
    color: #000000;
    margin-bottom: 0;
}

.complex-page-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    color: #000000;
    margin: 0;
    max-width: 100%;
    min-width: 0;
}

.complex-page-address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.complex-page-address img {
    flex-shrink: 0;
    display: block;
    opacity: 0.55;
}

.complex-page-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.complex-page .property-action-share {
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    height: 44px;
}

.complex-favorite-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--color-call-bg);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.complex-favorite-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.complex-page-price-block {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: start;
    column-gap: 20px;
    padding-top: 0;
    min-width: 0;
}

.complex-page-price-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
    min-width: 0;
}

.complex-page .property-page-price.complex-page-price {
    font-size: 26px;
    font-weight: 600;
    line-height: 28px;
    color: #000000;
}

.complex-page .property-page-price.complex-page-price .property-page-price-value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.complex-page-price {
    font-size: 26px;
    font-weight: 600;
    line-height: 28px;
    color: #000000;
    margin-bottom: 0;
    white-space: nowrap;
    text-align: right;
}

.complex-page-price .property-page-price-value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.complex-page-price-sqm {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
    text-align: right;
    white-space: nowrap;
}

.complex-currency-switcher {
    display: inline-flex;
    background: #ECEEF2;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    flex-shrink: 0;
    align-self: start;
}

.complex-currency-switcher .currency-btn {
    width: 44px;
    height: 40px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    color: var(--color-title);
    cursor: pointer;
}

.complex-currency-switcher .currency-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-radius: 999px;
}

.complex-page .property-section-title,
.complex-page .similar-properties-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 31.2px;
    color: #000000;
    margin-bottom: 16px;
}

.complex-page .complex-consultation-title {
    font-weight: 700;
    margin-bottom: 20px;
}

.complex-page .property-description-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
}

.property-location--complex .property-location-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 31.2px;
    color: #000000;
}

.property-location--complex .property-location-address {
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: #4B5563;
}

.complex-about {
    margin-top: 32px;
}

.complex-specs-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 32px;
}

.complex-specs-row .property-spec-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    margin-bottom: 2px;
    color: #000000;
}

.complex-specs-row .property-spec-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 0;
    color: rgba(0, 0, 0, 0.6);
}

.complex-distances {
    margin: 32px 0;
}

.complex-distances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.complex-distance-item {
    background: var(--color-bg-gray);
    border-radius: 16px;
    padding: 16px 20px;
}

.complex-distance-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    color: #000000;
    margin-bottom: 4px;
}

.complex-distance-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.6);
}

.complex-advantages {
    margin: 32px 0;
}

.complex-advantages-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
}

.complex-advantages-list li::before {
    content: '• ';
    color: #000000;
    font-weight: 400;
}

.property-location--complex {
    margin-top: 32px;
}

.complex-property-map {
    margin-bottom: 0;
}

.complex-consultation-inline {
    margin: 32px 0;
}

.complex-consultation-title {
    margin-bottom: 20px;
}

.complex-consultation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: stretch;
    background: var(--color-bg-gray);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.complex-consultation-panel .consultation-contacts-grid {
    gap: 24px 32px;
}

.complex-consultation-panel .consultation-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.complex-consultation-panel .consultation-agent {
    margin-top: auto;
    padding-top: 24px;
}

.consultation-agent-avatar--photo {
    width: 48px;
    height: 48px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.complex-consultation-panel .consultation-agent-avatar--photo {
    width: 54px;
    height: 54px;
}

.consultation-agent-avatar--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.complex-consultation-form-row {
    grid-template-columns: 1fr 1fr;
}

.complex-similar {
    margin-top: 48px;
    margin-bottom: 24px;
}

.complex-consultation {
    background: var(--color-bg-gray);
    margin-top: 0;
}

@media (max-width: 1024px) {
    .complex-page-top {
        flex-direction: column;
    }

    .complex-page-price-block {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 12px;
    }

    .complex-page-price-copy {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }

    .complex-page-price,
    .complex-page-price-sqm {
        text-align: left;
        white-space: normal;
    }

    .complex-currency-switcher {
        align-self: flex-start;
    }

    .complex-distances-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .complex-specs-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .complex-consultation-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .complex-page-title {
        font-size: 24px;
        line-height: 28.8px;
    }

    .complex-distances-grid {
        grid-template-columns: 1fr;
    }

    .complex-advantages-list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .property-location-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .property-location-head .property-location-address {
        max-width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

/* ── Lot detail page ── */
.lot-page {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    padding-top: 32px;
}

.lot-page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
}

.lot-page-header {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
    margin-bottom: 16px;
}

.lot-page-header-title {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.lot-page-header-top-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
    margin-top: 4px;
}

.lot-page-header-top-right .property-page-price {
    margin: 0;
}

.lot-page-header-address {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 4px 0 0;
    align-self: center;
}

.lot-page-header-price-sqm {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    align-self: center;
    margin: 4px 0 0;
    text-align: left;
    white-space: nowrap;
}

.lot-page-header-actions-line {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: center;
    margin-top: 16px;
}

.lot-page-header-actions-line .lot-page-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    min-width: 0;
}

.lot-page-header-commission {
    justify-self: end;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.lot-page-sidebar-cell {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 24px;
    width: 100%;
    max-width: 340px;
    justify-self: end;
}

.lot-page-body-left {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
}

.lot-page-price-block {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: start;
    column-gap: 20px;
    padding-top: 0;
    min-width: 0;
    text-align: right;
}


.lot-page-main {
    min-width: 0;
}

.lot-page-sidebar-cell .agency-card-inner {
    background: #FFFFFF;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 16px;
    border-radius: 16px;
    max-width: 340px;
    width: 100%;
}

.lot-page-sidebar-cell .agency-card-header {
    gap: 10px;
    margin-bottom: 16px;
}

.lot-page-sidebar-cell .agency-logo {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.lot-page-sidebar-cell .agency-card-chevron {
    width: 16px;
    height: 16px;
}

.lot-page-sidebar-cell .agency-actions-row {
    gap: 8px;
}

.lot-page-sidebar-cell .agency-actions-row .btn-write,
.lot-page-sidebar-cell .agency-actions-row .btn-call {
    font-weight: 600;
}

.lot-page .property-page-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 0;
}

.lot-page-header-address,
.lot-page-header-price-sqm,
.lot-page-header-commission {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #4B5563;
}

.lot-page-header-commission strong {
    color: var(--color-primary);
    font-weight: 700;
}

.lot-page-header-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.lot-page-header-price-sqm {
    font-weight: 500;
    margin-bottom: 0;
}


.lot-page .property-page-address img {
    margin-top: 0;
}

.lot-page .property-page-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin-bottom: 0;
}

.lot-page .property-page-price-sqm {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #4B5563;
    margin-bottom: 0;
}

.lot-page-actions-row {
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.lot-page .property-action-btn {
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
}

.lot-page .property-action-btn svg {
    flex-shrink: 0;
}

.lot-page .property-action-favorite.active {
    background: transparent !important;
    color: var(--color-primary);
}

.lot-page .property-action-favorite.active svg {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}

.lot-page .property-action-commission {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #6B7280;
    white-space: nowrap;
}

.lot-page .property-action-commission strong {
    color: var(--color-primary);
    font-weight: 700;
}

.lot-page .property-currency-switcher {
    padding: 2px;
    gap: 1px;
}

.lot-page .property-currency-switcher .currency-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 50%;
}

.lot-page .property-section-title,
.lot-page .similar-properties-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
    margin-bottom: 16px;
}

.lot-page .property-description-text {
    width: 100%;
    max-width: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #111827;
    text-align: justify;
    hyphens: auto;
    text-wrap: pretty;
}

.lot-page .property-description-text p {
    margin: 0 0 1.125em;
}

.lot-page .property-description-text p:last-child {
    margin-bottom: 0;
}

.lot-page .property-submit-request {
    min-width: 200px;
    height: 38px;
    padding: 0 24px;
    font-size: 13px;
    border-radius: 12px;
}

.lot-page .property-lot-meta {
    font-size: 12px;
}

.lot-page .property-report-btn {
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
}

.lot-page .agency-name {
    font-size: 13px;
}

.lot-page .agency-label {
    font-size: 12px;
}

.lot-page .agency-actions-row .btn-write,
.lot-page .agency-actions-row .btn-call {
    height: 38px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 12px;
    gap: 6px;
}

.lot-page .agency-actions-row .btn-write img,
.lot-page .agency-actions-row .btn-call img {
    width: 16px;
    height: 16px;
}

.lot-gallery .property-gallery-main-wrap {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 16px;
}

.lot-gallery .property-gallery-main,
.lot-gallery .property-gallery-main-alt {
    height: auto;
    aspect-ratio: 857 / 570;
    background-size: cover;
    background-color: #F3F4F6;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
}

.lot-gallery .property-gallery-main-wrap > .property-gallery-main-alt {
    grid-area: 1 / 1;
    width: 100%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lot-gallery.is-switching-active .property-gallery-main-wrap > .property-gallery-main-alt {
    opacity: 1;
}

.lot-gallery.is-gallery-commit .property-gallery-main-wrap > .property-gallery-main-alt {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .lot-gallery .property-gallery-main-wrap > .property-gallery-main-alt,
    .collection-gallery-main-alt {
        transition: none;
    }
}

.lot-gallery-thumbs-wrap {
    position: relative;
    width: 100%;
    margin-top: 12px;
}

.lot-gallery-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.lot-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.lot-gallery-thumbs .property-gallery-thumb {
    flex: 0 0 129px;
    width: 129px;
    aspect-ratio: 129 / 96;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ECEEF2;
    border: 1px solid transparent;
    scroll-snap-align: start;
    cursor: pointer;
    transition: border-color 0.2s ease, background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lot-gallery-thumbs .property-gallery-thumb:hover {
    background-size: 108%;
}

.lot-gallery-thumbs .property-gallery-thumb.active {
    border-color: var(--color-primary);
}

.lot-gallery-thumbs-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: rgba(249, 250, 251, 0.96);
    color: var(--color-title);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s ease;
}

.lot-gallery-thumbs-prev {
    left: 0;
}

.lot-gallery-thumbs-next {
    right: 0;
}

.lot-gallery-thumbs-nav img {
    display: block;
    opacity: 0.7;
}

.lot-gallery-thumbs-nav:hover:not(:disabled) {
    background: #FFFFFF;
    border-color: #D1D5DB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-50%) scale(1.06);
}

.lot-gallery-thumbs-nav:hover:not(:disabled) img {
    opacity: 1;
}

.lot-gallery-thumbs-nav[hidden] {
    display: none;
}

.property-gallery-main-wrap > .gallery-hot-badge.property-badge-hot {
    grid-area: 1 / 1;
    z-index: 3;
    justify-self: start;
    align-self: start;
    position: static;
    top: auto;
    left: auto;
    margin: 16px 0 0 16px;
    pointer-events: auto;
}

.lot-about {
    margin-top: 32px;
}

.lot-specs-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
    margin-bottom: 0;
}

.lot-specs-row .property-spec-item {
    gap: 12px;
    align-items: center;
}

.lot-specs-row .property-spec-copy {
    min-width: 0;
}

.lot-specs-row .property-spec-icon {
    width: 48px;
    height: 48px;
    background: #E5F1F0;
}

.lot-specs-row .property-spec-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.lot-specs-row .property-spec-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #6B7280;
    margin-bottom: 4px;
}

.lot-specs-row .property-spec-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #000000;
}

.lot-description {
    margin: 32px 0;
    width: 100%;
    max-width: none;
}

.lot-page .lot-description .property-section-title {
    width: 100%;
}

.lot-advantages {
    margin: 32px 0;
}

.lot-advantages-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.lot-advantages-list li {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #F3F4F6;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #000000;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lot-advantages-list li:hover {
    transform: translateY(-2px);
    background: #E8EAEE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lot-advantages-list li::before {
    content: none;
}

.lot-advantages-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.lot-advantages-chips li {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: #F3F4F6;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #171B22;
    word-break: break-word;
}

.lot-management-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 32px 0;
    padding: 24px 28px;
    border-radius: 20px;
    background: #F3F4F6;
}

.lot-management-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 4px;
}

.lot-management-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.6);
}

.lot-management-cta .property-submit-request {
    margin-bottom: 0;
    flex-shrink: 0;
}

.property-location--lot {
    margin-top: 32px;
}

.property-location--lot .property-location-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
    margin: 0;
}

.property-location--lot .property-location-address {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #4B5563;
    margin: 0;
}

.lot-similar {
    margin-top: 40px;
}

.lot-similar--full {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 48px;
}

.lot-similar-grid {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.lot-similar .similar-properties-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.property-page-agency--bottom {
    display: none;
    width: 100%;
    max-width: 395px;
    margin: 32px 0;
}

/* Lot page v2 — Figma layout */
.lot-page--v2 .lot-page-shell {
    display: block;
}

.lot-page--v2 .lot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lot-page--v2 .lot-back-link:hover {
    color: #374151;
}

.lot-page--v2 .lot-back-link img {
    opacity: 0.75;
}

.lot-page--v2 .lot-page-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 8px;
}

.lot-page--v2 .lot-page-header-title {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}

.lot-page--v2 .property-page-title {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: #171B22;
    margin: 0;
}

.lot-page--v2 .property-page-title-text {
    flex: 1 1 auto;
    min-width: 0;
}

.lot-page--v2 .lot-title-external {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    line-height: 0;
}

.lot-page--v2 .lot-title-external img {
    display: block;
    width: 25px;
    height: 20px;
    object-fit: contain;
}

.lot-page--v2 .lot-page-icon-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-top: 0;
    align-self: flex-start;
}

.lot-page--v2 .lot-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    border-radius: 12px;
    position: relative;
    z-index: 4;
    pointer-events: auto;
    scroll-margin-top: calc(var(--site-header-sticky-offset) + 16px);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.lot-page--v2 .lot-icon-action:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.lot-page--v2 .lot-icon-action img {
    display: block;
    width: 40px;
    height: 40px;
}

.lot-page--v2 .lot-page-header-address {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #6B7280;
}

.lot-page--v2 .lot-page-header-address img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.lot-page--v2 .lot-page-top {
    --lot-top-scale: 1;
}

.lot-page--v2 .lot-page-columns {
    --lot-col-scale: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(380px * var(--lot-col-scale));
    column-gap: calc(40px * var(--lot-col-scale));
    row-gap: calc(32px * var(--lot-col-scale));
    align-items: start;
}

@media (min-width: 769px) {
    .lot-page--v2 .lot-page-top {
        --lot-top-scale: var(--page-scale);
    }

    .lot-page--v2 .lot-page-columns,
    .complex-page--v2 .lot-page-columns {
        --lot-col-scale: var(--page-scale);
    }
}

.lot-page--v2 .lot-page-cell {
    min-width: 0;
}

.lot-page--v2 .lot-page-cell-gallery {
    grid-column: 1;
    grid-row: 1;
}

.lot-page--v2 .lot-page-cell-sidebar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lot-page--v2 .lot-page-cell-body {
    grid-column: 1;
    grid-row: 2;
}

.lot-page--v2 .lot-page-cell-location {
    grid-column: 2;
    grid-row: 2;
}

.lot-page--v2 .lot-page-col-left {
    min-width: 0;
}

.lot-page--v2 .lot-page-col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.lot-page--v2 .lot-sidebar-card {
    position: static;
    width: 100%;
    padding: 24px;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #F0F1F3;
}

.lot-page--v2 .lot-sidebar-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.lot-page--v2 .lot-sidebar-price-block {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
}

.lot-page--v2 .lot-sidebar-price {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #171B22;
    margin: 0;
    white-space: nowrap;
}

.lot-page--v2 .lot-sidebar-price .property-page-price-value {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.lot-page--v2 .lot-sidebar-currency-switcher {
    display: none !important;
    position: relative;
    flex-shrink: 0;
    margin-top: 0;
}

.lot-page--v2 .lot-sidebar-currency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 47px;
    min-height: 47px;
    padding: 0 16px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    box-sizing: border-box;
    background: #F7F8F9;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #374151;
    white-space: nowrap;
}

.lot-page--v2 .lot-sidebar-currency-btn:hover {
    background: #F0F1F3;
    border-color: #D1D5DB;
}

.lot-page--v2 .lot-sidebar-currency-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    opacity: 0.65;
}

.lot-page--v2 .lot-sidebar-currency-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    padding: 6px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    z-index: 30;
}

.lot-page--v2 .lot-sidebar-currency-switcher.open .lot-sidebar-currency-menu {
    display: flex;
}

.lot-page--v2 .lot-sidebar-currency-menu .currency-menu-item {
    justify-content: flex-start;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
}

.lot-page--v2 .lot-sidebar-currency-menu .currency-menu-item.is-active {
    background: #F3F4F6;
    color: var(--color-primary-dark);
}

.lot-page--v2 .lot-sidebar-price-sqm {
    margin: 0 0 0 auto;
    align-self: flex-start;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: #6B7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.lot-page--v2 .lot-sidebar-spec {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
}

.lot-page--v2 .lot-sidebar-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

.lot-page--v2 .lot-sidebar-spec-label {
    display: block;
    width: auto;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #4B5563;
    margin-bottom: 4px;
    white-space: nowrap;
}

.lot-page--v2 .lot-sidebar-spec-value {
    display: block;
    width: auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #171B22;
    white-space: nowrap;
}

.lot-page--v2 .lot-sidebar-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 0;
    container-type: inline-size;
}

.lot-page--v2 .lot-sidebar-btn-call,
.lot-page--v2 .lot-sidebar-btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
}

.lot-page--v2 .lot-sidebar-btn-call {
    background: #007469;
    color: #FFFFFF;
    border: none;
}

.lot-page--v2 .lot-sidebar-btn-call img {
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.lot-page--v2 .lot-sidebar-btn-write {
    background: #F7F8F9;
    color: #374151;
    border: 1px solid #E9EAED;
}

.lot-page--v2 .lot-sidebar-btn-write img {
    flex-shrink: 0;
    filter: none;
}

.lot-page--v2 .lot-sidebar-card .lot-sidebar-agent--in-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #F0F1F3;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.lot-page--v2 .lot-sidebar-divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 16px 0 0;
    background: #E9EAED;
    border-radius: 8px;
    flex-shrink: 0;
}

.lot-page--v2 .lot-sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.lot-page--v2 .lot-sidebar-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #F0F1F3;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lot-page--v2 .lot-sidebar-agent {
    margin: 0;
}

.lot-page--v2 .lot-sidebar-agent-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #D9EBE6;
    color: #007469;
    font-size: 15px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
}

.lot-page--v2 .lot-sidebar-agent-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #171B22;
    letter-spacing: 0.01em;
}

.lot-page--v2 .lot-sidebar-agent-meta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    color: #6B7280;
}

.lot-page--v2 .lot-sidebar-commission {
    justify-content: space-between;
    gap: 16px;
}

.lot-page--v2 .lot-sidebar-commission-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lot-page--v2 .lot-sidebar-commission-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.lot-page--v2 .lot-sidebar-commission-amount {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
    white-space: nowrap;
}

.lot-page--v2 .lot-sidebar-commission-label {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #6B7280;
    text-align: right;
}

.lot-page--v2 .lot-sidebar-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 128px;
    min-height: 128px;
    max-height: 128px;
    margin: 0;
    padding-top: 24px;
    padding-right: 18px;
    padding-bottom: 24px;
    padding-left: 24px;
    box-sizing: border-box;
    overflow: hidden;
    border: none;
    border-radius: 24px;
    background: #FFD25B;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lot-page--v2 .lot-sidebar-promo:hover {
    opacity: 0.96;
    transform: translateY(-1px);
}

.lot-page--v2 .lot-sidebar-promo-art {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.lot-page--v2 .lot-sidebar-promo-copy {
    flex: 1;
    min-width: 0;
}

.lot-page--v2 .lot-sidebar-promo-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #171B22;
}

.lot-page--v2 .lot-sidebar-promo-sub {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(23, 27, 34, 0.72);
}

.lot-page--v2 .lot-sidebar-promo-chevron {
    flex-shrink: 0;
    opacity: 0.7;
}

.lot-page--v2 .lot-content-main {
    margin-top: 0;
    padding: 0;
}

.lot-page--v2 .lot-description-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px 24px 24px 24px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #F0F1F3;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.lot-page--v2 .lot-description-card > .lot-description-card-section,
.lot-page--v2 .lot-description-card > .lot-object-code {
    margin: 0;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.lot-page--v2 .lot-description-card .lot-common-description,
.lot-page--v2 .lot-description-card .lot-advantages {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.lot-page--v2 .lot-description-card .property-section-title.lot-description-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #171B22;
}

.lot-page--v2 .lot-description-card .property-description-text {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #374151;
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
    word-break: break-word;
    box-sizing: border-box;
}

.lot-page--v2 .lot-description-card .property-description-text p {
    margin: 0 0 12px;
    text-align: justify;
}

.lot-page--v2 .lot-description-card .property-description-text p:last-child {
    margin-bottom: 0;
}

.lot-page--v2 .lot-common-description {
    margin-bottom: 0;
}

.lot-page--v2 .lot-specs-block-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #171B22;
}

.lot-page--v2 .lot-specs-list {
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #374151;
}

.lot-page--v2 .lot-advantages-list--v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lot-page--v2 .lot-advantages-list--v2 li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    color: #171B22;
}

.lot-page--v2 .lot-advantages-list--v2 li:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.lot-page--v2 .lot-advantages-list--v2 li::before {
    content: '';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5 8 14.5 16 6.5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.lot-page--v2 .lot-object-code {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #374151;
}

.lot-page--v2 .lot-object-code-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.lot-page--v2 .lot-object-code img {
    flex-shrink: 0;
}

.lot-page--v2 .lot-location-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    margin-top: 0;
}

.lot-page--v2 .lot-location-panel.property-location--lot {
    margin-top: 0;
}

.lot-page--v2 .lot-location-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
    padding: 24px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #F0F1F3;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.lot-page--v2 .lot-location-card-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.lot-page--v2 .lot-location-panel .property-location-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #171B22;
    margin: 0;
}

.lot-page--v2 .lot-location-panel .property-location-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #6B7280;
}

.lot-page--v2 .lot-location-panel .property-location-address img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0;
    opacity: 1;
}

.lot-page--v2 .lot-location-panel .property-location-address span {
    white-space: normal;
    min-width: 0;
}

.lot-page--v2 .lot-location-map {
    height: 240px;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
}

.lot-page--v2 .lot-location-map .leaflet-container {
    border-radius: 16px;
}

/* Lot + complex detail maps — compact pin (matches search map scale) */
.lot-page--v2 .lot-location-map .map-marker-pin {
    width: 22px;
    height: 22px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.lot-page--v2 .lot-location-map .map-marker-house {
    width: 11px;
    height: 11px;
}

.lot-page--v2 .lot-location-map .map-marker-tail {
    bottom: -4px;
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
}

.lot-page--v2 .lot-location-map .map-marker-pin--yellow {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.lot-page--v2 .lot-location-block .lot-report-btn.property-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    height: 55px;
    padding: 0 24px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #E9EAED;
    color: #525F7F;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lot-page--v2 .lot-location-block .lot-report-btn.property-report-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.lot-page--v2 .lot-report-btn img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    filter: none;
    opacity: 1;
}

/* Lot + complex page v2 — header + columns scale (1440px baseline, --page-scale) */
.lot-page--v2 .lot-page-top .lot-back-link {
    gap: calc(6px * var(--lot-top-scale));
    margin-bottom: calc(20px * var(--lot-top-scale));
    font-size: calc(14px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-top .lot-back-link img {
    width: calc(16px * var(--lot-top-scale));
    height: calc(16px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-top .lot-page-title-row {
    align-items: flex-start;
    gap: calc(16px * var(--lot-top-scale)) calc(24px * var(--lot-top-scale));
    margin-bottom: calc(8px * var(--lot-top-scale));
}

.lot-page--v2.complex-page--v2 .lot-page-top .lot-page-title-row {
    align-items: flex-start;
}

.lot-page--v2 .lot-page-top .lot-page-header-title {
    align-items: flex-start;
}

.lot-page--v2 .lot-page-top .lot-page-icon-actions {
    gap: calc(8px * var(--lot-top-scale));
    padding-top: 0;
    align-self: flex-start;
}

.lot-page--v2 .lot-page-top .property-page-title {
    gap: calc(8px * var(--lot-top-scale));
    font-size: calc(32px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-top .lot-title-external img {
    width: calc(25px * var(--lot-top-scale));
    height: calc(20px * var(--lot-top-scale));
    object-fit: contain;
}

.lot-page--v2 .lot-page-top .lot-icon-action {
    border-radius: calc(12px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-top .lot-icon-action img {
    width: calc(40px * var(--lot-top-scale));
    height: calc(40px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-top .lot-page-header-address {
    gap: calc(8px * var(--lot-top-scale));
    margin: 0 0 calc(28px * var(--lot-top-scale));
    font-size: calc(14px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-top .lot-page-header-address img {
    width: calc(20px * var(--lot-top-scale));
    height: calc(20px * var(--lot-top-scale));
}

.lot-page--v2 .lot-page-columns .lot-page-cell-sidebar {
    gap: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-page-col-right {
    gap: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-card {
    padding: calc(24px * var(--lot-col-scale));
    border-radius: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-price-row {
    gap: calc(16px * var(--lot-col-scale));
    margin-bottom: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-price-block {
    gap: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-price {
    font-size: calc(36px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-price-sqm {
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-specs {
    gap: calc(16px * var(--lot-col-scale));
    margin-bottom: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-spec-label {
    font-size: calc(14px * var(--lot-col-scale));
    margin-bottom: calc(4px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-spec-value {
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-specs {
    gap: calc(8px * var(--lot-col-scale));
    margin-bottom: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-spec-label {
    display: flex;
    align-items: center;
    gap: calc(4px * var(--lot-col-scale));
    font-size: calc(12px * var(--lot-col-scale));
    margin-bottom: calc(3px * var(--lot-col-scale));
    white-space: normal;
}

.lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-spec-label img {
    flex-shrink: 0;
    width: calc(14px * var(--lot-col-scale));
    height: calc(14px * var(--lot-col-scale));
}

.lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-spec-value {
    font-size: calc(14px * var(--lot-col-scale));
    overflow-wrap: anywhere;
    white-space: normal;
}

.lot-page--v2 .lot-sidebar-ownership {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: calc(8px * var(--lot-col-scale));
    width: 100%;
    margin-bottom: calc(16px * var(--lot-col-scale));
    padding-top: calc(10px * var(--lot-col-scale));
    border-top: 1px solid #E9EAED;
}

.lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-ownership .lot-sidebar-spec-label {
    margin-bottom: 0;
}

.lot-page--v2 .lot-sidebar-ownership .lot-sidebar-spec-value {
    text-align: end;
}

.lot-page--v2 .lot-page-columns .lot-sidebar-card .lot-sidebar-agent--in-card {
    gap: calc(12px * var(--lot-col-scale));
    margin: calc(16px * var(--lot-col-scale)) 0 0;
    padding: calc(16px * var(--lot-col-scale)) 0 0;
}

.lot-page--v2 .lot-page-columns .lot-sidebar-divider {
    margin: calc(16px * var(--lot-col-scale)) 0 0;
}

.lot-page--v2 .lot-page-columns .lot-sidebar-agent-avatar {
    width: calc(48px * var(--lot-col-scale));
    height: calc(48px * var(--lot-col-scale));
    border-radius: calc(12px * var(--lot-col-scale));
    font-size: calc(15px * var(--lot-col-scale));
    line-height: calc(48px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-agent-name {
    font-size: calc(14px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-agent-meta {
    margin-top: calc(4px * var(--lot-col-scale));
    font-size: calc(13px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-panel {
    gap: calc(12px * var(--lot-col-scale));
    padding: calc(14px * var(--lot-col-scale)) calc(16px * var(--lot-col-scale));
    border-radius: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-commission-main {
    gap: calc(10px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-commission-icon {
    width: calc(48px * var(--lot-col-scale));
    height: calc(48px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-commission-amount {
    font-size: calc(18px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-commission-label {
    font-size: calc(14px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-stack {
    gap: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-promo {
    gap: calc(12px * var(--lot-col-scale));
    height: calc(128px * var(--lot-col-scale));
    min-height: calc(128px * var(--lot-col-scale));
    max-height: calc(128px * var(--lot-col-scale));
    padding-top: calc(24px * var(--lot-col-scale));
    padding-right: calc(18px * var(--lot-col-scale));
    padding-bottom: calc(24px * var(--lot-col-scale));
    padding-left: calc(24px * var(--lot-col-scale));
    border-radius: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-promo-art {
    width: calc(80px * var(--lot-col-scale));
    height: calc(80px * var(--lot-col-scale));
    max-width: calc(80px * var(--lot-col-scale));
    max-height: calc(80px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-promo-title {
    margin: 0 0 calc(4px * var(--lot-col-scale));
    font-size: calc(14px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-promo-sub {
    font-size: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-promo-chevron {
    width: calc(20px * var(--lot-col-scale));
    height: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-description-card {
    gap: calc(24px * var(--lot-col-scale));
    padding: calc(24px * var(--lot-col-scale));
    border-radius: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-description-card .lot-common-description,
.lot-page--v2 .lot-page-columns .lot-description-card .lot-advantages {
    gap: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-advantages-chips {
    gap: calc(8px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-advantages-chips li {
    padding: calc(8px * var(--lot-col-scale)) calc(14px * var(--lot-col-scale));
    font-size: calc(14px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-description-card .property-section-title.lot-description-card-title {
    font-size: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-description-card .property-description-text {
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-description-card .property-description-text p:not(:last-child) {
    margin: 0 0 calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-specs-block-title {
    margin: 0 0 calc(12px * var(--lot-col-scale));
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-specs-list {
    padding-left: calc(20px * var(--lot-col-scale));
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-advantages-list--v2 {
    column-gap: calc(32px * var(--lot-col-scale));
    row-gap: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-advantages-list--v2 li {
    gap: calc(10px * var(--lot-col-scale));
    font-size: calc(15px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-advantages-list--v2 li::before {
    width: calc(22px * var(--lot-col-scale));
    height: calc(22px * var(--lot-col-scale));
    margin-top: calc(1px * var(--lot-col-scale));
    background-size: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-block {
    gap: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-card {
    gap: calc(24px * var(--lot-col-scale));
    padding: calc(24px * var(--lot-col-scale));
    border-radius: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-card-body {
    gap: calc(24px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-panel .property-location-title {
    font-size: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-panel .property-location-address {
    gap: calc(8px * var(--lot-col-scale));
    font-size: calc(14px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-panel .property-location-address img {
    width: calc(20px * var(--lot-col-scale));
    height: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-map {
    height: calc(240px * var(--lot-col-scale));
    border-radius: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-map .leaflet-container {
    border-radius: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-location-block .lot-report-btn.property-report-btn {
    gap: calc(10px * var(--lot-col-scale));
    height: calc(55px * var(--lot-col-scale));
    padding: 0 calc(24px * var(--lot-col-scale));
    border-radius: calc(20px * var(--lot-col-scale));
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-report-btn img {
    width: calc(20px * var(--lot-col-scale));
    height: calc(20px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .property-gallery-main-wrap {
    border-radius: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .property-gallery-main,
.lot-page--v2 .lot-page-columns .lot-gallery .property-gallery-main-alt {
    border-radius: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .property-gallery-main-wrap > .gallery-fullscreen-btn {
    margin: calc(16px * var(--lot-col-scale)) calc(16px * var(--lot-col-scale)) 0 0;
    width: calc(40px * var(--lot-col-scale));
    height: calc(40px * var(--lot-col-scale));
    border-radius: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .property-gallery-main-wrap > .gallery-fullscreen-btn svg {
    width: calc(18px * var(--lot-col-scale));
    height: calc(18px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .gallery-nav-overlay {
    width: calc(40px * var(--lot-col-scale));
    height: calc(40px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .gallery-nav-overlay svg {
    width: calc(18px * var(--lot-col-scale));
    height: calc(18px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .gallery-prev.gallery-nav-overlay {
    margin-left: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery .gallery-next.gallery-nav-overlay {
    margin-right: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery-thumbs-wrap {
    margin-top: calc(12px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery-thumbs {
    gap: calc(10px * var(--lot-col-scale));
    padding: calc(4px * var(--lot-col-scale)) 0;
}

.lot-page--v2 .lot-page-columns .lot-gallery-thumbs .property-gallery-thumb {
    flex: 0 0 calc(129px * var(--lot-col-scale));
    width: calc(129px * var(--lot-col-scale));
    border-radius: calc(10px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery-thumbs-nav {
    width: calc(36px * var(--lot-col-scale));
    height: calc(36px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-gallery-thumbs-nav img {
    width: calc(16px * var(--lot-col-scale));
    height: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-currency-btn {
    gap: calc(8px * var(--lot-col-scale));
    height: calc(47px * var(--lot-col-scale));
    min-height: calc(47px * var(--lot-col-scale));
    padding: 0 calc(16px * var(--lot-col-scale));
    border-radius: calc(16px * var(--lot-col-scale));
    font-size: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-page-columns .lot-sidebar-currency-chevron {
    width: calc(16px * var(--lot-col-scale));
    height: calc(16px * var(--lot-col-scale));
}

.lot-page--v2 .lot-gallery-badge.property-badge-hot {
    top: auto;
    left: auto;
}

.lot-page--v2 .lot-similar--full {
    margin-top: 56px;
    width: 100%;
}

.lot-page--v2 .lot-similar-panel {
    box-sizing: border-box;
    padding: 32px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #F0F1F3;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lot-page--v2 .lot-similar .similar-properties-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.lot-page--v2 .lot-similar-grid {
    gap: 24px;
}

.lot-page--v2 .lot-similar .property-card,
.lot-page--v2 .lot-similar .property-card--v2 {
    background: #FFFFFF;
    border: 1px solid #F0F1F3;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lot-page--v2 .lot-similar .property-card:hover,
.lot-page--v2 .lot-similar .property-card--v2:hover {
    background: #FFFFFF;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transform: none;
}

.lot-page--v2 .lot-similar .property-card--v2 .property-card-image {
    border-radius: 16px 16px 0 0;
}

.lot-sidebar-currency-hidden {
    display: none !important;
}

.complex-page--v2.complex-page {
    padding-top: 32px;
}

.complex-page--v2 .complex-distances {
    margin: 0 0 28px;
}

.lot-page--v2.complex-page--v2 .lot-description-card .complex-distances {
    margin: 0;
}

/* Complex v2 — header + sidebar: same tokens as property; drop legacy complex sizes */
.lot-page--v2.complex-page--v2 .lot-page-top .complex-page-title {
    margin: 0;
    font-size: calc(32px * var(--lot-top-scale));
    font-weight: 700;
    line-height: 1.15;
    color: #171B22;
}

.lot-page--v2.complex-page--v2 .lot-page-top .lot-page-title-row .complex-page-title {
    margin: 0;
}

.lot-page--v2.complex-page--v2 .lot-page-top .complex-page-address {
    font-size: calc(14px * var(--lot-top-scale));
    font-weight: 400;
    line-height: 1.45;
    color: #6B7280;
    margin: 0 0 calc(28px * var(--lot-top-scale));
    text-align: left;
}

.lot-page--v2.complex-page--v2 .lot-page-top .complex-page-address img {
    width: calc(20px * var(--lot-top-scale));
    height: calc(20px * var(--lot-top-scale));
    opacity: 1;
}

.lot-page--v2.complex-page--v2 .lot-page-top .lot-icon-action.complex-favorite-btn {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: calc(12px * var(--lot-top-scale));
    background: transparent;
    color: inherit;
}

.lot-page--v2.complex-page--v2 .lot-page-top .lot-icon-action.complex-favorite-btn.active {
    background: transparent;
}

.lot-page--v2.complex-page--v2 .lot-sidebar-card .complex-page-price,
.lot-page--v2.complex-page--v2 .lot-sidebar-card .complex-page-price-sqm {
    text-align: left;
    margin: 0;
}

.lot-page--v2.complex-page--v2 .lot-sidebar-card .complex-page-price {
    white-space: nowrap;
    font-size: 26px;
}

.lot-page--v2.complex-page--v2 .lot-sidebar-card .complex-page-price-sqm {
    white-space: normal;
}

.lot-only-mobile {
    display: none !important;
}

.lot-page--v2 .lot-page-cell-sidebar .lot-sidebar-commission {
    order: 2;
}

.lot-page--v2 .lot-page-cell-sidebar .lot-sidebar-card {
    order: 1;
}

.lot-page--v2 .lot-page-cell-sidebar .lot-sidebar-stack {
    order: 3;
}

.lot-page--v2 .lot-page-cell-promo {
    display: none;
}

.lot-page--v2 .lot-page-cell-gallery {
    position: relative;
}

.lot-page-mobile-bar,
.lot-gallery-mobile-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lot-gallery-back-btn,
.lot-mobile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    line-height: 0;
    text-decoration: none;
    color: #1F2937;
    scroll-margin-top: calc(var(--site-header-sticky-offset) + 16px);
}

.lot-mobile-action-btn {
    position: relative;
    z-index: 4;
    pointer-events: auto;
    border: 1px solid #E3E7EC;
    border-radius: 14px;
    background: #F7F9FB;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lot-gallery-back-btn {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lot-gallery-back-btn:hover,
.lot-gallery-back-btn:active,
.lot-gallery-back-btn:focus {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.lot-gallery-back-btn:focus-visible {
    outline: 2px solid rgba(0, 116, 105, 0.35);
    outline-offset: 2px;
}

.lot-mobile-action-btn:active {
    background: #EFF2F5;
}

.lot-gallery-back-btn img,
.lot-mobile-action-btn img,
.lot-mobile-action-btn svg {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.lot-mobile-action-btn.property-action-favorite.active {
    background: #FEF2F2;
    border-color: #FECACA;
}

.lot-gallery-mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lot-sidebar-info-panel {
    display: contents;
}

.lot-sidebar-mobile-head {
    margin-bottom: 16px;
}

.lot-sidebar-mobile-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #171B22;
}

@media (max-width: 768px) {
    body:has(.property-page.lot-page--v2) {
        background: #F7F8F9;
    }

    body:has(.property-page.lot-page--v2) .site-header {
        display: none;
    }

    body:has(.property-page.lot-page--v2) .main-content {
        padding-top: 0;
        background: #F7F8F9;
    }

    .lot-page--v2.property-page {
        padding-top: 12px;
        background: #F7F8F9;
    }

    .lot-page--v2.property-page .page-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lot-only-mobile {
        display: block !important;
    }

    .lot-page--v2 .lot-page-mobile-bar.lot-only-mobile,
    .lot-page--v2 .lot-gallery-mobile-toolbar.lot-only-mobile {
        display: flex !important;
        position: static;
        margin: 0 0 12px;
        padding: 0;
    }

    .lot-only-desktop {
        display: none !important;
    }

    .lot-page--v2 .lot-page-columns {
        row-gap: 16px;
    }

    .lot-page--v2 .lot-page-cell-sidebar {
        gap: 12px;
    }

    .lot-page--v2 .lot-page-cell-sidebar .lot-sidebar-commission {
        order: 0;
        margin: 0;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .lot-page--v2 .lot-page-cell-sidebar .lot-sidebar-card {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .lot-page--v2 .lot-sidebar-info-panel {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-self: stretch;
        flex: none;
        gap: 16px;
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        background: #FFFFFF;
        border-radius: 16px;
    }

    .lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-mobile-head {
        margin-bottom: 0;
        width: 100%;
    }

    .lot-page--v2 .lot-sidebar-mobile-title {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        width: auto;
        max-width: 100%;
        font-size: 18px;
        line-height: 1.3;
    }

    .lot-page--v2 .lot-sidebar-mobile-title .property-page-title-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .lot-page--v2 .lot-sidebar-mobile-title .lot-title-external {
        flex: 0 0 auto;
        align-self: flex-start;
    }

    .lot-page--v2 .lot-sidebar-price-row {
        flex-wrap: nowrap;
        align-items: flex-start;
        margin-bottom: 0;
        width: 100%;
    }

    .lot-page--v2 .lot-sidebar-price-block {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        column-gap: 8px;
        row-gap: 0;
        width: 100%;
    }

    .lot-page--v2 .lot-sidebar-price {
        font-size: 28px;
    }

    .lot-page--v2 .lot-sidebar-price-sqm {
        font-size: 14px;
        margin: 0 0 0 auto;
        align-self: flex-start;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .lot-page--v2 .lot-sidebar-specs {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 0;
        width: 100%;
    }

    .lot-page--v2 .lot-sidebar-spec {
        flex: 0 0 auto;
        width: max-content;
        min-width: 0;
        max-width: 100%;
    }

    .lot-page--v2 .lot-sidebar-spec-label {
        font-size: 12px;
    }

    .lot-page--v2 .lot-sidebar-spec-value {
        font-size: 14px;
    }

    .lot-page--v2 .lot-sidebar-info-panel .lot-sidebar-specs,
    .lot-page--v2 .lot-sidebar-ownership {
        margin-bottom: 0;
    }

    .lot-page--v2 .lot-sidebar-actions {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .lot-page--v2 .lot-sidebar-btn-call,
    .lot-page--v2 .lot-sidebar-btn-write {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        font-weight: 600;
    }

    .lot-page--v2 .lot-sidebar-btn-write {
        background: #FFFFFF;
        border: 1px solid #E9EAED;
        color: #374151;
    }

    .lot-page--v2 .lot-sidebar-card .lot-sidebar-agent--in-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        align-self: stretch;
        gap: 8px;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 0;
        border-top: none;
        background: transparent;
        box-shadow: none;
    }

    .lot-page--v2 .lot-sidebar-divider {
        width: 100%;
        height: 1px;
        margin: 0;
        background: #E9EAED;
        border-radius: 8px;
        align-self: stretch;
    }

    .lot-page--v2 .lot-sidebar-card .lot-sidebar-agent-avatar {
        width: 44px;
        height: 44px;
        line-height: 44px;
        border-radius: 12px;
        font-size: 14px;
    }

    .lot-page--v2 .lot-sidebar-card .lot-sidebar-agent-name {
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .lot-page--v2 .lot-sidebar-card .lot-sidebar-agent-meta {
        font-size: 12px;
        margin-top: 2px;
    }

    .lot-page--v2 .lot-description-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        flex: none;
        width: 100%;
        padding: 16px;
        gap: 20px;
        border-radius: 16px;
        background: #FFFFFF;
        border: none;
        box-shadow: none;
        box-sizing: border-box;
    }

    .lot-page--v2 .lot-description-card .lot-common-description,
    .lot-page--v2 .lot-description-card .lot-advantages {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        width: 100%;
        min-width: 0;
    }

    .lot-page--v2 .lot-advantages-chips {
        gap: 8px;
    }

    .lot-page--v2 .lot-advantages-chips li {
        padding: 8px 12px;
        font-size: 13px;
        line-height: 1.35;
    }

    .lot-page--v2 .lot-description-card .property-section-title.lot-description-card-title {
        width: 100%;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
    }

    .lot-page--v2 .lot-description-card .property-description-text {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        box-sizing: border-box;
        font-size: 15px;
        line-height: 1.55;
        color: #4B5563;
        text-align: justify;
        text-wrap: pretty;
        hyphens: auto;
        word-break: break-word;
    }

    .lot-page--v2 .lot-description-card .property-description-text p,
    .lot-page--v2 .lot-page-columns .lot-description-card .property-description-text p:not(:last-child) {
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px;
        text-align: justify;
    }

    .lot-page--v2 .lot-description-card .property-description-text p:last-child {
        margin-bottom: 0;
    }

    .lot-page--v2 .lot-description-clamp {
        width: 100%;
        min-width: 0;
    }

    .lot-page--v2 .lot-description-clamp.is-clamped .lot-description-text-wrap {
        position: relative;
        max-height: var(--lot-desc-clamp-max, 140px);
        overflow: hidden;
    }

    .lot-page--v2 .lot-description-clamp.is-clamped .lot-description-text-fade {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 56px;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 78%);
    }

    .lot-page--v2 .lot-description-clamp.is-expanded .lot-description-text-fade,
    .lot-page--v2 .lot-description-text-fade {
        display: none;
    }

    .lot-page--v2 .lot-description-see-more.lot-only-mobile {
        display: inline-flex !important;
        align-items: center;
        margin-top: 4px;
        padding: 0;
        border: none;
        background: transparent;
        font-family: inherit;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.35;
        color: #0C343D;
        cursor: pointer;
        text-align: left;
    }

    .lot-page--v2 .lot-description-see-more[hidden],
    .lot-page--v2 .lot-description-clamp.is-expanded .lot-description-see-more {
        display: none !important;
    }

    .lot-page--v2 .lot-description-see-more:active {
        opacity: 0.85;
    }

    .lot-page--v2 .lot-location-panel.lot-location-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        align-self: stretch;
        gap: 20px;
        width: 100%;
        padding: 16px;
        border-radius: 16px;
        background: #FFFFFF;
        border: none;
        box-shadow: none;
        box-sizing: border-box;
    }

    .lot-page--v2 .lot-location-card-body {
        gap: 16px;
    }

    .lot-page--v2 .lot-location-panel .property-location-title {
        width: 100%;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        color: #171B22;
    }

    .lot-page--v2 .lot-location-panel .property-location-address {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
        color: #374151;
    }

    .lot-page--v2 .lot-location-panel .property-location-address img {
        width: 20px;
        height: 20px;
        margin-top: 0;
    }

    .lot-page--v2 .lot-location-map {
        width: 100%;
        height: 285px;
        border-radius: 16px;
    }

    .lot-page--v2 .lot-location-block {
        gap: 12px;
    }

    .lot-page--v2 .lot-report-btn {
        width: 100%;
        height: 55px;
        border-radius: 20px;
    }

    .lot-page--v2 .lot-page-cell-promo {
        display: block;
        container-type: inline-size;
        container-name: lot-promo;
    }

    /* Banner 5 — composed yellow card (Figma 350×180, scales to content width) */
    .lot-page--v2 .lot-page-columns .lot-sidebar-promo.lot-sidebar-promo--mobile,
    .lot-page--v2 .lot-sidebar-promo--mobile {
        --lot-promo-px: calc(100cqi / 350);
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 350 / 180;
        padding: 0;
        border-radius: 20px;
        background-color: #FFD25B;
        overflow: hidden;
        text-align: left;
        isolation: isolate;
        border: none;
    }

    .lot-page--v2 .lot-sidebar-promo--mobile .lot-sidebar-promo-art,
    .lot-page--v2 .lot-sidebar-promo--mobile .lot-sidebar-promo-chevron {
        display: none;
    }

    .lot-page--v2 .lot-sidebar-promo-mobile-blur {
        position: absolute;
        z-index: 0;
        left: calc(-84 * var(--lot-promo-px));
        top: calc(-98 * var(--lot-promo-px));
        width: calc(157.17 * var(--lot-promo-px));
        height: calc(708.64 * var(--lot-promo-px));
        background: #FFE49D;
        filter: blur(calc(52.25 * var(--lot-promo-px)));
        transform: rotate(36.56deg);
        pointer-events: none;
    }

    .lot-page--v2 .lot-sidebar-promo-mobile-inner {
        position: absolute;
        z-index: 2;
        left: calc(20 * var(--lot-promo-px));
        top: calc(20 * var(--lot-promo-px));
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        gap: calc(16 * var(--lot-promo-px));
        width: calc(231 * var(--lot-promo-px));
        height: calc(140 * var(--lot-promo-px));
        box-sizing: border-box;
        pointer-events: none;
    }

    .lot-page--v2 .lot-page-columns .lot-sidebar-promo--mobile .lot-sidebar-promo-copy,
    .lot-page--v2 .lot-sidebar-promo--mobile .lot-sidebar-promo-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: calc(8 * var(--lot-promo-px));
        width: 100%;
        min-width: 0;
    }

    .lot-page--v2 .lot-page-columns .lot-sidebar-promo--mobile .lot-sidebar-promo-title,
    .lot-page--v2 .lot-sidebar-promo--mobile .lot-sidebar-promo-title {
        margin: 0;
        font-size: calc(16 * var(--lot-promo-px));
        font-weight: 700;
        line-height: 1.2;
        color: #171B22;
    }

    .lot-page--v2 .lot-page-columns .lot-sidebar-promo--mobile .lot-sidebar-promo-sub,
    .lot-page--v2 .lot-sidebar-promo--mobile .lot-sidebar-promo-sub {
        margin: 0;
        font-size: calc(14 * var(--lot-promo-px));
        font-weight: 500;
        line-height: 1.2;
        color: #171B22;
        opacity: 0.7;
    }

    .lot-page--v2 .lot-sidebar-promo-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: calc(166 * var(--lot-promo-px));
        min-width: calc(166 * var(--lot-promo-px));
        height: calc(44 * var(--lot-promo-px));
        padding: calc(12 * var(--lot-promo-px)) calc(16 * var(--lot-promo-px));
        border-radius: calc(16 * var(--lot-promo-px));
        background: #333333;
        color: #FFFFFF;
        font-size: calc(16 * var(--lot-promo-px));
        font-weight: 600;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .lot-page--v2 .lot-sidebar-promo-mobile-phones {
        position: absolute;
        z-index: 1;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: fill;
        pointer-events: none;
        user-select: none;
    }

    .lot-page--v2 .lot-similar--full {
        margin-top: 24px;
    }

    .lot-page--v2 .lot-similar-panel {
        padding: 20px 0 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .lot-page--v2 .lot-similar-grid.property-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        min-width: 0;
        padding: 0;
        border: none !important;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible;
        container-type: normal;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile:hover {
        box-shadow: none;
        transform: none;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-main {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-image {
        position: relative;
        width: 100%;
        height: 190px;
        min-height: 190px;
        max-height: 190px;
        aspect-ratio: auto;
        border-radius: 20px;
        overflow: hidden;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-cover-link {
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 20px;
        pointer-events: auto;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-cover {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 190px;
        object-fit: cover;
        object-position: center;
        border-radius: 20px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-badge-hot {
        display: none;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-favorite,
    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-favorite--lot-similar-mobile {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #FFFFFF;
        box-shadow: none;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-favorite .property-favorite-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-favorite.active {
        background: #FFFFFF;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-content {
        width: 100%;
        padding: 0 var(--card-v2-content-pad-x);
        gap: 8px;
        box-sizing: border-box;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-title-row {
        align-items: center;
        flex-wrap: nowrap;
        min-height: 0;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-title {
        flex: 1 1 0%;
        min-width: 0;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.3;
        color: #000000;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-menu-wrap {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        align-self: center;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        min-width: 16px;
        padding: 0;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-price {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        color: #171B22;
        letter-spacing: 0;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-address {
        align-items: center;
        gap: 4px;
        font-size: 12px;
        line-height: 16px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-address-icon {
        width: 16px;
        height: 16px;
        margin: 0;
        padding: 0;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-address-text {
        line-height: 16px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 {
        flex-wrap: nowrap;
        min-height: 0;
        overflow: visible;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span {
        font-size: 10px;
        gap: 3px;
        line-height: 1;
        flex-shrink: 0;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span:not(:last-child)::after {
        padding: 0 4px;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-meta--v2 span img {
        width: 12px;
        height: 12px;
        opacity: 0.85;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile.property-card--image-hover-actions .property-card-image::after,
    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions--image-hover {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 8px;
        position: relative;
        z-index: 4;
        pointer-events: auto;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        min-height: 44px;
        padding: 0 8px;
        border-radius: 16px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        background: #007469;
        color: #FFFFFF;
        gap: 4px;
        white-space: nowrap;
        overflow: hidden;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call img,
    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-call svg {
        width: 14px;
        height: 14px;
        max-width: 14px;
        max-height: 14px;
        opacity: 0.7;
        filter: brightness(0) invert(1);
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 16px;
        background: #FFFFFF;
        border: 1px solid #E9EAED;
        color: transparent;
        font-size: 0;
        gap: 0;
    }

    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write img,
    .lot-page--v2 .lot-similar-grid .property-card--lot-similar-mobile .property-card-actions:not(.property-card-actions--image-hover) .btn-write svg {
        width: 14px;
        height: 14px;
        max-width: 14px;
        max-height: 14px;
        margin: 0;
        filter: none;
        opacity: 1;
    }

    .lot-page--v2.property-page .lot-page-cell-gallery {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
        margin-bottom: 0;
        overflow: hidden;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main,
    .lot-page--v2 .lot-gallery .property-gallery-main-alt {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 24px;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap > .gallery-nav-overlay {
        position: absolute;
        top: 50%;
        left: auto;
        right: auto;
        width: 32px;
        height: 32px;
        margin: 0;
        justify-self: auto;
        transform: translateY(-50%);
        z-index: 4;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap > .gallery-nav-overlay svg {
        width: 14px;
        height: 14px;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap > .gallery-prev.gallery-nav-overlay {
        left: 10px;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap > .gallery-next.gallery-nav-overlay {
        right: 10px;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap > .gallery-nav-overlay:active {
        transform: translateY(-50%) scale(0.98);
    }

    .lot-page--v2 .lot-page-columns .lot-gallery .property-gallery-main-wrap > .gallery-fullscreen-btn {
        position: absolute;
        top: 8px;
        right: 12px;
        margin: 0;
        align-self: auto;
        justify-self: auto;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        z-index: 4;
    }

    .lot-page--v2 .lot-gallery .property-gallery-main-wrap > .gallery-hot-badge.property-badge-hot {
        position: absolute;
        top: 10px;
        left: 10px;
        margin: 0;
        z-index: 4;
    }

    .lot-page--v2 .lot-gallery-thumbs-wrap {
        margin-top: 10px;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .lot-page--v2 .lot-sidebar-commission--gallery-mobile.lot-only-mobile {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        align-self: stretch;
        flex: none;
        box-sizing: border-box;
        width: 100%;
        height: 44px;
        min-height: 44px;
        margin-top: 12px;
        padding: 0 16px;
        gap: 8px;
        background: #FFFFFF;
        border-radius: 16px;
        border: none;
        box-shadow: none;
    }

    .lot-page--v2 .lot-sidebar-commission--gallery-mobile .lot-sidebar-commission-main {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .lot-page--v2 .lot-sidebar-commission--gallery-mobile .lot-sidebar-commission-icon {
        width: 24px;
        height: 24px;
    }

    .lot-page--v2 .lot-sidebar-commission--gallery-mobile .lot-sidebar-commission-amount {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
    }

    .lot-page--v2 .lot-sidebar-commission--gallery-mobile .lot-sidebar-commission-label {
        margin-left: auto;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.35;
        color: #6B7280;
        text-align: right;
    }
}

@media (max-width: 1100px) {
    .lot-page-shell {
        grid-template-columns: 1fr;
    }

    .lot-page--v2 .lot-page-columns {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .lot-page--v2 .lot-page-cell-gallery,
    .lot-page--v2 .lot-page-cell-sidebar,
    .lot-page--v2 .lot-page-cell-body,
    .lot-page--v2 .lot-page-cell-location {
        grid-column: 1;
        grid-row: auto;
    }

    .lot-page--v2 .lot-page-title-row {
        flex-wrap: wrap;
    }

    .lot-page--v2 .lot-advantages-list--v2 {
        grid-template-columns: 1fr;
    }

    .lot-page-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-bottom: 16px;
    }

    .lot-page-header-title,
    .lot-page-header-top-right,
    .lot-page-header-address,
    .lot-page-header-price-sqm,
    .lot-page-header-actions-line,
    .lot-page-sidebar-cell,
    .lot-page-body-left {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
        justify-self: stretch;
    }

    .lot-page-header-top-right {
        margin-top: 12px;
    }

    .lot-page-sidebar-cell {
        position: static;
        display: none;
    }

    .property-page-agency--bottom {
        display: block;
    }

    .lot-management-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .lot-page-header .lot-page-price-block {
        justify-content: flex-start;
        text-align: left;
    }

    .lot-page .property-page-title {
        font-size: 24px;
        line-height: 1.2;
    }

    .lot-gallery-thumbs .property-gallery-thumb {
        flex-basis: 96px;
        width: 96px;
    }
}

/* Lot page — motion & interactions */
@keyframes lotFadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: no-preference) {
    .lot-about.lot-reveal.is-visible .property-spec-item {
        animation: lotFadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .lot-about.lot-reveal.is-visible .property-spec-item:nth-child(1) { animation-delay: 0.08s; }
    .lot-about.lot-reveal.is-visible .property-spec-item:nth-child(2) { animation-delay: 0.14s; }
    .lot-about.lot-reveal.is-visible .property-spec-item:nth-child(3) { animation-delay: 0.2s; }
    .lot-about.lot-reveal.is-visible .property-spec-item:nth-child(4) { animation-delay: 0.26s; }
    .lot-about.lot-reveal.is-visible .property-spec-item:nth-child(5) { animation-delay: 0.32s; }
    .lot-about.lot-reveal.is-visible .property-spec-item:nth-child(6) { animation-delay: 0.38s; }

    .lot-reveal.is-visible .property-section-title {
        animation: lotFadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li {
        animation: lotFadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(1) { animation-delay: 0.1s; }
    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(2) { animation-delay: 0.16s; }
    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(3) { animation-delay: 0.22s; }
    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(4) { animation-delay: 0.28s; }
    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(5) { animation-delay: 0.34s; }
    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(6) { animation-delay: 0.4s; }
    .lot-advantages.lot-reveal.is-visible .lot-advantages-list li:nth-child(n+7) { animation-delay: 0.46s; }

    .property-location--lot.lot-reveal.is-visible .property-map {
        animation: lotFadeIn 0.65s ease 0.12s both;
    }

    .lot-reveal {
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .lot-reveal[data-reveal-delay="80"] { transition-delay: 0.08s; }
    .lot-reveal[data-reveal-delay="120"] { transition-delay: 0.12s; }
    .lot-reveal[data-reveal-delay="160"] { transition-delay: 0.16s; }

    .lot-similar .property-card.lot-reveal {
        transition-delay: var(--reveal-delay, 0ms);
    }

    .lot-page.is-scroll-reveal-ready .lot-reveal:not(.is-visible) {
        opacity: 0;
        transform: translateY(28px);
    }

    .lot-page.is-scroll-reveal-ready .lot-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lot-page.is-scroll-reveal-ready .lot-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ── Home page scroll reveal ── */
@media (prefers-reduced-motion: no-preference) {
    .home-page .scroll-reveal {
        transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }

    .home-page.is-scroll-reveal-ready .scroll-reveal:not(.is-visible) {
        opacity: 0;
        transform: translateY(32px);
    }

    .home-page.is-scroll-reveal-ready .scroll-reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page.is-scroll-reveal-ready .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

.lot-page .property-action-btn {
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lot-page .property-action-btn:hover {
    transform: translateY(-1px);
    opacity: 0.82;
}

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

.lot-page .property-currency-switcher .currency-btn {
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lot-page .property-currency-switcher .currency-btn:hover:not(.active) {
    transform: scale(1.08);
}

.lot-page-sidebar-cell .agency-card-inner {
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lot-page-sidebar-cell .agency-card-inner:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lot-page-sidebar-cell .agency-actions-row .btn-write,
.lot-page-sidebar-cell .agency-actions-row .btn-call {
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.lot-page-sidebar-cell .agency-actions-row .btn-write:hover:not([aria-disabled="true"]),
.lot-page-sidebar-cell .agency-actions-row .btn-call:hover {
    transform: translateY(-1px);
}

.lot-specs-row .property-spec-icon {
    transition: transform 0.25s ease, background 0.25s ease;
}

.lot-specs-row .property-spec-item:hover .property-spec-icon {
    transform: scale(1.06);
    background: #D9EBE9;
}

.lot-gallery .gallery-fullscreen-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lot-gallery .gallery-fullscreen-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.lot-management-cta .property-submit-request {
    transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}

.lot-management-cta .property-submit-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 141, 125, 0.28);
}

.lot-similar .property-card {
    background: transparent;
}

.lot-similar .property-card:hover {
    background: transparent;
    box-shadow: none;
    transform: none;
}

.lot-similar .property-card-main,
.lot-similar .property-card-content,
.lot-similar .property-card-actions {
    background: transparent;
}


/* ── Create listing page ── */
.create-listing-page {
    background: #F7F8F9;
    padding-top: 40px;
    padding-bottom: 48px;
    font-family: "Inter", Helvetica, Arial, sans-serif;
}

body:has(.create-listing-page) .main-content {
    background: #F7F8F9;
}

.create-listing-page .page-container {
    max-width: 1440px;
    padding-left: 40px;
    padding-right: 40px;
}

.create-listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
}

.create-listing-main-col {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    max-width: 936px;
}

.create-listing-panel {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #E9EAED;
    box-shadow: none;
    box-sizing: border-box;
}

.create-listing-panel-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.create-listing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
}

.create-listing-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
    margin: 0;
}

.create-listing-close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F7F8F9;
    border: 1px solid #E9EAED;
    color: #171B22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.create-listing-close:hover {
    background: #EEF0F2;
}

.create-listing-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.create-listing-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}

.create-listing-section-stack,
.create-listing-section-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-listing-section-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
    margin: 0;
}

.create-section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-subsection-label,
.create-listing-label,
.create-field-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #171B22;
    margin: 0;
}

.create-field-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-about-subsection {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.create-type-chip {
    height: 45px;
    padding: 12px 16px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
    cursor: pointer;
}

.create-type-chip.is-active {
    background: #007469;
    border-color: #007469;
    color: #FFFFFF;
}

.create-photo-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: #D9EBE6;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #171B22;
}

.create-photo-tip-icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.create-photo-tip-icon {
    flex-shrink: 0;
    display: inline-flex;
}

.create-photo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.create-photo-main-error {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #dc2626;
}

.create-field-group.has-photo-error .create-photo-grid {
    outline: 1px solid #dc2626;
    outline-offset: 4px;
    border-radius: 16px;
}

.create-photo-grid:has(.create-photo-thumb) .create-photo-upload-zone {
    width: 120px;
    min-height: 120px;
    flex: 0 0 120px;
    padding: 12px;
    justify-content: center;
}

.create-photo-grid:has(.create-photo-thumb) .create-photo-upload-hint {
    display: none;
}

.create-photo-grid .create-photo-upload-zone {
    position: relative;
    cursor: pointer;
}

.create-photo-upload-zone.is-busy {
    cursor: wait;
    pointer-events: none;
    justify-content: center;
}

.create-photo-upload-zone.is-busy .create-photo-input {
    display: none;
}

.create-photo-upload-spinner {
    display: none;
    width: 32px;
    height: 32px;
    border: 3px solid #D9EBE6;
    border-top-color: #007469;
    border-radius: 50%;
    animation: create-photo-spin 0.7s linear infinite;
}

.create-photo-upload-zone.is-busy .create-photo-upload-icon,
.create-photo-upload-zone.is-busy .create-photo-upload-hint {
    display: none;
}

.create-photo-upload-zone.is-busy .create-photo-upload-spinner {
    display: block;
}

@keyframes create-photo-spin {
    to { transform: rotate(360deg); }
}

.create-photo-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    font-size: 0;
}

.create-photo-upload-zone.is-upload-type-open {
    z-index: 25;
}

.create-photo-upload-type-menu {
    z-index: 40;
}

.create-photo-upload-zone.is-dragover {
    border-color: #007469;
    background: #D9EBE6;
}

.create-photo-upload,
.create-doc-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 120px;
    padding: 20px 16px 16px;
    border: 1px dashed #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.create-photo-upload-hint {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #4B5563;
    max-width: 310px;
}

.create-doc-upload-hint {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #4B5563;
    max-width: 336px;
}

.create-doc-upload-zone {
    position: relative;
    min-height: 120px;
}

.create-doc-upload-zone.is-dragover {
    border-color: #007469;
    background: #D9EBE6;
}

.create-doc-upload-zone.has-file {
    border-style: solid;
    border-color: #007469;
    background: #EAF6F4;
    cursor: pointer;
}

.create-doc-idle,
.create-doc-loaded {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.create-doc-idle[hidden],
.create-doc-loaded[hidden],
.create-doc-error[hidden] {
    display: none;
}

.create-doc-check {
    display: inline-flex;
    color: #007469;
}

.create-doc-file-name {
    max-width: 100%;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #171B22;
    word-break: break-word;
}

.create-doc-file-meta {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #007469;
}

.create-doc-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border: 1px solid #E9EAED;
    border-radius: 10px;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
    cursor: pointer;
}

.create-doc-remove:hover {
    background: #F7F8F9;
}

.create-doc-error {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #dc2626;
}

.create-photo-upload-icon,
.create-doc-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.create-photo-upload-icon img,
.create-doc-upload-icon img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.create-photo-thumb {
    position: relative;
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #E9EAED;
    overflow: visible;
}

.create-photo-thumb.is-menu-open {
    z-index: 30;
}

.create-photo-thumb-image {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.create-photo-menu-wrap {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
}

.create-photo-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #171B22;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.create-photo-menu-btn:hover,
.create-photo-thumb.is-menu-open .create-photo-menu-btn {
    background: #fff;
}

.create-photo-menu-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.create-photo-menu-dots span {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #374151;
}

.create-photo-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 168px;
    padding: 8px;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 40;
}

.create-photo-menu[hidden] {
    display: none !important;
}

.create-photo-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: none;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #171B22;
    text-align: left;
    cursor: pointer;
}

.create-photo-menu-item:hover {
    background: #F7F8F9;
}

.create-photo-menu-item.is-active {
    color: #007469;
}

.create-photo-menu-item img,
.create-photo-menu-item svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.create-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.create-field-full {
    margin: 0;
}

.create-field-commission {
    max-width: 438px;
}

.create-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 18px;
    color: #6B7280;
}

.create-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.create-fields-grid[hidden] {
    display: none;
}

.create-input,
.create-textarea,
.create-select {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #E9EAED;
    border-radius: 12px;
    background: #F7F8F9;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
    box-sizing: border-box;
}

.create-input::placeholder,
.create-textarea::placeholder {
    color: #878C94;
}

.create-textarea {
    min-height: 92px;
    padding: 12px;
    resize: none;
    overflow: hidden;
    border-radius: 16px;
    field-sizing: content;
}

.create-textarea-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-select-wrap {
    position: relative;
    display: block;
}

.create-select {
    appearance: none;
    padding: 12px 36px 12px 12px;
}

.create-select-wrap .create-select {
    padding-right: 36px;
}

.create-select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 16px;
    height: 16px;
    opacity: 1;
    transition: transform 0.2s ease;
    z-index: 2;
}

.create-listing-form .create-select-wrap.custom-select .custom-select-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 36px 0 12px;
    border: 1px solid #E9EAED;
    border-radius: 12px;
    background: #F7F8F9;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
    cursor: pointer;
    box-sizing: border-box;
}

.create-listing-form .create-select-wrap.custom-select .custom-select-label {
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.create-listing-form .create-select-wrap.custom-select .custom-select-label.is-placeholder {
    color: #878C94;
}

.create-listing-form .create-select-wrap.custom-select .custom-select-trigger:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px #007469;
}

.create-listing-form .create-select-wrap.custom-select.is-open {
    z-index: 30;
}

.create-listing-form .create-select-wrap.custom-select.is-open .create-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.create-listing-form .create-select-wrap .custom-select-dropdown {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid #E9EAED;
    border-radius: 12px;
    padding: 8px;
    max-height: 280px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.create-listing-form .create-select-wrap .custom-select-option {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 8px;
    border-radius: 8px;
}

.create-listing-form .create-select-wrap .custom-select-reset {
    font-size: 14px;
}

.create-listing-map {
    display: none;
}

.create-input-with-prefix,
.create-input-with-suffix {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 43px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
    overflow: hidden;
    box-sizing: border-box;
}

.create-input-with-prefix--currency {
    padding: 0;
    gap: 0;
}

.create-input-with-prefix--currency .create-input-prefix--currency {
    box-sizing: border-box;
    position: static;
    flex: none;
    align-self: stretch;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    width: 51px;
    min-height: 100%;
    margin: -1px 0 -1px -1px;
    padding: 12px 8px 12px 12px;
    background: #D9EBE6;
    border-right: 1px solid #E9EAED;
    border-radius: 16px 0 0 16px;
    pointer-events: auto;
}

.create-input-with-prefix--currency .create-input-prefix--display-only {
    pointer-events: none;
}

.create-price-currency-switcher {
    position: relative;
    z-index: 2;
    flex: none;
    align-self: stretch;
    display: flex;
}

.create-price-currency-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-align: left;
}

.create-price-currency-btn:focus {
    outline: none;
}

.create-price-currency-btn:focus-visible {
    box-shadow: inset 0 0 0 2px #007469;
}

.create-input-with-prefix--currency.is-currency-open {
    overflow: visible;
    z-index: 20;
}

.create-price-currency-switcher.open .create-input-prefix-chevron {
    transform: rotate(180deg);
}

.create-input-prefix-chevron {
    transition: transform 0.2s ease;
}

.create-price-currency-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 320;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.create-price-currency-menu[hidden] {
    display: none !important;
}

.create-price-currency-menu .currency-menu-item {
    border-radius: 10px;
}

.create-input-prefix-symbol {
    display: flex;
    align-items: center;
    align-self: stretch;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #007469;
}

.create-input-prefix-chevron {
    flex-shrink: 0;
    display: block;
}

.create-input-with-prefix .create-input,
.create-input-with-suffix .create-input {
    border: none;
    border-radius: 0;
    background: transparent;
    min-height: 41px;
}

.create-input-prefix {
    position: absolute;
    left: 16px;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
    color: #007469;
    pointer-events: none;
}

.create-input-prefixed {
    padding-left: 12px;
}

.create-input-with-prefix:not(.create-input-with-prefix--currency) .create-input-prefixed {
    padding-left: 36px;
}

.create-input-with-suffix--full {
    max-width: 438px;
}

.create-input-with-suffix .create-input-percent {
    flex: 1;
    padding-right: 48px;
    text-align: left;
}

.create-input-with-suffix .create-percent-sign {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #171B22;
}

.create-currency-hidden {
    display: none !important;
}

.create-input-price.is-invalid,
.create-textarea.is-invalid,
.has-validation-error .create-input,
.has-validation-error .create-textarea,
.has-validation-error .custom-select-trigger,
.has-validation-error .create-photo-grid {
    border-color: #EF4444;
}

.create-field-error {
    margin: 4px 0 0;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.4;
}

.create-commission-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-commission-block .create-field {
    gap: 12px;
}

.create-commission-block .create-input-with-suffix {
    min-height: 44px;
    border-radius: 12px;
}

.create-commission-block .create-input-with-suffix .create-input {
    min-height: 42px;
}

.create-commission-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.create-input-percent {
    width: 100%;
}

.create-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
    cursor: pointer;
}

.create-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #E9EAED;
    border-radius: 50%;
    background: #F7F8F9;
    cursor: pointer;
}

.create-radio input[type="radio"]:checked {
    border-color: #007469;
}

.create-radio input[type="radio"]:checked::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    margin: 3px auto;
    border-radius: 50%;
    background: #007469;
}

.create-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.create-info-btn img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.create-split-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-split-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.create-split-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #374151;
}

.create-split-slider {
    position: relative;
    z-index: 0;
    padding: 6px 0;
}

.create-range {
    width: 100%;
    height: 20px;
    margin: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.create-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right, #007469 0%, #007469 var(--create-range-pct, 50%), #E9EAED var(--create-range-pct, 50%), #E9EAED 100%);
}

.create-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #007469;
    box-shadow: 0 0 0 1px #007469;
}

.create-range::-moz-range-track {
    height: 8px;
    border-radius: 8px;
    background: #E9EAED;
}

.create-range::-moz-range-progress {
    height: 8px;
    border-radius: 8px;
    background: #007469;
}

.create-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: #007469;
    box-shadow: 0 0 0 1px #007469;
}

.create-split-amounts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.create-advantages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.create-advantages-grid:empty {
    display: none;
}

.create-adv-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--color-primary, #007469);
    border-radius: 999px;
    background: rgb(0 116 105 / 10%);
    font-family: var(--font);
    font-size: 14px;
    line-height: 20px;
    color: #000000;
    cursor: pointer;
}

.create-adv-tag-remove {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: var(--color-primary, #007469);
    opacity: 0.75;
}

.create-add-advantage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    height: 55px;
    padding: 16px 20px;
    border: 1px solid #E9EAED;
    border-radius: 20px;
    background: #F7F8F9;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
    cursor: pointer;
}

.create-add-advantage-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.create-add-advantage-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

body.create-adv-modal-open {
    overflow: hidden;
}

.create-adv-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.create-adv-modal[hidden] {
    display: none;
}

.create-adv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.create-adv-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    max-height: min(80vh, 720px);
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.create-adv-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 12px;
    flex-shrink: 0;
}

.create-adv-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.create-adv-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F7F8F9;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.create-adv-modal-close:hover {
    background: #EEF0F2;
}

.create-adv-modal-search-wrap {
    display: block;
    padding: 0 24px 12px;
    flex-shrink: 0;
}

.create-adv-modal-search {
    width: 100%;
    height: 44px;
    padding: 12px 14px;
    border: 1px solid #E9EAED;
    border-radius: 12px;
    background: #F7F8F9;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: #171B22;
    box-sizing: border-box;
}

.create-adv-modal-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    padding: 0 24px 12px;
}

.create-adv-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #171B22;
}

.create-adv-option.is-hidden {
    display: none;
}

.create-adv-option .rc-checkbox {
    margin-top: 1px;
}

.create-adv-modal-footer {
    flex-shrink: 0;
    padding: 12px 24px 20px;
    border-top: 1px solid #E9EAED;
}

.create-adv-modal-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #007469;
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.create-adv-modal-apply:hover {
    background: #065B52;
}

@media (max-width: 640px) {
    .create-adv-modal-list {
        grid-template-columns: 1fr;
    }
}

.create-hot-offer {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 100%;
}

.create-hot-offer-check {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0;
    cursor: pointer;
}

.create-hot-offer-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #171B22;
    white-space: nowrap;
}

.create-hot-offer-hint {
    margin: 0;
    padding-left: 28px;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #374151;
}

.create-proof-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #171B22;
    margin: 0;
}

.create-agency-banner {
    padding: 20px 24px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: #E8F4FD;
}

.create-agency-banner p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
}

.create-description-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-description-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.create-description-subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #171B22;
}

.create-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #007469;
    cursor: pointer;
}

.create-ai-btn-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.create-ai-btn:disabled,
.create-ai-btn.is-busy {
    opacity: 0.55;
    cursor: wait;
}

.create-ai-error {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #B42318;
}

.create-description-min {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #878C94;
}

.create-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.create-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    min-height: 45px;
    padding: 12px 16px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.create-action-clear {
    background: rgba(250, 233, 228, 0.5);
    border-color: #E9EAED;
    color: #DC5938;
}

.create-action-secondary {
    background: #F7F8F9;
    color: #374151;
}

.create-action-btn[hidden] {
    display: none;
}

.create-action-save {
    background: #007469;
    border-color: #007469;
    color: #FFFFFF;
}

.create-action-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.create-save-result {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}

.create-save-result.is-success {
    color: #059669;
}

.create-save-result.is-error {
    color: #dc2626;
}

.create-listing-preview-wrap {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 40px;
    width: 400px;
    max-width: 100%;
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.create-preview-card.property-card--v2 {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 400px;
    max-width: 100%;
    background: #FFFFFF;
    border: none;
    border-radius: 24px;
    padding: 24px;
    box-shadow: none;
    overflow: visible;
}

.create-preview-card.property-card--v2:hover {
    box-shadow: none;
    transform: none;
}

.create-preview-card .property-card-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.create-preview-card .property-card-image.create-preview-image {
    aspect-ratio: auto;
    width: 100%;
    height: 244px;
    flex-shrink: 0;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: #E9EAED;
}

.create-preview-photo-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(#E9EAED 0% 25%, #F7F8F9 0% 50%) 50% / 16px 16px;
}

.create-preview-photo-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.create-preview-image.has-image {
    background: #E9EAED;
}

.create-preview-image.has-image .create-preview-photo-img {
    display: block;
}

.create-preview-image.has-image .create-preview-photo-placeholder {
    display: none;
}

.create-preview-card .property-card-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 16px;
}

.create-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
}

.create-preview-prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.create-preview-card .property-price {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.create-preview-price-sqm {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #4B5563;
}

.create-preview-favorite {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
}

.create-preview-favorite img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.create-preview-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    gap: 8px;
    min-height: 42px;
}

.create-preview-spec {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 41px;
}

.create-preview-spec-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #4B5563;
}

.create-preview-spec-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #171B22;
}

.create-preview-card .property-card-actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    pointer-events: none;
    user-select: none;
}

.create-preview-card .property-card-actions .btn-call,
.create-preview-card .property-card-actions .btn-write {
    box-sizing: border-box;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 16px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    gap: 8px;
    cursor: default;
    pointer-events: none;
}

.create-preview-card .property-card-actions .btn-call:hover,
.create-preview-card .property-card-actions .btn-call:active {
    background: #007469;
    transform: none;
}

.create-preview-card .property-card-actions .btn-write:hover,
.create-preview-card .property-card-actions .btn-write:active {
    background: #F7F8F9;
    transform: none;
}

.create-preview-card .property-card-actions .btn-call {
    background: #007469;
    color: #FFFFFF;
    border: none;
}

.create-preview-card .property-card-actions .btn-call img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
}

.create-preview-card .property-card-actions .btn-write {
    background: #F7F8F9;
    border: 1px solid #E9EAED;
    color: #374151;
}

.create-preview-card .property-card-actions .btn-write img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.property-card-preview {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px;
}

.property-card-preview-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    margin-bottom: 12px;
    border: 1px dashed #D1D5DB;
    border-radius: 16px;
    background: #FFFFFF;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.property-card-preview-photo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E5F1F0;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.property-card-preview-photo-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-muted);
    max-width: 180px;
}

.property-card-preview-photo.has-image {
    border-style: solid;
    border-color: #E5E7EB;
}

.property-card-preview-photo.has-image .property-card-preview-photo-icon,
.property-card-preview-photo.has-image .property-card-preview-photo-label {
    display: none;
}

.property-card-preview .property-card-content {
    padding-top: 0;
    gap: 6px;
}

.property-card-preview .property-card-top {
    margin-bottom: 2px;
}

.property-card-preview .property-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.property-card-preview-favorite {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.property-card-preview .property-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 0;
    -webkit-line-clamp: 2;
}

.property-card-preview-address {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-muted);
}

.property-card-preview-meta {
    margin-top: 2px;
}

.property-card-preview-meta span {
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.property-card-preview-meta img {
    opacity: 0.55;
}

.property-card-preview .property-card-actions {
    margin-top: 8px;
}

.create-preview-caption {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #4B5563;
}

@media (max-width: 960px) {
    .create-listing-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .create-listing-main-col,
    .create-listing-preview-wrap {
        grid-column: 1;
        grid-row: auto;
    }

    .create-listing-preview-wrap {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        justify-self: center;
    }
}

@media (max-width: 640px) {
    .create-listing-page .page-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .create-listing-panel {
        padding: 20px 16px;
    }

    .create-fields-grid,
    .create-split-amounts {
        grid-template-columns: 1fr;
    }

    .create-listing-actions {
        flex-direction: column;
    }

    .create-action-btn {
        flex: none;
        width: 100%;
    }
}

/* ── Profile page ── */
.profile-page {
    padding-top: clamp(16px, calc(min(100vw, 1440px) * 24 / 1440), 24px);
    background: var(--color-bg-gray);
    --container-pad: clamp(16px, calc(min(100vw, 1440px) * 40 / 1440), 40px);
    /* Profile layout scale — design width 1440px, never upscale above 1 */
    --profile-page-scale: var(--layout-scale);
    --profile-fluid: var(--profile-page-scale);
    --profile-sidebar-width: clamp(220px, calc(min(100vw, 1440px) * 290 / 1440), 290px);
    /* Tabs / head — 1440px design tokens, scale with viewport (visible in computed styles) */
    --profile-tab-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-tab-badge-font: clamp(10px, calc(min(100vw, 1440px) * 14 / 1440), 14px);
    --profile-tab-height: clamp(32px, calc(min(100vw, 1440px) * 44 / 1440), 44px);
    --profile-tab-gap: clamp(4px, calc(min(100vw, 1440px) * 6 / 1440), 6px);
    --profile-tab-pad-y: clamp(8px, calc(min(100vw, 1440px) * 12 / 1440), 12px);
    --profile-tab-border: clamp(1px, calc(min(100vw, 1440px) * 2 / 1440), 2px);
    --profile-tabs-gap: clamp(8px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-tab-badge-min: clamp(16px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-tab-badge-pad-x: clamp(3px, calc(min(100vw, 1440px) * 4 / 1440), 4px);
    --profile-tab-badge-radius: clamp(8px, calc(min(100vw, 1440px) * 10 / 1440), 10px);
    --profile-main-title-font: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-view-toggle-w: clamp(63px, calc(min(100vw, 1440px) * 88 / 1440), 88px);
    --profile-view-toggle-h: clamp(32px, calc(min(100vw, 1440px) * 44 / 1440), 44px);
    --profile-view-toggle-radius: clamp(12px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-view-btn-radius: clamp(9px, calc(min(100vw, 1440px) * 12 / 1440), 12px);
    --profile-view-icon: clamp(13px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-sidebar-title-font: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-sidebar-edit-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-sidebar-head-gap: clamp(8px, calc(min(100vw, 1440px) * 12 / 1440), 12px);
    --profile-user-name-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-user-role-font: clamp(10px, calc(min(100vw, 1440px) * 14 / 1440), 14px);
    --profile-user-info-gap: clamp(3px, calc(min(100vw, 1440px) * 4 / 1440), 4px);
    --profile-public-link-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-public-link-gap: clamp(1px, calc(min(100vw, 1440px) * 2 / 1440), 2px);
    --profile-public-link-min-w: clamp(120px, calc(min(100vw, 1440px) * 149 / 1440), 149px);
    --profile-public-link-pad-y: clamp(6px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-public-link-pad-x: clamp(8px, calc(min(100vw, 1440px) * 12 / 1440), 12px);
    --profile-public-link-radius: clamp(12px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-public-link-bottom: clamp(10px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-public-link-icon: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-stat-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-stat-icon: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-stat-gap: clamp(4px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-stats-list-gap: clamp(8px, calc(min(100vw, 1440px) * 12 / 1440), 12px);
    --profile-action-create-font: calc(16px * var(--layout-scale));
    --profile-action-create-min-h: calc(53px * var(--layout-scale));
    --profile-action-create-pad-y: calc(16px * var(--layout-scale));
    --profile-action-create-pad-x: calc(20px * var(--layout-scale));
    --profile-action-create-radius: calc(16px * var(--layout-scale));
    --profile-action-create-gap: calc(8px * var(--layout-scale));
    --profile-action-create-margin-top: calc(4px * var(--layout-scale));
    --profile-action-plus-size: calc(18px * var(--layout-scale));
    --profile-action-plus-font: calc(14px * var(--layout-scale));
    --profile-sidebar-actions-gap: clamp(4px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-action-min-h: clamp(40px, calc(min(100vw, 1440px) * 55 / 1440), 55px);
    --profile-action-radius: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-action-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-action-gap: clamp(4px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-action-pad-y: clamp(10px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-action-pad-x: clamp(12px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-action-icon: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    /* Published listing card body — 1440px design */
    --profile-published-body-gap: clamp(10px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-published-price-font: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-published-title-font: clamp(11px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-published-address-font: clamp(10px, calc(min(100vw, 1440px) * 14 / 1440), 14px);
    --profile-published-head-gap: clamp(3px, calc(min(100vw, 1440px) * 4 / 1440), 4px);
    --profile-published-top-gap: clamp(4px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-published-meta-gap: clamp(3px, calc(min(100vw, 1440px) * 4 / 1440), 4px);
    --profile-published-tag-h: clamp(22px, calc(min(100vw, 1440px) * 28 / 1440), 28px);
    --profile-published-tag-font: clamp(10px, calc(min(100vw, 1440px) * 14 / 1440), 14px);
    --profile-published-tag-line: clamp(14px, calc(min(100vw, 1440px) * 18 / 1440), 18px);
    --profile-published-tag-pad-y: clamp(3px, calc(min(100vw, 1440px) * 4 / 1440), 4px);
    --profile-published-tag-pad-x: clamp(6px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-published-tag-gap: clamp(3px, calc(min(100vw, 1440px) * 4 / 1440), 4px);
    --profile-published-tag-icon: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-published-actions-gap: clamp(4px, calc(min(100vw, 1440px) * 8 / 1440), 8px);
    --profile-published-icon-btn: clamp(32px, calc(min(100vw, 1440px) * 44 / 1440), 44px);
    --profile-published-icon-btn-pad: clamp(8px, calc(min(100vw, 1440px) * 12 / 1440), 12px);
    --profile-published-icon-btn-radius: clamp(12px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-published-icon-img: clamp(14px, calc(min(100vw, 1440px) * 20 / 1440), 20px);
    --profile-published-boost-min-h: clamp(32px, calc(min(100vw, 1440px) * 44 / 1440), 44px);
    --profile-published-boost-font: clamp(10px, calc(min(100vw, 1440px) * 14 / 1440), 14px);
    --profile-published-boost-radius: clamp(12px, calc(min(100vw, 1440px) * 16 / 1440), 16px);
    --profile-select-all-font: calc(16px * var(--page-scale));
    --profile-select-all-gap: calc(8px * var(--page-scale));
    --profile-select-all-checkbox: calc(20px * var(--page-scale));
    --profile-select-all-checkbox-radius: calc(8px * var(--page-scale));
    --profile-select-all-check-icon: calc(12px * var(--page-scale));
    --profile-toolbar-gap: calc(8px * var(--page-scale));
    --profile-toolbar-row-gap: calc(32px * var(--page-scale));
    --profile-toolbar-row-min-h: calc(44px * var(--page-scale));
    --profile-toolbar-bulk-gap: calc(8px * var(--page-scale));
    --profile-toolbar-icon-btn: calc(44px * var(--page-scale));
    --profile-toolbar-icon-pad: calc(12px * var(--page-scale));
    --profile-toolbar-icon-radius: calc(16px * var(--page-scale));
    --profile-toolbar-icon-img: calc(20px * var(--page-scale));
    --profile-search-min-h: calc(44px * var(--page-scale));
    --profile-search-pad: calc(12px * var(--page-scale));
    --profile-search-gap: calc(8px * var(--page-scale));
    --profile-search-radius: calc(12px * var(--page-scale));
    --profile-search-font: calc(16px * var(--page-scale));
    --profile-search-input-h: calc(20px * var(--page-scale));
    --profile-search-icon: calc(20px * var(--page-scale));
    --profile-segmented-pad-y: calc(4px * var(--page-scale));
    --profile-segmented-pad-x: calc(3px * var(--page-scale));
    --profile-segmented-radius: calc(16px * var(--page-scale));
    --profile-segmented-subtab-h: calc(43px * var(--page-scale));
    --profile-segmented-subtab-pad: calc(12px * var(--page-scale));
    --profile-segmented-subtab-radius: calc(12px * var(--page-scale));
    --profile-segmented-subtab-font: calc(16px * var(--page-scale));
}

.profile-page > .page-container {
    max-width: min(1440px, 100%);
}

@media (min-width: 769px) {
    .profile-page .profile-main .profile-panel,
    .profile-page.profile-selection-detail-page .profile-toolbar--selection-detail,
    .profile-page.profile-selection-detail-page .profile-listings--selection-detail {
        zoom: var(--profile-fluid);
    }

    /* Fluid type in card body; cancel panel zoom so text/icons match viewport scale */
    .profile-page .profile-listing-card--published .profile-listing-body {
        zoom: calc(1 / var(--profile-page-scale));
    }

    .profile-page .profile-panel-favorites .profile-subtabs--segmented,
    .profile-page .profile-panel-favorites .profile-toolbar--selections,
    .profile-page .profile-panel-selections .profile-toolbar--selections {
        zoom: calc(1 / var(--profile-page-scale));
    }
}

.profile-layout {
    display: grid;
    grid-template-columns: var(--profile-sidebar-width) minmax(0, 1fr);
    gap: clamp(12px, calc(min(100vw, 1440px) * 24 / 1440), 24px);
    align-items: start;
}

.profile-layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.profile-main {
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #E9EAED;
    border-radius: 24px;
    padding: 24px;
    container-type: inline-size;
    container-name: profile-main;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: var(--profile-sidebar-width);
    max-width: var(--profile-sidebar-width);
    min-width: var(--profile-sidebar-width);
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: none;
    zoom: var(--profile-page-scale);
}

.profile-sidebar-card {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--profile-sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid #E9EAED;
    border-radius: 24px;
}

.profile-sidebar-card--listings {
    gap: 20px;
    container-type: inline-size;
    container-name: profile-listings-card;
}

.profile-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--profile-sidebar-head-gap);
    width: 100%;
}

@media (min-width: 769px) {
    /* Fluid type; cancel parent .profile-sidebar zoom so size matches viewport, not double-scale */
    .profile-page .profile-sidebar-head,
    .profile-page .profile-user-info,
    .profile-page .profile-public-link,
    .profile-page .profile-listings-title,
    .profile-page .profile-stats-list,
    .profile-page .profile-sidebar-actions {
        zoom: calc(1 / var(--profile-page-scale));
    }
}

.profile-sidebar-title {
    margin: 0;
    font-size: var(--profile-sidebar-title-font);
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.profile-edit-btn {
    padding: 0;
    border: none;
    background: none;
    font-family: var(--font);
    font-size: var(--profile-sidebar-edit-font);
    font-weight: 500;
    line-height: 1.2;
    color: #007469;
    cursor: pointer;
}

.profile-edit-btn:hover {
    opacity: 0.85;
}

.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-avatar-wrap {
    position: relative;
    width: 181px;
}

.profile-avatar {
    width: 181px;
    height: 181px;
    border-radius: 24px;
    background: #F7F8F9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-avatar--empty {
    background: #F7F8F9;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.profile-public-link {
    position: absolute;
    left: 50%;
    bottom: var(--profile-public-link-bottom);
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--profile-public-link-gap);
    min-width: var(--profile-public-link-min-w);
    padding: var(--profile-public-link-pad-y) var(--profile-public-link-pad-x);
    border-radius: var(--profile-public-link-radius);
    border: 1px solid #E9EAED;
    background: #FFFFFF;
    color: #374151;
    font-size: var(--profile-public-link-font);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.profile-public-link-icon {
    flex-shrink: 0;
    display: block;
    width: var(--profile-public-link-icon);
    height: var(--profile-public-link-icon);
    object-fit: contain;
}

.profile-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--profile-user-info-gap);
    text-align: center;
}

.profile-user-name {
    margin: 0;
    font-size: var(--profile-user-name-font);
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.profile-user-role {
    margin: 0;
    font-size: var(--profile-user-role-font);
    font-weight: 500;
    line-height: 1.2;
    color: #4B5563;
}

.profile-sidebar-divider {
    width: 100%;
    height: 1px;
    background: #E9EAED;
    border-radius: 8px;
}

.profile-contacts {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.profile-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-height: 40px;
}

.profile-contact-row + .profile-contact-row {
    margin-top: 0;
}

.profile-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    padding-top: 2px;
}

.profile-contact-row--single {
    align-items: center;
    gap: 13px;
}

.profile-contact-row--single .profile-contact-icon {
    width: 15px;
    height: 15px;
    padding-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.profile-contact-row--single .profile-contact-text {
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-height: 15px;
}

.profile-contact-row--single .profile-contact-value {
    font-size: 14px;
    line-height: 15px;
}

.profile-contact-value--one-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
}

.profile-contact-icon-img {
    display: block;
    object-fit: contain;
}

.profile-contact-icon-img--phone,
.profile-contact-icon-img--email {
    width: 15px;
    height: 15px;
}

.profile-contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.profile-contact-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #4B5563;
}

.profile-contact-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
    word-break: break-word;
}

.profile-listings-title {
    margin: 0;
    font-size: var(--profile-sidebar-title-font);
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.profile-stats-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--profile-stats-list-gap);
    width: 100%;
}

.profile-stat-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--profile-stat-gap);
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font);
    text-align: left;
    cursor: pointer;
}

.profile-stat-main {
    display: inline-flex;
    align-items: center;
    gap: var(--profile-stat-gap);
    font-size: var(--profile-stat-font);
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
}

.profile-stat-icon {
    flex-shrink: 0;
    display: block;
    width: var(--profile-stat-icon);
    height: var(--profile-stat-icon);
    object-fit: contain;
}

.profile-action-icon {
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.profile-stat-count {
    font-size: var(--profile-stat-font);
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.profile-stat-link:hover .profile-stat-main,
.profile-stat-link.is-active .profile-stat-main {
    color: #007469;
}

.profile-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.profile-page .profile-sidebar-actions {
    gap: var(--profile-sidebar-actions-gap);
}

.profile-page .profile-sidebar-actions .profile-action-btn {
    min-height: var(--profile-action-min-h);
    padding: var(--profile-action-pad-y) var(--profile-action-pad-x);
    border-radius: var(--profile-action-radius);
    font-size: var(--profile-action-font);
    gap: var(--profile-action-gap);
}

.profile-page .profile-sidebar-actions .profile-action-icon {
    width: var(--profile-action-icon);
    height: var(--profile-action-icon);
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 55px;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid #E9EAED;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.profile-action-btn-create {
    margin-top: 4px;
    border: none;
    background: #007469;
    color: #FFFFFF;
}

.profile-page .profile-action-btn-create {
    min-height: var(--profile-action-min-h);
    padding: var(--profile-action-pad-y) var(--profile-action-pad-x);
    border-radius: var(--profile-action-radius);
    font-size: var(--profile-action-font);
    gap: var(--profile-action-gap);
    line-height: 1.3;
}

.profile-action-btn-label--short {
    display: none;
}

@container profile-listings-card (max-width: 250px) {
    .profile-action-btn-create .profile-action-btn-label--full {
        display: none;
    }

    .profile-action-btn-create .profile-action-btn-label--short {
        display: inline;
    }
}

@media (max-width: 1280px) {
    .profile-page .profile-action-btn-create .profile-action-btn-label--full {
        display: none;
    }

    .profile-page .profile-action-btn-create .profile-action-btn-label--short {
        display: inline;
    }
}

.profile-action-btn-create .profile-action-btn-label {
    min-width: 0;
}

.profile-action-btn-create .profile-action-plus {
    flex: 0 0 var(--profile-action-icon);
    width: var(--profile-action-icon);
    height: var(--profile-action-icon);
    min-width: var(--profile-action-icon);
    min-height: var(--profile-action-icon);
    font-size: clamp(10px, calc(min(100vw, 1440px) * 14 / 1440), 14px);
}

.profile-action-plus {
    border-radius: 50%;
    background: #FFFFFF;
    color: #007469;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    aspect-ratio: 1;
}

.profile-action-btn-secondary:hover {
    background: #F7F8F9;
}

.profile-action-btn-logout {
    color: #DC5938;
    border-color: #E9EAED;
}

.profile-action-btn-logout:hover {
    background: #FEF2F2;
}

.profile-action-btn-outline {
    background: #FFFFFF;
    color: #374151;
    border: 1px solid #E9EAED;
}

.profile-action-btn-primary {
    background: #007469;
    color: #FFFFFF;
    border: none;
}

.profile-action-btn-muted {
    background: #FFFFFF;
    color: #374151;
    border: 1px solid #E9EAED;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.profile-main-title {
    margin: 0;
    font-size: var(--profile-main-title-font);
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.profile-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-tabs {
    display: flex;
    align-items: center;
    gap: var(--profile-tabs-gap);
    flex-wrap: wrap;
    min-width: 0;
}

.profile-tab {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--profile-tab-gap);
    height: var(--profile-tab-height);
    padding: var(--profile-tab-pad-y) 0;
    border: none;
    border-bottom: var(--profile-tab-border) solid transparent;
    background: transparent;
    font-family: var(--font);
    font-size: var(--profile-tab-font);
    font-weight: 500;
    line-height: 1.2;
    color: #4B5563;
    cursor: pointer;
    white-space: nowrap;
}

.profile-tab.is-active {
    color: #007469;
    border-bottom-color: #007469;
}

.profile-tab-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: var(--profile-tab-badge-min);
    height: var(--profile-tab-badge-min);
    padding: 0 var(--profile-tab-badge-pad-x);
    border-radius: var(--profile-tab-badge-radius);
    background: #007469;
    font-size: var(--profile-tab-badge-font);
    font-weight: 500;
    line-height: 1.2;
    color: #FFFFFF;
}

.profile-tab.is-active .profile-tab-badge {
    display: inline-flex;
}

.profile-view-toggle {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: var(--profile-view-toggle-w);
    height: var(--profile-view-toggle-h);
    min-width: var(--profile-view-toggle-w);
    min-height: var(--profile-view-toggle-h);
    padding: 0;
    border: 1px solid #E9EAED;
    border-radius: var(--profile-view-toggle-radius);
    background: #FFFFFF;
    box-sizing: border-box;
    overflow: hidden;
}

.profile-view-toggle-listings[hidden] {
    display: none;
}

.profile-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: var(--profile-view-btn-radius);
    background: transparent;
    color: #4B5563;
    cursor: pointer;
}

.profile-view-btn-icon,
.profile-view-btn svg {
    display: block;
    flex-shrink: 0;
    width: var(--profile-view-icon);
    height: var(--profile-view-icon);
    max-width: var(--profile-view-icon);
    max-height: var(--profile-view-icon);
}

.profile-view-btn.is-active {
    background: #D9EBE6;
    color: #007469;
}

.profile-panel[hidden] {
    display: none !important;
}

.profile-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.profile-toolbar--selections {
    gap: var(--profile-toolbar-gap);
}

.profile-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 44px;
}

.profile-toolbar--selections .profile-toolbar-row {
    width: 100%;
    gap: var(--profile-toolbar-row-gap);
    min-height: var(--profile-toolbar-row-min-h);
    justify-content: space-between;
}

.profile-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-toolbar--selections .profile-select-all {
    gap: var(--profile-select-all-gap);
    font-size: var(--profile-select-all-font);
}

.profile-toolbar--selections .profile-select-all .profile-checkbox {
    width: var(--profile-select-all-checkbox);
    height: var(--profile-select-all-checkbox);
    border-radius: var(--profile-select-all-checkbox-radius);
}

.profile-toolbar--selections .profile-select-all .profile-checkbox:checked,
.profile-toolbar--selections .profile-select-all .profile-checkbox:disabled:checked {
    background-size: var(--profile-select-all-check-icon) var(--profile-select-all-check-icon);
}

.profile-toolbar-bulk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-toolbar--selections .profile-toolbar-bulk {
    margin-left: auto;
    gap: var(--profile-toolbar-bulk-gap);
}

.profile-icon-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.profile-toolbar--selections .profile-icon-btn {
    width: var(--profile-toolbar-icon-btn);
    height: var(--profile-toolbar-icon-btn);
    min-width: var(--profile-toolbar-icon-btn);
    padding: var(--profile-toolbar-icon-pad);
    border-radius: var(--profile-toolbar-icon-radius);
}

.profile-icon-btn img,
.profile-icon-btn-img {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.profile-toolbar--selections .profile-icon-btn img,
.profile-toolbar--selections .profile-icon-btn-img {
    width: var(--profile-toolbar-icon-img);
    height: var(--profile-toolbar-icon-img);
}

.profile-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px;
    border: 1px solid #E9EAED;
    border-radius: 12px;
    background: #FFFFFF;
    box-sizing: border-box;
}

.profile-toolbar--selections .profile-search-wrap {
    gap: var(--profile-search-gap);
    min-height: var(--profile-search-min-h);
    padding: var(--profile-search-pad);
    border-radius: var(--profile-search-radius);
}

.profile-search-wrap .profile-search-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.profile-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.profile-search-reset {
    flex-shrink: 0;
    color: #007469;
    font-size: 14px;
}

[data-profile-listings-loading][hidden] {
    display: none;
}

.profile-toolbar--selections .profile-search-wrap .profile-search-icon {
    width: var(--profile-search-icon);
    height: var(--profile-search-icon);
    max-width: var(--profile-search-icon);
    max-height: var(--profile-search-icon);
}

.profile-search-input {
    flex: 1;
    min-width: 0;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
}

.profile-toolbar--selections .profile-search-input {
    height: var(--profile-search-input-h);
    font-size: var(--profile-search-font);
}

.profile-search-input:focus {
    outline: none;
}

.profile-search-input::placeholder {
    color: #4B5563;
    opacity: 0.7;
}

.profile-search-icon {
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.profile-panel-favorites {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-subtabs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-subtabs--segmented {
    display: flex;
    width: 100%;
    padding: var(--profile-segmented-pad-y) var(--profile-segmented-pad-x);
    gap: 0;
    border: 1px solid #E9EAED;
    border-radius: var(--profile-segmented-radius);
    box-sizing: border-box;
}

.profile-subtab {
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-subtle);
    cursor: pointer;
}

.profile-subtabs--segmented .profile-subtab {
    flex: 1 1 50%;
    height: var(--profile-segmented-subtab-h);
    padding: var(--profile-segmented-subtab-pad);
    border-radius: var(--profile-segmented-subtab-radius);
    font-size: var(--profile-segmented-subtab-font);
    font-weight: 500;
    line-height: 1.2;
    color: #000000;
}

.profile-subtab.is-active {
    background: var(--color-write-bg);
    color: var(--color-accent-dark);
    font-weight: 600;
}

.profile-subtabs--segmented .profile-subtab.is-active {
    background: #D9EBE6;
    color: #171B22;
    font-weight: 500;
}

.profile-listings--favorites {
    gap: 16px;
    margin-top: 0;
}

.profile-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.profile-listings-block {
    display: flex;
    flex-direction: column;
}

.profile-listings-block[hidden] {
    display: none;
}

.profile-listings-gallery.property-grid {
    display: none;
    margin-top: 8px;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-listings-block--favorites .profile-listings-gallery.property-grid {
    margin-top: 0;
}

.profile-page[data-profile-view="gallery"] .profile-listings-gallery.property-grid {
    display: grid;
}

.profile-page[data-profile-view="gallery"] .profile-listings-block[hidden] .profile-listings-gallery.property-grid,
.profile-listings-gallery[hidden] {
    display: none;
}

.profile-page[data-profile-view="gallery"] .profile-listings--list {
    display: none;
}

@media (min-width: 1400px) {
    .profile-listings-gallery.property-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .profile-listings-gallery.property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .profile-listings-gallery.property-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.profile-listings-pagination {
    margin-top: 24px;
    padding-bottom: 8px;
}

.profile-listings-pagination button.search-pagination-arrow,
.profile-listings-pagination button.search-pagination-page {
    font-family: inherit;
    cursor: pointer;
}

[data-profile-item-select] {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.profile-listing-card {
    display: grid;
    grid-template-columns: minmax(0, 489px) minmax(0, 1fr);
    gap: 20px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    isolation: isolate;
}

.profile-listing-card[data-listing-href] {
    position: relative;
    cursor: pointer;
}

.profile-listing-card--published {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    width: 100%;
    max-width: 998px;
    container-type: inline-size;
    container-name: profile-published-card;
}

.profile-listing-card[data-listing-href] .profile-listing-actions {
    position: relative;
    z-index: 2;
}

.profile-listing-card--published .profile-listing-media--published {
    grid-column: 1;
    grid-row: 1;
    width: 488px;
    min-width: 0;
    max-width: 488px;
    height: 190px;
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
}

.profile-listing-card--published .profile-listing-main-photo {
    flex: 0 0 242px;
    width: 242px;
    min-width: 0;
    max-width: 242px;
    height: 190px;
    aspect-ratio: auto;
    border-radius: 20px;
}

.profile-listing-card--published .property-card-cover,
.profile-listing-card--published .profile-listing-main-photo .property-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-listing-card--published .profile-listing-thumb-grid {
    flex: 0 0 242px;
    width: 242px;
    min-width: 0;
    max-width: 242px;
    height: 190px;
    gap: 4px;
    grid-template-columns: repeat(2, 119px);
    grid-template-rows: repeat(2, 93px);
}

.profile-listing-card--published .profile-listing-media--published .profile-listing-thumb {
    width: 119px;
    height: 93px;
    min-height: 93px;
    max-height: 93px;
    border-radius: 16px;
    background-color: #E9EAED;
    background-size: cover;
    background-position: center;
}

.profile-listing-card--published .profile-listing-body {
    grid-column: 2;
    min-width: 0;
    max-width: none;
    width: 100%;
    gap: var(--profile-published-body-gap);
    min-height: 190px;
    justify-content: space-between;
}

.profile-listing-card--published .profile-listing-top,
.profile-listing-card--published .profile-listing-meta,
.profile-listing-card--published .profile-listing-actions {
    width: 100%;
    max-width: none;
}

.profile-listing-card--published .profile-listing-head-text {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    gap: var(--profile-published-head-gap);
}

.profile-listing-card--published .profile-listing-price {
    margin: 0;
    font-size: var(--profile-published-price-font);
    font-weight: 600;
    line-height: 1.2;
    color: #171B22;
}

.profile-listing-card--published .profile-listing-title {
    margin: 0;
    width: 100%;
    max-width: none;
    font-size: var(--profile-published-title-font);
    font-weight: 600;
    line-height: 1.3;
    color: #171B22;
}

.profile-listing-card--published .profile-listing-top {
    gap: var(--profile-published-top-gap);
}

.profile-listing-card--published .profile-listing-tools {
    gap: var(--profile-published-actions-gap);
}

.profile-listing-card--published .profile-listing-favorite,
.profile-listing-card--published .profile-listing-tools .profile-icon-btn {
    width: var(--profile-published-icon-btn);
    height: var(--profile-published-icon-btn);
    min-width: var(--profile-published-icon-btn);
    padding: var(--profile-published-icon-btn-pad);
    border: 1px solid #E9EAED;
    border-radius: var(--profile-published-icon-btn-radius);
    background: #FFFFFF;
    box-shadow: none;
}

.profile-listing-card--published .profile-listing-tools .profile-icon-btn img,
.profile-listing-card--published .profile-listing-tools .profile-icon-btn-img {
    width: var(--profile-published-icon-img);
    height: var(--profile-published-icon-img);
}

.profile-listing-card--published .profile-listing-address--plain {
    margin: 0;
    font-size: var(--profile-published-address-font);
    font-weight: 500;
    line-height: 1.2;
    color: #374151;
}

.profile-listing-card--published .profile-listing-meta {
    gap: var(--profile-published-meta-gap);
}

.profile-listing-card--published .profile-listing-tag {
    height: var(--profile-published-tag-h);
    padding: var(--profile-published-tag-pad-y) var(--profile-published-tag-pad-x);
    gap: var(--profile-published-tag-gap);
    font-size: var(--profile-published-tag-font);
    font-weight: 500;
    line-height: var(--profile-published-tag-line);
    color: #374151;
    background: #F7F8F9;
}

.profile-listing-card--published .profile-listing-tag img {
    width: var(--profile-published-tag-icon);
    height: var(--profile-published-tag-icon);
}

.profile-listing-card--published .profile-listing-actions {
    margin-top: 0;
    padding-top: 0;
    gap: var(--profile-published-actions-gap);
}

.profile-listing-card--published .profile-listing-edit-btn {
    flex: 0 0 var(--profile-published-icon-btn);
    width: var(--profile-published-icon-btn);
    height: var(--profile-published-icon-btn);
    min-height: var(--profile-published-icon-btn);
    padding: var(--profile-published-icon-btn-pad);
    border-radius: var(--profile-published-icon-btn-radius);
}

.profile-listing-card--published .profile-listing-edit-btn img {
    width: var(--profile-published-icon-img);
    height: var(--profile-published-icon-img);
    object-fit: contain;
}

.profile-listing-card[data-listing-status="published"] .profile-listing-edit-btn {
    margin-inline-start: auto;
}

.profile-listing-card--published .profile-btn-boost {
    min-height: var(--profile-published-boost-min-h);
    border-radius: var(--profile-published-boost-radius);
    font-size: var(--profile-published-boost-font);
}

.profile-listing-media {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.profile-listing-main-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    isolation: isolate;
    background: #E5F1F0;
}

.profile-listing-main-photo .property-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #E5F1F0;
    background-size: cover;
    background-position: center;
}

.profile-listing-main-photo .property-badge-hot {
    top: 10px;
}

.profile-listing-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.profile-listing-thumb {
    height: 56px;
    border-radius: 10px;
    background-color: #E5F1F0;
    background-size: cover;
    background-position: center;
}

.profile-listing-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.profile-listing-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.profile-listing-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-title);
    line-height: 1.2;
}

.profile-listing-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-listing-favorite {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-menu-dropdown {
    right: 0;
    left: auto;
    min-width: calc(220px * var(--page-scale));
}

.property-menu-item-danger {
    color: #DC5938 !important;
}

.property-menu-item-icon-danger {
    filter: none;
}

.profile-menu-dropdown--card {
    min-width: calc(244px * var(--page-scale));
    padding: calc(4px * var(--page-scale));
    border-radius: calc(12px * var(--page-scale));
    box-shadow:
        0 0 calc(8px * var(--page-scale)) rgba(2, 31, 31, 0.08),
        0 calc(2px * var(--page-scale)) calc(8px * var(--page-scale)) rgba(2, 31, 31, 0.04);
}

.profile-listing-card .profile-menu-trigger[aria-expanded="true"] {
    background: #E8F4FC;
    border-color: #C5E4F5;
}

.profile-listing-card--favorite,
.profile-listing-card--selection {
    align-items: stretch;
    min-height: 190px;
}

.profile-listing-media--favorite {
    flex-direction: row;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    max-width: 489px;
    height: 190px;
}

.profile-listing-media--favorite .profile-listing-main-photo {
    flex: 1 1 50%;
    width: auto;
    height: 190px;
    aspect-ratio: auto;
    border-radius: 20px;
}

.profile-listing-card--published .profile-listing-media--published .profile-listing-main-photo {
    flex: 0 0 242px;
    width: 242px;
    min-width: 0;
    max-width: 242px;
    height: 190px;
}

.profile-listing-media--favorite .property-card-cover,
.profile-listing-media--favorite .property-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-listing-thumb-grid {
    flex: 1 1 50%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
    height: 190px;
}

.profile-listing-media--favorite .profile-listing-thumb {
    height: auto;
    min-height: 0;
    border-radius: 16px;
    background-color: #E9EAED;
}

/* Published listing photos: 5 → 3 → 1 (must follow base .profile-listing-media--favorite rules) */
@media (min-width: 769px) {
    @container profile-published-card (max-width: 920px) {
        .profile-listing-card--published .profile-listing-thumb-grid .profile-listing-thumb:nth-child(n + 3) {
            display: none;
        }

        .profile-listing-card--published .profile-listing-media--published,
        .profile-listing-card--published .profile-listing-media--favorite.profile-listing-media--published {
            width: 365px;
            max-width: 365px;
        }

        .profile-listing-card--published .profile-listing-thumb-grid {
            display: flex;
            flex-direction: column;
            flex: 0 0 119px;
            width: 119px;
            max-width: 119px;
            gap: 4px;
        }

        .profile-listing-card--published .profile-listing-thumb-grid .profile-listing-thumb {
            flex: 1 1 0;
            width: 119px;
            min-width: 119px;
            max-width: 119px;
            height: auto;
            min-height: 0;
            max-height: none;
            aspect-ratio: 119 / 93;
        }
    }

    @container profile-published-card (max-width: 580px) {
        .profile-listing-card--published .profile-listing-thumb-grid {
            display: none;
        }

        .profile-listing-card--published .profile-listing-media--published,
        .profile-listing-card--published .profile-listing-media--favorite.profile-listing-media--published {
            width: 242px;
            max-width: 242px;
        }
    }
}

@media (min-width: 769px) and (max-width: 1320px) {
    .profile-listing-card--published .profile-listing-thumb-grid .profile-listing-thumb:nth-child(n + 3) {
        display: none;
    }

    .profile-listing-card--published .profile-listing-media--published,
    .profile-listing-card--published .profile-listing-media--favorite.profile-listing-media--published {
        width: 365px;
        max-width: 365px;
    }

    .profile-listing-card--published .profile-listing-thumb-grid {
        display: flex;
        flex-direction: column;
        flex: 0 0 119px;
        width: 119px;
        max-width: 119px;
        gap: 4px;
    }

    .profile-listing-card--published .profile-listing-thumb-grid .profile-listing-thumb {
        flex: 1 1 0;
        width: 119px;
        min-width: 119px;
        max-width: 119px;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 119 / 93;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .profile-listing-card--published .profile-listing-thumb-grid {
        display: none;
    }

    .profile-listing-card--published .profile-listing-media--published,
    .profile-listing-card--published .profile-listing-media--favorite.profile-listing-media--published {
        width: 242px;
        max-width: 242px;
    }
}

.profile-listing-top--favorite {
    align-items: flex-start;
}

.profile-listing-head-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-listing-address--plain {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-listing-actions--favorite {
    display: flex;
    align-items: stretch;
    gap: var(--profile-published-actions-gap);
    padding-top: 0;
    margin-top: auto;
}

.profile-listing-actions--favorite .profile-btn,
.profile-listing-actions--favorite .btn-call {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    box-sizing: border-box;
    height: var(--profile-published-boost-min-h);
    min-height: var(--profile-published-boost-min-h);
    max-height: var(--profile-published-boost-min-h);
    padding: 0 12px;
    border-radius: var(--profile-published-boost-radius);
    font-size: var(--profile-published-boost-font);
    font-weight: 600;
    line-height: 1.3;
}

.profile-btn-call--favorite {
    background: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
}

.profile-btn-call--favorite:hover:not(:disabled) {
    background: var(--btn-primary-bg-hover) !important;
}

.profile-btn-call--favorite img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.profile-btn-write--favorite {
    background: #F7F8F9 !important;
    color: #374151 !important;
    border: 1px solid #E9EAED !important;
    box-sizing: border-box;
}

.profile-btn-write--favorite:hover:not(:disabled):not([aria-disabled="true"]) {
    background: #FFFFFF !important;
}

.profile-btn-write--favorite img {
    filter: brightness(0) invert(45%);
}

.profile-listing-card--favorite .profile-listing-favorite.is-active,
.profile-listing-card--selection .profile-listing-favorite.is-active {
    width: var(--profile-published-icon-btn);
    height: var(--profile-published-icon-btn);
    border-radius: var(--profile-published-icon-btn-radius);
    border: 1px solid #E9EAED;
    background: #FFFFFF;
    box-shadow: none;
}

.profile-listing-favorite.is-active .profile-listing-favorite-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.profile-listing-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-title);
}

.profile-listing-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--color-muted);
    min-width: 0;
}

.profile-listing-address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-listing-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.profile-listing-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 100px;
    background: #F7F8F9;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #374151;
    white-space: nowrap;
}

.profile-listing-tag img {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.profile-listing-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-subtle);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-listing-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.profile-btn-boost {
    flex: 1;
    min-height: 44px;
    border-radius: 16px;
    background: #007469;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.profile-btn-edit {
    background: var(--color-write-bg);
    color: var(--color-accent-dark);
}

.profile-btn-muted {
    background: #E5E7EB;
    color: var(--color-subtle);
}

.profile-btn-call {
    background: var(--color-call-bg);
    color: var(--color-primary);
}

.profile-btn-write {
    background: var(--color-write-bg);
    color: var(--color-accent-dark);
}

.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    padding: 40px 20px;
}

.profile-empty-icon {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.profile-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-title);
    margin-bottom: 8px;
}

.profile-empty-text {
    max-width: 360px;
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.5;
}

.profile-empty--listings {
    gap: 24px;
    min-height: 296px;
    margin: 8px auto 0;
    padding: 24px 20px 32px;
    max-width: 367px;
}

.profile-empty--listings .profile-empty-copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.profile-empty--listings .profile-empty-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

.profile-empty--listings .profile-empty-text {
    margin: 0;
    max-width: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #4B5563;
}

.profile-empty-illustration {
    display: block;
    width: 100%;
    max-width: 367px;
    height: auto;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 8px;
}

.profile-empty-cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    padding: 16px 20px;
    border: 1px solid #E9EAED;
    border-radius: 20px;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
}

.profile-panel-selections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-toolbar--selections {
    margin-top: 4px;
}

.profile-toolbar--selections .profile-search-input::placeholder {
    color: #4B5563;
    opacity: 0.7;
}

.profile-selections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: start;
    gap: clamp(8px, 1.5vw, 12px) clamp(4px, 1vw, 8px);
    width: 100%;
    min-width: 0;
}

.profile-selection-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    container-type: inline-size;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.profile-selection-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.profile-selection-card > [data-profile-item-select] {
    position: absolute;
    top: clamp(6px, 2.96cqi, 8px);
    left: clamp(6px, 2.96cqi, 8px);
}

.profile-selection-card-link:focus-visible {
    outline: 2px solid var(--btn-primary-bg);
    outline-offset: 4px;
    border-radius: 16px;
}

.profile-selection-preview {
    position: relative;
    width: 100%;
}

.profile-selection-card-new {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    container-type: inline-size;
    text-align: center;
    background: #F7F8F9;
    border: 1px dashed #E9EAED;
    border-radius: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.profile-selection-new-body {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 2cqi, 8px);
    width: 100%;
    aspect-ratio: 215 / 216;
    min-height: 0;
    padding: clamp(8px, 4cqi, 16px) clamp(6px, 3cqi, 8px);
    box-sizing: border-box;
}

.profile-selection-new-folder {
    display: block;
    width: clamp(48px, 28cqi, 62px);
    height: clamp(48px, 28cqi, 62px);
    object-fit: contain;
    opacity: 0.85;
}

.profile-selection-new-title {
    margin: 0;
    font-size: clamp(13px, 7.5cqi, 16px);
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
}

.profile-selection-new-text {
    margin: 0;
    font-size: clamp(11px, 6cqi, 14px);
    font-weight: 500;
    line-height: 1.3;
    color: #4B5563;
    max-width: 100%;
}

.profile-selection-create-btn {
    flex: 0 0 auto;
    width: calc(100% - 32px);
    min-height: clamp(32px, 10cqi, 45px);
    margin: 12px 16px 16px;
    padding: clamp(6px, 2.5cqi, 12px) clamp(8px, 3cqi, 16px);
    border: none;
    border-radius: 12px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-family: var(--font);
    font-size: clamp(12px, 6.5cqi, 16px);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-selection-create-btn-label--short {
    display: none;
}

@container (max-width: 155px) {
    .profile-selection-new-text {
        display: none;
    }

    .profile-selection-create-btn-label--full {
        display: none;
    }

    .profile-selection-create-btn-label--short {
        display: inline;
    }

    .profile-selection-create-btn {
        min-height: clamp(28px, 9cqi, 36px);
        margin-bottom: 12px;
    }
}

.profile-selection-create-btn:hover:not(:disabled) {
    background: var(--btn-primary-bg-hover);
}

.profile-selection-images {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    aspect-ratio: 215 / 216;
    height: auto;
}

.profile-selection-images--1 {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.profile-selection-images--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
}

.profile-selection-images--3 .profile-selection-image:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.profile-selection-images--3 .profile-selection-image:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.profile-selection-images--3 .profile-selection-image:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.profile-selection-image {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: clamp(10px, 4cqi, 16px);
    background-color: #E9EAED;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-sizing: border-box;
}

.profile-selection-images--1 .profile-selection-image,
.profile-selection-images--2 .profile-selection-image,
.profile-selection-images--3 .profile-selection-image {
    aspect-ratio: auto;
    height: 100%;
}

.profile-selection-image--empty {
    background-color: #F0F2F4;
}

.profile-selection-menu-wrap {
    position: absolute;
    top: clamp(6px, 2.96cqi, 8px);
    right: clamp(6px, 2.96cqi, 8px);
    z-index: 4;
}

.profile-selection-menu {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    z-index: 2;
    width: clamp(26px, 11.85cqi, 32px);
    height: clamp(26px, 11.85cqi, 32px);
    padding: clamp(4px, 2.22cqi, 6px);
    border-radius: clamp(6px, 2.96cqi, 8px);
    border: none;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(23, 27, 34, 0.12);
}

.profile-selection-menu svg {
    width: clamp(16px, 7.41cqi, 20px);
    height: clamp(16px, 7.41cqi, 20px);
}

.profile-selection-menu-dropdown {
    position: absolute;
    top: calc(100% + clamp(6px, 2.96cqi, 8px));
    right: 0;
    display: flex;
    flex-direction: column;
    width: clamp(148px, 78.9cqi, 213px);
    max-width: min(78.9cqi, calc(100vw - 24px), 213px);
    padding: clamp(12px, 6.67cqi, 18px) 0;
    border: none;
    border-radius: clamp(16px, 8.89cqi, 24px);
    background: #FFFFFF;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 20;
    box-sizing: border-box;
}

.profile-selection-menu-dropdown[hidden] {
    display: none !important;
}

.profile-selection-menu-item {
    display: flex;
    align-items: center;
    gap: clamp(8px, 4.44cqi, 12px);
    width: 100%;
    min-height: clamp(36px, 17.78cqi, 48px);
    padding: 0 clamp(12px, 5.93cqi, 16px);
    border: none;
    background: #FFFFFF;
    font-family: var(--font);
    font-size: clamp(12px, 5.93cqi, 16px);
    font-weight: 400;
    line-height: 1.4;
    color: #171B22;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.profile-selection-menu-item:hover {
    background: #F7F8F9;
}

.profile-selection-menu-item img,
.profile-selection-menu-item-icon {
    flex-shrink: 0;
    width: clamp(16px, 7.41cqi, 20px);
    height: clamp(16px, 7.41cqi, 20px);
    object-fit: contain;
    display: block;
}

.profile-selection-menu-item--danger {
    color: rgb(215, 12, 47);
}

.profile-main--selection-detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-selection-detail-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.profile-selection-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
}

.profile-selection-back:hover {
    color: #171B22;
}

.profile-selection-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-selection-detail-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
    flex: 1 1 auto;
    min-width: 0;
}

.profile-selection-detail-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.profile-toolbar--selection-detail {
    margin-top: 0;
}

.profile-listings--selection-detail {
    margin-top: 4px;
}

.profile-selection-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 0 0 auto;
    padding-top: 12px;
}

.profile-selection-name {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    font-size: clamp(13px, 7.5cqi, 16px);
    font-weight: 600;
    line-height: 1.25;
    color: #171B22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-selection-count {
    margin: 0;
    padding: 0;
    font-size: clamp(11px, 6cqi, 14px);
    font-weight: 500;
    line-height: 1.2;
    color: #4B5563;
}

body.confirmation-open {
    overflow: hidden;
}

.profile-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.45);
}

.profile-modal-overlay[hidden] {
    display: none !important;
}

.profile-modal {
    width: min(100%, 480px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.profile-modal-wide {
    width: min(100%, 720px);
}

.profile-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-title);
}

.profile-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-modal.profile-modal-selection-share {
    position: relative;
    width: min(100%, 420px);
    max-height: none;
    overflow: hidden;
    padding: 24px 24px 22px;
    border-radius: 20px;
    box-sizing: border-box;
}

.profile-modal-close--share {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: #E5E7EB;
    color: #374151;
    box-shadow: none;
}

.profile-modal-selection-share-title {
    margin: 0 40px 18px 0;
    font-size: 20px;
    line-height: 1.25;
}

.profile-selection-share-url-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    min-width: 0;
    max-width: 100%;
    padding: 11px 10px 11px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-sizing: border-box;
}

.profile-selection-share-url {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    color: #374151;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.profile-selection-share-copy {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6B7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-selection-share-copy:hover {
    color: #374151;
    background: #F3F4F6;
}

.profile-selection-share-go {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 16px;
    box-sizing: border-box;
    background: var(--color-primary, #0D9488);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.profile-selection-share-go:hover {
    filter: brightness(0.96);
    color: #FFFFFF;
}

#favorite-modal-create-selection .profile-modal-close--text {
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #374151;
    cursor: pointer;
}

#favorite-modal-create-selection .profile-modal-close--text:hover {
    color: #171b22;
}

.profile-modal-field {
    display: block;
    margin-bottom: 20px;
}

.profile-modal-input,
.profile-modal-textarea {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: #F9FAFB;
    font-size: 15px;
    color: var(--color-title);
}

.profile-modal-input {
    height: 44px;
    padding: 0 14px;
}

.profile-modal-textarea {
    padding: 12px 14px;
    resize: vertical;
    min-height: 96px;
}

.profile-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-modal-btn {
    min-height: 44px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.profile-modal-btn-secondary {
    background: #E5F1F0;
    color: var(--color-primary);
}

.profile-modal-btn-save {
    background: #E5E7EB;
    color: #9CA3AF;
}

.profile-modal-btn-save:not(:disabled) {
    background: var(--color-primary-light);
    color: #FFFFFF;
}

.profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.profile-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-edit-field-full {
    grid-column: 1 / -1;
}

.profile-edit-label {
    font-size: 13px;
    color: var(--color-muted);
}

.profile-edit-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-edit-upload-box {
    width: 88px;
    height: 88px;
    border: 1px dashed #D1D5DB;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    background: #F9FAFB;
}

.profile-edit-upload-plus {
    font-size: 28px;
    line-height: 1;
}

.profile-edit-upload-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 4px;
}

.profile-edit-upload-hint {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.45;
}

.profile-edit-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-title);
    margin-bottom: 12px;
}

.profile-edit-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.profile-edit-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-edit-social .profile-modal-input {
    flex: 1;
}

.profile-edit-password {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.profile-edit-password-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-edit-show {
    border: none;
    background: transparent;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .profile-layout,
    .profile-layout--no-sidebar {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        min-width: 0;
        max-width: none;
        width: 100%;
        flex: none;
    }

    .profile-sidebar-card,
    .profile-sidebar-card--profile {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .profile-selections-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        zoom: 1;
    }

    .profile-page .profile-main .profile-panel,
    .profile-page.profile-selection-detail-page .profile-toolbar--selection-detail,
    .profile-page.profile-selection-detail-page .profile-listings--selection-detail {
        zoom: 1;
    }

    .profile-page .profile-listing-card--published .profile-listing-body {
        zoom: 1;
    }

    .property-card-list,
    .profile-page .profile-listing-card {
        display: grid;
        grid-template-columns: clamp(88px, 26vw, 128px) minmax(0, 1fr);
        gap: 8px 12px;
        align-items: start;
        min-height: 0;
        max-width: none;
        width: 100%;
        zoom: 1;
    }

    .property-card-list-head .property-price,
    .profile-page .profile-listing-card .profile-listing-price {
        font-size: 18px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .property-card-list .property-title,
    .profile-page .profile-listing-card .profile-listing-title {
        font-size: 16px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .profile-page .profile-listing-card {
        --profile-published-icon-btn: 36px;
        --profile-published-icon-img: 20px;
        --profile-published-boost-min-h: 38px;
        --profile-published-boost-font: 13px;
        container-type: normal;
        grid-template-columns: clamp(88px, 26vw, 128px) minmax(0, 1fr) auto;
    }

    .profile-page .profile-listing-card[hidden] {
        display: none;
    }

    .profile-page .profile-listing-card .profile-listing-media {
        grid-column: 1;
        grid-row: 2 / 4;
        width: 100%;
        max-width: none;
        height: auto;
    }

    .profile-page .profile-listing-card .profile-listing-media .profile-listing-main-photo {
        flex: none;
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 1;
        border-radius: 12px;
    }

    .profile-page .profile-listing-card .profile-listing-thumb-grid,
    .profile-page .profile-listing-card .profile-listing-thumbs,
    .profile-page .profile-listing-card .profile-listing-desc {
        display: none;
    }

    .profile-page .profile-listing-card .profile-listing-body,
    .profile-page .profile-listing-card .profile-listing-top,
    .profile-page .profile-listing-card .profile-listing-head-text {
        display: contents;
    }

    .profile-page .profile-listing-card .profile-listing-price {
        grid-column: 1 / 3;
        grid-row: 1;
        align-self: center;
        min-width: 0;
        margin: 0;
    }

    .profile-page .profile-listing-card .profile-listing-title {
        grid-column: 2 / -1;
        grid-row: 2;
        align-self: end;
        margin: 0;
    }

    .profile-page .profile-listing-card .profile-listing-address {
        grid-column: 2 / -1;
        grid-row: 3;
        margin: 0;
        font-size: 13px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-page .profile-listing-card .profile-listing-meta {
        grid-column: 1 / -1;
        grid-row: 4;
        gap: 8px;
    }

    .profile-page .profile-listing-card .profile-listing-tag {
        height: auto;
        font-size: 14px;
        line-height: 18px;
        white-space: normal;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .profile-page .profile-listing-card .profile-listing-tools {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        gap: 8px;
        position: relative;
        z-index: 3;
    }

    .profile-page .profile-listing-card .profile-listing-actions {
        grid-column: 1 / -1;
        grid-row: 5;
        margin-top: 0;
        padding-top: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-page .profile-listing-card .profile-listing-actions .profile-btn {
        min-width: 0;
        max-width: 100%;
    }

    .profile-main-head {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-view-toggle {
        align-self: flex-end;
    }

    .profile-selections-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    }

    .profile-selection-card,
    .profile-selection-card-new {
        max-width: none;
    }

    .profile-edit-grid,
    .profile-edit-socials,
    .profile-modal-actions {
        grid-template-columns: 1fr;
    }

    .profile-agency-grid-2 {
        grid-template-columns: 1fr;
    }
}

.profile-modal-edit {
    width: min(100%, 656px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: min(90vh, 820px);
    border-radius: 24px;
    box-sizing: border-box;
}

.profile-edit-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: #C5CAD1 transparent;
}

.profile-edit-body::-webkit-scrollbar {
    width: 6px;
}

.profile-edit-body::-webkit-scrollbar-track {
    background: transparent;
}

.profile-edit-body::-webkit-scrollbar-thumb {
    background: #C5CAD1;
    border-radius: 999px;
}

.profile-edit-body::-webkit-scrollbar-thumb:hover {
    background: #A8AFB8;
}

.profile-edit-body::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.profile-edit-body > .profile-agency-grid-2 {
    gap: 12px;
}

.profile-edit-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-edit-photo-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 120px;
    padding: 20px 16px;
    border: 1px dashed #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.profile-edit-photo-drop.is-dragover {
    border-color: #007469;
    background: #E8F4F1;
}

.profile-edit-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.profile-edit-photo-drop.has-photo {
    min-height: 180px;
    height: 180px;
    padding: 0;
    background: #EEF1F4;
}

.profile-edit-photo-preview {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

.profile-edit-photo-drop.has-photo .profile-edit-photo-preview {
    display: block;
}

.profile-edit-photo-drop.has-photo .profile-edit-photo-drop-icon,
.profile-edit-photo-drop.has-photo .profile-edit-photo-drop-hint {
    display: none;
}

.profile-edit-photo-drop-hint {
    max-width: 420px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #4B5563;
    position: relative;
    z-index: 0;
}

.profile-edit-photo-drop-icon {
    display: block;
    position: relative;
    z-index: 0;
}

.profile-edit-photo-error {
    display: none;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #DC5938;
}

.profile-edit-photo-error.is-visible {
    display: block;
}

.profile-edit-security-hint {
    display: block;
}

.profile-edit-security-link {
    color: #007469;
    font-weight: 600;
    text-decoration: none;
}

.profile-edit-security-link:hover {
    text-decoration: underline;
}

.profile-edit-password-wrap {
    position: relative;
    display: block;
}

.profile-edit-input-password {
    padding-right: 44px;
}

.profile-edit-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.profile-edit-actions {
    flex-shrink: 0;
}

/* Edit profile modal — 1440px baseline, scales with --page-scale */
#profile-modal-edit-profile.profile-modal-overlay {
    padding: calc(24px * var(--page-scale));
}

#profile-modal-edit-profile {
    --pem-width: calc(656px * var(--page-scale));
    --pem-pad: calc(24px * var(--page-scale));
    --pem-gap: calc(20px * var(--page-scale));
    --pem-radius: calc(24px * var(--page-scale));
    --pem-max-h: calc(820px * var(--page-scale));
    --pem-head-gap: calc(12px * var(--page-scale));
    --pem-title-font: calc(20px * var(--page-scale));
    --pem-close-size: calc(44px * var(--page-scale));
    --pem-close-radius: calc(12px * var(--page-scale));
    --pem-close-icon: calc(20px * var(--page-scale));
    --pem-grid-gap: calc(12px * var(--page-scale));
    --pem-field-gap: calc(8px * var(--page-scale));
    --pem-label-font: calc(16px * var(--page-scale));
    --pem-label-line: calc(20px * var(--page-scale));
    --pem-input-h: calc(41px * var(--page-scale));
    --pem-input-pad: calc(12px * var(--page-scale));
    --pem-input-radius: calc(16px * var(--page-scale));
    --pem-input-font: calc(14px * var(--page-scale));
    --pem-phone-control-h: calc(42px * var(--page-scale));
    --pem-phone-btn-min-w: calc(58px * var(--page-scale));
    --pem-phone-btn-pad-y: calc(12px * var(--page-scale));
    --pem-phone-btn-pad-x: calc(8px * var(--page-scale));
    --pem-phone-btn-pad-start: calc(12px * var(--page-scale));
    --pem-phone-btn-gap: calc(5px * var(--page-scale));
    --pem-phone-input-h: calc(42px * var(--page-scale));
    --pem-phone-input-font: calc(14px * var(--page-scale));
    --pem-section-gap: calc(12px * var(--page-scale));
    --pem-section-title-font: calc(16px * var(--page-scale));
    --pem-section-title-line: calc(20px * var(--page-scale));
    --pem-section-hint-font: calc(14px * var(--page-scale));
    --pem-section-hint-line: calc(18px * var(--page-scale));
    --pem-section-intro-gap: calc(4px * var(--page-scale));
    --pem-photo-min-h: calc(120px * var(--page-scale));
    --pem-photo-min-h-filled: calc(180px * var(--page-scale));
    --pem-photo-pad-y: calc(20px * var(--page-scale));
    --pem-photo-pad-x: calc(16px * var(--page-scale));
    --pem-photo-gap: calc(12px * var(--page-scale));
    --pem-photo-radius: calc(16px * var(--page-scale));
    --pem-photo-preview-h: calc(180px * var(--page-scale));
    --pem-photo-hint-font: calc(14px * var(--page-scale));
    --pem-photo-hint-line: calc(18px * var(--page-scale));
    --pem-photo-hint-max-w: calc(420px * var(--page-scale));
    --pem-photo-hint-pad-top: calc(28px * var(--page-scale));
    --pem-photo-hint-pad-x: calc(16px * var(--page-scale));
    --pem-photo-hint-pad-bottom: calc(12px * var(--page-scale));
    --pem-photo-drop-icon: calc(32px * var(--page-scale));
    --pem-textarea-min-h: calc(92px * var(--page-scale));
    --pem-actions-gap: calc(8px * var(--page-scale));
    --pem-btn-min-h: calc(45px * var(--page-scale));
    --pem-btn-radius: calc(16px * var(--page-scale));
    --pem-btn-font: calc(15px * var(--page-scale));
    --pem-scroll-w: calc(6px * var(--page-scale));
}

#profile-modal-edit-profile .profile-modal-edit {
    width: min(100%, var(--pem-width));
    padding: var(--pem-pad);
    gap: var(--pem-gap);
    max-height: min(90vh, var(--pem-max-h));
    border-radius: var(--pem-radius);
}

#profile-modal-edit-profile .profile-modal-head-agency {
    gap: var(--pem-head-gap);
}

#profile-modal-edit-profile .profile-modal-title-agency {
    font-size: var(--pem-title-font);
}

#profile-modal-edit-profile .profile-modal-close-square {
    width: var(--pem-close-size);
    height: var(--pem-close-size);
    min-width: var(--pem-close-size);
    border-radius: var(--pem-close-radius);
}

#profile-modal-edit-profile .profile-modal-close-square svg {
    width: var(--pem-close-icon);
    height: var(--pem-close-icon);
}

#profile-modal-edit-profile .profile-edit-body {
    gap: var(--pem-gap);
}

#profile-modal-edit-profile .profile-edit-body::-webkit-scrollbar {
    width: var(--pem-scroll-w);
}

#profile-modal-edit-profile .profile-edit-body > .profile-agency-grid-2 {
    gap: var(--pem-grid-gap);
}

#profile-modal-edit-profile .profile-edit-section {
    gap: var(--pem-section-gap);
}

#profile-modal-edit-profile .profile-agency-field {
    gap: var(--pem-field-gap);
}

#profile-modal-edit-profile .profile-agency-label {
    font-size: var(--pem-label-font);
    line-height: var(--pem-label-line);
}

#profile-modal-edit-profile .profile-agency-input {
    height: var(--pem-input-h);
    padding: var(--pem-input-pad);
    border-radius: var(--pem-input-radius);
    font-size: var(--pem-input-font);
}

#profile-modal-edit-profile .phone-field--profile-agency .phone-field-control {
    min-height: var(--pem-phone-control-h);
    border-radius: var(--pem-input-radius);
}

#profile-modal-edit-profile .phone-field--profile-agency .phone-field-country-btn {
    min-width: var(--pem-phone-btn-min-w);
    padding: var(--pem-phone-btn-pad-y) var(--pem-phone-btn-pad-x) var(--pem-phone-btn-pad-y) var(--pem-phone-btn-pad-start);
    gap: var(--pem-phone-btn-gap);
}

#profile-modal-edit-profile .phone-field--profile-agency .phone-field-flag-img {
    width: calc(24px * var(--page-scale));
    height: calc(18px * var(--page-scale));
}

#profile-modal-edit-profile .phone-field--profile-agency .phone-field-chevron {
    width: calc(16px * var(--page-scale));
    height: calc(16px * var(--page-scale));
}

#profile-modal-edit-profile .phone-field--profile-agency .phone-field-input {
    height: var(--pem-phone-input-h);
    font-size: var(--pem-phone-input-font);
}

#profile-modal-edit-profile .profile-edit-photo-drop {
    gap: var(--pem-photo-gap);
    min-height: var(--pem-photo-min-h);
    padding: var(--pem-photo-pad-y) var(--pem-photo-pad-x);
    border-radius: var(--pem-photo-radius);
}

#profile-modal-edit-profile .profile-edit-photo-drop.has-photo {
    min-height: var(--pem-photo-min-h-filled);
    height: var(--pem-photo-preview-h);
    padding: 0;
}

#profile-modal-edit-profile .profile-edit-photo-preview {
    height: 100%;
}

#profile-modal-edit-profile .profile-edit-photo-drop.has-photo .profile-edit-photo-drop-hint {
    display: none;
}

#profile-modal-edit-profile .profile-edit-photo-drop-icon {
    width: var(--pem-photo-drop-icon);
    height: var(--pem-photo-drop-icon);
}

#profile-modal-edit-profile .profile-edit-photo-drop-hint {
    max-width: var(--pem-photo-hint-max-w);
    font-size: var(--pem-photo-hint-font);
    line-height: var(--pem-photo-hint-line);
}

#profile-modal-edit-profile .profile-edit-photo-drop.has-photo .profile-edit-photo-drop-hint {
    display: none;
}

#profile-modal-edit-profile .profile-agency-section-intro {
    gap: var(--pem-section-intro-gap);
}

#profile-modal-edit-profile .profile-agency-section-title {
    font-size: var(--pem-section-title-font);
    line-height: var(--pem-section-title-line);
}

#profile-modal-edit-profile .profile-agency-section-hint {
    font-size: var(--pem-section-hint-font);
    line-height: var(--pem-section-hint-line);
}

#profile-modal-edit-profile .profile-agency-textarea {
    min-height: var(--pem-textarea-min-h);
    padding: var(--pem-input-pad);
    border-radius: var(--pem-input-radius);
    font-size: var(--pem-input-font);
}

#profile-modal-edit-profile .profile-edit-actions {
    gap: var(--pem-actions-gap);
}

#profile-modal-edit-profile .profile-modal-btn {
    min-height: var(--pem-btn-min-h);
    font-size: var(--pem-btn-font);
}

#profile-modal-edit-profile .profile-modal-btn-agency-secondary,
#profile-modal-edit-profile .profile-modal-btn-agency-primary {
    border-radius: var(--pem-btn-radius);
    min-height: var(--pem-btn-min-h);
}

.profile-modal-agency {
    width: min(100%, 656px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: min(682px, calc(100vh - 48px));
    border-radius: 24px;
    box-sizing: border-box;
}

.profile-modal-head-agency {
    margin-bottom: 0;
    align-items: flex-start;
}

.profile-modal-title-agency {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.profile-modal-close-square {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F7F8F9;
    border: 1px solid #E9EAED;
    color: #171B22;
}

.profile-agency-info {
    margin: 0;
    padding: 12px;
    background: #D9EBE6;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    color: #171B22;
}

.profile-agency-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: #C5CAD1 transparent;
}

.profile-agency-body::-webkit-scrollbar {
    width: 6px;
}

.profile-agency-body::-webkit-scrollbar-track {
    background: transparent;
}

.profile-agency-body::-webkit-scrollbar-thumb {
    background: #C5CAD1;
    border-radius: 999px;
}

.profile-agency-body::-webkit-scrollbar-thumb:hover {
    background: #A8AFB8;
}

.profile-agency-body::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

.profile-agency-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-agency-socials-title {
    margin-top: 8px;
}

.profile-agency-section-intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-agency-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #171B22;
}

.profile-agency-section-hint {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #4B5563;
}

.profile-agency-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-agency-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.profile-agency-field-full {
    width: 100%;
}

.profile-agency-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: #171B22;
}

.profile-agency-label--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;
}

.profile-agency-input,
.profile-agency-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #171B22;
}

.profile-agency-input {
    height: 41px;
    padding: 12px;
}

.profile-agency-input::placeholder,
.profile-agency-textarea::placeholder {
    color: #878C94;
}

.profile-agency-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #F7F8F9;
    min-height: 44px;
    box-sizing: border-box;
}

.profile-agency-input-icon {
    flex-shrink: 0;
    display: block;
}

.profile-agency-input--icon {
    border: none;
    background: transparent;
    height: auto;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.profile-agency-textarea {
    min-height: 92px;
    padding: 12px;
    resize: vertical;
}

.profile-agency-actions {
    flex-shrink: 0;
    gap: 8px;
}

.profile-modal-btn-agency-secondary {
    background: #F7F8F9;
    border: 1px solid #E9EAED;
    color: #374151;
    border-radius: 16px;
    min-height: 45px;
}

.profile-modal-btn-agency-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 16px;
    min-height: 45px;
    transition: background 0.2s ease;
}

.profile-modal-btn-agency-primary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-primary-bg-hover);
}

.profile-modal-btn-agency-primary:disabled,
.profile-modal-btn-agency-primary[aria-disabled="true"] {
    background: var(--btn-primary-bg-disabled);
    color: var(--btn-primary-text-disabled);
    cursor: not-allowed;
}

.profile-modal-btn-agency-secondary:hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--btn-secondary-bg-hover);
}

.profile-modal-btn-agency-secondary:disabled,
.profile-modal-btn-agency-secondary[aria-disabled="true"] {
    color: var(--btn-secondary-text-disabled);
    cursor: not-allowed;
    opacity: 0.85;
}

.phone-field--profile-agency .phone-field-control {
    min-height: 42px;
    border-radius: 16px;
    border-color: #E9EAED;
    background: #F7F8F9;
}

.phone-field--profile-agency .phone-field-country-btn {
    width: auto;
    min-width: 58px;
    padding: 12px 8px 12px 12px;
    gap: 5px;
    background: #F0F2F4;
    border-right-color: #E9EAED;
}

.phone-field--profile-agency .phone-field-input {
    height: 42px;
    font-size: 14px;
    font-weight: 500;
}

/* ── Mobile layout (site-wide) ── */
@media (max-width: 991px) {
    :root {
        --container-pad: 16px;
        --mobile-tabbar-height: 101px;
        --site-header-sticky-offset: 64px;
    }

    html,
    body {
        overflow-x: clip;
    }

    .site-header {
        z-index: 200;
        background: #FFFFFF;
    }

    body.has-mobile-tabbar {
        padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom, 0px));
    }

    .mobile-tabbar {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 6px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 300;
        box-sizing: border-box;
        width: 100%;
        min-height: var(--mobile-tabbar-height);
        padding: 17px 12px calc(32px + env(safe-area-inset-bottom, 0px));
        background: #FFFFFF;
    }

    .mobile-tabbar-item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        min-width: 0;
        padding: 6px 2px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: transparent;
        color: #4B5563;
        font-family: var(--font);
        font-size: 12px;
        font-weight: 500;
        line-height: 1.15;
        text-decoration: none;
        cursor: pointer;
        box-sizing: border-box;
    }

    .mobile-tabbar-item--home.is-active {
        padding: 6px 4px;
        background: #F7F8F9;
        border-color: #E9EAED;
        color: #171B22;
    }

    .mobile-tabbar-label {
        display: block;
        width: 100%;
        max-width: 100%;
        text-align: center;
        font-size: 12px;
        line-height: 1.15;
        overflow-wrap: break-word;
    }

    .mobile-tabbar-icon {
        display: block;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

    .mobile-tabbar-slot {
        flex: 0 0 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .mobile-tabbar-fab {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #007469;
        text-decoration: none;
        box-sizing: border-box;
    }

    .mobile-tabbar-fab-icon {
        display: block;
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .header-container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        padding: 12px var(--container-pad);
    }

    .header-mobile-create {
        display: inline-flex;
        order: 2;
        margin-left: auto;
    }

    .header-menu-toggle {
        display: inline-flex;
        order: 3;
        margin-left: 0;
    }

    .header-right {
        order: 4;
        margin-left: 0;
        gap: 8px;
    }

    .header-right .lang-switcher,
    .header-right .header-currency-switcher,
    .site-header:not(.site-header--home, .site-header--search) .header-right .header-login-btn {
        display: none;
    }

    .header-right .header-profile-link[hidden] {
        display: none !important;
    }

    .header-right .header-profile-link:not([hidden]) {
        display: inline-flex;
    }

    .header-right:not(:has(.header-profile-link:not([hidden]))) {
        display: none;
    }

    :root:not(.header-auth-pending) :is(.site-header--home, .site-header--search) .header-right:has(.header-login-btn:not([hidden])) {
        display: flex;
    }

    .logo {
        order: 1;
    }

    .logo-img {
        width: 72px;
        height: auto;
    }

    .site-header .header-right .header-login-btn {
        padding: 0 14px;
        font-size: 14px;
    }

    .site-header .header-right .currency-header-btn.header-settings-trigger {
        width: 90px;
        min-width: 90px;
        height: 36px;
        padding: 8px;
    }

    .site-header .header-right .lang-btn.header-settings-trigger {
        width: 80px;
        min-width: 80px;
        height: 36px;
        padding: 8px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 250;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: auto;
        height: auto;
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .site-header.mobile-nav-open .main-nav {
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }

    .main-nav-desktop {
        display: none;
    }

    .mobile-nav-panel {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        gap: 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        padding: 0;
        background: #FFFFFF;
        overflow: hidden;
        box-sizing: border-box;
    }

    .mobile-nav-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 2;
        margin-bottom: 0;
        padding: 16px var(--container-pad) 8px;
        background: #FFFFFF;
    }

    .mobile-nav-panel-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        gap: 12px;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        padding: 8px var(--container-pad) calc(var(--mobile-tabbar-height) + 32px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    .mobile-nav-panel-logo {
        display: inline-flex;
        text-decoration: none;
    }

    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: transparent;
        color: var(--color-title);
        cursor: pointer;
    }

    .mobile-nav-cards {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        gap: 10px;
    }

    .mobile-nav-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px 10px 10px;
        border-radius: 16px;
        background: #F3F4F6;
        text-decoration: none;
        color: var(--color-title);
        transition: background 0.2s ease;
    }

    .mobile-nav-card:active {
        background: #E8EAEE;
    }

    .mobile-nav-card-thumb {
        flex-shrink: 0;
        width: 56px;
        height: 56px;
        border-radius: 12px;
        background-size: cover;
        background-position: center;
        background-color: #E5E7EB;
    }

    .mobile-nav-card-label {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.25;
    }

    .mobile-nav-card-chevron {
        flex-shrink: 0;
        opacity: 0.45;
    }

    .mobile-nav-create-btn {
        position: relative;
        z-index: 2;
        pointer-events: auto;
        flex-shrink: 0;
        width: 100%;
        min-height: 52px;
        margin-top: 4px;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 600;
        justify-content: center;
    }

    .mobile-nav-contact-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        gap: 2px;
        width: 100%;
        min-height: 52px;
        padding: 10px 16px;
        border-radius: 16px;
        background: rgba(0, 116, 105, 0.08);
        text-decoration: none;
        text-align: center;
    }

    .mobile-nav-contact-phone {
        font-size: 16px;
        font-weight: 600;
        color: var(--color-primary);
        line-height: 1.3;
    }

    .mobile-nav-contact-brand {
        font-size: 14px;
        font-weight: 500;
        color: var(--color-primary);
        opacity: 0.85;
    }

    .mobile-nav-settings {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 10px;
        margin-top: auto;
        padding-top: 8px;
        padding-bottom: 8px;
        flex-shrink: 0;
    }

    .mobile-nav-settings-switcher {
        position: relative;
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-nav-settings .lang-switcher.open,
    .mobile-nav-settings .header-currency-switcher.open {
        z-index: 5;
    }

    .mobile-settings-btn {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        gap: 8px;
        padding: 0 12px !important;
        height: 48px !important;
        border-radius: 999px !important;
        background: #F3F4F6 !important;
        border: 1px solid #E5E7EB;
    }

    .mobile-settings-label {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-title);
        text-align: left;
    }

    .mobile-nav-settings .lang-menu,
    .mobile-nav-settings .currency-header-menu {
        position: absolute;
        top: auto;
        bottom: 100%;
        left: 0;
        right: auto;
        width: 100%;
        min-width: 100%;
        margin-top: 0;
        margin-bottom: 8px;
        z-index: 6;
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 240;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    .site-header.mobile-nav-open .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    html:has(body.mobile-nav-open),
    body.mobile-nav-open {
        overflow: hidden;
    }

    .main-content:has(.home-page) {
        display: flex;
        flex-direction: column;
    }

    .main-content:has(.home-page) .home-page {
        display: contents;
    }

    .main-content:has(.home-page) .hero {
        order: 2;
    }

    .main-content:has(.home-page) #frequently-searched {
        order: 1;
        padding-top: 16px;
        padding-bottom: 0;
    }

    .main-content:has(.home-page) .home-page > .page-section {
        order: 3;
    }

    #frequently-searched .page-container {
        gap: 12px;
    }

    #frequently-searched .section-header {
        justify-content: flex-end;
        margin: 0;
    }

    #frequently-searched .section-header h2,
    #frequently-searched .section-header:not(:has(.section-all-link)) {
        display: none;
    }

    .category-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card-image {
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        margin-bottom: 8px;
    }

    .category-card-hover,
    .category-card-image::before {
        display: none !important;
    }

    .category-card-label {
        font-size: 13px;
        font-weight: 600;
    }

    .category-card-sublabel {
        display: none;
    }

    .hero {
        min-height: 260px;
        margin: 8px var(--container-pad) 0;
        width: auto;
        max-width: none;
        border-radius: 20px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .hero-bg,
    .hero-bg::after {
        border-radius: 20px;
    }

    .hero-inner {
        padding: 20px 16px 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 260px;
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 22px;
        margin-bottom: 12px;
        max-width: none;
    }

    .hero.hero--search-hub {
        min-height: 0;
        padding: 16px 0 24px;
        overflow: visible;
    }

    .hero.hero--search-hub .hero-inner {
        justify-content: flex-start;
        min-height: 0;
    }

    .hero.hero--search-hub h1 {
        display: none;
    }

    .hero-search-bar-title {
        display: block;
    }

    .hero-search,
    .hero-search--bar {
        min-width: 0;
        max-width: 100%;
    }

    .hero-search-bar,
    form.hero-search.hero-search--bar .hero-search-bar {
        flex-direction: column;
        align-items: center;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 32px;
        padding: 20px 16px;
        gap: 24px;
        overflow: visible;
        background: #FFFFFF;
        border: none;
        box-shadow: none;
    }

    .hero-search--bar .hero-search-bar-filters,
    form.hero-search.hero-search--bar .hero-search-bar-filters {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        overflow: visible;
        gap: 12px;
        padding-bottom: 0;
        width: 100%;
    }

    .hero-search--bar .hero-search-bar-filters {
        overflow-x: visible;
    }

    .hero-search--bar .hero-search-bar-filters-pair {
        display: flex;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .hero-search--bar .hero-search-bar-filters > .hero-search-segment.hero-select-wrap:first-of-type {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
    }

    .hero-search--bar .hero-search-bar-filters-pair .hero-search-segment.hero-select-wrap,
    .hero-search--bar .hero-search-bar-filters-pair .hero-search-segment.hero-price-wrap,
    .hero-search--bar .hero-search-bar-filters-pair .hero-bedrooms-wrap {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
    }

    .hero-search--bar .hero-search-segment.hero-select-wrap,
    .hero-search--bar .hero-search-segment.hero-price-wrap,
    .hero-search--bar .hero-bedrooms-wrap {
        max-width: none;
        width: 100%;
        flex: 0 0 auto;
        position: relative;
        box-sizing: border-box;
        height: 43px;
        min-height: 43px;
        padding: 12px 8px 12px 12px;
        background: #F7F8F9;
        border: 1px solid #E9EAED;
        border-radius: 16px;
    }

    .hero-search--bar .hero-search-segment .hero-price-control {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        position: static;
        height: auto;
        min-height: 0;
    }

    .hero-search--bar .hero-search-segment .custom-select-trigger,
    .hero-search--bar .hero-search-segment .hero-price-trigger {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 0 22px 0 0;
    }

    .hero-search--bar .hero-price-wrap .hero-price-dropdown.custom-select-dropdown {
        width: min(240px, calc(100vw - 2 * var(--container-pad) - 32px));
    }

    .hero-search--bar .hero-search-bar-filters .hero-select-icon {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 1;
        color: #878C94;
    }

    .hero-search-bar-divider {
        display: none;
    }

    .hero-search-bar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        margin-left: 0;
    }

    .hero-search--bar .hero-search-map-link {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex: none;
        justify-content: center;
        box-sizing: border-box;
        height: 46px;
        min-height: 46px;
        padding: 12px 16px;
        gap: 9px;
        background: #F7F8F9;
        border: 1px solid #E9EAED;
        border-radius: 16px;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 600;
        color: #171B22;
    }

    .hero-search--bar .hero-search-submit-btn {
        grid-column: 1;
        grid-row: 1;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        height: 44px;
        min-height: 44px;
        padding: 12px 16px;
        border-radius: 16px;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 600;
        justify-content: center;
        background: #007469;
    }

    .hero-search--bar .hero-search-all-filters {
        grid-column: 2;
        grid-row: 1;
        align-items: center;
        justify-content: center;
        min-width: 0;
        padding: 0;
        background: #F7F8F9;
        border: 1px solid #E9EAED;
        border-radius: 12px;
    }

    .hero-search-all-filters .hero-search-all-filters-icon,
    .hero-search-all-filters .hero-search-all-filters-label {
        display: none;
    }

    .hero-search-all-filters .hero-search-filters-icon-img {
        display: block;
    }

    .hero-search--bar .custom-select-trigger,
    .hero-search--bar .hero-price-trigger,
    .hero-search--bar .custom-select-label {
        font-size: 14px;
        line-height: 1.2;
        font-weight: 500;
    }

    .hero-search--bar .custom-select-label.is-placeholder {
        color: #878C94;
        font-weight: 500;
    }

    .hero-search--bar .custom-select-label:not(.is-placeholder) {
        color: #171B22;
    }

    .home-page .property-grid,
    .home-page .property-grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-page .property-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .section-header h2,
    .home-page .section-title {
        font-size: 20px;
    }

    .page-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-container {
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }

    .site-toast {
        bottom: calc(var(--mobile-tabbar-height) + 16px + env(safe-area-inset-bottom, 0px));
    }

    .search-results-page {
        padding-top: 16px;
        padding-bottom: 32px;
    }

    .search-results-layout {
        padding: 0 var(--container-pad);
        gap: clamp(8px, calc(100vw * 16 / 1440), 16px);
    }

    .search-results-sidebar {
        padding: 16px;
        border: 1px solid #E5E7EB;
        border-radius: 16px;
        background: #FAFAFA;
    }

    .property-grid-4,
    .property-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-page .property-grid-3 {
        grid-template-columns: 1fr;
    }

    .lot-similar-grid {
        grid-template-columns: 1fr;
    }

    .lot-page {
        padding-top: 16px;
    }

    .complex-page .complex-hero,
    .complex-page-layout {
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }

    /* Home — teal find-apartment promo (Figma Banner 3, mobile) */
    .promo-grid--v2 .promo-card-teal {
        position: relative;
        overflow: hidden;
        border-radius: calc(32px * var(--promo-v2-scale));
        background-color: #004840;
        background-image: radial-gradient(
            ellipse 130% 88% at 50% -8%,
            #00ab9b 0%,
            #007469 42%,
            #004840 100%
        );
    }

    .promo-grid--v2 .promo-card-teal .promo-card-inner {
        position: relative;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: calc(353px * var(--promo-v2-scale));
        height: auto;
        padding: calc(20px * var(--promo-v2-scale)) calc(20px * var(--promo-v2-scale)) 0;
        overflow: hidden;
        text-align: center;
    }

    .promo-card-teal .promo-card-blur {
        display: block;
        position: absolute;
        z-index: 0;
        top: calc(-72px * var(--promo-v2-scale));
        left: 50%;
        width: calc(340px * var(--promo-v2-scale));
        height: calc(340px * var(--promo-v2-scale));
        margin-left: calc(-170px * var(--promo-v2-scale));
        border-radius: 50%;
        background: #00ab9b;
        filter: blur(calc(56px * var(--promo-v2-scale)));
        transform: rotate(-28deg);
        opacity: 0.88;
        pointer-events: none;
    }

    .promo-grid--v2 .promo-card-teal .promo-card-content {
        position: relative;
        z-index: 5;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 auto;
        width: min(calc(310px * var(--promo-v2-scale)), 100%);
        max-width: calc(310px * var(--promo-v2-scale));
        height: auto;
        max-height: none;
        align-self: center;
        text-align: center;
        gap: 0;
    }

    .promo-grid--v2 .promo-card-teal h3 {
        margin: 0 0 calc(10px * var(--promo-v2-scale));
        font-size: calc(20px * var(--promo-v2-scale));
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        color: #ffffff;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .promo-grid--v2 .promo-card-teal p {
        margin: 0;
        font-size: calc(16px * var(--promo-v2-scale));
        font-weight: 500;
        line-height: 1.35;
        text-align: center;
        color: rgba(255, 255, 255, 0.7);
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .promo-grid--v2 .promo-card-teal .promo-card-content .btn-promo-white {
        margin-top: calc(20px * var(--promo-v2-scale));
        align-self: center;
        width: auto;
        max-width: calc(100% - 8px * var(--promo-v2-scale));
        height: auto;
        min-height: 0;
        padding: calc(12px * var(--promo-v2-scale)) calc(16px * var(--promo-v2-scale));
        border-radius: 999px;
        border: none;
        background: #ffffff;
        color: #006158;
        font-size: calc(16px * var(--promo-v2-scale));
        font-weight: 600;
        box-shadow: none;
    }

    .promo-card-teal .promo-card-deco {
        display: block;
        position: absolute;
        z-index: 1;
        height: auto;
        max-width: none;
        object-fit: contain;
        transform-origin: top left;
        filter: drop-shadow(0 calc(12px * var(--promo-v2-scale)) calc(24px * var(--promo-v2-scale)) rgba(0, 0, 0, 0.18));
        pointer-events: none;
    }

    .promo-card-teal .promo-card-deco-35 {
        top: calc(197px * var(--promo-v2-scale));
        left: calc(-24 / 390 * 100%);
        width: calc(201 / 390 * 100%);
        transform: rotate(-15deg);
        z-index: 1;
    }

    .promo-card-teal .promo-card-deco-34 {
        top: calc(195px * var(--promo-v2-scale));
        left: calc(96 / 390 * 100%);
        width: calc(213 / 390 * 100%);
        transform: rotate(24.62deg);
        z-index: 2;
    }

    .promo-card-teal .promo-card-heart {
        display: block;
        position: absolute;
        z-index: 4;
        width: calc(44 / 390 * 100%);
        height: calc(44 / 390 * 100%);
        object-fit: contain;
        transform-origin: top left;
        pointer-events: none;
    }

    .promo-card-teal .promo-card-heart-1 {
        top: calc(190px * var(--promo-v2-scale));
        left: calc(131 / 390 * 100%);
        transform: rotate(6deg);
    }

    .promo-card-teal .promo-card-heart-2 {
        top: calc(244px * var(--promo-v2-scale));
        left: calc(316 / 390 * 100%);
        transform: rotate(17.6deg);
    }

    /* Home — yellow Lettofy rent promo (Figma Banner 1, mobile) */
    .promo-grid--v2 .promo-card-yellow {
        position: relative;
        overflow: hidden;
        background-color: #FFD25B;
        background-image: none;
    }

    .promo-grid--v2 .promo-card-yellow .promo-card-inner {
        position: relative;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: calc(387px * var(--promo-v2-scale));
        height: auto;
        padding: calc(20px * var(--promo-v2-scale)) calc(16px * var(--promo-v2-scale)) 0;
        overflow: hidden;
    }

    .promo-card-yellow .promo-card-blur {
        display: block;
        position: absolute;
        z-index: 0;
        top: calc(-72px * var(--promo-v2-scale));
        left: 50%;
        width: calc(320px * var(--promo-v2-scale));
        height: calc(320px * var(--promo-v2-scale));
        margin-left: calc(-160px * var(--promo-v2-scale));
        border-radius: 50%;
        background: #FFE49D;
        filter: blur(calc(52px * var(--promo-v2-scale)));
        transform: rotate(-28deg);
        opacity: 0.95;
    }

    .promo-grid--v2 .promo-card-yellow .promo-card-content {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        width: min(calc(310px * var(--promo-v2-scale)), 100%);
        max-width: calc(310px * var(--promo-v2-scale));
        height: auto;
        max-height: none;
        align-items: center;
        align-self: center;
        text-align: center;
        gap: calc(16px * var(--promo-v2-scale));
    }

    html[lang="en"] .promo-grid--v2 .promo-card-yellow .promo-card-content,
    html[lang="ru"] .promo-grid--v2 .promo-card-yellow .promo-card-content {
        width: min(calc(310px * var(--promo-v2-scale)), 100%);
        max-width: calc(310px * var(--promo-v2-scale));
    }

    .promo-grid--v2 .promo-card-yellow h3 {
        margin: 0;
        font-size: calc(20px * var(--promo-v2-scale));
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        color: #171B22;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .promo-grid--v2 .promo-card-yellow p {
        margin: 0;
        font-size: calc(16px * var(--promo-v2-scale));
        font-weight: 500;
        line-height: 1.35;
        text-align: center;
        color: rgba(23, 27, 34, 0.7);
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }

    .promo-grid--v2 .promo-card-yellow .btn-promo-dark {
        margin-top: 0;
        width: calc(166px * var(--promo-v2-scale));
        max-width: 100%;
        height: auto;
        min-height: 0;
        padding: calc(12px * var(--promo-v2-scale)) calc(16px * var(--promo-v2-scale));
        border-radius: calc(16px * var(--promo-v2-scale));
        background: #333333;
        color: #FFFFFF;
        font-size: calc(16px * var(--promo-v2-scale));
        font-weight: 600;
    }

    .promo-card-yellow .promo-card-phones {
        display: block;
        position: absolute;
        z-index: 0;
        top: calc(171px * var(--promo-v2-scale));
        left: 50%;
        width: min(100%, calc(343px * var(--promo-v2-scale)));
        max-width: none;
        height: auto;
        margin: 0;
        transform: translateX(-50%);
        object-fit: contain;
        object-position: center bottom;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 10px var(--container-pad);
    }

    .site-header .header-right .header-login-btn {
        padding: 0 12px;
        min-width: 44px;
    }

    .property-grid-4,
    .property-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        padding-top: calc(64px + 16px);
    }

    .hero h1 {
        font-size: 24px;
    }

    .search-modal-shell {
        width: 100%;
        padding: 0 8px;
        zoom: 1;
    }

    .search-modal-dialog {
        border-radius: 24px;
        max-height: 92dvh;
    }

    .search-modal-header,
    .search-modal-body,
    .search-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .search-modal-close {
        top: 8px;
        right: 4px;
    }

    .property-page-top,
    .property-page:not(.lot-page--v2) .property-gallery-main {
        margin-left: calc(-1 * var(--container-pad));
        margin-right: calc(-1 * var(--container-pad));
        width: calc(100% + 2 * var(--container-pad));
        max-width: none;
        border-radius: 0;
    }

    .property-specs-row {
        grid-template-columns: 1fr 1fr;
    }

    .footer-shell {
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }
}

/* Phone — fixed mobile typography/buttons (no 1440 viewport shrink); tablet 600–991 keeps --page-scale */
@media (max-width: 599px) {
    .property-badge-hot {
        --badge-hot-max: var(--badge-hot-size);
        --badge-hot-gap: 0px;
        --badge-hot-pad-start: 0px;
        --badge-hot-pad-end: 0px;
    }

    .property-badge-hot-text {
        display: none;
    }

    :root {
        --page-scale: 1;
        --action-pair-scale: 1;
    }

    .home-page .property-grid-4 {
        grid-template-columns: 1fr;
    }

    .property-card .property-favorite {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }

    .property-card .property-favorite .property-favorite-icon,
    .property-card .property-favorite .icon-favorite-outline,
    .property-card .property-favorite .icon-favorite-filled {
        width: 36px;
        height: 36px;
    }

    .property-card-image .property-badge-hot,
    .property-card-map-image .property-badge-hot {
        top: 8px;
        left: 8px;
    }

    .home-page .section-header h2,
    .section-header h2 {
        font-size: 20px;
    }

    .category-card-label {
        font-size: 10px;
    }

    .listing-promo-card {
        display: none;
    }

    .listing-promo-visual {
        display: none;
    }

    /* Home — promo cards (phone-only refinements; base mobile layout in max-width: 991px) */
    .promo-grid--v2 .promo-card-teal .promo-card-inner {
        min-height: 363px;
        padding: 20px 16px 0;
    }

    .promo-grid--v2 .promo-card-teal .promo-card-content {
        gap: 12px;
    }

    .promo-grid--v2 .promo-card-teal h3 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .promo-grid--v2 .promo-card-teal p {
        font-size: 16px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.92);
    }

    .promo-grid--v2 .promo-card-teal .promo-card-content .btn-promo-white {
        margin-top: 0;
    }

    .promo-card-teal .promo-card-blur,
    .promo-card-teal .promo-card-deco,
    .promo-card-teal .promo-card-heart {
        display: none;
    }

    .promo-card-teal .promo-card-photos-mobile {
        display: block;
        position: absolute;
        z-index: 1;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        transform: none;
        object-fit: contain;
        object-position: center bottom;
        pointer-events: none;
        user-select: none;
    }

    .promo-grid--v2 .promo-card-yellow .promo-card-inner {
        min-height: 397px;
    }

    .promo-grid--v2 .promo-card-yellow .promo-card-content {
        gap: 12px;
    }

    .promo-grid--v2 .promo-card-yellow h3 {
        font-size: 20px;
    }

    .promo-grid--v2 .promo-card-yellow p {
        font-size: 16px;
    }

    .promo-grid--v2 .promo-card-yellow .promo-card-phones {
        top: auto;
        bottom: 0;
        left: 16px;
        right: auto;
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        margin: 0;
        transform: none;
        object-fit: contain;
        object-position: center bottom;
    }

    /* Home consultation — single white card (Figma mobile) */
    #consultation.consultation-section {
        padding-bottom: calc(var(--mobile-tabbar-height) + 32px + env(safe-area-inset-bottom, 0px));
    }

    #consultation .page-container {
        gap: 0;
    }

    #consultation .consultation-title {
        display: none;
    }

    #consultation .consultation-panel {
        display: grid;
        grid-template-areas:
            "title"
            "contacts"
            "form";
        gap: 20px;
        padding: 20px 16px 24px;
        background: #FFFFFF;
        border: 1px solid #E9EAED;
        border-radius: 16px;
        box-shadow: 0 4px 24px rgba(23, 27, 34, 0.06);
    }

    #consultation .consultation-info {
        display: contents;
    }

    #consultation .consultation-contacts-grid {
        grid-area: contacts;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #consultation .contact-card {
        gap: 12px;
        align-items: center;
        min-width: 0;
        max-width: 100%;
    }

    #consultation .contact-card-icon,
    #consultation .contact-card-icon-flag {
        width: 48px;
        height: 48px;
        background: transparent;
        border: none;
        padding: 0;
        flex-shrink: 0;
    }

    #consultation .contact-card-icon-img--desktop {
        display: none !important;
    }

    #consultation .contact-card-icon-img--mobile {
        display: block !important;
        width: 48px;
        height: 48px;
        object-fit: contain;
        flex-shrink: 0;
    }

    #consultation .contact-card-text {
        min-width: 0;
        flex: 1;
        gap: 2px;
        overflow-wrap: anywhere;
    }

    #consultation .contact-card-text strong {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.3;
        color: var(--color-title);
        display: block;
        white-space: normal;
        word-break: break-word;
    }

    #consultation .contact-card-text span {
        font-size: 12px;
        line-height: 1.35;
        color: #6B7280;
        display: block;
        white-space: normal;
        word-break: break-word;
    }

    #consultation .consultation-agent {
        display: none;
    }

    #consultation .consultation-form-wrap {
        display: contents;
    }

    #consultation .consultation-form-title {
        grid-area: title;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.35;
        margin: 0;
        color: var(--color-title);
    }

    #consultation .consultation-form-full {
        grid-area: form;
        gap: 12px;
    }

    #consultation .consultation-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #consultation .consultation-select {
        height: 42px;
        padding: 0 36px 0 14px;
        font-size: 14px;
        font-weight: 500;
        border-color: #E9EAED;
        border-radius: 16px;
    }

    #consultation .consultation-select-icon {
        right: 14px;
        width: 20px;
        height: 20px;
        opacity: 0.45;
    }

    #consultation .consultation-form-full input[type="text"] {
        height: 42px;
        padding: 0 14px;
        font-size: 14px;
        border-color: #E9EAED;
        border-radius: 16px;
    }

    #consultation .phone-field-control {
        min-height: 42px;
        border-color: #E9EAED;
        border-radius: 16px;
    }

    #consultation .phone-field-input {
        height: 42px;
        font-size: 14px;
    }

    #consultation .phone-field-country-btn {
        width: 72px;
        background: #F3F4F6;
    }

    #consultation .privacy-check {
        font-size: 12px;
        line-height: 1.35;
        color: #878C94;
        gap: 10px;
        margin-top: 0;
    }

    #consultation .privacy-check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        margin-top: 1px;
    }

    #consultation .privacy-check a {
        color: var(--color-primary);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    #consultation .btn-consultation-send {
        height: 42px;
        margin-top: 4px;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 600;
        background: #FFFFFF;
        border: 1px solid #E9EAED;
        color: #878C94;
    }

    #consultation .btn-consultation-send:not(:disabled):not([aria-disabled="true"]) {
        background: var(--btn-primary-bg);
        border-color: var(--btn-primary-bg);
        color: var(--btn-primary-text);
    }

    #consultation .btn-consultation-send:not(:disabled):not([aria-disabled="true"]):hover {
        background: var(--btn-primary-bg-hover);
        border-color: var(--btn-primary-bg-hover);
    }

    #consultation .btn-consultation-send:disabled,
    #consultation .btn-consultation-send[aria-disabled="true"] {
        cursor: not-allowed;
        opacity: 1;
    }
}

/* Profile — phone layout. --page-scale: 1 is set on :root above; wrap so tokens don't overflow. */
@media (max-width: 599px) {
    .profile-page {
        --profile-page-scale: 1;
        --profile-sidebar-width: 100%;
        --profile-toolbar-row-gap: 8px;
        --profile-toolbar-gap: 8px;
        --profile-toolbar-bulk-gap: 8px;
        --profile-published-icon-btn: 36px;
        --profile-published-icon-btn-pad: 8px;
        --profile-published-icon-img: 20px;
        padding-bottom: calc(var(--mobile-tabbar-height, 64px) + 24px + env(safe-area-inset-bottom, 0px));
    }

    .profile-page .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-page .profile-sidebar,
    .profile-page .profile-sidebar-card,
    .profile-page .profile-sidebar-card--profile {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: none;
    }

    .profile-page .profile-avatar-wrap,
    .profile-page .profile-avatar {
        width: 100%;
        max-width: none;
    }

    .profile-page .profile-avatar {
        height: auto;
        aspect-ratio: 1;
    }

    .profile-page .profile-main {
        padding: 16px;
        border-radius: 16px;
    }

    .profile-page .profile-tabs {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .profile-page .profile-subtabs--segmented {
        min-width: 0;
        width: 100%;
    }

    .profile-page .profile-subtabs--segmented .profile-subtab {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-page .profile-toolbar-row,
    .profile-page .profile-toolbar--selections .profile-toolbar-row {
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-height: 0;
    }

    .profile-page .profile-toolbar--selections .profile-toolbar-row {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
    }

    .profile-page .profile-toolbar--selections .profile-toolbar-bulk {
        margin-left: auto;
    }

    .profile-page .profile-search-wrap,
    .profile-page .profile-toolbar--selections .profile-search-wrap {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .profile-page .profile-select-all {
        white-space: nowrap;
    }

    .profile-page .profile-listing-favorite,
    .profile-page .profile-listing-card--published .profile-listing-favorite {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .profile-page .profile-listings-gallery.property-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-selection-card-new {
        grid-column: 1 / -1;
        height: auto;
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .profile-selection-new-body {
        display: none;
    }

    .profile-selection-create-btn {
        width: 100%;
        margin: 0;
    }

    .profile-page .profile-menu-dropdown,
    .profile-page .profile-menu-dropdown--card,
    .profile-page .property-menu-dropdown {
        min-width: 220px;
        font-size: 16px;
    }

    .profile-page .profile-sidebar,
    .profile-page .profile-listing-card--published,
    .profile-page .profile-listing-card--published .profile-listing-body {
        zoom: 1;
    }

    #profile-modal-edit-profile.profile-modal-overlay {
        padding: 12px;
        align-items: center;
    }

    #profile-modal-edit-profile {
        --pem-width: 100%;
        --pem-pad: 16px;
        --pem-max-h: 100%;
        --pem-photo-preview-h: 180px;
        --pem-photo-min-h-filled: 180px;
    }

    #profile-modal-edit-profile .profile-modal-edit {
        width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 16px;
    }

    #profile-modal-edit-profile .profile-agency-grid-2 {
        grid-template-columns: 1fr;
    }

    #profile-modal-edit-profile .profile-edit-actions,
    #profile-modal-edit-profile .profile-modal-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-right .lang-btn-chevron,
    .header-right .currency-header-chevron {
        display: none;
    }

    .site-header .header-right .currency-header-btn.header-settings-trigger {
        width: auto;
        min-width: 0;
        padding: 8px;
    }

    .site-header .header-right .lang-btn.header-settings-trigger {
        width: auto;
        min-width: 0;
        padding: 8px;
    }
}

.site-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 10050;
    max-width: min(92vw, 360px);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 991px) {
    .search-request-status {
        bottom: calc(var(--mobile-tabbar-height, 64px) + 16px + env(safe-area-inset-bottom, 0px));
    }
}

.favorite-added-toast {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 28px;
    z-index: 10060;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    width: min(calc(100vw - 32px), 960px);
    max-width: 960px;
    padding: 14px 16px 14px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(23, 27, 34, 0.12);
    opacity: 0;
    transform: translate(-50%, 16px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.favorite-added-toast[hidden] {
    display: none !important;
}

.favorite-added-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
    visibility: visible;
}

.favorite-added-toast-text {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #171b22;
}

.favorite-added-toast-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.favorite-added-toast-btn:hover:not(:disabled) {
    background: var(--btn-primary-bg-hover);
    color: var(--btn-primary-text);
}

.favorite-selection-popup {
    position: fixed;
    inset: 0;
    z-index: 2004;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 40px;
}

.favorite-selection-popup[hidden] {
    display: none !important;
}

.favorite-selection-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
}

.favorite-selection-popup-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-width: 440px;
}

.favorite-selection-popup-close {
    position: absolute;
    top: -22px;
    right: -50px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f0f2f4;
    box-shadow: 0 2px 12px rgba(23, 27, 34, 0.12);
    cursor: pointer;
}

.favorite-selection-popup-close svg {
    width: 18px;
    height: 18px;
}

.favorite-selection-popup-panel {
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 620px);
    padding: 24px 20px 20px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(23, 27, 34, 0.18);
    overflow: hidden;
}

.favorite-selection-popup-intro {
    flex-shrink: 0;
    margin-bottom: 16px;
    padding-right: 8px;
}

.favorite-selection-popup-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #171b22;
}

.favorite-selection-popup-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #4b5563;
}

.favorite-selection-scroll {
    flex: 1 1 auto;
    min-height: 120px;
    margin: 0 -4px;
    padding: 0 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c4c8cc transparent;
}

.favorite-selection-scroll::-webkit-scrollbar {
    width: 4px;
}

.favorite-selection-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.favorite-selection-scroll::-webkit-scrollbar-thumb {
    background-color: #c4c8cc;
    border-radius: 999px;
}

.favorite-selection-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #a8adb3;
}

.favorite-selection-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.favorite-selection-row {
    margin: 0;
    padding: 0;
}

.favorite-selection-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.favorite-selection-row-label:hover {
    background: #f7f8f9;
}

.favorite-selection-row-preview {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #e9eaed;
}

.favorite-selection-row-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}

.favorite-selection-row-preview-cell {
    background-color: #e9eaed;
    background-size: cover;
    background-position: center;
}

.favorite-selection-row-preview-single {
    width: 100%;
    height: 100%;
    background-color: #e9eaed;
    background-size: cover;
    background-position: center;
}

.favorite-selection-row-meta {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.favorite-selection-row-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: #171b22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.favorite-selection-row-count {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #007469;
}

.favorite-selection-checkbox {
    flex-shrink: 0;
    appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 2px solid #007469;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.favorite-selection-checkbox:checked {
    border-color: #007469;
    background: #007469 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7l3 3 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

.favorite-selection-empty {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
}

.favorite-selection-create-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 4px;
    border: none;
    border-radius: 16px;
    background: transparent;
    text-align: left;
    font-family: var(--font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #171b22;
    cursor: pointer;
    transition: background 0.15s ease;
}

.favorite-selection-create-row:hover {
    background: #f7f8f9;
    color: #171b22;
}

.favorite-selection-create-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(0, 116, 105, 0.1);
}

.favorite-selection-create-icon-img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.favorite-selection-create-label {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #171b22;
}

.favorite-selection-popup-foot {
    flex-shrink: 0;
    margin-top: 16px;
    padding-top: 4px;
}

.favorite-selection-apply-btn {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    background: #e9eaed;
    color: #878c94;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: not-allowed;
    transition: background 0.2s ease, color 0.2s ease;
}

.favorite-selection-apply-btn:not(:disabled) {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    cursor: pointer;
}

.favorite-selection-apply-btn:not(:disabled):hover {
    background: var(--btn-primary-bg-hover);
}

body.favorite-selection-popup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .favorite-added-toast {
        bottom: calc(var(--mobile-tabbar-height, 101px) + 16px + env(safe-area-inset-bottom, 0px));
        width: calc(100vw - 32px);
        max-width: none;
        gap: 12px;
        padding: 12px 12px 12px 16px;
    }

    .favorite-added-toast-text {
        font-size: 13px;
        line-height: 1.3;
    }

    .favorite-added-toast-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* Hero search hub — filter row fits bar; Figma max widths when space allows */
form.hero-search.hero-search--bar .hero-search-segment .custom-select-trigger {
    height: 44px;
    max-height: 44px;
    min-width: 0;
}

/* Public collection share page (/set?uid=) */
body.collection-public {
    margin: 0;
    background: #F7F8F9;
    font-family: Inter, sans-serif;
    color: #171B22;
}

body.collection-public .header-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.collection-header-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.collection-header-brand {
    color: #007469;
    white-space: nowrap;
}

.collection-header-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.collection-header-identity-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #E9EAED;
}

.collection-header-identity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.collection-header-identity-name,
.collection-header-identity-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-header-identity-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    color: #171B22;
}

.collection-header-identity-role {
    font-size: 12px;
    line-height: 16px;
    color: #6B7280;
}

body.collection-public .header-right {
    flex-shrink: 0;
}

@media (max-width: 991px) {
    body.collection-public .header-container {
        min-height: 52px;
        box-sizing: border-box;
    }

    body.collection-public .site-header .header-right,
    body.collection-public .header-right .lang-switcher,
    body.collection-public .header-right .header-currency-switcher {
        display: flex;
    }
}

@media (max-width: 760px) {
    .collection-header-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .collection-header-identity {
        max-width: 100%;
    }
}

.collection-page {
    width: 1280px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
    padding: 40px 0 104px;
}

@media (max-width: 1440px) and (min-width: 761px) {
    html:has(body.collection-public) {
        overflow-x: clip;
    }

    body.collection-public {
        width: 1440px;
        zoom: calc(100vw / 1440px);
    }
}

.collection-empty {
    padding: 80px 0;
}

.collection-empty h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.collection-empty p {
    margin: 0;
    color: #4B5563;
}

.collection-hero {
    position: relative;
    min-height: 400px;
    border-radius: 32px;
    background: #007469;
    overflow: hidden;
    color: #fff;
}

.collection-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(692px, 54%);
}

.collection-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collection-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 56%;
    background: linear-gradient(270deg, rgba(0, 116, 105, 0) 0%, #007469 100%);
}

.collection-hero-inner {
    position: relative;
    z-index: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 24px;
    padding: 32px;
    max-width: 640px;
    box-sizing: border-box;
}

.collection-stat-value,
.collection-stat-label,
.collection-date-pill,
.collection-hero-title,
.collection-panel-price,
.collection-panel h2,
.collection-panel-address,
.collection-spec p,
.collection-spec strong,
.collection-panel-desc,
.collection-chips,
.collection-btn {
    margin: 0;
}

.collection-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

.collection-hero-title {
    margin-top: 12px;
    max-width: 573px;
    font-size: 48px;
    font-weight: 600;
    line-height: 56px;
}

.collection-hero-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .collection-hero-inner {
        justify-content: flex-start;
        padding: 40px 32px 32px;
        gap: 0;
    }

    .collection-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex: 1;
        min-height: 0;
    }

    .collection-date-pill {
        margin-bottom: 0;
    }

    .collection-hero-title {
        margin-top: 0;
    }

    .collection-hero-stats {
        margin-top: auto;
        padding-top: 16px;
    }
}

.collection-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-stat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.collection-stat-icon img {
    width: 28px;
    height: 28px;
    display: block;
}

.collection-stat-text {
    min-width: 0;
    flex: 1 1 auto;
}

.collection-stat-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.collection-stat-label {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 18px;
}

.collection-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
}

.collection-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.collection-lot {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 801px;
    height: auto;
}

.collection-gallery {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 801px;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-gallery-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 669px;
    border-radius: 32px;
    overflow: hidden;
    background: #e5e7eb;
}

.collection-gallery-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-gallery-main-alt {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.collection-gallery.is-switching-active .collection-gallery-main-alt {
    opacity: 1;
}

.collection-gallery.is-gallery-commit .collection-gallery-main-alt {
    transition: none;
}

.collection-gallery-badge {
    position: absolute;
    z-index: 3;
    left: 24px;
    top: 24px;
    padding: 12px 16px;
    border-radius: 100px;
    background: #fff;
    color: #0C343D;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.collection-gallery-nav {
    position: absolute;
    z-index: 3;
    right: 24px;
    top: 24px;
    display: flex;
    gap: 12px;
}

.collection-gallery-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.collection-gallery-arrow {
    width: 44px;
    height: 44px;
    border-radius: 100px;
}

.collection-gallery-count {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.collection-thumbs {
    display: flex;
    gap: 12px;
    height: 120px;
}

.collection-thumb {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 120px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
}

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

.collection-thumb.is-active {
    box-shadow: inset 0 0 0 3px #007469;
}

.collection-thumb.is-active img {
    box-sizing: border-box;
    border: 3px solid #fff;
    border-radius: 17px;
}

.collection-thumb-more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(25, 25, 25, 0.5);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.collection-panel {
    width: 500px;
    flex: 0 0 500px;
    align-self: stretch;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    min-height: 0;
    padding: 24px;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
}

.collection-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.collection-panel-title {
    min-width: 0;
}

.collection-panel-price {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #171B22;
}

.collection-panel h2 {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #4B5563;
}

.collection-panel-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.collection-panel-address-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.collection-panel-address-link:focus-visible {
    outline: 2px solid #007469;
    outline-offset: 2px;
    border-radius: 4px;
}

.collection-panel-address {
    flex: 1;
    min-width: 0;
    color: #4B5563;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-panel-address-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: block;
}

.collection-map-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.collection-map-modal[hidden] {
    display: none;
}

.collection-map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.collection-map-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    padding: 20px 20px 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.collection-map-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #F7F8F9;
    cursor: pointer;
}

.collection-map-modal-close:focus-visible {
    outline: 2px solid #007469;
    outline-offset: 2px;
}

.collection-map-modal-title {
    margin: 0 40px 8px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.collection-map-modal-address {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: #4B5563;
}

.collection-map-modal-map.property-map {
    height: min(420px, calc(100vh - 180px));
    margin-top: 0;
}

@media (max-width: 760px) {
    .collection-map-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .collection-map-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 20px 20px 0 0;
        padding: 16px 16px 12px;
    }

    .collection-map-modal-map.property-map {
        height: min(360px, calc(100vh - 160px));
    }
}

.collection-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    padding: 12px;
    border-radius: 16px;
    background: #F7F8F9;
}

.collection-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
}

.collection-spec-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.collection-spec-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.collection-spec p {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.2;
}

.collection-spec-label {
    white-space: nowrap;
}

.collection-spec strong {
    display: block;
    margin-top: 4px;
    color: #171B22;
    font-size: 16px;
    line-height: 1.2;
}

.collection-desc,
.collection-chips-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-panel-desc {
    color: #4B5563;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.collection-panel-desc[hidden],
.collection-desc-toggle[hidden],
.collection-chips-toggle[hidden] {
    display: none;
}

.collection-desc-toggle,
.collection-chips-toggle {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: #007469;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.collection-desc-toggle:hover,
.collection-chips-toggle:hover {
    text-decoration: underline;
}

.collection-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.collection-chips li {
    padding: 6px 8px;
    border-radius: 100px;
    background: #F7F8F9;
    color: #374151;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.collection-chips-wrap.is-collapsed .collection-chips li:nth-child(n + 5) {
    display: none;
}

.collection-panel-buttons,
.collection-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.collection-panel-buttons {
    margin-top: auto;
}

.collection-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 53px;
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}

.collection-btn--ghost {
    background: #F7F8F9;
    border-color: #E9EAED;
    color: #374151;
}

.collection-contact {
    position: relative;
}

.collection-contact-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid #E9EAED;
    border-radius: 16px;
    background: #fff;
}

.collection-contact-menu[hidden] {
    display: none;
}

.collection-contact-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #171B22;
    text-decoration: none;
    font-weight: 600;
}

.collection-contact-menu a:hover {
    background: #F7F8F9;
}


.collection-contact-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(23, 27, 34, 0.32);
}

.collection-contact-backdrop[hidden] {
    display: none;
}

.collection-contact-menu--popover {
    position: fixed;
    z-index: 121;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(23, 27, 34, 0.16);
    transform: translateY(-100%);
}

.collection-contact-menu--popover.collection-contact-menu--below {
    transform: none;
}


@media (max-width: 760px) {
    html:has(body.collection-public),
    body.collection-public {
        overflow-x: clip;
        overflow-y: auto;
        height: auto;
        min-height: 0;
    }

    body.collection-public {
        width: auto;
        zoom: 1;
    }

    body.collection-public .collection-page {
        width: auto;
        max-width: none;
        margin: 0 16px;
        padding: 16px 0 calc(32px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
    }

    .collection-hero {
        min-height: 288px;
        border-radius: 24px;
    }

    .collection-hero-photo {
        width: 58%;
        opacity: 1;
    }

    .collection-hero-photo::after {
        width: 68%;
        background: linear-gradient(270deg, rgba(0, 116, 105, 0) 0%, rgba(0, 116, 105, 0.85) 42%, #007469 100%);
    }

    .collection-hero-inner {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        align-items: start;
        gap: 0;
        min-height: 288px;
        box-sizing: border-box;
        max-width: none;
        padding: 20px;
    }

    .collection-hero-copy {
        display: contents;
    }

    .collection-date-pill {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: end;
        margin: 0;
        padding: 8px 12px;
        gap: 8px;
        font-size: 14px;
        font-weight: 500;
        line-height: 18px;
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.22);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .collection-date-pill svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .collection-hero-title {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: center;
        margin: 0;
        max-width: none;
        width: 100%;
        font-size: 28px;
        font-weight: 600;
        line-height: 34px;
        letter-spacing: -0.02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .collection-hero-stats {
        grid-column: 1 / -1;
        grid-row: 3;
        align-self: end;
        margin-top: 0;
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 0;
        align-items: start;
    }

    .collection-stat {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        min-width: 0;
    }

    .collection-stat-text {
        min-width: 0;
        width: 100%;
        flex: none;
    }

    .collection-stat-icon img {
        width: 26px;
        height: 26px;
    }

    .collection-stat-value {
        font-size: 16px;
        font-weight: 600;
        line-height: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .collection-stat--range .collection-stat-value {
        font-size: 16px;
        letter-spacing: -0.02em;
    }

    .collection-stat-label {
        margin-top: 2px;
        font-size: 14px;
        font-weight: 400;
        line-height: 18px;
        color: rgba(255, 255, 255, 0.72);
    }

    .collection-stat-divider {
        display: none;
    }

    .collection-list {
        gap: 16px;
        margin-top: 16px;
    }

    .collection-lot {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        min-height: 0;
        gap: 12px;
    }

    .collection-gallery {
        height: auto;
        min-height: 0;
    }

    .collection-gallery-stage {
        flex: none;
        height: 224px;
        min-height: 0;
        border-radius: 24px;
        --collection-gallery-overlay-top: 16px;
        --collection-gallery-nav-size: 48px;
    }

    .collection-gallery-badge {
        top: calc(var(--collection-gallery-overlay-top) + (var(--collection-gallery-nav-size) - 28px) / 2);
        left: 16px;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 28px;
        padding: 0 10px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 600;
        line-height: 16px;
    }

    .collection-gallery-nav {
        top: var(--collection-gallery-overlay-top);
        right: 16px;
        left: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .collection-gallery-arrow {
        width: var(--collection-gallery-nav-size);
        height: var(--collection-gallery-nav-size);
    }

    .collection-gallery-arrow svg {
        width: 22px;
        height: 22px;
    }

    .collection-gallery-count {
        right: 12px;
        bottom: 12px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .collection-thumbs {
        width: 100%;
        height: 46px;
        gap: 8px;
    }

    .collection-thumb {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        height: 46px;
        border-radius: 12px;
    }

    .collection-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    .collection-panel {
        width: auto;
        flex: none;
        height: auto;
        overflow: visible;
        padding: 16px;
        border-radius: 24px;
    }

    .collection-panel-top {
        gap: 8px;
    }

    .collection-panel-price {
        font-size: 24px;
        line-height: 28px;
    }

    .collection-panel-title h2,
    .collection-panel h2 {
        font-size: 16px;
        line-height: 20px;
    }

    .collection-specs {
        gap: 12px;
        padding: 12px;
    }

    .collection-spec {
        gap: 12px;
    }

    .collection-spec-icon {
        width: 42px;
        height: 42px;
    }

    .collection-spec-icon img {
        width: 24px;
        height: 24px;
    }

    body.collection-public .collection-spec p {
        font-size: 11px;
        line-height: 14px;
    }

    body.collection-public .collection-spec > div {
        min-width: 0;
    }

    body.collection-public .collection-spec-label {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    body.collection-public .collection-spec {
        align-items: flex-start;
    }

    .collection-spec strong {
        font-size: 14px;
        line-height: 18px;
    }

    .collection-panel-desc {
        font-size: 14px;
        line-height: 20px;
    }

    body.collection-public .collection-chips {
        gap: 6px;
    }

    body.collection-public .collection-chips li {
        padding: 4px 7px;
        font-size: 12px;
        line-height: 16px;
    }

    .collection-desc-toggle,
    .collection-chips-toggle {
        font-size: 14px;
    }

}
