/* O Caracol — portal público */

:root,
[data-theme="light"] {
    color-scheme: light;
    --oc-red: #8b0000;
    --oc-red-hover: #6d0000;
    --oc-price: #bd1111;
    --oc-black: #121212;
    --oc-white: #ffffff;
    --oc-bg: #f5f5f7;
    --oc-surface: #ffffff;
    --oc-text: #1d1d1f;
    --oc-text-muted: #6e6e73;
    --oc-border: rgba(0, 0, 0, 0.14);
    --oc-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --oc-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --oc-header-bg: rgba(255, 255, 255, 0.9);
    --oc-radius: 0.875rem;
    --oc-radius-lg: 1.25rem;
    --oc-container-max: 1680px;
    --oc-hero-bg: linear-gradient(
        135deg,
        #d8e4ea 0%,
        #cddbe1 45%,
        #dbe6ec 100%
    );
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-bg: var(--oc-bg);
    --bs-body-color: var(--oc-text);
    --bs-border-color: var(--oc-border);
    --bs-focus-ring-width: 0;
    --bs-focus-ring-opacity: 0;
}

[data-theme="dark"] {
    color-scheme: dark;
    /* Vermelho mais claro no escuro para melhor contraste de texto/botões */
    --oc-red: #ff6b5e;
    --oc-red-hover: #ff8a80;
    --oc-price: #ff6b5e;
    /* Mesmo tom da seção "Imóveis recentes" na home (#121212 base + #1c1c1e superfícies) */
    --oc-bg: #121212;
    --oc-surface: #1c1c1e;
    --oc-text: #f5f5f7;
    --oc-text-muted: #a1a1a6;
    --oc-border: rgba(255, 255, 255, 0.16);
    --oc-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --oc-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
    --oc-header-bg: rgba(28, 28, 30, 0.92);
    --oc-hero-bg: linear-gradient(
        135deg,
        #1e1e20 0%,
        #161618 45%,
        #1a1a1c 100%
    );
    --bs-body-bg: var(--oc-bg);
    --bs-body-color: var(--oc-text);
    --bs-border-color: var(--oc-border);
    --bs-focus-ring-width: 0;
    --bs-focus-ring-opacity: 0;
}

/* Sem anel de foco azul (Bootstrap / navegador) */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
button:focus,
button:focus-visible {
    outline: none;
    box-shadow: none;
}

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

body {
    font-family: var(--font-sans);
    color: var(--oc-text);
    background: var(--oc-bg);
    -webkit-font-smoothing: antialiased;
}

/* Largura máxima do layout em desktop */
@media (min-width: 992px) {
    .container,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: var(--oc-container-max);
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--oc-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--oc-border);
}

.site-header__nav-wrap {
    padding: 0.85rem 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.site-header__logo-img {
    display: block;
    height: 2rem;
    width: auto;
}

.site-header__collapse {
    flex-grow: 1;
}

@media (min-width: 992px) {
    .site-header__collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .site-header__menu {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex: 1;
        gap: 0.25rem;
        margin: 0 auto;
    }
}

.site-header__link {
    color: var(--oc-text-muted) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-header__link:hover,
.site-header__link.is-active {
    color: var(--oc-red) !important;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.site-header__login {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--oc-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__login svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.site-header__login:hover {
    color: var(--oc-red);
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--oc-text);
    border-radius: 999px;
    background: var(--oc-surface);
    color: var(--oc-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.site-header__cta svg {
    width: 0.95rem;
    height: 0.95rem;
}

.site-header__cta:hover {
    border-color: var(--oc-red);
    color: var(--oc-red);
}

.site-header__panel {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-surface);
    color: var(--oc-text);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-header__panel svg {
    width: 1rem;
    height: 1rem;
}

.site-header__panel:hover {
    border-color: var(--oc-red);
    color: var(--oc-red);
}

.site-header__user-menu {
    position: relative;
}

.site-header__user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--oc-text);
}

.site-header__user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b0000 0%, #c45c26 100%);
    box-shadow: 0 2px 8px rgba(139, 0, 0, 0.25);
}

.site-header__user-chevron {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--oc-text-muted);
    transition: transform 0.2s ease;
}

.site-header__user-menu.is-open .site-header__user-chevron {
    transform: rotate(180deg);
}

.site-header__user-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 16.5rem;
    padding: 0.85rem 0;
    border: 1px solid var(--oc-border);
    border-radius: 0.75rem;
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow-hover);
    z-index: 1200;
}

.site-header__user-dropdown[hidden] {
    display: none !important;
}

.site-header__user-meta {
    padding: 0 1rem 0.65rem;
}

.site-header__user-email {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--oc-text);
    word-break: break-word;
}

.site-header__user-role {
    margin: 0;
    font-size: 0.8rem;
    color: var(--oc-text-muted);
}

.site-header__user-divider {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--oc-border);
}

.site-header__user-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    color: var(--oc-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header__user-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.site-header__user-link:hover {
    background: rgba(139, 0, 0, 0.06);
    color: var(--oc-red);
}

.site-header__user-link--danger {
    color: #dc2626;
}

.site-header__user-link--danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

[data-theme="dark"] .site-header__user-link--danger {
    color: #ff6b6b;
}

[data-theme="dark"] .site-header__user-link--danger:hover {
    color: #ff8787;
}

.site-header__toggler {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
}

.site-header__toggler-bar {
    display: block;
    width: 1.35rem;
    height: 2px;
    margin: 0 auto;
    background: var(--oc-text);
    border-radius: 1px;
}

@media (max-width: 991.98px) {
    .site-header__collapse {
        padding-top: 1rem;
    }

    .site-header__menu {
        margin-bottom: 1rem;
    }

    .site-header__actions {
        flex-wrap: wrap;
        margin-left: 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--oc-border);
    }

    .site-header__login {
        width: 100%;
    }

    .site-header__panel {
        width: 100%;
        justify-content: center;
    }

    .site-header__user-menu {
        width: 100%;
    }

    .site-header__user-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.35rem 0;
    }

    .site-header__user-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .site-header__cta {
        flex: 1;
        justify-content: center;
    }
}

.nav-link {
    color: var(--oc-text-muted) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--oc-text) !important;
}

.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border: 1px solid var(--oc-border);
    border-radius: 50%;
    background: var(--oc-surface);
    color: var(--oc-text);
    cursor: pointer;
    line-height: 0;
}

.btn-theme-toggle:hover {
    border-color: var(--oc-red);
    color: var(--oc-red);
}

.btn-theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

[data-theme="light"] .btn-theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .btn-theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .btn-theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .btn-theme-toggle .icon-moon {
    display: none;
}

/* Botões */
.btn-primary {
    --bs-btn-bg: var(--oc-red);
    --bs-btn-border-color: var(--oc-red);
    --bs-btn-hover-bg: var(--oc-red-hover);
    --bs-btn-hover-border-color: var(--oc-red-hover);
    font-weight: 600;
    border-radius: 999px;
}

.btn-outline-primary {
    --bs-btn-color: var(--oc-red);
    --bs-btn-border-color: var(--oc-red);
    --bs-btn-hover-bg: var(--oc-red);
    --bs-btn-hover-border-color: var(--oc-red);
    border-radius: 999px;
}

/* Hero — banner principal (estilo homez) */
.hero-homez {
    position: relative;
    z-index: 3;
    padding: 1.25rem 0 2.5rem;
    overflow: visible;
    background: var(--oc-surface);
    border-bottom: none;
}

.hero-homez__container {
    position: relative;
    z-index: 2;
}

.hero-homez__card {
    background: var(--oc-hero-bg);
    border-radius: 1.75rem;
    overflow: hidden;
}

.hero-homez__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: stretch;
    gap: 2rem;
    min-height: 520px;
    padding: 2.75rem 2.5rem 2.75rem 3rem;
}

.hero-homez__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    min-width: 0;
}

.hero-homez__title {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--oc-text);
}

.hero-homez__visual {
    position: relative;
    align-self: stretch;
    min-height: 100%;
}

.hero-homez__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

/* Buscador hero */
.hero-search {
    position: relative;
    z-index: 4;
    overflow: visible;
    width: 100%;
    margin: 0;
}

.hero-search__tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
}

.hero-search__tab {
    margin: 0;
    cursor: pointer;
}

.hero-search__tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hero-search__shell {
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: 1.25rem;
    box-shadow: var(--oc-shadow);
    overflow: visible;
}

.hero-search--homez .hero-search__shell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-search--homez .hero-search__tabs {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 0 0.35rem 0 0.85rem;
    margin: 0;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-bottom: none;
    border-radius: 0.75rem 0.75rem 0 0;
    position: relative;
    z-index: 2;
}

.hero-search--homez .hero-search__tab span {
    position: relative;
    display: block;
    padding: 0.85rem 1.35rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--oc-text-muted);
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.hero-search--homez .hero-search__tab:first-child span {
    padding-left: 1.35rem;
}

.hero-search--homez .hero-search__tab input:checked + span,
.hero-search--homez .hero-search__tab:hover span {
    color: var(--oc-text);
    background: transparent;
    border: 0;
    margin-bottom: 0;
    box-shadow: none;
}

.hero-search--homez .hero-search__tab input:checked + span {
    background: var(--oc-surface);
    margin-bottom: -1px;
    padding-bottom: calc(0.85rem - 3px);
    border-bottom: 3px solid var(--oc-text);
}

[data-theme="dark"] .hero-search--homez .hero-search__tab input:checked + span {
    border-bottom-color: var(--oc-red);
}

.hero-search__panel {
    position: relative;
    overflow: visible;
    padding: 1.25rem;
}

.hero-search--homez .hero-search__panel {
    width: 100%;
    align-self: stretch;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero-search__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.75rem;
    overflow: visible;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

.hero-search--homez .hero-search__bar {
    background: var(--oc-surface);
    border-color: var(--oc-border);
    box-shadow: none;
    padding: 0.7rem 0.45rem;
    border-radius: 0 999px 999px 999px;
    margin-top: -1px;
}

[data-theme="dark"] .hero-search--homez .hero-search__bar {
    box-shadow: var(--oc-shadow);
}

[data-theme="dark"] .hero-search--homez .hero-search__advanced {
    color: var(--oc-text);
}

[data-theme="dark"] .hero-search--homez .hero-search__advanced svg {
    color: var(--oc-text-muted);
}

@media (min-width: 992px) {
    .hero-search--homez .hero-search__bar {
        padding: 1rem 0.5rem;
    }
}

.hero-search--homez .hero-search__input-wrap {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    min-height: 3.25rem;
    border-radius: 999px;
    background: var(--oc-bg);
}

[data-theme="dark"] .hero-search--homez .hero-search__input-wrap {
    background: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .hero-search--homez .hero-search__chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--oc-border);
}

.hero-search__bar-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    color: var(--oc-text);
}

.hero-search--homez .hero-search__bar-icon {
    width: 2.5rem;
    margin-left: 0.35rem;
}

.hero-search__bar-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hero-search__field {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow: visible;
}

.hero-search__field--local {
    flex: 1 1 auto;
    position: relative;
    overflow: visible;
}

.hero-search__field--tipo {
    flex: 0 0 auto;
    width: 10.5rem;
    position: relative;
}

.hero-search--homez .hero-search__field--tipo {
    width: 11.5rem;
}

.hero-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-search__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--oc-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-search__chip:hover {
    border-color: var(--oc-red);
    color: var(--oc-red);
}

.hero-search__chip-icon {
    display: inline-flex;
    color: var(--oc-text-muted);
}

.hero-search__chip-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.hero-search__submit {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-right: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--oc-text);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-search__submit svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hero-search__submit:hover {
    background: var(--oc-red);
    transform: scale(1.03);
}

.hero-search__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
}

.hero-search__advanced {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.5rem 0 0.25rem;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hero-search__advanced svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.hero-search__advanced:hover {
    color: var(--oc-red);
}

[data-theme="dark"] .hero-search__submit {
    background: var(--oc-red);
}

[data-theme="dark"] .hero-search__submit:hover {
    background: var(--oc-red-hover);
}

/* Modal — pesquisa avançada (hero) */
.hero-advanced-modal {
    z-index: 1060;
}

.hero-advanced-modal.show {
    z-index: 1060;
}

.modal-backdrop.show {
    z-index: 1050;
}

#filtrosModal.modal {
    z-index: 1055;
}

#filtrosModal.modal.show {
    z-index: 1055;
}

.hero-advanced-modal .modal-dialog,
.hero-advanced-modal__dialog {
    max-width: 920px;
    min-height: min(36rem, calc(100vh - 2.5rem));
}

.hero-advanced-modal__content {
    border: 1px solid var(--oc-border);
    border-radius: 1.25rem;
    overflow: visible;
    box-shadow: var(--oc-shadow-hover);
}

.hero-advanced-modal__body {
    padding: 0.5rem 1.5rem 1.25rem;
    overflow: visible;
    min-height: 26rem;
}

.hero-advanced-modal__header {
    padding: 1.35rem 1.5rem 0.75rem;
    border-bottom: 0;
}

.hero-advanced-modal__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--oc-text);
}

/* Dropdown do tipo abre para cima — evita corte pelo rodapé/conteúdo abaixo */
.hero-advanced-modal .nice-select.is-open {
    z-index: 20;
}

.hero-advanced-modal .nice-select__dropdown {
    top: auto;
    bottom: calc(100% + 4px);
    max-height: min(16rem, 40vh);
}

.hero-advanced-modal__block {
    margin-bottom: 1.35rem;
}

.hero-advanced-modal__label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oc-text-muted);
}

.hero-advanced-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 0.25rem;
}

.hero-advanced-modal__range {
    position: relative;
    height: 28px;
    margin-bottom: 0.85rem;
}

.hero-advanced-modal__range::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 4px;
    border-radius: 2px;
    background: var(--oc-border);
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-advanced-modal__slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.hero-advanced-modal__slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

.hero-advanced-modal__slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border: 2px solid var(--oc-text);
    border-radius: 50%;
    background: var(--oc-surface);
    cursor: pointer;
}

.hero-advanced-modal__slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: transparent;
}

.hero-advanced-modal__slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid var(--oc-text);
    border-radius: 50%;
    background: var(--oc-surface);
    cursor: pointer;
}

.hero-advanced-modal__slider:first-of-type {
    z-index: 2;
}

.hero-advanced-modal__range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-advanced-modal__dash {
    color: var(--oc-text-muted);
}

.hero-advanced-modal__input,
.hero-advanced-modal__select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--oc-border);
    border-radius: 0.65rem;
    background: var(--oc-surface);
    color: var(--oc-text);
    font-size: 0.9375rem;
}

.hero-advanced-modal__range-inputs .hero-advanced-modal__input {
    flex: 1;
    min-width: 0;
}

.hero-advanced-modal__pills {
    display: grid;
    grid-template-columns: auto repeat(5, minmax(2.5rem, 1fr));
    gap: 0.45rem;
}

.hero-advanced-modal__pill {
    margin: 0;
    cursor: pointer;
}

.hero-advanced-modal__pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hero-advanced-modal__pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--oc-border);
    border-radius: 0.5rem;
    background: var(--oc-surface);
    color: var(--oc-text-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-advanced-modal__pill:first-child span {
    padding: 0.55rem 1rem;
}

.hero-advanced-modal__pill input:checked + span {
    border-color: var(--oc-text);
    color: var(--oc-text);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--oc-text);
}

.hero-advanced-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem 1.35rem;
    border-top: 1px solid var(--oc-border);
}

.hero-advanced-modal__reset {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.hero-advanced-modal__reset svg {
    width: 1rem;
    height: 1rem;
}

.hero-advanced-modal__reset:hover {
    color: var(--oc-red);
}

.hero-advanced-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 9rem;
    padding: 0.8rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--oc-red);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-advanced-modal__submit svg {
    width: 1rem;
    height: 1rem;
}

.hero-advanced-modal__submit:hover {
    background: var(--oc-red-hover);
}

/* Nice Select (tipo de imóvel) */
.nice-select {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.nice-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    min-height: 3.5rem;
    padding: 0 1rem;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.nice-select__trigger:focus {
    outline: none;
}

.nice-select__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nice-select__arrow {
    flex-shrink: 0;
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid var(--oc-text-muted);
    border-bottom: 2px solid var(--oc-text-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.nice-select.is-open .nice-select__arrow {
    transform: rotate(-135deg) translateY(2px);
    border-color: var(--oc-red);
}

.nice-select__dropdown {
    position: absolute;
    z-index: 1090;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    min-width: 14rem;
    max-height: 280px;
    overflow-y: auto;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: 0.75rem;
    box-shadow: var(--oc-shadow-hover);
}

.nice-select__dropdown[hidden] {
    display: none !important;
}

.nice-select__list {
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
}

.nice-select__option {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
}

.nice-select__option:hover,
.nice-select__option.is-selected {
    background: rgba(139, 0, 0, 0.06);
}

.nice-select.is-open .nice-select__trigger {
    color: var(--oc-red);
}

.hero-search--homez .hero-search__field--local:focus-within {
    box-shadow: none;
}

.hero-search--homez .nice-select__trigger {
    min-height: 3.25rem;
    padding-right: 0.75rem;
}

.nice-select--toolbar {
    width: auto;
    min-width: 10.5rem;
}

.nice-select--toolbar .nice-select__trigger {
    min-height: auto;
    padding: 0.5rem 2.25rem 0.5rem 0.9rem;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-surface);
    font-size: 0.875rem;
    font-weight: 500;
}

.nice-select--toolbar.is-open .nice-select__trigger,
.nice-select--toolbar .nice-select__trigger:hover {
    border-color: rgba(139, 0, 0, 0.35);
}

.nice-select--toolbar .nice-select__dropdown {
    min-width: 100%;
    border-radius: 0.85rem;
}

.nice-select--field {
    width: 100%;
}

.nice-select--field .nice-select__trigger {
    min-height: auto;
    width: 100%;
    padding: 0.7rem 2.25rem 0.7rem 0.9rem;
    border: 1px solid var(--oc-border);
    border-radius: 0.65rem;
    background: var(--oc-surface);
    font-size: 0.9375rem;
}

.nice-select--field.is-open .nice-select__trigger,
.nice-select--field .nice-select__trigger:hover {
    border-color: rgba(139, 0, 0, 0.35);
}

.hero-search--homez .hero-search__field--local {
    flex: 1 1 auto;
}

.hero-search--homez .location-suggest--hero .location-suggest__input {
    min-height: 3.25rem;
    padding-left: 0.25rem;
    background: transparent;
}

/* Autocomplete de local (bairro / cidade / estado) */
.location-suggest {
    position: relative;
    height: 100%;
}

.location-suggest--hero {
    width: 100%;
}

.location-suggest__wrap {
    position: relative;
    height: 100%;
}

.location-suggest--hero .location-suggest__wrap {
    height: 100%;
}

.location-suggest--hero .location-suggest__input {
    width: 100%;
    height: 100%;
    min-height: 3.5rem;
    padding: 0 1.15rem;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    font-size: 1rem;
}

.location-suggest--hero .location-suggest__input::placeholder {
    color: var(--oc-text-muted);
}

.location-suggest--hero .location-suggest__input:focus,
.location-suggest--hero .location-suggest__input:focus-visible {
    outline: none;
    box-shadow: none;
}

.hero-homez .location-suggest__list,
.hero-search .location-suggest__list {
    z-index: 1080;
}

.location-suggest__list--fixed {
    position: fixed;
    z-index: 10050;
    margin: 0;
    right: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--oc-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.location-suggest__list--panel {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    margin: 0;
    border-radius: 0 0 1rem 1rem;
    border-top: 1px solid var(--oc-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

.location-suggest--hero .location-suggest__list:not(.location-suggest__list--panel) {
    top: 100%;
    left: 0;
    right: 0;
}

.location-suggest__list {
    position: absolute;
    z-index: 1095;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    box-shadow: var(--oc-shadow-hover);
}

.location-suggest__list[hidden]:not(.is-open) {
    display: none !important;
}

.location-suggest__list.is-open {
    display: block !important;
}

.location-suggest__item {
    display: block;
    width: 100%;
    padding: 0.7rem 1.15rem;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    text-align: left;
    font-size: 0.9375rem;
    line-height: 1.4;
    cursor: pointer;
}

.location-suggest__item:hover,
.location-suggest__item.is-active {
    background: rgba(139, 0, 0, 0.06);
}

.location-suggest__item strong {
    font-weight: 700;
    color: var(--oc-text);
}

.location-suggest--hero .location-suggest__item {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.location-suggest__item-type {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--oc-red);
    padding-top: 0.15rem;
    min-width: 3.25rem;
}

.location-suggest__item-label {
    flex: 1;
    line-height: 1.35;
}

.location-suggest__empty {
    padding: 0.75rem 1.15rem;
    font-size: 0.875rem;
    color: var(--oc-text-muted);
}

@media (max-width: 991.98px) {
    .hero-homez {
        padding: 0.75rem 0 2rem;
    }

    .hero-homez__grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.75rem 1.25rem 1.5rem;
        gap: 1.75rem;
    }

    .hero-homez__content {
        max-width: none;
        text-align: center;
    }

    .hero-homez__visual {
        order: -1;
        min-height: 280px;
    }

    .hero-homez__photo {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .hero-search--homez .hero-search__shell {
        align-items: stretch;
        width: 100%;
    }

    .hero-search--homez .hero-search__tabs {
        align-self: center;
    }

    .hero-search--homez .hero-search__bar {
        border-radius: 1rem;
        margin-top: 0.15rem;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    }
}

@media (max-width: 767.98px) {
    .hero-homez__title {
        font-size: 1.65rem;
        margin-bottom: 1.5rem;
    }

    .hero-homez__grid {
        padding: 1.25rem 1rem 1.35rem;
        gap: 1.35rem;
    }

    .hero-homez__visual {
        min-height: 220px;
    }

    .hero-search--homez .hero-search__tab span {
        padding: 0.75rem 0.85rem;
        font-size: 0.875rem;
    }

    .hero-search--homez .hero-search__tabs {
        padding: 0 0.25rem 0 0.65rem;
        border-radius: 0.65rem 0.65rem 0 0;
    }

    .hero-search--homez .hero-search__bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem;
        min-height: 0;
        border-radius: 1rem;
    }

    .hero-search--homez .hero-search__input-wrap {
        width: 100%;
        min-height: 3rem;
        border-radius: 0.75rem;
    }

    .hero-search--homez .location-suggest--hero .location-suggest__input {
        min-height: 3rem;
        font-size: 0.9375rem;
    }

    .hero-search__actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 0.15rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    [data-theme="dark"] .hero-search__actions {
        border-top-color: var(--oc-border);
    }

    .hero-search--homez .hero-search__advanced {
        padding: 0.35rem 0;
        font-size: 0.875rem;
    }

    .hero-search--homez .hero-search__submit {
        width: 3.15rem;
        height: 3.15rem;
        margin: 0;
    }

    .hero-search__chips {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .hero-search__chip {
        justify-content: center;
        padding: 0.55rem 0.75rem;
        font-size: 0.8125rem;
    }

    .hero-advanced-modal__grid {
        grid-template-columns: 1fr;
    }

    .hero-advanced-modal__pills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-advanced-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-advanced-modal__submit {
        width: 100%;
        max-width: none;
    }
}

.min-vh-50 {
    min-height: 50vh;
}

/* Seções */
.section-block {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.section-block--surface {
    background: var(--oc-surface);
    border-top: 1px solid var(--oc-border);
    border-bottom: 1px solid var(--oc-border);
}

.section-block--busca {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
}

.property-similar {
    margin-top: 0;
}

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

.property-similar .property-card__body {
    padding: 0.65rem 0.75rem 0.75rem;
}

.property-similar .property-card__body .card-title {
    margin-bottom: 0.25rem !important;
    font-size: inherit;
}

.property-similar .property-card__title {
    font-size: 0.8rem;
    line-height: 1.3;
}

.property-similar .property-card__location {
    font-size: 0.68rem;
    margin-bottom: 0.35rem !important;
}

.property-similar .property-card__location svg {
    width: 0.75rem;
    height: 0.75rem;
}

.property-similar .property-card__features {
    gap: 0.3rem 0.55rem;
    margin-top: 0.3rem;
}

.property-similar .property-card__feature-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.property-similar .property-card__feature-value {
    font-size: 0.72rem;
}

.property-similar .property-card__price {
    font-size: 0.88rem;
}

.property-similar .property-card__price strong {
    font-size: 0.92rem;
}

.property-similar .property-card__price-suffix {
    font-size: 0.68rem;
}

.property-similar .property-card__stats {
    gap: 0.4rem;
}

.property-similar .property-card__stat {
    font-size: 0.72rem;
}

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

.property-similar .property-card__bottom {
    padding-top: 0.35rem;
}

.property-similar .property-card__advertiser {
    margin-top: 0.4rem;
    padding-top: 0.45rem;
    gap: 0.35rem;
}

.property-similar .property-card__advertiser-avatar {
    width: 26px;
    height: 26px;
}

.property-similar .property-card__advertiser-name {
    font-size: 0.68rem;
}

.property-similar .property-card__advertiser-type {
    display: none;
}

.property-similar .property-card__badge {
    top: 0.4rem;
    left: 0.4rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.55rem;
}

.property-similar .property-card__media-actions {
    top: 0.4rem;
    right: 0.4rem;
    gap: 0.25rem;
}

.property-similar .property-card__action {
    height: 1.45rem;
    padding: 0 0.38rem;
    font-size: 0.62rem;
}

.property-similar .property-card__action svg {
    width: 0.78rem;
    height: 0.78rem;
}

.property-similar .property-card__nav {
    width: 1.45rem;
    height: 1.45rem;
}

.property-similar .property-card__nav svg {
    width: 0.8rem;
    height: 0.8rem;
}

.property-similar .property-card__nav--prev {
    left: 0.35rem;
}

.property-similar .property-card__nav--next {
    right: 0.35rem;
}

.property-similar .property-card__bullets {
    bottom: 0.4rem;
    gap: 0.25rem;
}

.property-similar .property-card__bullet {
    width: 0.32rem;
    height: 0.32rem;
}

/* Grade de imóveis semelhantes — colunas equalizadas (min-height via JS), cards preenchem 100% */
.property-similar__grid > .col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.property-similar__grid .property-card {
    width: 100%;
    height: 100%;
    margin-top: 0;
}

.property-similar__grid > .col > .property-similar__ad-fallback {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.property-similar__grid > .col > .property-similar__ad-fallback > .property-card {
    height: 100%;
}

.property-similar__ad-col > .card-adsense.d-none,
.property-similar__ad-col > .property-similar__ad-fallback.d-none {
    display: none !important;
}

/* AdSense compacto — mesma caixa de mídia 4:3 dos cards de imóvel */
.card-adsense--compact {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.card-adsense--compact .property-card__media-wrap {
    flex: 0 0 auto;
    overflow: hidden;
}

.card-adsense--compact .card-adsense__gallery {
    position: relative;
    overflow: hidden;
}

.card-adsense--compact .card-adsense__slot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    overflow: hidden;
    line-height: 0;
    background: #e9ecef;
}

.card-adsense--compact .card-adsense__ins {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    line-height: 0;
    overflow: hidden;
}

.card-adsense--compact .card-adsense__ins iframe {
    display: block;
    margin: 0;
    max-height: 100%;
}

.card-adsense--compact .card-adsense__body {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.65rem 0.75rem 0.75rem !important;
}

.card-adsense--compact .card-adsense__label {
    flex-shrink: 0;
    font-size: 0.62rem;
}

.card-adsense--compact.is-adsense-filled .card-adsense__slot {
    background: #e9ecef;
}

/* Nunca oculta a coluna inteira na grade de semelhantes (fallback de imóvel) */
.property-similar__grid > .col.is-adsense-empty,
.property-similar__grid > .property-similar__ad-col.is-adsense-empty {
    display: flex !important;
}

.hero-homez ~ .section-block--surface {
    border-top: none;
}

.section-heading h2 {
    font-weight: 700;
    color: var(--oc-text);
}

.section-heading p {
    color: var(--oc-text-muted);
}

/* Listagem: busca por local */
.listing-localsearch {
    margin-bottom: 1.1rem;
}

.listing-localsearch__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3.5rem;
    padding: 0.4rem 0.45rem 0.4rem 0.25rem;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

.listing-localsearch__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    color: var(--oc-text-muted);
}

.listing-localsearch__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.listing-localsearch__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.listing-localsearch__field .location-suggest,
.listing-localsearch__field .location-suggest__wrap {
    height: 100%;
}

.listing-localsearch__field .location-suggest__input {
    width: 100%;
    min-height: 2.7rem;
    padding: 0 0.5rem;
    border: 0;
    background: transparent;
    color: var(--oc-text);
    font-size: 1rem;
}

.listing-localsearch__field .location-suggest__input:focus,
.listing-localsearch__field .location-suggest__input:focus-visible {
    outline: none;
    box-shadow: none;
}

.listing-localsearch__field .location-suggest__input::placeholder {
    color: var(--oc-text-muted);
}

.listing-localsearch__submit {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--oc-text);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.listing-localsearch__submit svg {
    width: 1.1rem;
    height: 1.1rem;
}

.listing-localsearch__submit:hover {
    background: var(--oc-red);
    transform: scale(1.03);
}

[data-theme="dark"] .listing-localsearch__submit {
    background: var(--oc-red);
}

[data-theme="dark"] .listing-localsearch__submit:hover {
    background: var(--oc-red-hover);
}

/* Listagem: barra superior */
.listing-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.listing-toolbar__count {
    font-size: 1.05rem;
    color: var(--oc-text);
}

.listing-toolbar__count strong {
    font-weight: 700;
}

.listing-toolbar__meta {
    font-size: 0.875rem;
    color: var(--oc-text-muted);
}

.listing-toolbar__actions,
.listing-section__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.listing-toolbar__actions {
    margin-left: auto;
}

.listing-toolbar__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.375rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.listing-toolbar__action-btn--outline {
    border: 1px solid var(--oc-red);
    background: var(--oc-surface);
    color: var(--oc-red);
}

.listing-toolbar__action-btn--outline:hover {
    background: rgba(139, 0, 0, 0.06);
    color: var(--oc-red);
}

.listing-toolbar__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.375rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--oc-black);
    color: var(--oc-white);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0.72;
    line-height: 1;
    text-decoration: none;
}

.listing-toolbar__map-btn--active {
    opacity: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.listing-toolbar__map-btn--active:hover {
    background: var(--oc-red);
    color: var(--oc-white);
    transform: translateY(-1px);
}

.listing-toolbar__map-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.listing-toolbar__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-toolbar__sort-label {
    font-size: 0.875rem;
    color: var(--oc-text-muted);
    white-space: nowrap;
}

.listing-toolbar__sort-field {
    min-width: 10.5rem;
}

[data-theme="dark"] .listing-toolbar__map-btn {
    background: #f5f5f7;
    color: #121212;
}

/* Cards de imóvel */
.property-card {
    display: flex;
    flex-direction: column;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border) !important;
    border-radius: var(--oc-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--oc-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--oc-shadow-hover) !important;
}

.property-card__media-wrap {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    flex-shrink: 0;
}

.property-card__gallery {
    position: relative;
    aspect-ratio: 4 / 3;
}

.property-card__slides {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
    cursor: grab;
    transition: transform 0.32s ease;
    will-change: transform;
}

.property-card__slides.is-dragging {
    cursor: grabbing;
    transition: none;
}

.property-card__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    user-select: none;
    -webkit-user-drag: none;
}

.property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.property-card__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
    opacity: 0.92;
    pointer-events: auto;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.property-card__gallery:hover .property-card__nav {
    opacity: 1;
}

.property-card__nav:hover {
    background: #fff;
}

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

.property-card__nav--prev {
    left: 0.55rem;
}

.property-card__nav--next {
    right: 0.55rem;
}

@media (max-width: 991.98px) {
    .property-card__nav {
        width: 2.25rem;
        height: 2.25rem;
        opacity: 1;
    }

    .property-card__bullets {
        bottom: 0.75rem;
        padding: 0.35rem 0.55rem;
        background: rgba(0, 0, 0, 0.28);
        border-radius: 999px;
    }

    .property-card__bullet {
        width: 0.5rem;
        height: 0.5rem;
    }
}

.property-card__bullets {
    position: absolute;
    left: 50%;
    bottom: 0.65rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transform: translateX(-50%);
}

.property-card__bullet {
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, background 0.2s ease;
}

.property-card__bullet.is-active {
    background: #fff;
    transform: scale(1.2);
}

.property-card__badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 5;
    display: inline-block;
    padding: 0.28rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(139, 0, 0, 0.9);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.property-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 1rem 1.15rem 1.15rem;
}

.property-card__type {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--oc-text-muted);
}

.property-card__title {
    color: var(--oc-text) !important;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card__title:hover {
    color: var(--oc-red) !important;
}

.property-card__location {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: var(--oc-text-muted);
    line-height: 1.35;
}

.property-card__location svg {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.property-card__features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.1rem;
    margin-top: 0.5rem;
}

.property-card__feature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #4a5d6e;
    white-space: nowrap;
}

[data-theme="dark"] .property-card__feature {
    color: #b0bcc8;
}

.property-card__feature-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: #3d4f61;
}

[data-theme="dark"] .property-card__feature-icon {
    color: #c2ccd6;
}

.property-card__feature-value {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: inherit;
}

.property-card__price {
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--oc-text);
}

.property-card__price strong {
    color: var(--oc-price);
    font-weight: 700;
    font-size: 1.2rem;
}

.property-card__price-suffix {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--oc-text-muted);
}

.property-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.property-card__stats {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-left: auto;
}

.property-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    color: var(--oc-text-muted);
    background: transparent;
}

.property-card__stat svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.property-card__stat-count {
    line-height: 1;
}

button.property-card__stat {
    cursor: pointer;
    transition: color 0.15s ease;
}

button.property-card__stat:hover {
    color: var(--oc-text);
}

button.property-card__stat:focus-visible {
    outline: 2px solid var(--oc-red);
    outline-offset: 2px;
    border-radius: 0.2rem;
}

.property-card__stat--views {
    cursor: default;
}

/* Preço + anunciante fixos na base do card */
.property-card__bottom {
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Anunciante no rodapé do card */
.property-card__advertiser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--oc-border);
}

.property-card__advertiser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

a.property-card__advertiser-link:hover .property-card__advertiser-name {
    color: var(--oc-red);
}

.property-card__advertiser-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
}

.property-card__advertiser-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.property-card__advertiser-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--oc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.property-card__advertiser-type {
    font-size: 0.68rem;
    color: var(--oc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ações sobre a foto: comentários, visualizações e favoritar */
.property-card__media-actions {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    height: 1.9rem;
    margin: 0;
    padding: 0 0.55rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: rgba(18, 18, 18, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

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

.property-card__action-count {
    line-height: 1;
}

/* Botões clicáveis (comentários e favoritar) */
button.property-card__action {
    cursor: pointer;
}

button.property-card__action:hover {
    background: rgba(18, 18, 18, 0.78);
    transform: translateY(-1px);
}

button.property-card__action:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Favoritar: somente ícone */
.property-card__action--favorite {
    width: 1.9rem;
    padding: 0;
    justify-content: center;
}

.property-card__action--favorite svg {
    transition: transform 0.18s ease;
}

.property-card__action--favorite[aria-pressed="true"] {
    color: #ff5a5f;
}

.property-card__action--favorite[aria-pressed="true"] svg {
    fill: #ff5a5f;
    stroke: #ff5a5f;
    transform: scale(1.08);
}

/* Visualizações: informativo, sem interação */
.property-card__action--views {
    cursor: default;
}

/* Busca AJAX: overlay de carregamento */
.listing-results-wrap {
    position: relative;
}

#listing-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.listing-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
}

.listing-loading[hidden] {
    display: none;
}

.listing-loading__box {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.1rem;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    box-shadow: var(--oc-shadow);
    color: var(--oc-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.listing-loading__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid var(--oc-border);
    border-top-color: var(--oc-red);
    animation: oc-spin 0.7s linear infinite;
}

@keyframes oc-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .listing-loading__spinner {
        animation-duration: 1.6s;
    }
}

/* Box do anunciante na página de detalhe */
.advertiser-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.advertiser-box__avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
}

.advertiser-box__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.advertiser-box__name {
    font-weight: 600;
    color: var(--oc-text);
    transition: color 0.15s ease;
}

a.advertiser-box:hover .advertiser-box__name {
    color: var(--oc-red);
}

.advertiser-box__type {
    font-size: 0.8rem;
    color: var(--oc-text-muted);
}

.advertiser-box__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
}

.advertiser-box__stats li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--oc-text-muted);
}

.advertiser-box__stats svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Vantagens */
.advantage-card {
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
}

.advantage-card h3 {
    color: var(--oc-text);
}

.advantage-card p {
    color: var(--oc-text-muted);
}

.advantage-card__icon {
    font-size: 1.75rem;
}

/* Busca: botão e atalho flutuante de filtros */
.filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    color: #121212;
    background: #fff;
    border: 1.5px solid #121212;
    border-radius: var(--oc-radius-lg);
    transition: background 0.15s ease, color 0.15s ease;
}

.filters-toggle-btn:hover {
    background: #f5f5f5;
    color: #121212;
}

.filters-toggle-btn__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.filters-float-btn {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    color: #121212;
    background: #fff;
    border: 1.5px solid #121212;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 0.75rem);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.filters-float-btn svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.filters-float-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.filters-float-btn:hover {
    background: #f5f5f5;
}

.filters-float-btn[hidden] {
    display: none !important;
}

[data-theme="dark"] .filters-toggle-btn,
[data-theme="dark"] .filters-float-btn {
    color: var(--oc-text);
    background: var(--oc-surface);
    border-color: var(--oc-text);
}

[data-theme="dark"] .filters-toggle-btn:hover,
[data-theme="dark"] .filters-float-btn:hover {
    background: var(--oc-bg);
}

/* Busca: filtros laterais */
.filters-panel--sidebar {
    position: sticky;
    top: 5rem;
    align-self: flex-start;
    width: 100%;
}

.filters-panel--modal .filters-sidebar {
    max-height: min(70vh, 640px);
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.filters-sidebar {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 6.5rem);
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
    box-shadow: var(--oc-shadow);
    overflow: hidden;
}

.filters-sidebar__tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid var(--oc-border);
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.filters-sidebar__tab {
    flex: 1;
    margin: 0;
    cursor: pointer;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oc-text-muted);
    padding: 0.85rem 0.35rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.filters-sidebar__tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filters-sidebar__tab:has(input:checked) {
    color: var(--oc-red);
    border-bottom-color: var(--oc-red);
    font-weight: 600;
}

.filters-sidebar__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 1.15rem 0.5rem;
    scrollbar-width: thin;
}

.filters-sidebar__body::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar__body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.filters-sidebar__footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid var(--oc-border);
    background: var(--oc-surface);
}

.filters-sidebar__clear {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oc-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filters-sidebar__clear:hover {
    color: var(--oc-red);
}

.filters-sidebar__submit {
    flex: 1;
    max-width: 11rem;
    margin-left: auto;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 999px;
    background: rgba(139, 0, 0, 0.12);
    color: var(--oc-red);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.filters-sidebar__submit:hover {
    background: var(--oc-red);
    color: #fff;
}

.filter-block {
    margin-bottom: 1.1rem;
}

.filter-block--divider {
    padding-top: 1.1rem;
    border-top: 1px solid var(--oc-border);
}

.filter-block__title,
.filter-block__label {
    display: block;
    font-weight: 600;
    color: var(--oc-text);
    margin-bottom: 0.65rem;
}

.filter-block__label {
    font-size: 0.8125rem;
    color: var(--oc-text-muted);
}

.filter-block__title {
    font-size: 0.9375rem;
}

.filter-input {
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-bg);
    color: var(--oc-text);
    font-size: 0.875rem;
}

.filter-input:focus {
    outline: none;
    border-color: var(--oc-red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

.filter-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-checklist--scroll {
    max-height: 17.5rem;
    overflow-y: auto;
    padding-right: 0.35rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

.filter-checklist--scroll::-webkit-scrollbar {
    width: 6px;
}

.filter-checklist--scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
}

.filter-checklist--scroll::-webkit-scrollbar-track {
    background: transparent;
}

[data-theme="dark"] .filter-checklist--scroll {
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

[data-theme="dark"] .filter-checklist--scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    cursor: pointer;
    font-size: 0.9375rem;
}

.filter-check input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
    accent-color: var(--oc-red);
}

.filter-checklist__more summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oc-red);
}

.filter-checklist__more summary::-webkit-details-marker {
    display: none;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-pill {
    margin: 0;
    cursor: pointer;
}

.filter-pill input {
    position: absolute;
    opacity: 0;
}

.filter-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.65rem;
    height: 2.65rem;
    border: 1px solid var(--oc-border);
    border-radius: 50%;
    font-size: 0.9375rem;
    background: var(--oc-bg);
}

.filter-pill input:checked + span {
    border-color: var(--oc-red);
    background: rgba(139, 0, 0, 0.1);
    color: var(--oc-red);
    font-weight: 700;
}

.filter-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.filter-range__field label {
    display: block;
    font-size: 0.75rem;
    color: var(--oc-text-muted);
    margin-bottom: 0.3rem;
}

/* Paginação elegante */
.pagination-elegant {
    display: flex;
    justify-content: center;
}

.pagination-elegant__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pagination-elegant__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: var(--oc-text-muted);
    text-decoration: none;
}

.pagination-elegant__arrow:hover:not(.is-disabled) {
    background: var(--oc-bg);
    color: var(--oc-text);
}

.pagination-elegant__arrow.is-disabled {
    opacity: 0.35;
}

.pagination-elegant__pages {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.pagination-elegant__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--oc-text);
    text-decoration: none;
}

.pagination-elegant__page:hover {
    background: var(--oc-bg);
    color: var(--oc-red);
}

.pagination-elegant__page.is-active {
    background: var(--oc-red);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.35);
}

.pagination-elegant__gap {
    min-width: 1.25rem;
    text-align: center;
    color: var(--oc-text-muted);
}

.modal-content {
    background: var(--oc-surface);
    color: var(--oc-text);
}

.alert-light {
    background: var(--oc-surface);
    border-color: var(--oc-border);
    color: var(--oc-text-muted);
}

/* Footer */
.site-footer {
    background: var(--oc-black);
    color: #a1a1a6;
}

.site-footer__brand {
    line-height: 0;
}

.site-footer__logo-img {
    display: block;
    height: 2rem;
    width: auto;
}

.footer-links a {
    color: #86868b;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--oc-white);
}

/* Cookie */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1080;
    background: rgba(18, 18, 18, 0.96);
    color: #fff;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent[hidden] {
    display: none !important;
}

/* Imóvel — página de detalhe */
.property-detail {
    padding: 1.5rem 0 3rem;
    background: var(--oc-bg);
}

.property-detail__container {
    max-width: var(--oc-container-max);
}

.property-detail__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

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

.property-detail__meta-row--header {
    width: 100%;
}

.property-detail__meta-row .property-detail__back {
    margin-left: auto;
}

.property-detail__type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    color: var(--oc-text-muted);
}

.property-detail__type-badge--gallery {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    z-index: 5;
    font-size: 0.9rem;
    padding: 0.35rem 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
    color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.property-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oc-text-muted);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.15s ease, background 0.15s ease;
}

.property-detail__back:hover {
    color: var(--oc-text);
    background: var(--oc-surface);
}

.property-detail-gallery {
    margin-bottom: 2rem;
}

.property-detail-gallery--mosaic {
    overflow: hidden;
    border-radius: var(--oc-radius-lg);
    background: var(--oc-surface);
}

.property-detail-gallery--single {
    overflow: hidden;
    border-radius: var(--oc-radius-lg);
}

.property-detail-gallery--single .property-detail-gallery__btn--single {
    position: relative;
    height: clamp(260px, 40vw, 460px);
    overflow: hidden;
}

.property-detail-gallery--single .property-detail-gallery__btn--single img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.property-detail-gallery__cell {
    min-width: 0;
    min-height: 0;
}

.property-detail-gallery__cell--main,
.property-detail-gallery__cell--thumb {
    overflow: hidden;
}

.property-detail-gallery__cell--main {
    position: relative;
}

.property-detail-stats-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding-top: 2rem;
    pointer-events: none;
}

.property-detail-stats-overlay__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.78) 32%,
        rgba(0, 0, 0, 0.48) 58%,
        rgba(0, 0, 0, 0.18) 78%,
        transparent 100%
    );
    pointer-events: none;
}

.property-detail-gallery--has-stats {
    margin-bottom: 1.25rem;
}

.property-detail-gallery--has-stats + .property-detail__layout .property-detail__main > .property-detail-intro,
.property-detail-gallery--has-stats + .property-detail__layout .property-detail__main > section:first-child {
    margin-top: 0;
}

.property-detail-intro {
    padding: 1.5rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

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

.property-detail-intro__title {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--oc-text);
}

.property-detail-intro__price {
    flex-shrink: 0;
    text-align: right;
}

.property-detail-intro__price-value {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.2;
    white-space: nowrap;
}

.property-detail-intro__price-value strong {
    color: var(--oc-price);
    font-weight: 700;
}

.property-detail-intro__price-suffix {
    margin-left: 0.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--oc-text-muted);
}

.property-detail-intro__location {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    font-size: 1.05rem;
    color: var(--oc-text-muted);
    line-height: 1.4;
}

.property-detail-intro__location svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Mosaico: imagem principal + 4 miniaturas com mesma altura total */
.gallery-grid--mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem;
}

.gallery-grid--mosaic .property-detail-gallery__cell,
.gallery-grid--mosaic .property-detail-gallery__btn,
.gallery-grid--mosaic img {
    border-radius: 0;
}

.gallery-grid--mosaic .property-detail-gallery__cell--main {
    grid-column: 1 / -1;
}

.gallery-grid--mosaic .property-detail-gallery__cell--main .property-detail-gallery__btn {
    aspect-ratio: 16 / 9;
}

.gallery-grid--mosaic .property-detail-gallery__cell--thumb .property-detail-gallery__btn {
    aspect-ratio: 4 / 3;
}

@media (min-width: 992px) {
    .gallery-grid--mosaic {
        grid-template-columns: minmax(0, 7fr) minmax(0, 2.5fr) minmax(0, 2.5fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        height: clamp(300px, 38vw, 500px);
        gap: 0.25rem;
    }

    .gallery-grid--mosaic .property-detail-gallery__cell--main {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .gallery-grid--mosaic .property-detail-gallery__cell--main .property-detail-gallery__btn,
    .gallery-grid--mosaic .property-detail-gallery__cell--thumb .property-detail-gallery__btn {
        aspect-ratio: auto;
        height: 100%;
    }
}

.property-detail-gallery--single .gallery-grid,
.property-detail-gallery--single .property-detail-gallery__btn,
.property-detail-gallery--single img {
    border-radius: 0;
}

.property-detail-gallery__btn {
    position: relative;
    display: block;
    background: var(--oc-surface);
    cursor: pointer;
}

.property-detail-gallery__btn:focus-visible {
    outline: 2px solid var(--oc-red);
    outline-offset: 2px;
}

.property-detail-gallery .gallery-main img,
.property-detail-gallery .gallery-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.property-detail-gallery__btn:hover img {
    transform: scale(1.03);
    transition: transform 0.35s ease;
}

.property-detail-gallery__more {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    pointer-events: none;
}

.property-detail__layout {
    align-items: flex-start;
}

.property-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.property-detail-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 5.5rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius);
    background: var(--oc-surface);
    text-align: center;
}

.property-detail-stats__item .property-card__feature-icon,
.property-detail-stats__icon {
    width: 1.35rem;
    height: 1.35rem;
    color: var(--oc-text-muted);
}

.property-detail-stats__value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--oc-text);
}

.property-detail-stats__value--text {
    font-size: 0.9rem;
}

.property-detail-stats__label {
    font-size: 0.75rem;
    color: var(--oc-text-muted);
}

/* Overlay na imagem principal — após regras base para não ser sobrescrito */
.property-detail-gallery .property-detail-stats.property-detail-stats--overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.45rem;
    margin: 0;
    padding: 0.35rem 0.85rem 1.15rem 1.25rem;
    list-style: none;
    pointer-events: auto;
    grid-template-columns: unset;
}

.property-detail-gallery .property-detail-stats--overlay .property-detail-stats__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.1rem 0.65rem;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0.5rem 0.65rem;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0.5rem;
    box-shadow: none;
    text-align: left;
}

.property-detail-gallery .property-detail-stats--overlay .property-detail-stats__item .property-card__feature-icon,
.property-detail-gallery .property-detail-stats--overlay .property-detail-stats__icon {
    grid-row: 1 / span 2;
    grid-column: 1;
    align-self: center;
    width: 1.7rem;
    height: 1.7rem;
    color: #fff;
    flex-shrink: 0;
}

.property-detail-gallery .property-detail-stats--overlay .property-detail-stats__value {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
}

.property-detail-gallery .property-detail-stats--overlay .property-detail-stats__value--text {
    font-size: 0.85rem;
    color: #fff;
}

.property-detail-gallery .property-detail-stats--overlay .property-detail-stats__label {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.75rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

[data-theme="dark"] .property-description ul li {
    background: var(--oc-surface);
}

.property-detail-about {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

.property-detail-about__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--oc-text);
}

.property-detail-about__text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--oc-text);
}

.property-detail-about__text-wrap {
    position: relative;
}

.property-detail-about__collapsible.is-collapsed .property-detail-about__text {
    max-height: 14rem;
    overflow: hidden;
}

.property-detail-about__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5rem;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        var(--oc-surface) 88%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .property-detail-about__fade {
    background: linear-gradient(
        to bottom,
        rgba(28, 28, 30, 0) 0%,
        var(--oc-surface) 88%
    );
}

.property-detail-about__collapsible.is-collapsed .property-detail-about__fade {
    opacity: 1;
}

.property-detail-about__toggle {
    display: inline-block;
    margin-top: 0.65rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--oc-text);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.property-detail-about__toggle:hover {
    color: var(--oc-red);
}

.property-detail-about__toggle:focus-visible {
    outline: 2px solid var(--oc-red);
    outline-offset: 2px;
    border-radius: 0.15rem;
}

.property-description {
    line-height: 1.75;
    white-space: normal;
}

.property-description p {
    margin: 0 0 1rem;
}

.property-description p:last-child {
    margin-bottom: 0;
}

.property-description ul {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.property-description ol {
    margin: 1rem 0 0;
    padding-left: 1.35rem;
}

.property-description ul li {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    line-height: 1.35;
    white-space: normal;
    color: var(--oc-text);
    background: var(--oc-bg);
    border-radius: var(--oc-radius);
}

.property-description ul li > div {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.6rem;
    width: auto !important;
    max-width: none !important;
    color: var(--oc-text);
}

.property-description ul li > div > div {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.6rem;
    width: auto !important;
    max-width: none !important;
    color: var(--oc-text);
}

.property-description ul li span {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    margin-right: 0.15rem;
    line-height: 1.4;
    color: var(--oc-text);
}

.property-description ul li span:has(> svg:only-child) {
    margin-right: 0;
    line-height: 0;
}

.property-description ol li {
    margin-bottom: 0.35rem;
}

.property-description ol li:last-child {
    margin-bottom: 0;
}

.property-description ul li svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
    flex-shrink: 0;
}

.property-description ul li svg,
.property-description ul li svg * {
    stroke: var(--oc-text) !important;
}

.property-description ul li svg *[fill]:not([fill="none"]) {
    fill: var(--oc-text) !important;
}

.property-description ul li svg *[fill="currentColor"] {
    fill: var(--oc-text) !important;
}

.property-description img {
    max-width: 100%;
    height: auto;
}

.property-description a {
    color: var(--oc-primary, #8b0000);
    text-decoration: underline;
}

.property-detail-contact {
    top: 5.5rem;
    z-index: 10;
    padding: 1.5rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

.property-detail-contact__price-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--oc-text-muted);
    margin-bottom: 0.35rem;
}

.property-detail-contact__price-value {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.property-detail-contact__price-value strong {
    color: var(--oc-price);
    font-weight: 700;
}

.property-detail-contact__price-suffix {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--oc-text-muted);
}

.property-detail-contact__divider {
    height: 1px;
    margin: 1.25rem 0;
    background: var(--oc-border);
}

.property-detail-contact__talk-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--oc-text);
}

.property-detail-contact__profile {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.property-detail-contact__profile-media {
    flex-shrink: 0;
    text-decoration: none;
}

.property-detail-contact__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--oc-border);
    background: var(--oc-bg);
}

.property-detail-contact__profile-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.property-detail-contact__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--oc-text);
}

a.property-detail-contact__profile-media:hover + .property-detail-contact__profile-body .property-detail-contact__name,
a.property-detail-contact__profile-media:focus-visible + .property-detail-contact__profile-body .property-detail-contact__name {
    color: var(--oc-red);
}

.property-detail-contact__role,
.property-detail-contact__creci {
    margin: 0;
    font-size: 0.82rem;
    color: var(--oc-text-muted);
    line-height: 1.35;
}

.property-detail-contact__phones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.property-detail-contact__phone-sep {
    color: var(--oc-text-muted);
    font-size: 0.88rem;
    line-height: 1;
    user-select: none;
}

.property-detail-contact__phone-line {
    font-size: 0.88rem;
    color: var(--oc-text);
    text-decoration: none;
    white-space: nowrap;
}

.property-detail-contact__phone-line:hover {
    color: var(--oc-red);
}

.property-detail-contact__whatsapp--inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    margin-top: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    background: #25d366;
    transition: background 0.15s ease;
}

.property-detail-contact__whatsapp--inline svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.property-detail-contact__whatsapp--inline:hover {
    color: #fff;
    background: #1ebe57;
}

.property-detail-contact__form-section {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--oc-border);
}

.property-detail-contact__form-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--oc-text);
}

.property-detail-contact__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.property-detail-contact__input,
.property-detail-contact__textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--oc-text);
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.property-detail-contact__input::placeholder,
.property-detail-contact__textarea::placeholder {
    color: var(--oc-text-muted);
}

.property-detail-contact__input:focus,
.property-detail-contact__textarea:focus {
    outline: none;
    border-color: rgba(139, 0, 0, 0.35);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
}

[data-theme="dark"] .property-detail-contact__input:focus,
[data-theme="dark"] .property-detail-contact__textarea:focus {
    border-color: rgba(255, 107, 94, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 107, 94, 0.12);
}

.property-detail-contact__textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.property-detail-contact__submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--oc-red);
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.property-detail-contact__submit:hover {
    background: var(--oc-red-hover);
    transform: translateY(-1px);
}

.property-detail-map {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

.property-detail-map__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 1rem;
    color: var(--oc-text);
}

.property-detail-map__hint {
    margin: -0.65rem 0 0;
    padding-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--oc-text-muted);
}

.property-detail-map #mapa-imovel,
.property-detail-map .property-map {
    height: 360px;
    background: var(--oc-bg);
    border-radius: var(--oc-radius-lg);
    overflow: hidden;
    border: none;
    outline: none;
    box-shadow: none;
}

.property-detail-map #mapa-imovel.leaflet-container {
    border: none;
    outline: none;
    box-shadow: none;
}

.property-map--loading {
    background:
        linear-gradient(90deg, var(--oc-bg) 0%, rgba(139, 0, 0, 0.06) 50%, var(--oc-bg) 100%);
    background-size: 200% 100%;
    animation: property-map-shimmer 1.4s ease-in-out infinite;
}

.property-map--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oc-text-muted);
    font-size: 0.9rem;
}

.property-map--empty::after {
    content: 'Não foi possível carregar o mapa para esta localização.';
}

@keyframes property-map-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.property-map__marker-wrap {
    background: transparent;
    border: 0;
}

.property-map__marker {
    display: block;
    width: 28px;
    height: 36px;
    background: #8b0000;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Locais próximos (abas) */
.property-detail-map .property-nearby {
    margin-top: 1.5rem;
    padding-top: 0;
    border-top: none;
}

.property-nearby__intro {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: var(--oc-text-muted);
}

.property-nearby__tabs {
    display: flex;
    gap: 0.15rem;
    margin: 0 0 0.5rem;
    padding: 0;
    border-bottom: 1px solid var(--oc-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.property-nearby__tabs::-webkit-scrollbar {
    display: none;
}

.property-nearby__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--oc-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.property-nearby__tab:hover {
    color: var(--oc-text);
}

.property-nearby__tab.is-active {
    color: var(--oc-red);
    border-bottom-color: var(--oc-red);
}

.property-nearby__tab-icon {
    flex-shrink: 0;
}

.property-nearby__panel {
    min-height: 4rem;
}

.property-nearby__status {
    margin: 1rem 0 0.5rem;
    font-size: 0.9rem;
    color: var(--oc-text-muted);
}

.property-nearby__status--error {
    color: var(--oc-red);
}

.property-nearby__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .property-nearby__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.property-nearby__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 0.5rem 0.95rem 0;
    border-bottom: 1px solid var(--oc-border);
}

@media (min-width: 768px) {
    .property-nearby__item:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}

.property-nearby__item:last-child {
    border-bottom: 0;
}

.property-nearby__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    color: #fff;
}

.property-nearby__icon--school { background: #2563eb; }
.property-nearby__icon--health { background: var(--oc-red); }
.property-nearby__icon--food { background: #ea580c; }
.property-nearby__icon--shop { background: #7c3aed; }
.property-nearby__icon--park { background: #16a34a; }
.property-nearby__icon--entertainment { background: #db2777; }
.property-nearby__icon--services { background: #475569; }
.property-nearby__icon--transit { background: #0f766e; }
.property-nearby__icon--place { background: #64748b; }

.property-nearby__body {
    min-width: 0;
    flex: 1;
}

.property-nearby__name {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--oc-text);
}

.property-nearby__meta {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--oc-text-muted);
}

.property-nearby__source {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    color: var(--oc-text-muted);
}

.property-nearby__source a {
    color: var(--oc-red);
    text-decoration: none;
}

.property-nearby__source a:hover {
    text-decoration: underline;
}

/* Lightbox tela cheia */
body.property-lightbox-open {
    overflow: hidden;
}

.property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 1rem 2rem;
    background: rgba(18, 18, 18, 0.96);
}

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

.property-lightbox__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #fff;
}

.property-lightbox__counter {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
}

.property-lightbox__title {
    margin: 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 500;
    text-align: center;
    color: #fff;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-lightbox__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.property-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.property-lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1200px);
    max-height: calc(100vh - 8rem);
    flex: 1;
}

.property-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.35rem;
    user-select: none;
}

.property-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.property-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
}

.property-lightbox__nav--prev {
    left: 1rem;
}

.property-lightbox__nav--next {
    right: 1rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991.98px) {
    .property-detail-contact {
        top: 0;
    }

    .property-detail__back {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }

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

@media (max-width: 767.98px) {
    html {
        font-size: 93.75%;
    }
}

@media (max-width: 575.98px) {
    .property-detail-gallery .property-detail-stats.property-detail-stats--overlay {
        gap: 0.35rem !important;
        padding: 0.25rem 0.65rem 0.9rem 1rem !important;
    }

    .property-detail-gallery .property-detail-stats--overlay .property-detail-stats__item {
        gap: 0.08rem 0.45rem !important;
        padding: 0.35rem 0.5rem !important;
        border-width: 1.5px !important;
        border-radius: 0.4rem !important;
    }

    .property-detail-gallery .property-detail-stats--overlay .property-detail-stats__item .property-card__feature-icon,
    .property-detail-gallery .property-detail-stats--overlay .property-detail-stats__icon {
        width: 1.35rem !important;
        height: 1.35rem !important;
    }

    .property-detail-gallery .property-detail-stats--overlay .property-detail-stats__value {
        font-size: 0.82rem !important;
    }

    .property-detail-gallery .property-detail-stats--overlay .property-detail-stats__value--text {
        font-size: 0.75rem !important;
    }

    .property-detail-gallery .property-detail-stats--overlay .property-detail-stats__label {
        font-size: 0.65rem !important;
    }

    .property-detail-stats:not(.property-detail-stats--overlay) {
        grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
        gap: 0.55rem;
    }

    .property-detail-stats:not(.property-detail-stats--overlay) .property-detail-stats__item {
        min-height: 4.75rem;
        padding: 0.65rem 0.4rem;
        gap: 0.25rem;
    }

    .property-detail-stats:not(.property-detail-stats--overlay) .property-detail-stats__item .property-card__feature-icon,
    .property-detail-stats:not(.property-detail-stats--overlay) .property-detail-stats__icon {
        width: 1.15rem;
        height: 1.15rem;
    }

    .property-detail-stats:not(.property-detail-stats--overlay) .property-detail-stats__value {
        font-size: 0.92rem;
    }

    .property-detail-stats:not(.property-detail-stats--overlay) .property-detail-stats__label {
        font-size: 0.68rem;
    }

    .property-detail-intro__head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .property-detail-intro__price {
        text-align: left;
    }

    .property-detail-intro__price-value {
        white-space: normal;
    }

    .property-lightbox__nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .property-lightbox__nav--prev {
        left: 0.35rem;
    }

    .property-lightbox__nav--next {
        right: 0.35rem;
    }
}

/* Legado — cards de listagem (não aplicar na página de detalhe) */
.gallery-grid:not(.gallery-grid--mosaic) .gallery-main img,
.gallery-grid:not(.gallery-grid--mosaic) .gallery-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--oc-radius);
}

.text-muted {
    color: var(--oc-text-muted) !important;
}

.card {
    background: var(--oc-surface);
    color: var(--oc-text);
}

/* ------------------------------------------------------------------ */
/* Busca por mapa                                                     */
/* ------------------------------------------------------------------ */

.page-map-search #conteudo-principal {
    padding: 0;
}

.map-search {
    display: flex;
    flex-direction: column;
    background: var(--oc-bg);
}

.map-search__top {
    position: relative;
    z-index: 500;
    padding: 0.85rem 1rem 0.5rem;
    background: var(--oc-bg);
    border-bottom: 1px solid var(--oc-border);
}

.map-search__top-inner {
    max-width: 920px;
    margin: 0 auto;
}

.map-search__bar-input .location-suggest__wrap {
    position: static;
}

.map-search__bar-input .location-suggest--map {
    width: 100%;
}

.location-suggest__list--map {
    z-index: 10060;
    min-width: 220px;
}

.map-search__bar {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    padding: 0.35rem;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
}

.map-search__bar-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 0.45rem 1rem;
}

.map-search__bar-field--local {
    flex: 1 1 220px;
}

.map-search__bar-field--finalidade {
    flex: 0 0 auto;
    min-width: 110px;
}

.map-search__bar-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--oc-text-muted);
    margin-bottom: 0.15rem;
}

.map-search__bar-input {
    min-width: 0;
}

.map-search__bar-input--static {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--oc-text);
    white-space: nowrap;
}

.map-search__bar-input .location-suggest__input {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: none;
}

.map-search__bar-input .location-suggest__input:focus {
    outline: none;
    box-shadow: none;
}

.map-search__bar-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.65rem 0;
    background: var(--oc-border);
}

.map-search__bar-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem 0.35rem 0.25rem;
    margin-left: auto;
}

.map-search__bar-clear {
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oc-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.map-search__bar-clear:hover {
    color: var(--oc-red);
}

.map-search__bar-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0 0.85rem;
    border: 1px solid var(--oc-border);
    border-radius: 999px;
    background: var(--oc-surface);
    color: var(--oc-text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.map-search__bar-filters svg {
    width: 1rem;
    height: 1rem;
}

.map-search__bar-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--oc-black);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.map-search__bar-submit svg {
    width: 1rem;
    height: 1rem;
}

.map-search__bar-submit:hover {
    background: var(--oc-red);
}

.map-search__split {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    min-height: calc(100vh - var(--oc-header-height, 72px) - 90px);
}

.map-search__list {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    border-right: 1px solid var(--oc-border);
    background: var(--oc-bg);
}

.map-search__list-toolbar {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--oc-border);
}

.map-search__list-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.map-search__sort-label {
    font-size: 0.875rem;
    color: var(--oc-text-muted);
}

.map-search__list-scroll {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
}

.map-search__list-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.map-search__list-count {
    font-size: 1rem;
    color: var(--oc-text);
}

.map-search__list-count strong {
    font-weight: 700;
}

.map-search__list-meta {
    font-size: 0.8125rem;
    color: var(--oc-text-muted);
    white-space: nowrap;
}

.map-search__cards-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.map-search__cards-item {
    min-width: 0;
}

.map-list-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
    padding: 0.55rem;
    border: 1px solid var(--oc-border);
    border-radius: 12px;
    background: var(--oc-surface);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.map-list-card__media {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    min-height: 84px;
}

.map-list-card__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 84px;
    object-fit: cover;
}

.map-list-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.map-list-card__badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--oc-red);
}

.map-list-card__title {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 600;
}

.map-list-card__title a {
    color: var(--oc-text);
    text-decoration: none;
}

.map-list-card__title a:hover {
    color: var(--oc-red);
}

.map-list-card__location {
    margin: 0;
    font-size: 0.75rem;
    color: var(--oc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-list-card__price {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    color: var(--oc-text);
}

.map-list-card__price strong {
    font-weight: 700;
}

.map-list-card__price span {
    color: var(--oc-text-muted);
}

.map-search__loading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0 1rem;
    font-size: 0.875rem;
    color: var(--oc-text-muted);
}

.map-search__loading[hidden] {
    display: none !important;
}

#map-listing-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

[data-map-card-id].is-map-active .map-list-card {
    border-color: var(--oc-red);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.18), var(--oc-shadow-hover);
}

.map-search__map-wrap {
    position: relative;
    min-height: 480px;
    height: 100%;
    background: #e9ecef;
}

.map-search__map,
.map-search__map.leaflet-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 480px;
    z-index: 1;
}

.map-search__map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 450;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.map-search__move-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    box-shadow: var(--oc-shadow);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--oc-text);
    cursor: pointer;
    user-select: none;
}

.map-search__move-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.map-search__move-toggle-ui {
    position: relative;
    width: 2.5rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
}

.map-search__move-toggle-ui::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.map-search__move-toggle input:checked + .map-search__move-toggle-ui {
    background: #2563eb;
}

.map-search__move-toggle input:checked + .map-search__move-toggle-ui::after {
    transform: translateX(1.05rem);
}

.map-search__grid-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    box-shadow: var(--oc-shadow);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--oc-text);
    text-decoration: none;
}

.map-search__grid-btn svg {
    width: 1rem;
    height: 1rem;
}

.map-search__grid-btn:hover {
    border-color: var(--oc-red);
    color: var(--oc-red);
}

.map-search-marker-wrap {
    background: transparent;
    border: 0;
}

.map-search-marker-wrap.leaflet-marker-icon {
    background: transparent;
    border: none;
}

.map-search-marker {
    display: inline-block;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(18, 18, 18, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 0.78rem;
    font-weight: 700;
    color: #121212;
    white-space: nowrap;
    transform: translate(-50%, -100%);
}

.map-search-marker-wrap:hover .map-search-marker,
.leaflet-marker-icon.leaflet-interactive:focus .map-search-marker {
    background: var(--oc-black);
    color: #fff;
    border-color: var(--oc-black);
}

.map-search-popup-wrap .leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    background: var(--oc-surface, #fff);
}

.map-search-popup-wrap .leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.map-search-popup-wrap .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 320px !important;
    min-height: 0 !important;
    line-height: 0;
    font-size: 0;
}

.map-search-popup-wrap .map-marker-popup--lite {
    display: block;
    overflow: hidden;
    line-height: normal;
    font-size: 1rem;
    background: var(--oc-surface, #fff);
}

.map-marker-popup--lite .map-marker-popup__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}

.map-marker-popup--lite .map-marker-popup__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-marker-popup--lite .map-marker-popup__body {
    padding: 0.85rem 0.95rem 1rem;
}

.map-marker-popup--lite .map-marker-popup__title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
}

.map-marker-popup--lite .map-marker-popup__title a {
    color: var(--oc-text);
    text-decoration: none;
}

.map-marker-popup--lite .map-marker-popup__title a:hover {
    color: var(--oc-red);
}

.map-marker-popup--lite .map-marker-popup__location {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: var(--oc-text-muted);
}

.map-marker-popup--lite .map-marker-popup__price {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
}

.map-marker-popup--lite .map-marker-popup__price strong {
    font-weight: 700;
}

.map-marker-popup--lite .map-marker-popup__price span {
    color: var(--oc-text-muted);
}

.map-marker-popup--lite .map-marker-popup__link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--oc-red);
    text-decoration: none;
}

.map-marker-popup--lite .map-marker-popup__link:hover {
    text-decoration: underline;
}

.map-marker-popup--loading,
.map-marker-popup--error {
    min-height: 72px;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--oc-text-muted);
}

.map-search-popup-wrap .map-marker-popup {
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: normal;
    font-size: 1rem;
}

.map-search-popup-wrap .property-card--map-popup {
    height: auto !important;
    margin: 0;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: var(--oc-surface, #fff);
}

.map-search-popup-wrap .property-card--map-popup:hover {
    transform: none;
    box-shadow: none !important;
}

.map-search-popup-wrap .property-card--map-popup .property-card__media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
    background: #111;
}

.map-search-popup-wrap .property-card--map-popup .property-card__gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
    overflow: hidden;
    line-height: 0;
}

.map-search-popup-wrap .property-card--map-popup .property-card__slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.map-search-popup-wrap .property-card--map-popup .property-card__slide {
    height: 100%;
}

.map-search-popup-wrap .property-card--map-popup .property-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.map-search-popup-wrap .property-card--map-popup .property-card__body {
    line-height: 1.4;
    font-size: 1rem;
}

/* Compatibilidade com wrapper legado */
.map-marker-popup .property-card--map-popup {
    height: auto !important;
}

.map-marker-popup--loading {
    width: 320px;
    min-height: 200px;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: map-popup-shimmer 1.2s linear infinite;
}

.map-marker-popup--error {
    width: 320px;
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--oc-text-muted);
    text-align: center;
}

@keyframes map-popup-shimmer {
    to {
        background-position-x: -200%;
    }
}

.map-search-popup-wrap .leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #121212 !important;
    font-size: 18px !important;
    line-height: 26px !important;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.map-search__offcanvas {
    width: min(420px, 92vw);
}

.filters-panel--offcanvas .filters-sidebar {
    min-height: 100%;
}

@media (min-width: 992px) {
    .map-search__list {
        max-height: calc(100vh - var(--oc-header-height, 72px) - 90px);
    }

    .map-search__cards-grid {
        --bs-gutter-x: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .map-search__split {
        grid-template-columns: 1fr;
        grid-template-rows: 45vh 1fr;
    }

    .map-search__list {
        order: 2;
        border-right: 0;
        border-top: 1px solid var(--oc-border);
        max-height: 50vh;
    }

    .map-search__map-wrap {
        order: 1;
    }

    .map-search__bar {
        border-radius: var(--oc-radius-lg);
    }

    .map-search__bar-field--finalidade {
        display: none;
    }

    .map-search__bar-divider {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .map-search__bar-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.25rem;
    }

    .map-search__cards-grid {
        --bs-gutter-y: 0.75rem;
    }
}

/* ------------------------------------------------------------------ */
/* Perfil do anunciante                                               */
/* ------------------------------------------------------------------ */

.page-advertiser-profile #conteudo-principal {
    padding-top: 0;
}

.advertiser-profile {
    --adv-hero-height: clamp(320px, 42vw, 480px);
    --adv-avatar-size: clamp(88px, 11vw, 120px);
    padding-bottom: 3rem;
}

.advertiser-profile__hero {
    background: var(--oc-surface-2, #1a1a1a);
    padding: 0.75rem 0 0;
}

.advertiser-profile__cover {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: var(--adv-hero-height);
    overflow: hidden;
    border-radius: calc(var(--oc-radius, 12px) + 2px);
}

.advertiser-profile__cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
}

.advertiser-profile__cover-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.94) 0%,
        rgba(0, 0, 0, 0.72) 32%,
        rgba(0, 0, 0, 0.35) 58%,
        rgba(0, 0, 0, 0.08) 78%,
        rgba(0, 0, 0, 0) 100%
    );
}

.advertiser-profile__shell {
    position: relative;
    padding-top: 1.25rem;
}

.advertiser-profile__header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.5rem 1.35rem 1.35rem;
}

.advertiser-profile__identity {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    min-width: 0;
}

.advertiser-profile__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.advertiser-profile__avatar {
    width: var(--adv-avatar-size);
    height: var(--adv-avatar-size);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    background: var(--oc-surface);
}

.advertiser-profile__media-edit {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.advertiser-profile__media-edit:hover {
    background: rgba(139, 0, 0, 0.88);
}

.advertiser-profile__media-edit.is-uploading {
    opacity: 0.65;
    pointer-events: none;
}

.advertiser-profile__media-edit--cover {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    z-index: 3;
}

.advertiser-profile__media-edit--avatar {
    right: 0.15rem;
    bottom: 0.15rem;
    padding: 0.4rem;
    border-radius: 50%;
}

.advertiser-profile__media-edit--avatar span {
    display: none;
}

.advertiser-profile__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

.advertiser-profile__name {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.advertiser-profile__type {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(139, 0, 0, 0.88);
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.advertiser-profile__creci,
.advertiser-profile__location {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.advertiser-profile__location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.advertiser-profile__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.advertiser-profile__stats {
    display: flex;
    gap: 1.25rem;
}

.advertiser-profile__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4.5rem;
    padding: 0.55rem 0.85rem;
    border-radius: var(--oc-radius, 12px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    color: #fff;
}

.advertiser-profile__stat strong {
    font-size: 1.15rem;
    line-height: 1.1;
    color: #fff;
}

.advertiser-profile__stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.advertiser-profile__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.advertiser-profile__share-btn:hover,
.advertiser-profile__share-btn.is-copied {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(139, 0, 0, 0.82);
    color: #fff;
}

.advertiser-profile__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    margin-bottom: 1.5rem;
    border-radius: calc(var(--oc-radius, 12px) + 4px);
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    position: sticky;
    top: calc(var(--site-header-height, 64px) + 0.5rem);
    z-index: 40;
}

.advertiser-profile__nav-link {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: var(--oc-radius, 12px);
    color: var(--oc-text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.advertiser-profile__nav-link:hover {
    color: var(--oc-text);
    background: rgba(139, 0, 0, 0.06);
}

.advertiser-profile__nav-link.is-active {
    color: #fff;
    background: var(--oc-brand, #8B0000);
}

.advertiser-profile__section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.advertiser-profile__listings {
    padding: 0;
    margin: 0;
}

.advertiser-profile__filters-btn {
    width: 100%;
}

.advertiser-profile__offcanvas {
    max-width: min(92vw, 380px);
}

.advertiser-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 2rem;
    padding: 1.5rem;
    border-radius: calc(var(--oc-radius, 12px) + 4px);
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
}

.advertiser-about__bio {
    line-height: 1.65;
    color: var(--oc-text);
}

.advertiser-about__aside {
    padding: 1rem 1.15rem;
    border-radius: var(--oc-radius, 12px);
    background: var(--oc-bg);
    border: 1px solid var(--oc-border);
}

.advertiser-about__aside-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oc-text-muted);
    margin-bottom: 0.85rem;
}

.advertiser-social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.advertiser-social-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--oc-radius, 12px);
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
    color: var(--oc-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.advertiser-social-list__link:hover {
    border-color: var(--oc-brand, #8B0000);
    color: var(--oc-brand, #8B0000);
}

.advertiser-map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.advertiser-map-head__subtitle {
    font-size: 0.92rem;
}

.advertiser-map {
    height: min(72vh, 640px);
    min-height: 420px;
    border-radius: var(--oc-radius, 12px);
    overflow: hidden;
    border: 1px solid var(--oc-border);
}

.advertiser-contact {
    padding: 1.5rem;
    border-radius: calc(var(--oc-radius, 12px) + 4px);
    background: var(--oc-surface);
    border: 1px solid var(--oc-border);
}

.advertiser-contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.advertiser-contact__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: var(--oc-radius, 12px);
    background: var(--oc-bg);
    border: 1px solid var(--oc-border);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.advertiser-contact__card:hover {
    border-color: var(--oc-brand, #8B0000);
    transform: translateY(-1px);
}

.advertiser-contact__card--wide {
    grid-column: 1 / -1;
}

.advertiser-contact__card--whatsapp strong {
    color: #128c7e;
}

.advertiser-contact__card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oc-text-muted);
}

.advertiser-contact__social {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--oc-border);
}

.advertiser-contact__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 991.98px) {
    .advertiser-profile {
        --adv-hero-height: clamp(360px, 58vw, 440px);
    }

    .advertiser-profile__header {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem 1rem 1.15rem;
    }

    .advertiser-profile__identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .advertiser-profile__meta {
        align-items: center;
    }

    .advertiser-profile__location {
        justify-content: center;
    }

    .advertiser-profile__actions {
        justify-content: center;
    }

    .advertiser-about {
        grid-template-columns: 1fr;
    }

    .advertiser-profile__nav-link {
        flex: 1 1 calc(50% - 0.35rem);
        font-size: 0.85rem;
        padding: 0.55rem 0.65rem;
    }
}

@media (max-width: 575.98px) {
    .advertiser-profile__nav {
        top: 0.35rem;
    }
}

/* Google AdSense — cards nativos na listagem */
.card-adsense {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
}

.card-adsense:hover {
    transform: none;
    box-shadow: var(--oc-shadow) !important;
}

.card-adsense__media {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-adsense__slot {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 11.5rem;
    overflow: hidden;
    background: var(--oc-surface);
}

.card-adsense__ins {
    display: block;
    width: 100%;
    min-height: 11.5rem;
}

.card-adsense__body {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.65rem 1rem !important;
    border-top: 1px solid var(--oc-border);
}

.card-adsense__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oc-text-muted);
    text-align: center;
}

/* Oculta blocos vazios (Google retorna iframe branco sem anúncio) */
.card-adsense.is-adsense-empty,
.property-detail-adsense.is-adsense-empty,
.col.is-adsense-empty {
    display: none !important;
}

.card-adsense.is-adsense-filled .card-adsense__slot,
.property-detail-adsense.is-adsense-filled {
    background: transparent;
}

/* Google AdSense — detalhe do imóvel */
.property-detail-adsense {
    overflow: hidden;
}

.property-detail-adsense--in-article {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
    padding: 0;
    min-height: 0;
    background: transparent;
    text-align: center;
}

.property-detail-adsense--in-article .property-detail-adsense__ins {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.property-detail-adsense--in-article .property-detail-adsense__ins iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.property-detail-adsense--in-article.is-adsense-filled .property-detail-adsense__ins {
    min-height: 5rem;
}

.property-detail-aside__sticky {
    position: sticky;
    top: 5.5rem;
    z-index: 10;
}

.property-detail-adsense--sidebar {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--oc-border);
    border-radius: var(--oc-radius-lg);
    background: var(--oc-surface);
    box-shadow: var(--oc-shadow);
    min-height: 0;
}

.property-detail-adsense--sidebar.is-adsense-filled {
    min-height: 16rem;
}

.property-detail-adsense--sidebar .property-detail-adsense__ins {
    display: block;
    width: 100%;
    min-height: 0;
}

.property-detail-adsense--sidebar.is-adsense-filled .property-detail-adsense__ins {
    min-height: 14rem;
}

@media (max-width: 991.98px) {
    .property-detail-aside__sticky {
        position: static;
        top: auto;
    }

    .property-detail-adsense--sidebar.is-adsense-filled {
        min-height: 14rem;
    }

    .property-detail-adsense--sidebar.is-adsense-filled .property-detail-adsense__ins {
        min-height: 12rem;
    }
}

@media (max-width: 767.98px) {
    .card-adsense__slot,
    .card-adsense__ins {
        min-height: 10rem;
    }
}

