/* Brokers — clean property portal UI */
:root {
    --navy: #0b2c44;
    --navy-soft: #163a56;
    --slate: #3d5163;
    --muted: #6b7c8a;
    --line: #e3e8ee;
    --paper: #f5f7fa;
    --white: #ffffff;
    --accent: #1f8a7a;
    --accent-deep: #177063;
    --sale: #c45c26;
    --danger: #d64545;
    --font-display: "Syne", sans-serif;
    --font-body: "Figtree", sans-serif;
    --radius: 10px;
    --radius-lg: 16px;
    --control-h: 50px;
    --finder-control-h: 42px;
    --shadow: 0 8px 24px rgba(11, 44, 68, 0.06);

    /* legacy aliases */
    --ink: var(--navy);
    --ink-soft: var(--slate);
    --signal: var(--accent);
    --signal-deep: var(--accent-deep);
    --thm: var(--navy);
    --thm2: var(--accent);
    --thm3: var(--navy-soft);
    --dark: #071c2c;
    --body-text: var(--muted);
    --form-text: var(--slate);
    --border: var(--line);
    --page-bg: var(--paper);
    --page-bg-alt: #eef2f6;
    --mist: #e8eef4;
    --surface: var(--white);
    --brass: #c4a574;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--slate);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.site-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

.site-main { flex: 1; min-width: 0; }

.container {
    width: 100%;
    max-width: 1120px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    min-height: 72px;
}

.site-header--broker .header-inner {
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.brand-logo {
    display: block;
    width: auto;
    height: 38px;
    max-width: 168px;
}

.brand-logo--footer {
    height: 40px;
    max-width: 175px;
}

.brand:hover { color: var(--navy); }
.brand-mark { color: var(--accent); }

.primary-nav {
    display: flex;
    gap: 0.15rem;
    justify-self: start;
}

.primary-nav a {
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--navy);
    background: var(--paper);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    justify-self: end;
}

.account-menu {
    position: relative;
}

.account-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-menu__toggle:hover,
.account-menu.is-open .account-menu__toggle {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 138, 122, 0.12);
}

.account-menu__avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-menu__initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: var(--navy);
}

.account-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 1100;
    min-width: 220px;
    padding: 0.55rem 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(11, 44, 68, 0.12);
}

.account-menu__user {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 1rem 0.75rem;
    border-bottom: 1px solid var(--line);
}

.account-menu__user strong {
    font-size: 0.92rem;
    color: var(--navy);
}

.account-menu__user span {
    font-size: 0.8rem;
    color: var(--muted);
    word-break: break-word;
}

.account-menu__nav {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0;
}

.account-menu__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
    transition: background 0.2s ease, color 0.2s ease;
}

.account-menu__link i {
    width: 1rem;
    color: var(--muted);
    text-align: center;
}

.account-menu__link:hover,
.account-menu__link.is-active {
    color: var(--navy);
    background: var(--paper);
}

.account-menu__link:hover i,
.account-menu__link.is-active i {
    color: var(--accent);
}

.account-menu__footer {
    padding: 0.45rem 0 0.15rem;
    border-top: 1px solid var(--line);
}

.account-menu__logout {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--danger);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.account-menu__logout:hover {
    background: #fdf3f3;
}

.link-quiet {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
}

.link-quiet:hover { color: var(--navy); }

/* ========== Buttons (flat) ========== */
.btn-signal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.65rem 1.15rem;
    border: none;
    border-radius: 8px;
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    background: var(--accent);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.btn-signal:hover {
    color: #fff !important;
    background: var(--accent-deep);
}

.btn-signal:active {
    opacity: 0.92;
}

.btn-signal--lg {
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
}

.btn-signal--block {
    width: 100%;
    min-height: var(--control-h);
    border-radius: var(--radius);
    font-size: 1rem;
}

.btn-ghost,
.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-h);
    padding: 0 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--slate);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover,
.btn-reset:hover {
    color: var(--navy);
    border-color: #c5d0da;
    background: var(--paper);
}

.btn-thm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border: none;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 700;
    background: var(--navy);
    transition: background 0.2s ease;
}

.btn-thm:hover {
    color: #fff !important;
    background: var(--navy-soft);
}

/* ========== Header search ========== */
.header-search {
    max-width: 380px;
    width: 100%;
    justify-self: end;
}

.site-header--broker .header-search {
    max-width: 520px;
    justify-self: center;
    margin: 0 auto;
}

.wrapHeaderSearch { width: 100%; }

.wrapHeaderSearch .search {
    position: relative;
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.wrapHeaderSearch .search:focus-within {
    border-color: var(--navy);
    background: var(--white);
}

.wrapHeaderSearch .search-glyph {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.wrapHeaderSearch .search:focus-within .search-glyph {
    color: var(--accent);
}

.wrapHeaderSearch .searchTerm {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 70px 0 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
}

.wrapHeaderSearch .searchTerm::placeholder {
    color: #95a3ae;
}

.wrapHeaderSearch .searchButton {
    position: absolute;
    right: 4px;
    height: 34px;
    min-width: 52px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    background: var(--navy);
    transition: background 0.2s ease;
}

.wrapHeaderSearch .searchButton:hover {
    background: var(--accent);
}

.wrapHeaderSearch .quick-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    overflow: auto;
    z-index: 1200;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.wrapHeaderSearch .quick-search-dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
}

.qs-group {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.qs-group:last-child {
    border-bottom: none;
}

.qs-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 0;
}

.qs-group-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #0e2c43;
}

.qs-group-count {
    font-size: 12px;
    font-weight: 700;
    color: #0e2c43;
    text-decoration: none;
}

.qs-group-count:hover {
    text-decoration: underline;
    color: #0e2c43;
}

.qs-item {
    display: block;
    padding: 6px 8px;
    border-radius: 4px;
    color: #2f3d4a;
    font-size: 13px;
    line-height: 1.35;
    transition: background 0.15s ease;
}

.qs-item:hover {
    background: #f5f8fc;
    color: #0e2c43;
    text-decoration: none;
}

.qs-item-title {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: inherit;
}

.qs-item-sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #6c757d;
}

.qs-item-sub i {
    display: none;
}

.qs-loading,
.qs-empty {
    padding: 10px 12px;
    text-align: left;
    color: #6c757d;
    font-size: 12px;
}

.qs-spinner {
    display: none;
}

/* ========== Guest portal landing ========== */
.portal-landing {
    padding: 2.5rem 0 3.5rem;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, #1a4d5c 100%);
    box-shadow: 0 16px 48px rgba(11, 44, 68, 0.18);
}

.portal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(31, 138, 122, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.portal-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
}

.portal-hero__kicker {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: rgba(255, 255, 255, 0.65);
}

.portal-hero__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    color: #fff;
}

.portal-hero__lead {
    margin: 0 0 1.75rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.portal-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 54px;
    padding: 0.85rem 1.65rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.portal-btn:active {
    transform: translateY(1px);
}

.portal-btn--primary {
    color: #fff !important;
    background: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 6px 20px rgba(31, 138, 122, 0.45);
}

.portal-btn--primary:hover {
    color: #fff !important;
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    box-shadow: 0 8px 28px rgba(31, 138, 122, 0.55);
}

.portal-btn--secondary {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
}

.portal-btn--secondary:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.85);
}

.portal-hero__note {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.portal-feature {
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.portal-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--accent);
    background: rgba(31, 138, 122, 0.1);
}

.portal-feature h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: normal;
    color: var(--navy);
}

.portal-feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

/* ========== Finder ========== */
.find-section {
    padding: 2.75rem 0 2.25rem;
}

.section-intro {
    margin-bottom: 1.5rem;
}

.section-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-intro h1,
.section-intro h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-body);
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.section-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.finder {
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.finder-primary,
.finder-advanced {
    display: grid;
    gap: 1rem;
}

.finder.is-searching {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.finder-primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finder-advanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0 0.25rem;
}

.finder-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    min-width: 0;
}

.finder-field > span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.finder-field input[type="text"],
.finder-field input[type="email"],
.finder-field input[type="tel"],
.finder-field input[type="number"],
.finder-field input:not([type]) {
    width: 100%;
    height: var(--finder-control-h);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 0.9rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.finder-field.is-filled input[type="text"],
.finder-field.is-filled input[type="email"],
.finder-field.is-filled input[type="tel"],
.finder-field.is-filled input[type="number"],
.finder-field.is-filled input:not([type]) {
    background: rgba(31, 138, 122, 0.12);
    border-color: rgba(31, 138, 122, 0.35);
}

.login_form .form-control,
.sign_up_form .form-control {
    width: 100%;
    height: var(--control-h);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 0.95rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder-field input:hover {
    border-color: #c5d0da;
}

.finder-field input:focus,
.login_form .form-control:focus,
.sign_up_form .form-control:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 44, 68, 0.08);
}

.finder-field input::placeholder {
    color: #95a3ae;
    font-weight: 500;
}

.finder-field select.js-choice {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.finder .choices {
    margin-bottom: 0;
}

.finder .choices__inner {
    min-height: var(--finder-control-h);
    height: var(--finder-control-h);
    display: flex !important;
    align-items: center !important;
    padding: 0 2.4rem 0 0.9rem !important;
    background: var(--white) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--navy);
    box-shadow: none !important;
    line-height: 1.2;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.finder-field.is-filled .choices__inner {
    background: rgba(31, 138, 122, 0.12) !important;
    border-color: rgba(31, 138, 122, 0.35) !important;
}

.finder .choices[data-type*="select-one"] .choices__inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* City/Type enable search — hide the cloned input inside the closed field */
.finder .choices[data-type*="select-one"] .choices__inner > .choices__input,
.finder .choices[data-type*="select-one"] .choices__list--single + .choices__input,
.finder .choices__inner .choices__input--cloned {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.finder .choices:hover .choices__inner {
    border-color: #c5d0da !important;
}

.finder .choices-subtext {
    margin-left: 0.35rem;
    font-size: 0.78em;
    font-weight: 500;
    color: #8a9aa8;
}

.finder .choices__list--dropdown .choices__item--choice {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
}

.finder .choices__list--dropdown .choices-label {
    font-weight: 600;
    color: var(--navy);
}

.finder .choices.is-focused .choices__inner,
.finder .choices.is-open .choices__inner {
    border-color: var(--navy) !important;
    box-shadow: 0 0 0 3px rgba(11, 44, 68, 0.08) !important;
}

.finder .choices[data-type*="select-one"]::after {
    top: 50% !important;
    right: 1rem;
    margin-top: 0 !important;
    transform: translateY(-40%);
    border-color: var(--navy) transparent transparent;
    border-width: 6px 5px 0;
}

.finder .choices[data-type*="select-one"].is-open::after {
    transform: translateY(-60%);
    border-color: transparent transparent var(--navy);
    border-width: 0 5px 6px;
}

.finder .choices__list--single {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    height: 100%;
    float: none !important;
}

.finder .choices__list--single .choices__item {
    display: flex !important;
    align-items: center !important;
    color: var(--navy);
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    width: 100%;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.finder .choices__placeholder {
    opacity: 1;
    color: #95a3ae;
    font-weight: 500;
    padding: 0 !important;
}

.finder .choices__list--dropdown,
.finder .choices__list[aria-expanded] {
    margin-top: 8px;
    border: 1px solid var(--line) !important;
    border-radius: 12px;
    background: var(--white) !important;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 60;
    padding: 0 !important;
}

.finder .choices__list--dropdown .choices__list,
.finder .choices__list[aria-expanded] .choices__list {
    padding: 0.25rem 0 !important;
    margin: 0 !important;
}

.finder .choices__list--dropdown .choices__item,
.finder .choices__list[aria-expanded] .choices__item {
    padding: 0.7rem 0.95rem !important;
    margin: 0 !important;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--slate);
    line-height: 1.3;
}

.finder .choices__list--dropdown .choices__item--selectable.is-highlighted,
.finder .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: var(--paper);
    color: var(--navy);
}

.finder .choices__list--dropdown .choices__item--disabled,
.finder .choices__list--dropdown .choices__notice {
    color: #95a3ae !important;
    cursor: default;
    font-weight: 500;
    pointer-events: none;
}

.finder .choices__list--dropdown .choices__item--selectable.is-selected,
.finder .choices__list[aria-expanded] .choices__item--selectable.is-selected {
    background: var(--navy);
    color: #fff;
}

.finder .choices__input {
    background: transparent !important;
    font-family: var(--font-body);
    color: var(--navy);
}

.finder .choices__list--dropdown .choices__input,
.finder .choices__list[aria-expanded] .choices__input {
    position: relative !important;
    width: calc(100% - 1.2rem) !important;
    height: auto !important;
    min-height: 40px !important;
    margin: 0.5rem 0.6rem !important;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

.finder-advanced-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 1.15rem;
    min-height: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.finder-advanced-toggle:hover {
    border-color: #c5d0da;
    background: var(--paper);
}

.finder-advanced-toggle i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.finder-advanced-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.finder-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.finder-actions .btn-signal,
.finder-actions .btn-reset {
    min-height: 42px;
    height: 42px;
    padding: 0 1.15rem;
    width: auto;
    border-radius: 8px;
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* Text-only listing cards */
.listings-section {
    padding: 0.25rem 0 2.75rem;
}

.listings-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.listings-count {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}

.listings-count strong {
    color: var(--navy);
    font-weight: 700;
}

.listings-load-sentinel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.listings-load-sentinel[hidden] {
    display: none !important;
}

.listings-load-sentinel__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.listings-load-sentinel.is-loading .listings-load-sentinel__label {
    opacity: 1;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.35rem 1.35rem 1.2rem;
    background:
        linear-gradient(180deg, #fbfcfe 0%, var(--white) 42%),
        var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 0 rgba(11, 44, 68, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.listing-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--navy);
}

.listing-card--sale::before {
    background: linear-gradient(90deg, var(--sale), #d9894f);
}

.listing-card--rent::before {
    background: linear-gradient(90deg, var(--accent), #3aa992);
}

.listing-card:hover {
    border-color: #c9d4de;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.listing-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.listing-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.15rem;
}

.listing-card__purpose,
.listing-card__chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.listing-card__purpose.is-sale {
    color: #fff;
    background: var(--sale);
}

.listing-card__purpose.is-rent {
    color: #fff;
    background: var(--accent);
}

.listing-card__chip {
    color: var(--slate);
    background: var(--paper);
    border: 1px solid var(--line);
}

.listing-card__price {
    text-align: right;
    flex-shrink: 0;
}

.listing-card__price strong {
    display: block;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--navy);
}

.listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.listing-card__meta span {
    color: #b3bec8;
}

.listing-card__title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.3;
    color: var(--navy);
}

.listing-card__place {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    margin: 0;
    line-height: 1.35;
    color: var(--navy);
}

.listing-card__place > i {
    color: var(--accent);
    font-size: 0.78rem;
    flex-shrink: 0;
    align-self: baseline;
    position: relative;
    top: 0.05em;
}

.listing-card__city {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    color: var(--muted);
}

.listing-card__place-sep {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    color: var(--muted);
}

.listing-card__place-name {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    color: var(--navy);
}

.listing-card__location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate);
}

.listing-card__location i {
    color: var(--accent);
    font-size: 0.78rem;
}

.listing-card__desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
}

.listing-card__about {
    margin-top: 0.75rem;
}

.listing-card__phone {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
}

.listing-card__desc-expand {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}

.listing-card__about.is-open .listing-card__desc-expand {
    grid-template-rows: 1fr;
}

.listing-card__desc-expand-inner {
    overflow: hidden;
    min-height: 0;
}

.listing-card__desc--full {
    margin: 0;
}

.listing-card__desc-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-deep);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.listing-card__desc-btn:hover {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .listing-card__desc-expand {
        transition: none;
    }
}

.listing-card__specs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.35rem 0 0;
    padding: 0.85rem 0.55rem;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.listing-card__specs li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.listing-card__specs i {
    color: var(--accent);
    font-size: 0.82rem;
}

.listing-card__specs span {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.listing-card__specs strong {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
}

.listing-card__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
}

.listing-card__agent {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.listing-card__agent span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.listing-card__agent strong {
    color: var(--navy);
}

.listing-card__contacted-label {
    margin-right: auto;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-deep);
}

.listing-card__footer:has(.listing-card__own) {
    justify-content: flex-start;
}

.listing-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 1.05rem;
    border-radius: 9px;
    background: var(--navy);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.listing-card__cta:hover {
    background: var(--accent);
    color: #fff !important;
}

.listing-card__cta--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.listing-card__own {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

@media (max-width: 991.98px) {
    .listings-grid {
        grid-template-columns: 1fr 1fr;
    }

    .listing-card__specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .listing-card__top {
        flex-direction: column;
    }

    .listing-card__price {
        text-align: left;
    }

    .listing-card__specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.promise-section {
    padding: 0.5rem 0 3.5rem;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.promise-grid article {
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.promise-grid h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

.promise-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Search results */
.search-results-section {
    padding: 2.75rem 0 3.5rem;
}

.page-kicker,
.search-results-section .breadcrumb_title {
    margin: 0 0 0.55rem;
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: normal;
    color: var(--navy);
}

.search-meta {
    color: var(--muted);
    margin-bottom: 1.35rem;
}

.search-tabs {
    gap: 0.35rem;
    margin: 0 0 1.35rem;
    flex-wrap: wrap;
}

.search-tabs .nav-link {
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy-soft);
    background: var(--paper);
    border: 1px solid var(--line);
}

.search-tabs .nav-link:hover {
    color: var(--navy);
    border-color: #c5d0da;
    text-decoration: none;
}

.search-tabs .nav-link.active {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.search-listing-wrap {
    margin-bottom: 1rem;
    border-radius: 14px;
    transition: box-shadow 0.25s ease, outline-color 0.25s ease;
}

.search-listing-wrap.is-highlighted {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.search-listing-wrap .listing-card {
    margin-bottom: 0;
}

.search-result-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-result-card:hover {
    border-color: #c5d0da;
    box-shadow: var(--shadow);
}

.search-result-link {
    display: block;
    padding: 1.1rem 1.2rem;
}

.search-result-link h3 {
    margin: 0.4rem 0 0.2rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.search-result-link p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.result-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    background: var(--paper);
    color: var(--navy);
}

.result-badge--sale { background: #fef3e8; color: var(--sale); }
.result-badge--rent { background: #e8f5f3; color: var(--accent); }
.result-badge--project { background: #eef3f8; color: var(--navy-soft); }

.empty-results {
    text-align: center;
    padding: 2.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    overflow-x: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 3.25rem 0 2.25rem;
}

.footer-brand-block,
.footer-col {
    min-width: 0;
}

.brand--footer {
    color: #fff;
    margin-bottom: 0.7rem;
    max-width: 100%;
}

.brand--footer:hover { color: #fff; }

.brand--footer .brand-logo,
.brand-logo--footer {
    max-width: min(175px, 100%);
    height: auto;
}

.footer-brand-block p {
    max-width: 22rem;
    margin: 0.7rem 0 0;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.site-footer h4 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    word-break: break-word;
}

.site-footer a:hover { color: #fff; }

.footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.42);
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    background: var(--paper);
}

.auth-header {
    background: var(--navy);
    padding: 1.05rem 0;
}

.auth-header .brand,
.auth-header a.brand {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
}

.auth-header .brand span { color: var(--accent); }

.auth-header .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.4rem 0.9rem;
}

.our-log,
.our-log-reg {
    flex: 1;
    padding: 3.5rem 0;
}

.login_form.inner_page,
.sign_up_form.inner_page {
    padding: 0 80px;
}

.login_form .heading h3,
.sign_up_form .heading h3 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: 1.65rem;
    font-weight: 800;
}

.login_form .form-control,
.sign_up_form .form-control {
    margin-bottom: 1rem;
}

.login_form .btn-log,
.sign_up_form .btn-log {
    height: var(--control-h);
    width: 100%;
    border: none;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 700;
    background: var(--accent);
}

.login_form .btn-log:hover,
.sign_up_form .btn-log:hover {
    color: #fff;
    background: var(--accent-deep);
}

.alert-auth {
    background: #fff5f4;
    border: 1px solid #f0d0cc;
    border-radius: 10px;
    color: #9a3d35;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.auth-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}

.home-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.home-card h1 {
    font-family: var(--font-display);
    color: var(--navy);
    font-weight: 800;
}

.text-thm { color: var(--navy) !important; }

@media (max-width: 991.98px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand cta"
            "search search"
            "nav nav";
        gap: 0.85rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .site-header--broker .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand cta"
            "search search";
    }

    .brand { grid-area: brand; }
    .header-cta { grid-area: cta; }
    .header-search {
        grid-area: search;
        max-width: none;
        justify-self: stretch;
    }
    .site-header--broker .header-search {
        margin: 0;
    }
    .primary-nav {
        grid-area: nav;
        overflow-x: auto;
    }

    .finder-primary,
    .finder-advanced {
        grid-template-columns: 1fr 1fr;
    }

    .promise-grid,
    .portal-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem 1.25rem;
        padding: 2.5rem 0 1.75rem;
    }

    .footer-brand-block {
        grid-column: 1 / -1;
    }

    .footer-brand-block p {
        max-width: none;
    }

    .portal-hero__cta {
        flex-direction: column;
    }

    .portal-btn {
        width: 100%;
        min-height: 52px;
    }

    .login_form.inner_page,
    .sign_up_form.inner_page {
        padding: 0 1.25rem;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn-signal,
    .hero-actions .btn-ghost,
    .hero-actions .btn-reset {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .section-intro {
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .contact-tabs {
        gap: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .contact-tabs::-webkit-scrollbar {
        display: none;
    }

    .contact-tabs__link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .account-menu__dropdown {
        right: 0;
        left: auto;
        width: min(280px, calc(100vw - 2rem));
    }
}

@media (max-width: 575.98px) {
    .finder-primary,
    .finder-advanced {
        grid-template-columns: 1fr;
    }

    .finder-actions {
        justify-content: stretch;
    }

    .finder-actions .finder-advanced-toggle,
    .finder-actions .btn-signal,
    .finder-actions .btn-reset {
        flex: 1 1 auto;
        justify-content: center;
    }

    .primary-nav { display: none; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0 1.5rem;
    }

    .footer-brand-block {
        grid-column: auto;
        text-align: left;
    }

    .footer-col {
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-base {
        text-align: center;
        padding: 0.9rem 0;
    }

    .header-cta .btn-signal,
    .header-cta .link-quiet {
        font-size: 0.85rem;
    }

    .header-cta .btn-signal {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        white-space: nowrap;
    }

    .brand-logo {
        height: 32px;
        max-width: 140px;
    }

    .home-card {
        padding: 1.25rem 1.1rem;
    }

    .home-card h1,
    .home-card h2 {
        font-size: 1.3rem;
    }

    .listing-form {
        padding: 1rem;
    }

    .listing-form-actions {
        flex-wrap: wrap;
    }

    .listing-form-actions .btn-signal,
    .listing-form-actions .btn-reset {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-signal,
    .hero-actions .btn-ghost,
    .hero-actions .btn-reset {
        width: 100%;
    }

    .listing-card__actions {
        flex-direction: column;
    }

    .listing-card__actions > * {
        width: 100%;
        justify-content: center;
    }

    .contact-review {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .find-section {
        padding: 1.5rem 0 1.75rem;
    }

    .section-intro h1,
    .section-intro h2 {
        font-size: 1.45rem;
    }

    .portal-hero__content {
        padding: 1.5rem 1.15rem;
    }

    .portal-hero__title {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .portal-hero__lead {
        font-size: 0.95rem;
    }

    .searchTerm {
        font-size: 0.9rem;
    }

    .wrapHeaderSearch .search {
        min-height: 44px;
    }
}

/* ========== Auth modal ========== */
body.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.auth-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 28, 44, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    max-height: min(92vh, 720px);
    overflow: auto;
    padding: 1.75rem 1.65rem 1.7rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow:
        0 24px 60px rgba(7, 28, 44, 0.28),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
    transform: translateY(18px) scale(0.97);
    opacity: 0;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.auth-modal.is-open .auth-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.auth-modal__dialog--wide {
    width: min(100%, 480px);
}

.auth-modal__dialog--import {
    width: min(100%, 960px);
    max-height: min(92vh, 860px);
}

.auth-field__req,
.auth-field__opt {
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
}

.auth-field__req {
    color: var(--accent);
}

.auth-field__opt {
    color: #9aa8b5;
}

.auth-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--slate);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.auth-modal__close:hover {
    color: var(--navy);
    border-color: #c5d0da;
    background: var(--paper);
}

.auth-modal__panel {
    animation: authPanelIn 0.28s ease;
}

.auth-modal__head {
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.auth-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.auth-modal__title {
    margin: 0 0 0.4rem;
    font-family: var(--font-body);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.auth-modal__sub {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.auth-modal__switch {
    border: 0;
    padding: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-modal__switch:hover {
    color: var(--accent-deep);
    text-decoration: underline;
}

.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
}

.auth-field span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-field input {
    width: 100%;
    height: 42px;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:hover {
    border-color: #c5d0da;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 44, 68, 0.08);
}

.auth-modal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.1rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--slate);
    cursor: pointer;
}

.auth-modal__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

.auth-modal__link:hover {
    color: var(--navy);
}

.auth-modal__submit {
    width: 100%;
    min-height: 44px;
    margin-top: 0.35rem;
    border-radius: 10px;
}

.auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.auth-modal__skip-form {
    margin: 0;
}

.auth-modal__skip {
    display: block;
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 0;
    background: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-modal__skip:hover {
    color: var(--navy);
    text-decoration: underline;
}

.auth-modal .alert-auth {
    margin-bottom: 0.85rem;
}

.auth-modal .alert-auth--success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
    color: #166534;
}

.auth-modal__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.15rem;
    margin-bottom: 0;
}

.auth-modal__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-modal__social-btn i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.auth-modal__social-btn--google {
    background: var(--white);
    color: var(--navy);
    border-color: var(--line);
}

.auth-modal__social-btn--google i {
    color: #ea4335;
}

.auth-modal__social-btn--google:hover {
    background: var(--paper);
    border-color: #c5d0da;
    color: var(--navy);
    text-decoration: none;
}

.auth-modal__social-btn--facebook {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.auth-modal__social-btn--facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: #fff;
    text-decoration: none;
}

.auth-modal__divider {
    position: relative;
    text-align: center;
    margin: 0.85rem 0 0.65rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-modal__divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--line);
}

.auth-modal__divider span {
    position: relative;
    padding: 0 0.65rem;
    background: #f7fafc;
}

.login_form .btn-googl,
.login_form .btn-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.65rem;
    min-height: 44px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.login_form .btn-googl {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.login_form .btn-fb {
    background: #1877f2;
    border: 1px solid #1877f2;
}

@keyframes authPanelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-modal,
    .auth-modal__dialog,
    .auth-modal__panel {
        transition: none !important;
        animation: none !important;
    }

    .auth-modal__dialog {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .auth-modal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .auth-modal__dialog {
        width: 100%;
        border-radius: 16px 16px 12px 12px;
        transform: translateY(28px);
    }

    .auth-modal.is-open .auth-modal__dialog {
        transform: translateY(0);
    }
}

/* ========== Broker listing form ========== */
.listing-form-section {
    padding-bottom: 3rem;
}

.listing-form-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.listing-form-intro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.listing-form-alert {
    margin-bottom: 1rem;
}

.listing-form {
    padding: 1.5rem;
}

.listing-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.listing-form-desc {
    margin-top: 1rem;
}

.listing-form-desc textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    resize: vertical;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-form-desc textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 44, 68, 0.08);
}

.listing-form-check {
    justify-content: flex-end;
}

.listing-form-check .auth-check {
    min-height: 42px;
    padding: 0 0.2rem;
}

.listing-form-actions {
    margin-top: 1.35rem;
}

.listing-flash {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(31, 138, 122, 0.12);
    color: var(--accent-deep);
    font-weight: 600;
    opacity: 1;
    max-height: 120px;
    overflow: hidden;
    transition: opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease, padding 0.45s ease;
}

.listing-flash--error {
    background: rgba(185, 74, 72, 0.12);
    color: #b94a48;
}

.listing-flash.is-hiding {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.listings-count--left {
    text-align: left;
    margin-bottom: 0.75rem;
}

.listings-count--right {
    text-align: right;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.listing-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.listing-pagination .pagination {
    margin: 0;
}

.listing-pagination .page-link {
    color: var(--navy);
    border-color: var(--line);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
}

.listing-pagination .page-item.active .page-link {
    background: var(--accent, #1f8a7a);
    border-color: var(--accent, #1f8a7a);
    color: #fff;
}

.listing-pagination .page-item.disabled .page-link {
    color: var(--muted);
    background: var(--paper);
}

.listing-pagination svg {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
}

.home-card {
    padding: 1.75rem 1.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.home-card h1,
.home-card h2 {
    margin: 0 0 0.45rem;
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
}

.home-card p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 991.98px) {
    .listing-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .listing-form-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .listing-form-intro__actions {
        width: 100%;
    }

    .listing-form-intro .btn-signal,
    .listing-form-intro .btn-reset,
    .listing-form-intro .btn-ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .listing-form-grid {
        grid-template-columns: 1fr;
    }

    .listing-form-check {
        justify-content: flex-start;
    }
}

/* Card management actions */
.listing-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.listing-card__actions form {
    margin: 0;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--slate);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.card-action:hover {
    color: var(--navy);
    border-color: #c5d0da;
    background: var(--paper);
}

.card-action--edit {
    color: var(--navy);
}

.card-action--on {
    color: var(--accent-deep);
    border-color: rgba(31, 138, 122, 0.35);
    background: rgba(31, 138, 122, 0.08);
}

.card-action--off {
    color: var(--sale);
    border-color: rgba(196, 92, 38, 0.3);
    background: rgba(196, 92, 38, 0.08);
}

.card-action--delete {
    color: var(--danger);
    border-color: rgba(214, 69, 69, 0.28);
    background: #fff7f7;
}

.card-action--delete:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.listing-card.is-inactive {
    opacity: 0.82;
}

/* Talk agent CTA as button */
button.listing-card__cta {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

button.listing-card__cta:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Listing contacts inbox */
.contact-list {
    display: grid;
    gap: 0.9rem;
}

.contact-tabs {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin: 0 0 1.35rem;
    border-bottom: 1px solid var(--line);
}

.contact-tabs__link {
    position: relative;
    padding: 0.65rem 0.15rem 0.85rem;
    color: #9aa6b2;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-tabs__link:hover {
    color: var(--navy);
}

.contact-tabs__link.is-active {
    color: #3b78c9;
}

.contact-tabs__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #3b78c9;
}

/* ========== Bulk import (create listing) ========== */
.import-panel {
    margin-top: 0.25rem;
}

.import-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1.15rem;
}

.import-methods__card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.import-methods__card:hover {
    border-color: #c5d0da;
    background: var(--paper);
}

.import-methods__card.is-active {
    border-color: rgba(59, 120, 201, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 120, 201, 0.12);
    background: #f7fbff;
}

.import-methods__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--paper);
    color: var(--navy);
    font-size: 1rem;
}

.import-methods__card.is-active .import-methods__icon {
    background: rgba(59, 120, 201, 0.12);
    color: #3b78c9;
}

.import-methods__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.import-methods__body strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
}

.import-methods__body span {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.35;
}

.import-pane h2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
}

.import-pane__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.35rem;
}

.import-pane__example-link {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--signal, #0f7a8a);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.import-pane__example-link:hover {
    color: var(--navy);
}

.import-pane > p {
    margin: 0 0 1rem;
}

.import-pane__required {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(15, 61, 92, 0.06);
    border: 1px solid rgba(15, 61, 92, 0.1);
}

.import-pane__required strong {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--navy);
}

.import-pane__required p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
}

.import-pane__required-note {
    margin-top: 0.45rem !important;
    font-weight: 600;
    color: var(--navy) !important;
}

.import-pane__note {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.import-pane {
    position: relative;
}

.import-pane.is-processing {
    pointer-events: none;
}

.import-processing {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: inherit;
    background: rgba(247, 250, 252, 0.88);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.import-processing[hidden] {
    display: none !important;
}

.import-processing__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    max-width: 320px;
    padding: 1.35rem 1.5rem;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: center;
}

.import-processing__spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.15rem;
    color: var(--signal, #0f7a8a);
    font-size: 1.45rem;
}

.import-processing__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--navy);
}

.import-processing__text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
}

body.import-processing-open {
    cursor: progress;
}

.import-example {
    display: grid;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.import-example__single-col {
    display: grid;
    gap: 1rem;
}

.import-example__block h3,
.import-example__map h3 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
}

.import-example__hint {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.35;
}

.import-example__hint code {
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
    background: rgba(15, 61, 92, 0.06);
    font-size: 0.8rem;
    color: var(--navy);
}

.import-example__code {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: var(--paper, #f4f7f9);
    border: 1px solid rgba(15, 61, 92, 0.1);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--navy);
    white-space: pre-wrap;
    overflow-x: auto;
}

.import-example__map ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

.import-example__map li {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
}

.import-example__map code {
    display: inline-block;
    margin: 0 0.1rem;
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    background: rgba(15, 61, 92, 0.06);
    font-size: 0.82rem;
    color: var(--navy);
}

@media (min-width: 720px) {
    .import-example {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: start;
    }

    .import-example__block--left {
        grid-column: 1;
        grid-row: 1;
    }

    .import-example__single-col {
        grid-column: 2;
        grid-row: 1;
    }

    .import-example__block--wide,
    .import-example__map {
        grid-column: 1 / -1;
    }

    .import-example__map ul {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem 1rem;
    }
}

.import-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 180px;
    padding: 1.5rem 1.25rem;
    border: 1.5px dashed #c5d0da;
    border-radius: 12px;
    background: var(--paper);
    text-align: center;
    cursor: not-allowed;
    opacity: 0.85;
}

.import-dropzone.is-enabled {
    cursor: pointer;
    opacity: 1;
}

.import-dropzone.is-enabled:hover,
.import-dropzone.has-file {
    border-color: rgba(15, 122, 138, 0.45);
    background: rgba(15, 122, 138, 0.04);
}

.import-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.import-dropzone.is-enabled input[type="file"] {
    pointer-events: auto;
    cursor: pointer;
}

.import-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 0.35rem;
    border-radius: 12px;
    background: var(--white);
    color: #3b78c9;
    font-size: 1.25rem;
    border: 1px solid var(--line);
}

.import-dropzone strong {
    font-size: 1rem;
    color: var(--navy);
}

.import-dropzone span {
    font-size: 0.86rem;
    color: var(--muted);
}

@media (max-width: 700px) {
    .import-methods {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    padding: 1.15rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(11, 44, 68, 0.03);
}

.contact-card.is-new {
    border-color: rgba(31, 138, 122, 0.35);
    box-shadow: 0 0 0 2px rgba(31, 138, 122, 0.08);
}

.contact-card__main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.contact-card__label {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card__who h3,
.contact-card__listing h4 {
    margin: 0 0 0.35rem;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.contact-card__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-card__meta a {
    color: var(--accent-deep);
    font-weight: 600;
}

.contact-card__message {
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    background: var(--paper);
    color: var(--slate);
    font-size: 0.9rem;
}

.contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.contact-card__status {
    margin-right: auto;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-card.is-new .contact-card__status {
    color: var(--accent-deep);
}

@media (max-width: 767.98px) {
    .contact-card__main {
        grid-template-columns: 1fr;
    }
}

.contact-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.listing-card .contact-review {
    margin-top: 0.95rem;
}

.contact-review__label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
}

.contact-review__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.contact-review__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1.5px solid #5b8fd6;
    background: #f3f7fd;
    color: #3b78c9;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.contact-review__btn:hover {
    background: #e8f0fb;
    border-color: #3b78c9;
    transform: translateY(-1px);
}

.contact-review__btn i {
    font-size: 0.95rem;
}

.contact-review__done {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.contact-review__result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1.5px solid #5b8fd6;
    background: #f3f7fd;
    color: #3b78c9;
}

.contact-review__result i {
    font-size: 0.9rem;
}

.contact-review__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.contact-review__badge--up {
    background: rgba(31, 138, 122, 0.12);
    color: var(--accent-deep);
}

.contact-review__badge--down {
    background: rgba(185, 74, 72, 0.12);
    color: #b94a48;
}

body.review-modal-open {
    overflow: hidden;
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.review-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 44, 68, 0.45);
}

.review-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 1.6rem 1.35rem 1.25rem;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 24px 60px rgba(11, 44, 68, 0.22);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.review-modal.is-open .review-modal__dialog {
    transform: translateY(0) scale(1);
}

.review-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.review-modal__close:hover {
    color: var(--navy);
    background: var(--paper);
}

.review-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: #e8f0fb;
    color: #3b78c9;
    font-size: 1.05rem;
}

.review-modal__title {
    margin: 0 0 1.25rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
}

.review-modal__form {
    display: grid;
    gap: 1rem;
}

.review-field {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.review-field > span,
.review-field > legend {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.review-field .req {
    color: #c0392b;
}

.review-field select,
.review-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font: inherit;
}

.review-field textarea {
    min-height: 88px;
    resize: vertical;
}

.review-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.review-toggle__option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.review-toggle__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-toggle__option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.review-toggle__option input:checked + span {
    border-color: #3b78c9;
    background: #eef5fc;
    color: #2f6db8;
}

.review-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.review-modal__btn {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.review-modal__btn--cancel {
    background: #edf0f3;
    color: var(--navy);
}

.review-modal__btn--submit {
    background: #dfe4e9;
    color: var(--navy);
}

.review-modal__btn--submit:not(:disabled) {
    background: var(--accent);
    color: var(--white);
}

.review-modal__btn--submit:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
    .review-modal,
    .review-modal__dialog {
        transition: none;
    }
}

@media (max-width: 480px) {
    .review-modal__dialog {
        padding: 1.35rem 1rem 1.1rem;
    }
}

/* Broker workspace top nav */
.broker-nav-bar {
    padding: 0.6rem 0 0;
}

.broker-nav-bar + .site-main .find-section {
    padding-top: 1.25rem;
}

.broker-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.broker-nav__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 0.95rem;
    border-radius: 8px;
    border: 1px solid transparent;
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 700;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.broker-nav__btn:hover {
    color: var(--navy);
    background: var(--paper);
    border-color: var(--line);
}

.broker-nav__btn.is-active {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}

.broker-nav__btn.is-active:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.broker-nav__dropdown {
    position: relative;
}

.broker-nav__btn--dropdown .broker-nav__chevron {
    font-size: 0.65rem;
    opacity: 0.75;
    transition: transform 0.15s ease;
}

.broker-nav__dropdown.is-open .broker-nav__chevron {
    transform: rotate(180deg);
}

.broker-nav__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 40;
    min-width: 220px;
    padding: 0.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(11, 44, 68, 0.12);
}

.broker-nav__menu-link {
    display: block;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.broker-nav__menu-link:hover,
.broker-nav__menu-link.is-active {
    background: var(--paper);
    color: var(--navy);
}

.dubricks-embed-section {
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
}

.dubricks-embed {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(11, 44, 68, 0.03);
}

.dubricks-embed__frame {
    display: block;
    width: 100%;
    height: 480px;
    min-height: 320px;
    border: 0;
    background: #fff;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .broker-nav-bar {
        padding: 0.5rem 0 0;
    }

    .broker-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.45rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.45rem;
    }

    .broker-nav::-webkit-scrollbar {
        display: none;
    }

    .broker-nav__btn {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0 0.8rem;
        min-height: 38px;
    }

    .broker-nav__dropdown {
        width: 100%;
    }

    .broker-nav__menu {
        position: static;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .dubricks-embed__frame {
        min-height: 280px;
        height: 420px;
    }
}
