/* ── Tenant public tokens ─────────────────────────────────────────── */
.tenant-public {
    --bs-primary: var(--primary, #1e40af);
    --bs-primary-rgb: var(--bs-primary-rgb, 30, 64, 175);
    --hero-overlay: rgba(15, 23, 42, 0.55);
    --hero-min-height: clamp(520px, 85vh, 720px);
    --font-display: "Comfortaa", "Fira Sans", system-ui, sans-serif;
    --font-ui: "Fira Sans", system-ui, -apple-system, sans-serif;
    --tenant-mobile-gutter: 1.125rem;
    font-family: var(--font-ui);
}

.tenant-public.marketplace-home {
    font-family: var(--font-ui);
}

.tenant-public a:focus-visible,
.tenant-public button:focus-visible,
.tenant-public select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Sticky navbar (topbar fora do shell; sticky no #marketplace-sticky-header) ─ */
.marketplace-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 280;
    width: 100%;
    max-width: 100%;
}

.marketplace-navbar-wrap {
    position: relative;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    transition:
        background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        -webkit-backdrop-filter 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-sticky-shell.is-scrolled .marketplace-navbar-wrap {
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
    border-bottom-color: transparent;
}

/* Home: navbar transparente sobre o hero; branco ao scrollar */
.marketplace-sticky-shell--over-hero .marketplace-navbar-wrap {
    background-color: rgba(255, 255, 255, 0);
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-navbar-wrap {
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.marketplace-hero-premium--with-sticky {
    margin-top: calc(-1 * var(--marketplace-sticky-height, 7.75rem));
    padding-top: var(--marketplace-sticky-height, 7.75rem);
}

.marketplace-sticky-shell--over-hero .marketplace-header .marketplace-nav a,
.marketplace-sticky-shell--over-hero .marketplace-header .marketplace-brand,
.marketplace-sticky-shell--over-hero .marketplace-header .marketplace-brand-name,
.marketplace-sticky-shell--over-hero .marketplace-menu-toggle {
    transition:
        color 0.42s cubic-bezier(0.4, 0, 0.2, 1) 0.06s,
        background-color 0.42s cubic-bezier(0.4, 0, 0.2, 1) 0.04s,
        border-color 0.42s cubic-bezier(0.4, 0, 0.2, 1) 0.04s,
        opacity 0.32s ease;
}

.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-header .marketplace-nav a,
.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-header .marketplace-brand,
.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-header .marketplace-brand-name {
    color: var(--text, #0f172a);
}

.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-header .marketplace-nav a:hover {
    color: var(--primary, #1e40af);
    opacity: 1;
}

.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-menu-toggle {
    border-color: var(--color-border, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
}

/* Logo crossfade sobre o hero (grid empilhado — evita colapso do link da marca) */
.marketplace-sticky-shell--over-hero .marketplace-brand {
    display: inline-grid;
    place-items: center;
    position: relative;
    width: max-content;
    max-width: min(100%, 280px);
    min-height: var(--hi-logo-hero-height, 56px);
}

.marketplace-sticky-shell--over-hero .marketplace-brand .tenant-logo-img {
    grid-area: 1 / 1;
    display: block;
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
    width: var(--hi-logo-hero-width, auto);
    height: var(--hi-logo-hero-height, 56px);
    max-height: var(--hi-logo-hero-height, 56px);
    max-width: 100%;
    object-fit: contain;
    transition:
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.45s;
}

.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-brand .tenant-logo-img--light {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-brand .tenant-logo-img--dark {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.98) translateY(4px);
}

.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-brand .tenant-logo-img--light {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.98) translateY(-4px);
}

.marketplace-sticky-shell--over-hero.is-scrolled .marketplace-brand .tenant-logo-img--dark {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-header .marketplace-nav a {
    color: #fff;
}

.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-header .marketplace-nav a:hover {
    color: #fff;
    opacity: 0.85;
}

.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-header .marketplace-brand,
.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-header .marketplace-brand-name {
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-navbar-wrap,
    .marketplace-sticky-shell--over-hero .marketplace-header .marketplace-nav a,
    .marketplace-sticky-shell--over-hero .marketplace-header .marketplace-brand,
    .marketplace-sticky-shell--over-hero .marketplace-header .marketplace-brand-name,
    .marketplace-sticky-shell--over-hero .marketplace-menu-toggle,
    .marketplace-sticky-shell--over-hero .marketplace-brand .tenant-logo-img {
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* ── Top utility bar ───────────────────────────────────────────────── */
.marketplace-topbar {
    background: var(--surface, #fff);
    border-bottom: var(--hi-border-width, 1px) solid var(--color-border, rgba(15, 23, 42, 0.08));
    font-size: 0.8125rem;
    color: var(--text-muted, #475569);
    position: relative;
    z-index: 20;
}

.marketplace-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.85rem;
    flex-wrap: wrap;
    padding: 0.65rem 0;
}

.marketplace-topbar-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.marketplace-topbar-contact a,
.marketplace-topbar-links a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.marketplace-topbar-contact a:hover,
.marketplace-topbar-links a:hover {
    color: var(--accent);
}

.marketplace-topbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marketplace-topbar-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: default;
    padding: 0;
}

.marketplace-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ── Premium hero shell ──────────────────────────────────────────── */
.marketplace-hero-premium {
    position: relative;
    min-height: var(--hero-min-height);
    display: grid;
    grid-template-rows: 1fr;
    grid-template-areas: "hero-main";
    color: #fff;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.marketplace-hero-premium--with-sticky > .hero-main {
    grid-area: hero-main;
}

.hero-main {
    grid-area: hero-main;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vh, 3.5rem);
    width: 100%;
    min-height: 0;
    padding: clamp(1.25rem, 4vh, 2.75rem) 0 clamp(2rem, 5vh, 3.5rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-color: #1e293b;
}

.hero-bg__video,
.hero-bg__image,
.hero-bg__fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-bg__video {
    object-fit: cover;
    object-position: center;
}

.hero-bg__image,
.hero-bg__fallback {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.2) 0%,
        rgba(15, 23, 42, 0.35) 50%,
        rgba(15, 23, 42, 0.55) 100%
    );
}

.hero-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #000;
    opacity: 0.5;
}

.marketplace-hero-premium > .marketplace-header,
.marketplace-hero-premium > .hero-main {
    position: relative;
    z-index: 2;
    width: 100%;
}

.marketplace-hero-premium .hero-content,
.marketplace-hero-premium .hero-search-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ── Transparent header ───────────────────────────────────────────── */
.marketplace-header {
    display: grid;
    grid-template-columns: 1fr auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0 0.5rem;
}

.marketplace-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.marketplace-nav--left {
    justify-content: flex-start;
}

.marketplace-nav--right {
    justify-content: flex-end;
}

.marketplace-header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.75rem;
}

/* Nav sobre o hero (imagem): texto branco; com fundo sólido (menu aberto): cor da marca */
.marketplace-hero-premium .marketplace-header:not(.is-menu-open) .marketplace-nav a {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, color 0.2s;
}

.marketplace-hero-premium .marketplace-header:not(.is-menu-open) .marketplace-nav a:hover {
    color: #fff;
    opacity: 0.85;
}

.marketplace-hero-premium .marketplace-header.is-menu-open .marketplace-nav a {
    color: var(--text, #0f172a);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s, opacity 0.2s;
}

.marketplace-hero-premium .marketplace-header.is-menu-open .marketplace-nav a:hover {
    color: var(--primary, #1e40af);
    opacity: 1;
}

.marketplace-hero-premium .marketplace-header:not(.is-menu-open) > .marketplace-brand,
.marketplace-hero-premium .marketplace-header:not(.is-menu-open) .marketplace-brand-name {
    color: #fff;
}

.marketplace-hero-premium .marketplace-header:not(.is-menu-open) > .marketplace-brand {
    text-align: center;
    text-decoration: none;
}

.marketplace-hero-premium .marketplace-header.is-menu-open > .marketplace-brand,
.marketplace-hero-premium .marketplace-header.is-menu-open .marketplace-brand-name {
    color: var(--text, #0f172a);
}

.marketplace-hero-premium .marketplace-header.is-menu-open > .marketplace-brand {
    text-align: center;
    text-decoration: none;
}

.marketplace-hero-premium .marketplace-header:not(.is-menu-open) .marketplace-menu-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.marketplace-hero-premium .marketplace-header.is-menu-open .marketplace-menu-toggle {
    border-color: var(--color-border, #e2e8f0);
    background: var(--background, #fff);
    color: var(--text, #0f172a);
}

.marketplace-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.marketplace-brand-name {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.2;
}

/* Logomarca clara (padrão) em fundos escuros; escura em fundos claros */
.tenant-logo-img {
    display: none;
    max-width: 100%;
    object-fit: contain;
}

.tenant-public .tenant-logo {
    width: auto;
    max-width: 100%;
}

.tenant-logo-img--light {
    display: inline-block;
}

.property-headbar .tenant-logo-img--light,
.marketplace-sticky-shell:not(.marketplace-sticky-shell--over-hero) .tenant-logo-img--light,
.marketplace-footer .tenant-logo-img--light,
.reviews-summary .tenant-logo-img--light,
.tenant-auth .tenant-logo-img--light,
.marketplace-hero-premium .marketplace-header.is-menu-open .tenant-logo-img--light,
.tenant-logo-switch--light-bg .tenant-logo-img--light {
    display: none;
}

.property-headbar .tenant-logo-img--dark,
.marketplace-sticky-shell:not(.marketplace-sticky-shell--over-hero) .tenant-logo-img--dark,
.marketplace-footer .tenant-logo-img--dark,
.reviews-summary .tenant-logo-img--dark,
.tenant-auth .tenant-logo-img--dark,
.marketplace-hero-premium .marketplace-header.is-menu-open .tenant-logo-img--dark,
.tenant-logo-switch--light-bg .tenant-logo-img--dark {
    display: inline-block;
}

/* Menu hambúrguer: branco em fundo escuro (hero), escuro em fundo claro */
.tenant-logo-switch--light-bg .marketplace-menu-toggle,
.marketplace-sticky-shell:not(.marketplace-sticky-shell--over-hero) .marketplace-menu-toggle {
    border-color: var(--color-border, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
}

.marketplace-sticky-shell--over-hero:not(.is-scrolled) .marketplace-menu-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.reviews-summary__logo-wrap {
    display: block;
    margin-bottom: 0.75rem;
}

.marketplace-footer__logo.tenant-logo {
    width: auto;
}

.sidebar-brand__logo {
    max-height: 40px;
    width: auto;
}

.marketplace-brand-rule {
    display: block;
    width: min(140px, 60%);
    height: 2px;
    margin: 0.6rem auto 0;
    background: linear-gradient(90deg, #fff 50%, var(--accent) 50%);
}

.marketplace-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    background: var(--accent);
    color: #fff !important;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.15s;
}

.marketplace-header-cta:hover {
    filter: brightness(1.08);
    color: #fff;
}

.marketplace-menu-toggle {
    display: inline-flex;
    grid-column: 4;
    justify-self: end;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}

.marketplace-menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.marketplace-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.marketplace-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.marketplace-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.property-headbar .marketplace-menu-toggle {
    border-color: var(--color-border, #e2e8f0);
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
}

/* ── Mobile menu drawer (bottom sheet) ───────────────────────────── */
.marketplace-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    visibility: hidden;
}

.marketplace-mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.marketplace-mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
}

.marketplace-mobile-drawer.is-open .marketplace-mobile-drawer__backdrop {
    opacity: 1;
}

.marketplace-mobile-drawer__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(88vh, 36rem);
    display: flex;
    flex-direction: column;
    background: var(--surface, #fff);
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 0.5rem var(--tenant-mobile-gutter) calc(1.25rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -24px 64px rgba(15, 23, 42, 0.2);
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.marketplace-mobile-drawer.is-open .marketplace-mobile-drawer__sheet {
    transform: translateY(0);
}

.marketplace-mobile-drawer__handle {
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.35rem auto 0.85rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.marketplace-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border, rgba(15, 23, 42, 0.08));
}

.marketplace-mobile-drawer__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text, #0f172a);
}

.marketplace-mobile-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text, #0f172a);
    cursor: pointer;
}

.marketplace-mobile-drawer__close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.marketplace-mobile-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.marketplace-mobile-drawer__nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text, #0f172a);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease;
}

.marketplace-mobile-drawer__nav a:hover,
.marketplace-mobile-drawer__nav a:focus-visible {
    color: var(--primary, #1e40af);
}

.marketplace-mobile-drawer__footer {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.marketplace-mobile-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.35rem;
    background: var(--accent);
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}

.marketplace-mobile-drawer__contact {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    text-decoration: none;
}

html.is-mobile-menu-open,
body.is-mobile-menu-open {
    overflow: hidden;
}

/* ── Hero content ─────────────────────────────────────────────────── */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.2;
    max-width: 22ch;
    margin: 0 0 clamp(1.5rem, 3vh, 2.25rem);
    letter-spacing: 0.01em;
}

.hero-tabs {
    display: inline-flex;
    gap: clamp(2.5rem, 6vw, 3.5rem);
    border: none;
    margin: 0;
    padding: 0;
}

.hero-tabs [role="tab"] {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.15rem 0 0.65rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.hero-tabs [role="tab"].is-active,
.hero-tabs [role="tab"][aria-selected="true"] {
    color: #fff;
    border-bottom-color: #fff;
}

.hero-tabs [role="tab"]:hover {
    color: #fff;
}

/* ── Search card ──────────────────────────────────────────────────── */
.hero-search-wrap {
    margin-top: 0;
    padding-bottom: 0;
    transform: none;
}

.hero-search-card {
    background: var(--surface, #fff);
    border-radius: var(--hi-radius-md, 0.5rem);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    padding: 1.85rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem 1.75rem;
    align-items: end;
}

.hero-search-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text, #334155);
    margin-bottom: 0.55rem;
}

.hero-search-field select {
    width: 100%;
    border: var(--hi-border-width, 1px) solid var(--color-border, #e2e8f0);
    border-radius: var(--hi-radius-sm, 0.35rem);
    padding: 0.65rem 2rem 0.65rem 0.75rem;
    font-size: 0.9375rem;
    color: var(--text, #0f172a);
    background: var(--background, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none;
    cursor: pointer;
}

.hero-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.85rem;
    padding: 0 1.75rem;
    background: var(--primary, var(--accent));
    color: #fff;
    border: none;
    border-radius: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s;
}

.hero-search-submit:hover {
    filter: brightness(1.08);
}

.hero-search-submit svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* ── Featured districts ───────────────────────────────────────────── */
.districts-section {
    padding: clamp(4rem, 10vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
    background: var(--background, #fff);
}

.districts-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.2vw, 2.125rem);
    font-weight: 500;
    text-align: center;
    max-width: 28ch;
    margin: 0 auto 2.5rem;
    line-height: 1.25;
    color: var(--text, #0f172a);
}

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

.district-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    margin: 0;
}

.district-card__cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.district-card__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.district-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.2) 0%,
        rgba(15, 23, 42, 0.55) 50%,
        rgba(15, 23, 42, 0.78) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.district-card:hover .district-card__media,
.district-card:focus-visible .district-card__media,
.district-card:focus-within .district-card__media {
    transform: scale(1.06);
}

.district-card:hover::after,
.district-card:focus-visible::after,
.district-card:focus-within::after {
    opacity: 1;
}

.district-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%);
    pointer-events: none;
}

.district-card__overlay {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    pointer-events: none;
}

.district-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display, inherit);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.district-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.district-card__badges span {
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.district-card:hover .district-card__overlay,
.district-card:focus-visible .district-card__overlay {
    transform: translateY(-0.1rem);
    transition: transform 0.35s ease;
}

.district-card__city-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.district-card--city:hover .district-card__city-content,
.district-card--city:focus-within .district-card__city-content {
    opacity: 1;
    transform: translateY(0);
}

.district-card__city-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.district-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    pointer-events: none;
}

.district-card--city:hover .district-card__categories,
.district-card--city:focus-within .district-card__categories {
    pointer-events: auto;
}

.district-card__categories a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.district-card__categories a:hover,
.district-card__categories a:focus-visible {
    opacity: 0.8;
    text-decoration: underline;
}

.district-card__categories-sep {
    opacity: 0.55;
    user-select: none;
}

@media (hover: none) {
    .district-card::after {
        opacity: 0.55;
    }

    .district-card__overlay,
    .district-card__city-content {
        opacity: 1;
        transform: none;
    }

    .district-card__categories {
        pointer-events: auto;
    }
}

/* ── Value propositions ───────────────────────────────────────────── */
.value-props-section {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
    background: var(--background, #fff);
    border-top: var(--hi-border-width, 1px) solid var(--color-border, rgba(15, 23, 42, 0.06));
}

.value-props-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
}

.value-prop {
    text-align: center;
    max-width: 22rem;
    margin: 0 auto;
}

.value-prop__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin-bottom: 1.25rem;
    color: #94a3b8;
}

.value-prop__icon svg {
    width: 2.75rem;
    height: 2.75rem;
}

.value-prop__icon--rating {
    gap: 0.35rem;
}

.value-prop__google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
}

.value-prop__stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #94a3b8;
}

.value-prop__stars svg {
    width: 0.85rem;
    height: 0.85rem;
}

.value-prop__title {
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.value-prop__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

.value-prop__link {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.value-prop__link:hover,
.value-prop__link:focus-visible {
    color: var(--primary, #1e40af);
    border-bottom-color: currentColor;
}

/* ── Customer reviews ─────────────────────────────────────────────── */
.reviews-section {
    position: relative;
    padding: clamp(4rem, 9vw, 5.5rem) 0 clamp(3rem, 6vw, 4rem);
    background: var(--background, #fff);
    overflow: hidden;
}

.reviews-section__header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.reviews-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.375rem);
    font-weight: 500;
    margin: 0 0 0.75rem;
    color: var(--text, #0f172a);
}

.reviews-section__subtitle {
    margin: 0 auto;
    max-width: 42ch;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted, #64748b);
}

.reviews-section__body {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.reviews-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 9rem);
    font-weight: 500;
    color: rgba(15, 23, 42, 0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.reviews-summary {
    position: relative;
    z-index: 1;
}

.reviews-summary__logo.tenant-logo {
    width: auto;
    margin-bottom: 1rem;
}

.reviews-summary__brand {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text, #0f172a);
}

.reviews-summary__tagline {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text, #0f172a);
    margin: 0 0 1.25rem;
}

.reviews-summary__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.reviews-summary__count {
    font-size: 0.875rem;
    color: #64748b;
}

.reviews-summary__cta {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text, #0f172a);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.reviews-summary__cta:hover,
.reviews-summary__cta:focus-visible {
    border-color: var(--text, #0f172a);
    background: #f8fafc;
}

.reviews-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
}

.reviews-stars svg {
    width: 1rem;
    height: 1rem;
}

.reviews-stars--gold {
    color: #f4b400;
}

.reviews-carousel {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.reviews-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

.reviews-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.reviews-carousel__track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.review-card {
    flex: 0 0 min(100%, 320px);
    scroll-snap-align: start;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.25rem;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.review-card__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.review-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.review-card__author {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    line-height: 1.3;
}

.review-card__date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.review-card__google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
}

.review-card__rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.review-card__verified svg {
    width: 1rem;
    height: 1rem;
    color: #4285f4;
}

.review-card__text {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-card.is-expanded .review-card__text {
    -webkit-line-clamp: unset;
    display: block;
}

.review-card__more {
    align-self: flex-start;
    margin-top: 0.65rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.review-card__more:hover,
.review-card__more:focus-visible {
    color: var(--text, #0f172a);
}

.reviews-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.reviews-carousel__nav svg {
    width: 1.1rem;
    height: 1.1rem;
}

.reviews-carousel__nav:hover,
.reviews-carousel__nav:focus-visible {
    border-color: #cbd5e1;
    color: var(--text, #0f172a);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.reviews-carousel__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.reviews-carousel__nav--prev {
    left: -0.75rem;
}

.reviews-carousel__nav--next {
    right: -0.75rem;
}

.reviews-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 1.5rem 0 0;
    margin-left: auto;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: #15803d;
    border-radius: 0.25rem;
}

.reviews-section > .container {
    display: flex;
    flex-direction: column;
}

.reviews-verified svg {
    width: 0.9rem;
    height: 0.9rem;
}

/* ── Properties listing ───────────────────────────────────────────── */
.properties-section {
    padding: 2.5rem 0 2rem;
}

.properties-section-header {
    margin-bottom: 1.75rem;
}

.properties-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin: 0 0 0.35rem;
    color: var(--text, #0f172a);
}

.properties-section-header p {
    margin: 0;
    color: var(--text-muted, #64748b);
}

.properties-section-header--with-action {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.properties-section__view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 999px;
    color: var(--text, #0f172a);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.properties-section__view-all:hover {
    background: var(--primary, #1e40af);
    border-color: var(--primary, #1e40af);
    color: #fff;
}

.properties-listing {
    padding: 1.5rem 0 3rem;
}

.properties-listing__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.properties-listing__breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.properties-listing__breadcrumb a:hover {
    color: var(--primary, #1e40af);
}

.properties-listing__intro {
    margin-bottom: 1.5rem;
}

.properties-listing__intro h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: var(--text, #0f172a);
}

.properties-listing__intro p {
    margin: 0;
    max-width: 52ch;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
}

.properties-filter-bar {
    margin-bottom: 1.25rem;
}

.properties-filter-bar__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.properties-filter-field {
    flex: 1 1 140px;
    min-width: 0;
}

.properties-filter-field select {
    width: 100%;
    height: 100%;
    min-height: 2.75rem;
    padding: 0.55rem 2rem 0.55rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    background: #fff;
    color: var(--text, #0f172a);
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
}

.properties-filter-bar__clear {
    display: inline-flex;
    align-items: center;
    padding: 0 0.85rem;
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.properties-filter-bar__clear:hover {
    color: var(--primary, #1e40af);
}

.properties-filter-bar__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.1rem;
    min-height: 2.75rem;
    border: none;
    border-radius: 0.35rem;
    background: var(--accent, #b45309);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s;
}

.properties-filter-bar__submit:hover {
    filter: brightness(0.95);
}

.properties-filter-bar__submit svg {
    width: 1rem;
    height: 1rem;
}

.properties-listing__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 0;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.properties-filter-bar + .properties-section--listing {
    margin-top: 0;
}

.properties-listing__count {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text, #0f172a);
}

.properties-listing__sort select {
    min-height: 2.5rem;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    background: #fff;
    font-size: 0.875rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
}

.properties-section--listing {
    padding-top: 0;
}

.properties-listing__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.properties-listing__sort label {
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    margin: 0;
    white-space: nowrap;
}

.properties-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.properties-pagination__meta {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
    text-align: center;
}

.properties-pagination__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.properties-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.65rem;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--hi-radius-sm, 0.35rem);
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.properties-pagination__link:hover {
    border-color: var(--primary, #1e40af);
    color: var(--primary, #1e40af);
}

.properties-pagination__link--current {
    background: var(--accent, #b45309);
    border-color: var(--accent, #b45309);
    color: #fff;
    cursor: default;
}

.properties-pagination__link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.properties-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    color: var(--text-muted, #64748b);
}

.tenant-public .properties-filter-bar__submit {
    background: var(--accent, #b45309);
}

.tenant-public .properties-filter-bar__submit:hover {
    background: var(--secondary, #8f4b49);
    filter: none;
}

.tenant-public .properties-listing__sort select:focus {
    border-color: var(--primary, #1e40af);
    outline: none;
    box-shadow: 0 0 0 2px rgba(184, 95, 93, 0.15);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.property-card {
    background: var(--surface, #fff);
    border: var(--hi-border-width, 1px) solid var(--color-border, #e8ecf1);
    border-radius: var(--hi-radius-md, 1rem);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.property-card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.property-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.property-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f5f9;
}

.property-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.property-card:hover .property-card__image {
    transform: scale(1.04);
}

.property-card__photos {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 0.35rem;
    backdrop-filter: blur(4px);
}

.property-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
    padding: 1.1rem 1.15rem 1.2rem;
}

.property-card__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.property-card__district {
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #94a3b8;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-card__title {
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text, #0f172a);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.1rem;
}

.property-card__features li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.property-card__features svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.property-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.property-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text, #0f172a);
    letter-spacing: -0.01em;
}

.property-card__price--consult {
    font-size: 1rem;
    color: #64748b;
}

.property-card__ref {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.badge-360 {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}

.search-results-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin: -0.75rem 0 1.25rem;
}

/* ── Search form enhancements ─────────────────────────────────────── */
.hero-search-field select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.hero-search-submit:active {
    transform: scale(0.97);
}

.hero-search-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Property card refinements ───────────────────────────────────── */
.property-card {
    will-change: transform;
}

.property-card:focus-within {
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.18);
}

.property-card__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.badge-status {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    backdrop-filter: blur(4px);
}

.badge-status--sale {
    background: rgba(30, 64, 175, 0.85);
    color: #fff;
}

.badge-status--rent {
    background: rgba(14, 116, 89, 0.85);
    color: #fff;
}

/* ── Value prop icon accent ──────────────────────────────────────── */
.value-prop__icon {
    color: var(--accent, #c4715a);
}

/* ── Topbar scroll shadow ────────────────────────────────────────── */
.marketplace-topbar {
    transition: box-shadow 0.2s ease;
}

/* ── Footer refinement ───────────────────────────────────────────── */
.marketplace-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ── Legacy / shared ────────────────────────────────────────────────── */
.tenant-header { border-bottom: 1px solid #e2e8f0; padding: 1rem 0; background: #fff; }
.tenant-header-inner { display: flex; justify-content: space-between; align-items: center; }
.tenant-logo:not(.tenant-logo--ctx-hero):not(.tenant-logo--ctx-site):not(.tenant-logo--ctx-footer):not(.tenant-logo--ctx-compact) {
    max-height: 48px;
}
.marketplace-hero { padding: 2rem 0 1rem; }
.tenant-footer { border-top: 1px solid #e2e8f0; padding: 1.5rem 0; color: #64748b; font-size: 0.9rem; }

/* ── Marketplace footer ─────────────────────────────────────────────── */
.marketplace-footer {
    position: relative;
    margin-top: clamp(2rem, 5vw, 4rem);
    background: #fff;
    overflow: hidden;
}

.marketplace-footer__content {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.marketplace-footer__bar {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 2fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding-bottom: clamp(2rem, 4vw, 2.5rem);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.marketplace-footer__logo-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.marketplace-footer__logo {
    max-height: 44px;
    width: auto;
    margin-bottom: 0.75rem;
}

.marketplace-footer__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text, #0f172a);
}

.marketplace-footer__rule {
    display: block;
    width: min(120px, 70%);
    height: 2px;
    margin-top: 0.4rem;
    background: linear-gradient(90deg, var(--text, #0f172a) 50%, var(--accent) 50%);
}

.marketplace-footer__tagline {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
    max-width: 28ch;
}

.marketplace-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}

.marketplace-footer__nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.marketplace-footer__nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.marketplace-footer__nav a {
    font-size: 0.9375rem;
    color: var(--text, #0f172a);
    text-decoration: none;
    transition: color 0.2s;
}

.marketplace-footer__nav a:hover,
.marketplace-footer__nav a:focus-visible {
    color: var(--accent);
}

.marketplace-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.marketplace-footer__legal p {
    margin: 0;
}

.marketplace-footer__powered a {
    color: #64748b;
    text-decoration: none;
}

.marketplace-footer__powered a:hover,
.marketplace-footer__powered a:focus-visible {
    color: var(--text, #0f172a);
    text-decoration: underline;
}

.marketplace-footer__watermark {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(140px, 22vw, 220px);
    padding: 0 1rem 0;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.marketplace-footer__watermark-text {
    font-family: var(--font-display);
    font-size: clamp(5rem, 18vw, 11rem);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: rgba(15, 23, 42, 0.05);
    white-space: nowrap;
    transform: translateY(18%);
    max-width: 100%;
}

.marketplace-float-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #4285f4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.marketplace-float-widget svg {
    width: 1.5rem;
    height: 1.5rem;
}

.marketplace-float-widget:hover,
.marketplace-float-widget:focus-visible {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}
.tenant-crm { --bs-primary: var(--primary, #1e40af); }
.tenant-crm .sidebar { background: var(--hi-sidebar-bg, var(--primary, #1e40af)); }
.tenant-crm .sidebar nav a.active, .tenant-crm .sidebar nav a:hover { background: rgba(255,255,255,.15); }
.empty-state { color: #64748b; grid-column: 1 / -1; text-align: center; padding: 2rem; }
body.property-page {
    overflow-x: clip;
}

.property-detail {
    padding: 1.25rem 0 3rem;
}

.property-detail > .container {
    padding-top: 0;
}

.property-headbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* legacy alias — headbar agora usa .marketplace-navbar-wrap */
.property-headbar.marketplace-navbar-wrap {
    background: #fff;
}

.marketplace-sticky-shell:not(.marketplace-sticky-shell--over-hero) .marketplace-navbar-wrap {
    background: #fff;
}

.property-page .marketplace-header,
.valuation-page .marketplace-header,
.static-page .marketplace-header {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.property-page .marketplace-nav a,
.property-page .marketplace-brand,
.property-page .marketplace-brand-name,
.valuation-page .marketplace-nav a,
.valuation-page .marketplace-brand,
.valuation-page .marketplace-brand-name,
.static-page .marketplace-nav a,
.static-page .marketplace-brand,
.static-page .marketplace-brand-name {
    color: var(--text, #0f172a);
}

.property-page .marketplace-nav a:hover,
.valuation-page .marketplace-nav a:hover,
.static-page .marketplace-nav a:hover {
    color: var(--primary, #1e40af);
}

.property-page .marketplace-brand-logo,
.property-page .tenant-logo-img,
.valuation-page .marketplace-brand-logo,
.valuation-page .tenant-logo-img,
.static-page .marketplace-brand-logo,
.static-page .tenant-logo-img {
    filter: none;
}

.property-page .marketplace-brand-rule,
.valuation-page .marketplace-brand-rule,
.static-page .marketplace-brand-rule {
    background: linear-gradient(90deg, #0f172a 50%, var(--accent) 50%);
}

.property-detail__back {
    display: inline-block;
    margin-bottom: 1rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
}

.property-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 0;
    margin-bottom: 1.5rem;
    border-radius: 0;
    overflow: hidden;
    background: #0f172a;
}

.property-gallery__main,
.property-gallery__thumb-btn {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.property-gallery__main {
    position: relative;
    min-height: 380px;
    width: 100%;
    height: 100%;
}

.property-gallery__main:focus-visible,
.property-gallery__thumb-btn:focus-visible,
.property-gallery__count:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.property-gallery__image {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
    transition: transform 0.35s ease;
}

.property-gallery__trigger:hover .property-gallery__image,
.property-gallery__trigger:focus-visible .property-gallery__image {
    transform: scale(1.02);
}

.property-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    height: 100%;
    min-height: 380px;
}

.property-gallery__thumb-btn {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.property-gallery__thumb {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.property-gallery__count {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.58);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.property-gallery__count svg {
    width: 0.9rem;
    height: 0.9rem;
}

.property-gallery__count:hover,
.property-gallery__count:focus-visible {
    background: rgba(15, 23, 42, 0.78);
}

.property-gallery__main--tour {
    cursor: default;
    display: flex;
    flex-direction: column;
    background: #0f172a;
}

.property-gallery__main--tour .property-tour360__viewer-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: inherit;
    overflow: hidden;
}

.property-gallery__main--tour .property-tour360__viewer {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
}

.property-gallery__main--tour .property-tour360__embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
}

.property-gallery__tour-rooms {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 1rem;
    pointer-events: none;
}

.property-gallery__tour-rooms > * {
    pointer-events: auto;
}

.property-gallery__tour-rooms-toggle {
    position: static;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s;
}

.property-gallery__tour-rooms-toggle svg {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

.property-gallery__tour-rooms-toggle:hover,
.property-gallery__tour-rooms-toggle:focus-visible {
    background: rgba(15, 23, 42, 0.78);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.property-gallery__tour-rooms-panel.property-tour360__gallery-overlay--bottom {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: auto;
    scrollbar-width: thin;
}

.property-gallery__tour-rooms-panel .property-tour360__gallery-track {
    width: max-content;
    min-width: 0;
    max-width: none;
}

.property-tour360-webview {
    margin: 0;
    min-height: 100dvh;
    background: #0f172a;
}

.property-tour360-webview__main {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.property-tour360-webview__viewer-wrap {
    position: relative;
    flex: 1;
    min-height: 100dvh;
}

.property-tour360__gallery-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;
    padding: 14px 16px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.property-tour360__gallery-overlay[hidden] {
    display: none !important;
}

.property-tour360__gallery-track {
    display: flex;
    gap: 14px;
    width: max-content;
    min-width: 100%;
}

.property-tour360__gallery-item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 132px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.property-tour360__gallery-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .14);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.property-tour360__gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-tour360__gallery-label {
    margin-top: 6px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
}

.property-tour360__gallery-item:hover .property-tour360__gallery-thumb,
.property-tour360__gallery-item:focus-visible .property-tour360__gallery-thumb,
.property-tour360__gallery-item.is-active .property-tour360__gallery-thumb {
    border-color: var(--primary, #0f766e);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
}

.property-tour360__gallery-overlay--bottom {
    top: auto;
    bottom: 0;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .1);
    pointer-events: none;
}

.property-tour360__gallery-overlay--bottom .property-tour360__gallery-track {
    pointer-events: auto;
}

.property-tour360__gallery-overlay--bottom .property-tour360__gallery-label {
    color: #0f172a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .75);
}

.property-tour360__gallery-overlay--bottom .property-tour360__gallery-item.is-active .property-tour360__gallery-label {
    color: var(--primary, #0f766e);
}

.property-tour360 .property-tour360__viewer-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: clamp(320px, 52vw, 560px);
    border-radius: 8px;
}

.property-tour360 .property-tour360__viewer-wrap .property-tour360__viewer {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
}

.property-tour360 .property-tour360__viewer-wrap .property-tour360__embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
}

.property-tour360 .property-tour360__gallery-overlay {
    z-index: 3;
}

.property-tour360-webview .property-tour360__viewer {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    background: #0f172a;
}

.hi-tour360-branded-loader .pnlm-load-box {
    width: 176px;
    height: 176px;
    margin: -88px 0 0 -88px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .22);
    color: transparent;
}

.hi-tour360-branded-loader .pnlm-load-box::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 50%;
    width: 82px;
    height: 54px;
    transform: translateX(-50%);
    background: var(--tour-loader-logo) center / contain no-repeat;
    filter: drop-shadow(0 .25rem .35rem rgba(15, 23, 42, .12));
    z-index: 2;
}

.hi-tour360-branded-loader .pnlm-load-box::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 50%;
    width: 106px;
    height: 106px;
    margin-left: -53px;
    border: 2px solid color-mix(in srgb, var(--primary, #0f766e) 14%, transparent);
    border-top-color: var(--primary, #0f766e);
    border-radius: 50%;
    animation: hi-tour-loader-spin 1.1s linear infinite;
}

.hi-tour360-branded-loader .pnlm-load-box > p:first-child {
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.hi-tour360-branded-loader .pnlm-lbox {
    display: none !important;
}

.hi-tour360-branded-loader .pnlm-lbar {
    position: absolute;
    right: 28px;
    bottom: 32px;
    left: 28px;
    width: auto;
    height: 5px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, .1);
}

.hi-tour360-branded-loader .pnlm-lbar-fill {
    border-radius: inherit;
    background: var(--primary, #0f766e);
}

.hi-tour360-branded-loader .pnlm-lmsg {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    margin: 0;
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes hi-tour-loader-spin {
    to { transform: rotate(360deg); }
}

.property-tour360__admin-bar {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: .45rem;
    align-items: center;
    padding: .35rem .55rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 .45rem 1.25rem rgba(15, 23, 42, .14);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
    pointer-events: auto;
}

.property-tour360__admin-add {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--primary, #0f766e) 28%, #dbe3ef);
    border-radius: 50%;
    background: #fff;
    color: var(--primary, #0f766e);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.property-tour360__admin-add:hover,
.property-tour360__admin-add:focus-visible {
    border-color: var(--primary, #0f766e);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #0f766e) 18%, transparent);
    outline: none;
}

.property-tour360-webview .property-tour360__viewer.pnlm-container,
.property-tour360-webview .property-tour360__viewer .pnlm-container {
    height: 100%;
    min-height: 100dvh;
    border-radius: 0;
}

.property-tour360__embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    background: #0f172a;
}

.property-tour360__viewer .property-tour360__embed {
    border-radius: 8px;
}

.property-tour360-webview .property-tour360__embed,
.tour-editor-viewer .property-tour360__embed {
    border-radius: 0;
}

.tour-editor-viewer .property-tour360__embed {
    min-height: clamp(320px, 52vw, 560px);
}

.property-tour360 {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

.property-tour360__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.property-tour360__head h2 {
    margin: 0;
}

.property-tour360__head span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.property-tour360__eyebrow {
    margin: 0 0 0.2rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.property-tour360__viewer {
    position: relative;
    width: 100%;
    height: clamp(320px, 52vw, 560px);
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
}

.property-tour360__viewer.pnlm-container {
    height: clamp(320px, 52vw, 560px);
    border-radius: 8px;
}

.property-tour360__viewer .pnlm-container {
    border-radius: 8px;
}

.property-tour360__empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 1.5rem;
    color: #e2e8f0;
    text-align: center;
}

.property-tour360__viewer .pnlm-hotspot-base.property-tour360__hotspot {
    pointer-events: auto;
    cursor: pointer;
}

.property-tour360__hotspot--editable {
    cursor: grab;
    touch-action: none;
}

.property-tour360__hotspot--editable:active {
    cursor: grabbing;
}

.property-tour360__hotspot--editable.is-selected {
    box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .42), 0 0 0 5px rgba(245, 158, 11, .45), 0 0 0 8px rgba(255, 255, 255, .4);
}

.property-tour360__hotspot {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.42), 0 0 0 4px rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.property-tour360__hotspot::before {
    content: "i";
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.property-tour360__hotspot--navigate,
.pnlm-hotspot-base.property-tour360__hotspot.property-tour360__hotspot--navigate,
.pnlm-hotspot-base .property-tour360__hotspot.property-tour360__hotspot--navigate {
    background: #1d4ed8;
}

.property-tour360__hotspot--navigate::before {
    content: ">";
}

.property-tour360__hotspot--icon-info::before {
    content: "i";
}

.property-tour360__hotspot--icon-arrow::before {
    content: ">";
}

.property-tour360__hotspot--icon-door::before {
    content: "D";
}

.property-tour360__hotspot--icon-star::before {
    content: "*";
}

.property-tour360__hotspot--icon-photo::before {
    content: "P";
}

.property-tour360__hotspot .pnlm-tooltip span {
    width: max-content;
    max-width: min(260px, 70vw);
    white-space: normal;
}

.property-description__content {
    position: relative;
}

.property-description__content.is-collapsed {
    max-height: 180px;
    overflow: hidden;
}

.property-description__content.is-collapsed::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 90%);
    pointer-events: none;
}

.property-description__toggle {
    margin-top: .65rem;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

/* ── Property lightbox ──────────────────────────────────────────────── */
body.property-lightbox-open,
body.property-interest-open {
    overflow: hidden;
}

/* ── Property interest modal (Estou interessado) ───────────────────── */
.property-interest-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.property-interest-modal[hidden] {
    display: none !important;
}

.property-interest-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}

.property-interest-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(92vh, 720px);
    overflow: visible;
    padding: 1.75rem 1.5rem 1.5rem;
    background: var(--surface, #fff);
    border-radius: var(--hi-radius-lg, 1rem);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
    border: 1px solid color-mix(in srgb, var(--primary, #1e40af) 12%, #e2e8f0);
}

.property-interest-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: var(--hi-surface-muted, #f1f5f9);
    color: var(--text, #0f172a);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.property-interest-modal__close:hover,
.property-interest-modal__close:focus-visible {
    background: #e2e8f0;
}

.property-interest-modal__scroll {
    max-height: min(calc(92vh - 3.5rem), 660px);
    overflow-x: hidden;
    overflow-y: auto;
}

.property-interest-modal__scroll:has(.country-list:not(.hide)) {
    overflow: visible;
}

.property-interest-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary, #1e40af);
}

.property-interest-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--text, #0f172a);
}

.property-interest-modal__subtitle {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted, #64748b);
    line-height: 1.45;
}

.property-interest-modal__property {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    background: color-mix(in srgb, var(--primary, #1e40af) 6%, #fff);
    border-left: 3px solid var(--accent, var(--primary, #1e40af));
    border-radius: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.property-interest-modal__ref {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.property-interest-modal__alert {
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.4rem;
    font-size: 0.875rem;
}

.property-interest-modal__alert--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.property-interest-modal__alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.property-interest-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.property-interest-form__field {
    margin-bottom: 0.85rem;
}

.property-interest-form__phone {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.property-interest-form__phone-country {
    flex: 0 0 8.5rem;
    min-width: 8.5rem;
}

.property-interest-form__phone-dial-wrap {
    position: relative;
    width: 100%;
}

.property-interest-form__phone-dial-wrap .country-select {
    position: relative;
    width: 100%;
}

.property-interest-form__phone-dial-display {
    position: absolute;
    left: 3rem;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text, #0f172a);
    pointer-events: none;
    line-height: 1;
}

.property-interest-form__phone-country-input {
    padding-left: 3rem !important;
    padding-right: 0.5rem !important;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    color: transparent !important;
    caret-color: transparent;
    background-color: var(--hi-surface-muted, #f8fafc);
}

.property-interest-form__phone-national {
    flex: 1 1 auto;
    min-width: 0;
}

.property-interest-form__phone-hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    line-height: 1.35;
}

.property-interest-modal .country-select .flag {
    background-image: url('../vendor/country-select-js-master/build/img/flags.png');
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .property-interest-modal .country-select .flag {
        background-image: url('../vendor/country-select-js-master/build/img/flags@2x.png');
    }
}

.property-interest-modal .country-select.inside .flag-dropdown {
    border-right: 1px solid var(--color-border, #e2e8f0);
}

.property-interest-modal .property-interest-form__phone-country .country-list {
    left: 0;
    top: calc(100% + 2px);
    z-index: 700;
    width: max-content !important;
    min-width: min(320px, calc(100vw - 2.5rem)) !important;
    max-width: min(360px, calc(100vw - 2.5rem));
    font-size: 0.875rem;
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.property-interest-modal .country-select .country-list .country {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
}

.property-interest-modal .country-select .country-list .country.hi-country-filtered-out,
.property-interest-modal .country-select .country-list .divider.hi-country-filtered-out {
    display: none !important;
}

.property-interest-modal .country-select .country-list .country-name {
    flex: 1 1 auto;
    min-width: 0;
}

.property-interest-modal .country-select .country-list .country-dial-code {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.property-interest-modal .country-select .country-list .country-search-stub {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.property-interest-modal .property-interest-country-search {
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    box-shadow: none;
}

.property-interest-modal .property-interest-country-search:focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
    background: color-mix(in srgb, var(--primary, #1e40af) 5%, #fff);
}

.property-interest-form__field .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.property-interest-form .form-control {
    border-radius: 0.4rem;
    border-color: var(--color-border, #e2e8f0);
}

.property-interest-form .form-control:focus {
    border-color: var(--primary, #1e40af);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary, #1e40af) 18%, transparent);
}

.property-interest-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.25rem 0 1rem;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    line-height: 1.4;
}

.property-interest-form__privacy input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.property-interest-form__submit.btn {
    background-color: var(--accent, var(--primary, #1e40af));
    border-color: var(--accent, var(--primary, #1e40af));
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    opacity: 1;
    filter: none;
    box-shadow: none;
}

.property-interest-form__submit.btn:hover,
.property-interest-form__submit.btn:focus-visible,
.property-interest-form__submit.btn:active {
    background-color: var(--secondary, var(--primary, #1e40af));
    border-color: var(--secondary, var(--primary, #1e40af));
    color: #fff;
    opacity: 1;
    filter: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary, #1e40af) 28%, transparent);
}

.property-contact .btn-primary {
    font-weight: 600;
}

.tenant-public.property-page .property-contact .btn-outline-secondary {
    color: var(--text, #0f172a);
    border-color: color-mix(in srgb, var(--text, #0f172a) 22%, #e2e8f0);
    background-color: var(--surface, #fff);
}

.tenant-public.property-page .property-contact .btn-outline-secondary:hover,
.tenant-public.property-page .property-contact .btn-outline-secondary:focus-visible {
    color: #fff;
    background-color: var(--primary, #1e40af);
    border-color: var(--primary, #1e40af);
}

.tenant-public.property-page .property-contact .btn-primary:hover,
.tenant-public.property-page .property-contact .btn-primary:focus-visible {
    color: #fff;
    background-color: var(--secondary, var(--primary, #1e40af));
    border-color: var(--secondary, var(--primary, #1e40af));
}

@media (max-width: 520px) {
    .property-interest-form__grid {
        grid-template-columns: 1fr;
    }

    .property-interest-modal__panel {
        padding: 1.35rem 1rem 1rem;
    }
}

.crm-lead-interests-more {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary, #1e40af);
    background: color-mix(in srgb, var(--primary, #1e40af) 10%, #fff);
    border-radius: 999px;
}

.crm-lead-interests-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.crm-lead-interests-block h4 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.crm-lead-interests-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.crm-lead-interests-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.crm-lead-interests-list li:last-child {
    border-bottom: none;
}

.crm-intent-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.crm-intent-badge--sale {
    background: #dbeafe;
    color: #1d4ed8;
}

.crm-intent-badge--rent {
    background: #fef3c7;
    color: #b45309;
}

.crm-intent-badge--muted {
    background: #f1f5f9;
    color: #94a3b8;
}

.crm-lead-row {
    cursor: pointer;
}

.crm-lead-row:hover {
    background: #f8fafc;
}

.crm-lead-contact-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.crm-document-fields .form-label {
    font-weight: 600;
}

.crm-lead-interests-cell {
    max-width: 220px;
}

.crm-lead-interests-cell__summary {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-bottom: 0.45rem;
    color: #334155;
}

.crm-lead-interests-cell .btn-lead-interests {
    white-space: nowrap;
}

.crm-client-rental-status-cell {
    min-width: 108px;
    white-space: nowrap;
}

.crm-client-rental-status {
    display: grid;
    gap: 0.2rem;
    justify-items: start;
}

.crm-client-rental-status__count {
    font-size: 0.72rem;
    line-height: 1.2;
}

.crm-client-rental-status-badge {
    font-weight: 600;
}

.crm-client-contracts-cell {
    min-width: 148px;
}

.crm-client-contracts-cell .btn-client-rental-followup {
    white-space: nowrap;
}

.tenant-crm .actions .btn-whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.tenant-crm .actions .btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
}

.crm-lead-interests-modal__lead {
    margin: 0 0 0.85rem;
    color: #475569;
    font-size: 0.9rem;
}

.crm-lead-interests-modal__toolbar {
    margin-bottom: 1rem;
}

.crm-lead-interests-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.crm-lead-interest-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.crm-lead-interest-card__cover {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.crm-lead-interest-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-lead-interest-card__cover-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    color: #94a3b8;
    font-size: 0.8rem;
}

.crm-lead-interest-card__body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.crm-lead-interest-card__title,
.crm-lead-interest-card__title-link {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.3;
    color: #0f172a;
    font-weight: 600;
}

.crm-lead-interest-card__title-link:hover {
    color: var(--primary, #1e40af);
}

.crm-lead-interest-card__ref,
.crm-lead-interest-card__location,
.crm-lead-interest-card__features {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.crm-lead-interest-card__price {
    margin: 0.15rem 0 0;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
}

.crm-lead-interest-card__footer {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.crm-lead-interest-card__actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.crm-lead-interest-card__source {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}

/* Acima da navbar sticky (280) e do drawer mobile (400) */
body.property-lightbox-open .marketplace-sticky-shell {
    z-index: 200;
}

.property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #fff;
    color: #222;
}

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

.property-gallery-tour {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.property-gallery-tour__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    min-height: 72px;
    padding: 0 clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid #ebebeb;
    background: #fff;
}

.property-gallery-tour__back,
.property-gallery-tour__action,
.property-photo-viewer__close,
.property-photo-viewer__action,
.property-photo-viewer__nav {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.property-gallery-tour__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #222;
}

.property-gallery-tour__back svg {
    width: 1.1rem;
    height: 1.1rem;
}

.property-gallery-tour__back:hover,
.property-gallery-tour__back:focus-visible {
    background: #f7f7f7;
    outline: none;
}

.property-gallery-tour__actions,
.property-photo-viewer__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.property-gallery-tour__action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    color: #222;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.property-gallery-tour__action svg,
.property-photo-viewer__action svg {
    width: 1rem;
    height: 1rem;
}

.property-gallery-tour__action:hover,
.property-gallery-tour__action:focus-visible,
.property-photo-viewer__action:hover,
.property-photo-viewer__action:focus-visible {
    background: #f7f7f7;
    outline: none;
}

.property-gallery-tour__action.is-active svg,
.property-photo-viewer__action.is-active svg {
    fill: #e11d48;
    stroke: #e11d48;
}

.property-gallery-tour__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem) 3rem;
    scroll-behavior: smooth;
}

.property-gallery-tour__title {
    margin: 0 0 1.35rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: #222;
}

.property-gallery-tour__rooms-nav {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.property-gallery-tour__room-card {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.55rem;
    width: 132px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.property-gallery-tour__room-thumb {
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.property-gallery-tour__room-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.property-gallery-tour__room-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}

.property-gallery-tour__room-card:hover .property-gallery-tour__room-thumb,
.property-gallery-tour__room-card:focus-visible .property-gallery-tour__room-thumb,
.property-gallery-tour__room-card.is-active .property-gallery-tour__room-thumb {
    border-color: #222;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.property-gallery-tour__sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.property-gallery-tour__section {
    scroll-margin-top: 1rem;
}

.property-gallery-tour__section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
    margin-bottom: 1.25rem;
}

.property-gallery-tour__section-copy h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    color: #222;
}

.property-gallery-tour__section-copy p {
    margin: 0;
    color: #717171;
    font-size: 0.95rem;
}

.property-gallery-tour__hero-photo,
.property-gallery-tour__photo-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.property-gallery-tour__hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.property-gallery-tour__photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.property-gallery-tour__photo-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.property-gallery-tour__hero-photo:hover img,
.property-gallery-tour__hero-photo:focus-visible img,
.property-gallery-tour__photo-item:hover img,
.property-gallery-tour__photo-item:focus-visible img {
    transform: scale(1.02);
}

.property-photo-viewer {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    background: #000;
    color: #fff;
}

.property-photo-viewer[hidden] {
    display: none !important;
}

.property-photo-viewer__header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.property-photo-viewer__close {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.2rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.property-photo-viewer__close svg {
    width: 1rem;
    height: 1rem;
}

.property-photo-viewer__counter {
    justify-self: center;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.property-photo-viewer__actions {
    justify-self: end;
}

.property-photo-viewer__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
}

.property-photo-viewer__action:hover,
.property-photo-viewer__action:focus-visible,
.property-photo-viewer__close:hover,
.property-photo-viewer__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.property-photo-viewer__stage {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 88px);
    margin: 0;
    padding: 0 0.5rem 1rem;
}

.property-photo-viewer__image {
    display: block;
    width: auto;
    max-width: min(1200px, 92vw);
    max-height: calc(100vh - 110px);
    object-fit: contain;
}

.property-photo-viewer__nav {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 clamp(0.35rem, 2vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #fff;
}

.property-photo-viewer__nav svg {
    width: 1.2rem;
    height: 1.2rem;
}

.property-photo-viewer__nav:hover,
.property-photo-viewer__nav:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.property-photo-viewer__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1.5rem 2rem;
    align-items: start;
}

.property-main {
    padding-right: 0.5rem;
}

.property-location {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.property-title {
    margin: 0.25rem 0 0.5rem;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    font-family: var(--font-display);
    color: var(--text, #0f172a);
}

.property-price {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    color: var(--text, #0f172a);
    border-left: 3px solid #cbd5e1;
    padding-left: 0.75rem;
}

.property-pdf-download {
    margin: -0.5rem 0 1.25rem;
}

.btn-baixar-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary, #1e40af);
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--primary, #1e40af) 35%, #cbd5e1);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-baixar-pdf:hover {
    color: #fff;
    background: var(--primary, #1e40af);
    border-color: var(--primary, #1e40af);
    text-decoration: none;
}

.property-description,
.property-amenities,
.property-rooms,
.property-map {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1.25rem;
}

.property-description h2,
.property-amenities h2,
.property-rooms h2,
.property-map h2 {
    margin: 0 0 0.65rem;
    font-size: 1.3rem;
    font-family: var(--font-display);
}

.property-description p {
    margin: 0;
    line-height: 1.8;
    color: #475569;
    white-space: pre-line;
}

.property-amenities ul,
.property-rooms ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.property-amenities li,
.property-rooms li {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.875rem;
    color: #475569;
}

.property-map__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.property-map__head a {
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
}

.property-map iframe {
    width: 100%;
    height: 330px;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.property-map__canvas {
    width: 100%;
    height: 330px;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.property-map__notice {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
}

.property-metro {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1.25rem;
}

.property-metro h2 {
    margin: 0 0 0.75rem;
    font-size: 1.3rem;
    font-family: var(--font-display);
}

.property-metro__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.property-metro__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.property-metro__line {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.property-metro__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.property-metro__station {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text, #0f172a);
}

.property-metro__meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.property-map-metro-info {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #0f172a;
    padding: 0.1rem 0;
}

.property-map-metro-info strong {
    font-size: 0.9rem;
}

.property-sidebar {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
}

.property-card-side {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 1rem 1.1rem;
}

.property-card-side h2 {
    margin: 0 0 0.85rem;
    font-size: 1.35rem;
    font-family: var(--font-display);
}

.property-card-side dl {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.property-card-side dl div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    align-items: center;
}

.property-card-side dt {
    font-size: 0.78rem;
    color: #94a3b8;
}

.property-card-side dd {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
}

.property-details-card {
    border-radius: 1rem;
    padding: 1.4rem 1.35rem;
}

.property-details-card h2 {
    font-size: 1.05rem;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.85rem;
    color: #0f172a;
}

.property-details-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem 0.85rem;
}

.property-detail-item {
    min-width: 0;
}

.property-detail-item dt {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: #8b7d73;
    font-weight: 600;
}

.property-detail-item dt svg {
    width: 0.82rem;
    height: 0.82rem;
    color: inherit;
    flex-shrink: 0;
}

.property-detail-item dd {
    margin-top: 0.28rem;
    font-size: 1.08rem;
    line-height: 1.2;
    color: #111827;
    font-weight: 650;
}

.property-detail-item--full {
    grid-column: 1 / -1;
    padding-top: 0.2rem;
}

.property-detail-item--full dd {
    font-size: 1.05rem;
}

.energy-rating-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.3rem;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.energy-rating-pill--a { background: #65b988; }
.energy-rating-pill--b { background: #78c38f; }
.energy-rating-pill--c { background: #8dc68f; }
.energy-rating-pill--d { background: #b5c87f; color: #1f2937; }
.energy-rating-pill--e { background: #d9ba73; color: #1f2937; }
.energy-rating-pill--f { background: #d58e6f; }
.energy-rating-pill--g { background: #ef4444; }

.property-details-map-link {
    margin-top: 0.95rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.84rem;
}

.property-details-map-link span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.property-details-map-link svg {
    width: 0.85rem;
    height: 0.85rem;
    color: #8b7d73;
}

.property-details-map-link:hover {
    color: #111827;
}

.energy-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.2rem;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
}

.energy-scale {
    display: grid;
    gap: 4px;
}

.energy-scale__bar {
    height: 24px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    opacity: 0.4;
    width: 100%;
}

.energy-scale__bar.is-active {
    opacity: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.energy-scale__bar--a { background: #77c38d; width: 56%; }
.energy-scale__bar--b { background: #8fce9f; width: 64%; }
.energy-scale__bar--c { background: #aacd8a; width: 72%; }
.energy-scale__bar--d { background: #dccb8a; width: 80%; }
.energy-scale__bar--e { background: #e4be79; width: 88%; }
.energy-scale__bar--f { background: #df9e86; width: 94%; }
.energy-scale__bar--g { background: #df5353; width: 100%; }

.energy-scale--compact .energy-scale__bar {
    height: 20px;
    border-radius: 5px;
    font-size: 0.68rem;
}

.property-contact p {
    margin: 0 0 0.9rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    html:has(body.tenant-public) {
        overflow-x: clip;
    }

    body.tenant-public {
        overflow-x: clip;
        width: 100%;
        max-width: 100%;
    }

    .tenant-public .container {
        padding-left: var(--tenant-mobile-gutter);
        padding-right: var(--tenant-mobile-gutter);
        max-width: 100%;
    }

    .tenant-public main,
    .tenant-public .marketplace-hero-premium,
    .tenant-public .marketplace-footer,
    .tenant-public .reviews-section,
    .tenant-public .districts-section,
    .tenant-public .properties-section {
        max-width: 100%;
        overflow-x: clip;
    }

    .marketplace-header {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto;
        align-items: center;
        gap: 0.75rem;
    }

    .marketplace-header:not(.container) {
        padding-left: var(--tenant-mobile-gutter);
        padding-right: var(--tenant-mobile-gutter);
    }

    .marketplace-nav--left,
    .marketplace-header-actions {
        display: none !important;
    }

    .marketplace-brand {
        grid-column: 2;
        justify-self: center;
        text-align: center;
    }

    .marketplace-brand-rule {
        margin-left: auto;
        margin-right: auto;
    }

    .marketplace-menu-toggle {
        display: inline-flex;
        grid-column: 3;
        justify-self: end;
    }

    .hero-search-card {
        grid-template-columns: 1fr;
    }

    .hero-search-submit {
        width: 100%;
    }

    .districts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-props-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .reviews-section__body {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        text-align: center;
    }

    .reviews-summary__rating {
        align-items: center;
    }

    .reviews-carousel__nav--prev {
        left: 0;
    }

    .reviews-carousel__nav--next {
        right: 0;
    }

    .review-card {
        flex: 0 0 min(85vw, 300px);
    }

    .marketplace-footer__bar {
        grid-template-columns: 1fr;
    }

    .marketplace-footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .marketplace-topbar-inner {
        justify-content: center;
    }

    .marketplace-topbar-links {
        display: none;
    }

    .hero-main {
        gap: clamp(1.5rem, 4vh, 2.5rem);
        padding: clamp(1rem, 3vh, 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
    }

    .hero-search-wrap {
        padding-left: var(--tenant-mobile-gutter);
        padding-right: var(--tenant-mobile-gutter);
    }

    .hero-search-card {
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
    }

    .districts-section {
        padding-top: clamp(3rem, 8vw, 4.5rem);
    }

    .properties-section {
        padding-top: 2rem;
    }

    .marketplace-footer__nav {
        grid-template-columns: 1fr;
    }

    .marketplace-footer__legal {
        flex-direction: column;
        align-items: flex-start;
    }

    .marketplace-float-widget {
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 575.98px) {
    .marketplace-topbar-contact {
        width: 100%;
        justify-content: center;
    }

    .hero-tabs {
        gap: 1.25rem;
    }

    .districts-grid {
        grid-template-columns: 1fr;
    }

    .district-card {
        aspect-ratio: 16 / 10;
    }

    .marketplace-footer__watermark-text {
        font-size: clamp(3.5rem, 22vw, 6rem);
    }
}

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

    .property-sidebar {
        position: static;
    }

    .property-details-grid {
        gap: 1rem 0.8rem;
    }

    .property-details-card h2 {
        font-size: 1rem;
    }

    .property-detail-item dd {
        font-size: 1rem;
    }

    .property-detail-item--full dd {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .property-page .property-gallery {
        width: 100%;
        min-height: clamp(400px, 52vh, 600px);
    }

    .property-page .property-gallery__main,
    .property-page .property-gallery__thumbs {
        min-height: clamp(400px, 52vh, 600px);
    }

    .property-page .property-gallery__image {
        min-height: clamp(400px, 52vh, 600px);
    }
}

@media (max-width: 767.98px) {
    .properties-filter-bar__fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .properties-filter-field {
        flex: none;
    }

    .properties-filter-bar__clear,
    .properties-filter-bar__submit {
        grid-column: 1 / -1;
    }

    .properties-filter-bar__submit {
        width: 100%;
    }

    .properties-listing__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .property-page .property-gallery {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .property-gallery__main {
        min-height: 270px;
    }

    .property-gallery__thumbs {
        min-height: 0;
        grid-template-rows: none;
    }

    .property-gallery__thumb {
        height: 140px;
    }

    .property-gallery-tour__header,
    .property-photo-viewer__header {
        min-height: 64px;
        padding-inline: 1rem;
    }

    .property-gallery-tour__action span,
    .property-gallery-tour__action {
        font-size: 0.8125rem;
    }

    .property-gallery-tour__section-head {
        grid-template-columns: 1fr;
    }

    .property-gallery-tour__photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-photo-viewer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    .property-photo-viewer__nav--prev,
    .property-photo-viewer__nav--next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
    }

    .property-photo-viewer__nav--prev {
        left: 0.5rem;
    }

    .property-photo-viewer__nav--next {
        right: 0.5rem;
    }

    .property-photo-viewer__stage {
        grid-column: 1;
        grid-row: 2;
        padding-bottom: 1.5rem;
    }

    .property-main {
        padding-right: 0;
    }

    .property-map iframe {
        height: 250px;
    }
}

/* ── Property valuation (lead) ─────────────────────────────────────── */
.valuation-cta-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 6rem) 0;
    color: #fff;
    text-align: center;
}

.valuation-cta-banner__bg {
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=1800&q=80")
        center / cover no-repeat;
}

.valuation-cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
}

.valuation-cta-banner__content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: 0 auto;
}

.valuation-cta-banner__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.35rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.valuation-cta-banner__text {
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.valuation-cta-banner__btn,
.valuation-btn,
.valuation-form__submit,
.tenant-public a.valuation-cta-banner__btn,
.tenant-public a.valuation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 0;
    background-color: var(--primary, #b0665c);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.valuation-cta-banner__btn:hover,
.valuation-btn:hover,
.valuation-form__submit:hover,
.tenant-public a.valuation-cta-banner__btn:hover,
.tenant-public a.valuation-btn:hover {
    filter: brightness(1.08);
    background-color: var(--secondary, var(--primary, #b0665c));
    color: #fff;
    text-decoration: none;
}

.valuation-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 4.5rem);
    color: #fff;
}

.valuation-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.15) 45%, rgba(15, 23, 42, 0.55) 100%),
        linear-gradient(120deg, color-mix(in srgb, var(--primary, #64748b) 72%, #0f172a) 0%, #1e293b 55%, #0f172a 100%);
}

.valuation-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.valuation-hero__inner {
    position: relative;
    z-index: 1;
}

.valuation-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
}

.valuation-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.valuation-breadcrumb a:hover {
    text-decoration: underline;
}

.valuation-hero__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.97);
    color: var(--text, #0f172a);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.valuation-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted, #64748b);
}

.valuation-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.valuation-hero__lead {
    margin: 0 0 1.25rem;
    line-height: 1.65;
    color: var(--text-muted, #64748b);
}

.valuation-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.valuation-checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.65rem;
    line-height: 1.5;
    font-size: 0.9375rem;
}

.valuation-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary, #b0665c);
    font-weight: 700;
}

.valuation-form__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.valuation-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.valuation-form__field {
    margin-bottom: 0.75rem;
}

.valuation-form .form-control {
    border-radius: 0;
    background: #f1f5f9;
    border-color: transparent;
    min-height: 2.75rem;
}

.valuation-form .form-control:focus {
    background: #fff;
}

.valuation-form__privacy {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.25rem 0 1rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-muted, #64748b);
}

.valuation-form__privacy input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.valuation-form__submit {
    width: 100%;
}

.valuation-form__note {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    font-style: italic;
    text-align: center;
    color: var(--text-muted, #64748b);
}

.valuation-form__alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border-radius: 0;
}

.valuation-form__alert--success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.valuation-form__alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.valuation-trust,
.valuation-process,
.valuation-factors {
    padding: clamp(3.5rem, 8vw, 5rem) 0;
    background: var(--background, #fff);
}

.valuation-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 1.25rem;
}

.valuation-section-title--center {
    text-align: center;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
}

.valuation-trust__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.valuation-media__frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 0 4rem 0 0;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--primary, #94a3b8) 35%, #fff) 0%, color-mix(in srgb, var(--secondary, var(--primary, #64748b)) 55%, #e2e8f0) 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.valuation-media__frame--trust {
    min-height: 280px;
}

.valuation-media__frame--factors {
    width: min(100%, 320px);
    min-height: 220px;
    border-radius: 0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.valuation-trust__content p {
    line-height: 1.7;
    color: var(--text-muted, #64748b);
    margin-bottom: 1rem;
}

.valuation-process__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin: clamp(2rem, 5vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}

.valuation-process__steps::before {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18) 8%, rgba(15, 23, 42, 0.18) 92%, transparent);
    pointer-events: none;
}

.valuation-process__step {
    position: relative;
    text-align: center;
    padding: 0 0.35rem;
}

.valuation-process__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.valuation-process__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    color: var(--primary, #334155);
}

.valuation-process__icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.valuation-process__index {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
}

.valuation-process__step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
}

.valuation-process__step p {
    margin: 0 auto;
    max-width: 22ch;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted, #64748b);
}

.valuation-factors__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
}

.valuation-factors__intro p {
    line-height: 1.7;
    color: var(--text-muted, #64748b);
    margin-bottom: 1.5rem;
}

.valuation-factors__list {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style: none;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
}

.valuation-factors__list li {
    position: relative;
    padding: 0 0 1.35rem 1.25rem;
    line-height: 1.55;
    font-size: 0.9375rem;
}

.valuation-factors__list li::before {
    content: "";
    position: absolute;
    left: -0.45rem;
    top: 0.35rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.35);
    background: #fff;
}

@media (max-width: 991.98px) {
    .valuation-hero__card,
    .valuation-trust__grid,
    .valuation-factors__grid {
        grid-template-columns: 1fr;
    }

    .valuation-process__steps {
        grid-template-columns: 1fr 1fr;
    }

    .valuation-process__steps::before {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .valuation-form__grid,
    .valuation-process__steps {
        grid-template-columns: 1fr;
    }

    .valuation-media__frame--trust {
        border-radius: 0 2rem 0 0;
    }

    .valuation-process__step p {
        max-width: none;
    }
}

/* ── Páginas estáticas (contacto, empresa) ───────────────────────── */
.static-page .marketplace-header {
    position: relative;
}

.static-hero {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    background: var(--background, #fff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.static-hero--dark {
    position: relative;
    color: #fff;
    border-bottom: none;
    padding-bottom: clamp(3rem, 7vw, 4.5rem);
}

.static-hero--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.72) 100%),
        linear-gradient(120deg, color-mix(in srgb, var(--primary, #64748b) 70%, #0f172a), #0f172a);
    z-index: 0;
}

.static-hero__inner {
    position: relative;
    z-index: 1;
}

.static-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted, #94a3b8);
}

.static-hero--dark .static-breadcrumb {
    color: rgba(255, 255, 255, 0.72);
}

.static-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.static-breadcrumb a:hover {
    color: var(--primary, #334155);
}

.static-hero--dark .static-breadcrumb a:hover {
    color: #fff;
}

.static-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
}

.static-hero--dark .static-hero__eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.static-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    max-width: 18ch;
}

.static-hero__lead {
    margin: 0;
    max-width: 52ch;
    line-height: 1.65;
    color: var(--text-muted, #64748b);
}

.static-hero--dark .static-hero__lead {
    color: rgba(255, 255, 255, 0.82);
}

.static-section {
    padding: clamp(3rem, 7vw, 4.5rem) 0;
    background: var(--background, #fff);
}

.static-section--muted {
    background: color-mix(in srgb, var(--background, #fff) 88%, var(--primary, #e2e8f0) 12%);
}

.static-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
}

.static-card {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.static-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 1rem;
}

.static-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.static-contact-list li + li {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.static-contact-list strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.35rem;
}

.static-contact-list a {
    color: inherit;
    text-decoration: none;
}

.static-contact-list a:hover {
    color: var(--primary, #334155);
}

.static-pill-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 0;
}

.static-pill {
    padding: 1.25rem 1rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.static-pill strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.static-pill span {
    font-size: 0.8125rem;
    color: var(--text-muted, #64748b);
}

.static-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.static-values li {
    padding: 1.35rem 1.25rem;
    border-left: 2px solid color-mix(in srgb, var(--primary, #64748b) 65%, transparent);
    background: rgba(255, 255, 255, 0.7);
}

.static-values h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.45rem;
}

.static-values p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted, #64748b);
}

.static-cta-band {
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--primary, #64748b) 75%, #0f172a), #0f172a);
}

.static-cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin: 0 0 0.75rem;
}

.static-cta-band p {
    margin: 0 auto 1.5rem;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .static-grid-2,
    .static-values,
    .static-pill-grid {
        grid-template-columns: 1fr;
    }
}

/* ── CRM: corretores (foto, documentos, picker) ─────────────────── */
.crm-broker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.crm-broker-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
}

.crm-broker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-broker-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hi-broker-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: center;
}

.hi-broker-picker__selected {
    min-height: 42px;
    border: 1px solid #dbe3ef;
    border-radius: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hi-broker-picker__label {
    color: #334155;
    font-size: 0.92rem;
}

.hi-broker-picker-modal__thumb {
    border-radius: 999px;
}

.hi-broker-picker-modal__thumb img {
    object-fit: cover;
}

.crm-broker-form__assets {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.crm-broker-form__photo-slot {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 0.5rem;
    display: grid;
    place-items: center;
}

.crm-broker-form__photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-broker-form__photo-fallback,
.crm-broker-form__doc-current {
    font-size: 0.82rem;
    color: #64748b;
}

.crm-broker-document-fields {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.crm-broker-docs-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #fef3c7;
    color: #92400e;
}

.crm-broker-docs-badge.is-complete {
    background: #dcfce7;
    color: #166534;
}

.crm-broker-portfolio-stat {
    display: grid;
    gap: 0.15rem;
}

.crm-broker-portfolio-stat strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.crm-broker-portfolio-stat small {
    color: #64748b;
    font-size: 0.78rem;
}

.crm-broker-portfolio-modal__hero {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.crm-broker-portfolio-modal__sections {
    display: grid;
    gap: 1.25rem;
}

.crm-broker-portfolio-modal__section h4 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.crm-broker-portfolio-client {
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.75rem;
    margin-bottom: 0.55rem;
    background: #f8fafc;
}

.crm-broker-portfolio-client__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.crm-broker-portfolio-client__count {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
}

.crm-broker-portfolio-client__list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
}

.crm-broker-portfolio-modal__properties {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.65rem;
}

.crm-broker-portfolio-property {
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.crm-broker-portfolio-property__cover {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
    flex-shrink: 0;
}

.crm-broker-portfolio-property__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-broker-portfolio-property__fallback {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 0.78rem;
    color: #94a3b8;
}

.crm-broker-portfolio-property__body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.crm-broker-portfolio-property__title,
.crm-broker-portfolio-property__title-link {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.3;
}

.crm-broker-portfolio-property__title-link:hover {
    color: var(--primary, #1e40af);
}

.crm-broker-portfolio-property__ref,
.crm-broker-portfolio-property__location,
.crm-broker-portfolio-property__clients {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.crm-broker-portfolio-property__clients strong {
    color: #334155;
}

.crm-broker-portfolio-property__footer {
    margin-top: auto;
    padding-top: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crm-broker-portfolio-property__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.crm-broker-portfolio-property__badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #e0e7ff;
    color: #3730a3;
}

.crm-permissions-editor {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    max-height: min(52vh, 520px);
    overflow: auto;
}

.crm-perm-group {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.65rem 0.65rem;
}

.crm-perm-group__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    list-style: none;
}

.crm-perm-group__title::-webkit-details-marker {
    display: none;
}

.crm-perm-group__actions .btn-link {
    font-size: 0.78rem;
    text-decoration: none;
}

.crm-perm-group__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.35rem 0.75rem;
    margin-top: 0.55rem;
}

.crm-perm-check {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: #334155;
    margin: 0;
}

.crm-perm-check input {
    margin-top: 0.15rem;
}

.tenant-crm .content {
    position: relative;
}

.tenant-crm .content.is-navigating {
    pointer-events: none;
}

/* Navegação com CRM_NAV_LOADER_SCOPE = 'full': escurece sidebar durante transição. */
.tenant-crm.crm-nav-active .sidebar {
    opacity: 0.92;
    transition: opacity 0.22s ease;
}

.crm-screen-loader--shell {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

@media (min-width: 992px) {
    .crm-screen-loader--shell {
        left: var(--crm-sidebar-width, 228px);
    }
}

.crm-app-loader {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.crm-app-loader.is-leaving {
    opacity: 0;
    visibility: hidden;
}

.crm-app-loader__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
}

.crm-app-loader__art {
    width: min(104px, 24vw);
    line-height: 0;
}

.crm-app-loader__label {
    margin: 0;
}

.crm-screen-loader {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.16s ease;
}

.crm-screen-loader.is-visible {
    opacity: 1;
}

.crm-screen-loader__art {
    width: min(88px, 22vw);
    line-height: 0;
}

.crm-screen-loader__art .crm-house-loader {
    display: block;
    width: 100%;
    height: auto;
}

.crm-app-loader__art .crm-house-loader,
.crm-screen-loader__art .crm-house-loader {
    display: block;
    width: 100%;
    height: auto;
}

.crm-app-loader__art .crm-loader__roof-1,
.crm-screen-loader__art .crm-loader__roof-1 {
    fill: var(--primary, #1e40af);
}

.crm-app-loader__art .crm-loader__roof-2,
.crm-screen-loader__art .crm-loader__roof-2 {
    fill: var(--accent, #ed4d6e);
}

.crm-app-loader__art .crm-loader__side-1,
.crm-screen-loader__art .crm-loader__side-1 {
    fill: color-mix(in srgb, var(--primary, #1e40af) 28%, var(--surface, #ffffff));
}

.crm-app-loader__art .crm-loader__side-2,
.crm-screen-loader__art .crm-loader__side-2 {
    fill: var(--secondary, #006494);
}

.crm-app-loader__art .crm-loader__wall-light,
.crm-screen-loader__art .crm-loader__wall-light {
    fill: color-mix(in srgb, var(--accent, #ed4d6e) 14%, var(--surface, #ffffff));
}

.crm-app-loader__art .crm-loader__wall-main,
.crm-screen-loader__art .crm-loader__wall-main {
    fill: color-mix(in srgb, var(--secondary, #006494) 48%, var(--primary, #1e40af));
}

.crm-screen-loader__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    letter-spacing: 0.01em;
}

.crm-screen-loader__fallback {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--primary, #1e40af) 20%, transparent);
    border-top-color: var(--primary, #1e40af);
    animation: crm-screen-loader-spin 0.8s linear infinite;
}

@keyframes crm-screen-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tenant-crm.crm-nav-active .sidebar {
        transition: none;
    }

    .crm-app-loader {
        transition: none;
    }

    .crm-screen-loader {
        transition: none;
    }

    .crm-screen-loader__fallback,
    .crm-app-loader__art .crm-screen-loader__fallback {
        animation: none;
    }
}

.tenant-crm .sidebar-nav--grouped {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 0.75rem;
}

.tenant-crm .sidebar-link--root {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
}

.tenant-crm .sidebar-link--root .sidebar-link__icon {
    width: 26px;
    height: 26px;
}

.tenant-crm .sidebar-group {
    border-radius: 8px;
}

.tenant-crm .sidebar-group__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    list-style: none;
    user-select: none;
}

.tenant-crm .sidebar-group__summary::-webkit-details-marker {
    display: none;
}

.tenant-crm .sidebar-group__summary::marker {
    content: '';
}

.tenant-crm .sidebar-group__label {
    flex: 1;
    min-width: 0;
}

.tenant-crm .sidebar-group__chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.55);
    transition: transform 0.28s ease, color 0.2s ease;
}

.tenant-crm .sidebar-group__chevron svg {
    width: 14px;
    height: 14px;
    display: block;
}

.tenant-crm .sidebar-group[open] .sidebar-group__chevron {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.9);
}

.tenant-crm .sidebar-group__summary:hover .sidebar-group__chevron {
    color: rgba(255, 255, 255, 0.85);
}

.tenant-crm .sidebar-group__items {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 0 0 34px;
    overflow: hidden;
    opacity: 0;
    transition:
        grid-template-rows 0.32s ease,
        opacity 0.26s ease,
        padding 0.32s ease;
}

.tenant-crm .sidebar-group[open] .sidebar-group__items {
    grid-template-rows: 1fr;
    opacity: 1;
    padding: 2px 0 4px 34px;
}

.tenant-crm .sidebar-group__items-inner {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 0;
    overflow: hidden;
}

.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink {
    animation: sidebar-sublink-in 0.28s ease backwards;
}

.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(1) { animation-delay: 0.03s; }
.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(2) { animation-delay: 0.06s; }
.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(3) { animation-delay: 0.09s; }
.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(4) { animation-delay: 0.12s; }
.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(5) { animation-delay: 0.15s; }
.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(6) { animation-delay: 0.18s; }
.tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink:nth-child(n+7) { animation-delay: 0.21s; }

@keyframes sidebar-sublink-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tenant-crm .sidebar-group__chevron {
        transition: none;
    }

    .tenant-crm .sidebar-group__items {
        transition: none;
    }

    .tenant-crm .sidebar-group[open] .sidebar-group__items-inner .sidebar-sublink {
        animation: none;
    }
}

.tenant-crm .sidebar-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
}

.tenant-crm .sidebar-sublink:hover,
.tenant-crm .sidebar-sublink.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tenant-crm .sidebar-sublink__badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
}

.tenant-crm .sidebar-link__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
}

.crm-funnel-loading {
    padding: 1.25rem 0;
}

.crm-proposals-module {
    display: grid;
    gap: 1rem;
}

.crm-proposals-banner {
    padding: 0.65rem 0.85rem;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
}

.crm-proposals-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.crm-proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.85rem;
}

.crm-proposal-card {
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.crm-proposal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.crm-proposal-card__operation {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    width: fit-content;
}

.crm-proposal-card__operation--sale {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.crm-proposal-card__operation--rent {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.crm-funnel-operation {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.crm-funnel-operation--intro {
    padding: 1.25rem;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.crm-funnel-operation__hero h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.crm-funnel-operation__hero p {
    margin: 0;
    color: #64748b;
    max-width: 52ch;
}

.crm-funnel-operation--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
}

.crm-funnel-operation__intro {
    display: grid;
    gap: 0.15rem;
}

.crm-funnel-operation__intro strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.crm-funnel-operation__intro span {
    font-size: 0.8rem;
    color: #64748b;
}

.crm-funnel-operation__choices {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.crm-funnel-operation__choices--large {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.75rem;
}

.crm-funnel-operation__btn {
    display: grid;
    gap: 0.2rem;
    text-align: left;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    padding: 0.85rem 1rem;
    min-width: 180px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.crm-funnel-operation__choices--large .crm-funnel-operation__btn {
    min-height: 110px;
    padding: 1rem 1.1rem;
}

.crm-funnel-operation__icon {
    color: var(--primary, #1e40af);
    font-size: 1.1rem;
}

.crm-funnel-operation__label {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.crm-funnel-operation__btn small {
    font-size: 0.78rem;
    color: #64748b;
}

.crm-funnel-operation__btn:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.crm-funnel-operation__btn.is-active {
    border-color: #60a5fa;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.crm-funnel-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.crm-funnel-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.crm-funnel-board--rich {
    grid-template-columns: repeat(4, minmax(300px, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.crm-funnel-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.65rem;
    min-height: 160px;
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.crm-funnel-col__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}

.crm-funnel-col__head-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.crm-funnel-col__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.crm-funnel-col__toggle:hover {
    border-color: #93c5fd;
    color: var(--primary, #1e40af);
    background: #eff6ff;
}

.crm-funnel-col--rascunho.is-collapsed {
    min-height: auto;
    align-self: start;
}

.crm-funnel-col--rascunho.is-collapsed .crm-funnel-col__cards {
    display: none;
}

.crm-funnel-board--rich .crm-funnel-col--rascunho.is-collapsed {
    min-width: 0;
    max-width: 11rem;
}

.crm-funnel-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin: 0;
}

.crm-funnel-col__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.crm-funnel-col__cards {
    display: grid;
    gap: 0.65rem;
}

.crm-proposal-card {
    display: grid;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.crm-proposal-card__cover {
    display: block;
    height: 120px;
    background: #e2e8f0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.crm-proposal-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.crm-proposal-card__cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 0.82rem;
    gap: 0.35rem;
}

.crm-proposal-card__body {
    display: grid;
    gap: 0.55rem;
    padding: 0.75rem;
}

.crm-proposal-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.crm-proposal-card__code {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.crm-proposal-card__code:hover {
    color: var(--primary, #1e40af);
}

.crm-proposal-card__head small {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
}

.crm-proposal-card__property {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.crm-proposal-card__property a {
    color: #0f172a;
    text-decoration: none;
}

.crm-proposal-card__property a:hover {
    color: var(--primary, #1e40af);
}

.crm-proposal-card__property-meta,
.crm-proposal-card__list-price {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
}

.crm-proposal-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.crm-proposal-card__fact {
    display: grid;
    gap: 0.1rem;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    min-width: 0;
}

.crm-proposal-card__fact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.crm-proposal-card__fact-icon {
    font-size: 0.72rem;
}

.crm-proposal-card__fact strong {
    font-size: 0.82rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-proposal-card__fact small {
    font-size: 0.72rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-proposal-card__notes {
    margin: 0;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 0.76rem;
    color: #92400e;
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
}

.crm-proposal-card__notes-icon {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.crm-proposal-card__actions {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding-top: 0.15rem;
}

.crm-funnel-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.45rem 0.5rem;
    margin-bottom: 0.35rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: inherit;
    text-decoration: none;
    font-size: 0.82rem;
}

.crm-funnel-card:hover {
    border-color: var(--primary, #1e40af);
}

.crm-funnel-empty {
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0;
    padding: 0.35rem 0;
}

@media (max-width: 1199.98px) {
    .crm-funnel-board--rich {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .crm-funnel-board--rich {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
    .crm-funnel-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-proposals-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .crm-funnel-operation__choices--large {
        grid-template-columns: 1fr;
    }
    .crm-funnel-operation--compact {
        align-items: stretch;
    }
    .crm-funnel-board--rich {
        grid-template-columns: 1fr;
    }
    .crm-funnel-summary {
        grid-template-columns: 1fr 1fr;
    }
    .crm-proposals-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .crm-proposals-grid {
        grid-template-columns: 1fr;
    }
}

.crm-permissions-roles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.crm-permissions-role-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem;
    background: #f8fafc;
}

.crm-role-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.35rem;
}

.crm-role-card__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    vertical-align: middle;
}

.crm-role-card__badge--custom {
    background: #dbeafe;
    color: #1d4ed8;
}

.crm-role-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.crm-role-delete-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.crm-role-delete-option input {
    margin-top: 0.2rem;
}

.crm-placeholder-panel__body {
    padding: 1.25rem;
}

.crm-support-layout {
    display: grid;
    gap: 1.25rem;
}

.crm-support-form.card-like,
.crm-support-tickets.card-like {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 1.25rem;
}

.crm-support-form__title,
.crm-support-tickets__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.crm-support-tickets__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.crm-support-ticket {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: #f8fafc;
}

.crm-support-ticket + .crm-support-ticket {
    margin-top: 0.75rem;
}

.crm-support-ticket__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.crm-support-ticket__subject {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.crm-support-ticket__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    color: #64748b;
    font-size: 0.8rem;
}

.crm-support-ticket__message {
    margin: 0;
    color: #334155;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.crm-support-ticket__reply {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #cbd5e1;
}

.crm-support-ticket__reply-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

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

.crm-support-badge--open { background: #dbeafe; color: #1d4ed8; }
.crm-support-badge--in_progress { background: #fef3c7; color: #b45309; }
.crm-support-badge--resolved { background: #dcfce7; color: #15803d; }
.crm-support-badge--closed { background: #e2e8f0; color: #475569; }
.crm-support-badge--priority-high { background: #fee2e2; color: #b91c1c; }
.crm-support-badge--priority-low { background: #f1f5f9; color: #64748b; }

.master-support-detail__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.master-support-detail__meta dt {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.master-support-detail__meta dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
}

.master-support-detail__message,
.master-support-detail__reply {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    background: #f8fafc;
}

@media (min-width: 992px) {
    .crm-support-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        align-items: start;
    }
}

.tenant-crm .activity-log-summary {
    max-width: 28rem;
    white-space: normal;
    line-height: 1.45;
    font-size: 0.875rem;
}

.tenant-crm .activity-log-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.tenant-crm .activity-log-detail-meta dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.tenant-crm .activity-log-detail-meta dd {
    margin: 0;
    font-weight: 600;
}

.tenant-crm .activity-log-detail-summary {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.tenant-crm .activity-log-diff-table td {
    vertical-align: top;
    word-break: break-word;
}

.tenant-crm .activity-log-diff-before {
    color: #b45309;
}

.tenant-crm .activity-log-diff-after {
    color: #047857;
}

.tenant-crm .activity-log-detail-tech {
    margin-top: 1rem;
}

/* AI Intelligence */
.tenant-crm.ai-intelligence-active,
body.ai-intelligence-active.tenant-crm {
    --ai-bg: #0f172a;
    --ai-panel: #111827;
    --ai-border: rgba(148, 163, 184, 0.18);
    --ai-accent: #c4b5fd;
}

.ai-intelligence-panel {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), transparent);
}

.ai-intelligence-shell .card-like {
    background: var(--surface, #fff);
    border: 1px solid var(--ai-border, #e2e8f0);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ai-dashboard-header,
.ai-studio-main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-credits-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #312e81, #6d28d9);
    color: #fff;
}

.ai-credits-badge__label {
    font-size: 0.72rem;
    opacity: 0.85;
}

.ai-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 1rem;
    margin-top: 1rem;
}

.ai-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    min-height: 180px;
    padding-top: 1rem;
}

.ai-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: var(--text-muted, #64748b);
}

.ai-chart-bar__fill {
    width: 100%;
    min-height: 4px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #a78bfa, #6366f1);
}

.ai-studio-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 240px;
    gap: 1rem;
    min-height: 620px;
}

.ai-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ai-feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    border: 1px solid var(--ai-border, #e2e8f0);
    background: transparent;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.ai-feature-item:hover,
.ai-feature-item.is-active {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-1px);
}

.ai-feature-item__label {
    font-weight: 600;
    color: var(--text, #0f172a);
}

.ai-feature-item__meta {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
}

.ai-dropzones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 92px;
    border: 1px dashed #94a3b8;
    border-radius: 14px;
    padding: 0.75rem;
    cursor: pointer;
    text-align: center;
}

.ai-dropzone.is-dragover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.06);
}

.ai-dropzone input {
    display: none;
}

.ai-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ai-preview-pane__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.45rem;
}

.ai-preview-canvas {
    min-height: 280px;
    border-radius: 16px;
    border: 1px solid var(--ai-border, #e2e8f0);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.ai-preview-canvas img,
.ai-preview-canvas video,
.ai-result-media {
    max-width: 100%;
    max-height: 360px;
    border-radius: 12px;
    object-fit: contain;
}

.ai-generate-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.ai-progress-wrap {
    flex: 1;
}

.ai-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.ai-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    transition: width 0.3s ease;
}

.ai-quick-history {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ai-quick-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 0.55rem;
    align-items: center;
    border: 1px solid var(--ai-border, #e2e8f0);
    border-radius: 12px;
    padding: 0.45rem;
    background: #fff;
    text-align: left;
}

.ai-quick-item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
}

.ai-history-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ai-history-card {
    border: 1px solid var(--ai-border, #e2e8f0);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.ai-history-card__media img,
.ai-history-card__media video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

.ai-history-card__body {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ai-history-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

@media (max-width: 1100px) {
    .ai-studio-layout,
    .ai-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    .tenant-crm.ai-intelligence-active .ai-intelligence-panel .card-like,
    body.ai-intelligence-active.tenant-crm .ai-intelligence-panel .card-like {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.16);
    }

    .tenant-crm.ai-intelligence-active .ai-preview-canvas,
    body.ai-intelligence-active.tenant-crm .ai-preview-canvas {
        background: #0b1220;
    }

    .tenant-crm.ai-intelligence-active .ai-feature-item__label,
    body.ai-intelligence-active.tenant-crm .ai-feature-item__label {
        color: #e2e8f0;
    }
}
