:root {
    --gold:        #D4AF37;
    --gold-hover:  #c09a20;
    --gold-soft:   rgba(212, 175, 55, 0.08);
    --radius:      10px;
    --radius-lg:   14px;
    --transition:  0.22s ease;
    --font-display:'Cormorant Garamond', Georgia, serif;
    --font-body:   'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

:root,
[data-theme="dark"] {
    --bg:          #161618;
    --surface:     #1c1c1f;
    --surface-2:   #222226;
    --surface-3:   #2a2a2e;
    --border:      rgba(255, 255, 255, 0.07);
    --border-solid:#2a2a2e;
    --text:        #ececec;
    --text-2:      rgba(236, 236, 236, 0.62);
    --muted:       #787880;
    --nav-bg:      rgba(22, 22, 24, 0.92);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,255,255,0.03);
    --shadow-hover:0 12px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(212,175,55,0.15);
    --wa-glow:     rgba(37,211,102,0.3);
}

[data-theme="light"] {
    --bg:          #f5f3ef;
    --surface:     #ffffff;
    --surface-2:   #f0ece4;
    --surface-3:   #e8e3da;
    --border:      rgba(0, 0, 0, 0.06);
    --border-solid:#dbd6cc;
    --text:        #1c1a17;
    --text-2:      rgba(28, 26, 23, 0.6);
    --muted:       #6e6a63;
    --nav-bg:      rgba(245, 243, 239, 0.94);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    --shadow-hover:0 12px 36px rgba(0,0,0,0.1), 0 0 0 1px rgba(212,175,55,0.2);
    --wa-glow:     rgba(37,211,102,0.24);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    overscroll-behavior-y: none;
}

.text-primary  { color: var(--gold) !important; }
.bg-primary    { background-color: var(--gold) !important; }
.text-muted    { color: var(--muted) !important; }

.btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #111;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 6px;
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
    color: #111;
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-light {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-body);
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.btn-outline-light:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: #111;
}

#mainNav {
    background-color: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    transition: background-color var(--transition), box-shadow 0.3s ease;
    z-index: 1030;
}
#mainNav.nav-scrolled {
    box-shadow: 0 1px 16px rgba(0,0,0,0.15);
}

.navbar-logo {
    height: 44px;
    width: auto;
    display: block;
}
.footer-logo {
    height: 60px;
    width: auto;
    display: block;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}
.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.navbar-brand-name {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text);
    letter-spacing: 0.01em;
}
.navbar-brand-sub {
    font-size: 0.6rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.navbar-toggler {
    border: none;
    padding: 6px 4px;
    background: none;
    cursor: pointer;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: var(--gold);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-link {
    color: var(--text-2) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.875rem !important;
    transition: color var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.875rem;
    right: 0.875rem;
    height: 1px;
    background: var(--gold);
    opacity: 0;
    transform: scaleX(0);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-link:hover,
.nav-link:focus { color: var(--gold) !important; }
.nav-link:hover::after { opacity: 1; transform: scaleX(1); }

.nav-end-controls {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.btn-nav-cta {
    font-size: 0.8125rem;
    padding: 0.45rem 1rem;
    white-space: nowrap;
}

.btn-theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background-color var(--transition);
    padding: 0;
    flex-shrink: 0;
    font-size: 0.8rem;
}
.btn-theme-toggle:hover {
    border-color: var(--gold);
    color: var(--gold);
    background-color: var(--gold-soft);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--surface);
        margin: 0.5rem -0.75rem -0.5rem;
        padding: 1rem 1.25rem 1.5rem;
        border-top: 1px solid var(--border);
    }
    .navbar-nav {
        margin-bottom: 1rem;
        gap: 0.125rem;
    }
    .nav-link {
        padding: 0.7rem 0 !important;
        border-bottom: 1px solid var(--border);
        font-size: 0.9375rem;
    }
    .nav-link::after { display: none; }
    .nav-end-controls {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
    }
    .btn-nav-cta {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
        font-size: 1rem;
    }
    .btn-theme-toggle {
        width: 100%;
        height: 44px;
        border-radius: 6px;
        font-size: 0.875rem;
        gap: 0.5rem;
    }
}
@media (min-width: 992px) {
    .navbar-logo { height: 50px; }
}

.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/image/fundoof.jpg') bottom center / cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(22,22,24,0.95) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.25rem;
}
.hero-content,
.hero-content * { color: #fff; }

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold) !important;
    margin-bottom: 1rem;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 7.5vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    color: #fff !important;
}
.hero-sub {
    font-size: clamp(0.875rem, 2.5vw, 1.0625rem);
    color: rgba(255,255,255,0.7) !important;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}
.hero-actions {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 2;
    padding: 0 1.25rem;
}
.hero-btn {
    width: 100%;
    max-width: 260px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

@media (min-width: 576px) {
    .hero-actions { flex-direction: row; }
    .hero-btn { width: auto; max-width: none; }
    .hero-section { min-height: 100vh; }
}

.section-header { margin-bottom: 0.5rem; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    color: var(--text);
}
.title-line {
    width: 40px;
    height: 1.5px;
    background-color: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

.search-wrap {
    max-width: 460px;
    margin: 0 auto;
}
.search-inner {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--muted);
    font-size: .78rem;
    pointer-events: none;
    z-index: 1;
}
.search-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: .625rem 2.6rem .625rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: .84rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.search-input:focus {
    outline: none;
    border-color: rgba(212,175,55,0.45);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.06);
}
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
    position: absolute;
    right: .75rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    line-height: 1;
    transition: color var(--transition);
    font-size: .75rem;
}
.search-clear:hover { color: var(--text); }

.filter-bar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 4px;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}
.filter-bar::-webkit-scrollbar { display: none; }

.btn-filter {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    transition: all var(--transition);
    white-space: nowrap;
    min-height: 36px;
}
.btn-filter:hover { border-color: var(--gold); color: var(--gold); }
.btn-filter.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
    font-weight: 600;
}

#grid-anuncios { transition: opacity 0.2s ease; }

.ad-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    text-decoration: none;
}
.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212,175,55,0.3);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--surface-2);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ad-card:hover .card-img-wrapper img { transform: scale(1.03); }

.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(212,175,55,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge-vendido  { background: rgba(180,30,30,0.88); color: #fff; }
.badge-destaque { background: rgba(212,175,55,0.9); color: #111; }

.status-vendido { opacity: 0.5; filter: grayscale(0.8); pointer-events: none; }
.status-vendido .ad-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: var(--border);
}

.card-body {
    padding: 0.875rem 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.3rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-price {
    color: var(--gold);
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}
.card-attrs {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.875rem;
    flex: 1;
    line-height: 1.6;
}
.btn-detail {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.55rem;
    border-radius: 6px;
    border: 1px solid rgba(212,175,55,0.3);
    background: transparent;
    color: var(--gold);
    transition: all var(--transition);
    width: 100%;
    min-height: 40px;
    display: block;
    text-align: center;
    cursor: pointer;
}
.btn-detail:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #111;
}

#empty-state { color: var(--muted); padding: 4rem 1rem; }

.cta-section {
    background: var(--gold);
    padding: 3.5rem 1rem;
}
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 0.625rem;
}
.cta-sub {
    color: rgba(0,0,0,0.55);
    font-size: 0.9rem;
    max-width: 440px;
    margin: 0 auto 1.75rem;
    line-height: 1.65;
}
.btn-cta {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    background: #111;
    color: var(--gold);
    border: 1px solid #111;
    padding: 0.8rem 1.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition);
    min-height: 48px;
    text-decoration: none;
}
.btn-cta:hover {
    background: transparent;
    border-color: #111;
    color: #111;
}

footer {
    background-color: var(--surface) !important;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 0;
    overflow: hidden;
}
.footer-heading {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.8125rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    color: var(--muted);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.footer-links a {
    color: var(--muted) !important;
    text-decoration: none;
    transition: color var(--transition);
    overflow-wrap: break-word;
    word-break: break-word;
}
.footer-links a:hover { color: var(--gold) !important; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.125rem 0;
    margin-top: 2rem;
    text-align: center;
}

.floating-whatsapp {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: #fff;
    padding: 0.7rem 1.125rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    box-shadow: 0 4px 20px var(--wa-glow), 0 2px 8px rgba(0,0,0,0.15);
    transition: transform var(--transition), box-shadow var(--transition);
    font-family: var(--font-body);
    white-space: nowrap;
}
.floating-whatsapp i { font-size: 1.15rem; }
.floating-whatsapp:hover,
.floating-whatsapp:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.4), 0 4px 10px rgba(0,0,0,0.15);
    color: #fff;
}

@media (max-width: 575.98px) {
    .floating-whatsapp-text { display: none; }
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
    .floating-whatsapp i { font-size: 1.4rem; }
}

.anuncio-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.8125rem;
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color var(--transition);
}
.anuncio-back-link:hover { color: var(--gold); }
.anuncio-back-link i { font-size: 0.75rem; }

.anuncio-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
}
.anuncio-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 768px) {
    .anuncio-layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: 2rem;
    }
}

.anuncio-gallery-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    min-width: 0;
}
.modal-gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
@media (min-width: 768px) {
    .modal-gallery-main {
        height: 420px;
        aspect-ratio: unset;
    }
}
.modal-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem;
    overflow-x: auto;
    background: var(--surface-2);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.modal-thumbs::-webkit-scrollbar { display: none; }
.thumb-img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity var(--transition), border-color var(--transition);
}
.thumb-img:hover,
.thumb-img.active { opacity: 1; border-color: var(--gold); }

.anuncio-info-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    min-width: 0;
}
@media (min-width: 768px) {
    .anuncio-info-panel {
        position: sticky;
        top: 74px;
    }
}

.modal-category-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(212,175,55,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
    min-width: 0;
}

.modal-price {
    font-size: clamp(1.15rem, 5.5vw, 1.625rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.125rem;
    font-family: var(--font-body);
    letter-spacing: -0.025em;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}
.modal-price-consultar {
    font-size: 1.0625rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1.125rem;
}

.modal-specs {
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.125rem;
    border: 1px solid var(--border);
}
.modal-specs-heading {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem 0.875rem;
}
@media (max-width: 575.98px) {
    .specs-grid { grid-template-columns: 1fr; }
}
.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.spec-icon {
    color: var(--gold);
    font-size: 0.75rem;
    width: 14px;
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0.8;
}
.spec-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.spec-label {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
}
.spec-value {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.modal-description {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    overflow-wrap: break-word;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    min-height: 48px;
    transition: background var(--transition), transform var(--transition);
    font-family: var(--font-body);
}
.btn-whatsapp:hover {
    background: #1cb955;
    color: #fff;
    transform: translateY(-1px);
}
.btn-whatsapp i { font-size: 1.2rem; }

.anuncio-location-section {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.vitrine-map {
    width: 100%;
    height: 280px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: .625rem;
}

.link-integrux {
    transition: color 0.3s ease;
}
.link-integrux:hover {
    color: #2B4064 !important;
}

@media (min-width: 768px) {
    .vitrine-map { height: 340px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .anuncio-layout { grid-template-columns: 1fr; }
    .anuncio-info-panel { position: static; }
}

@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section { min-height: 100vw; }
}

@media (max-width: 767.98px) {
    .btn-filter { min-height: 38px; }
    .btn-detail  { min-height: 42px; }
    .anuncio-info-panel { padding: 1.125rem; }
    main.container { padding-bottom: 4.5rem; }
}

@media (max-width: 575.98px) {
    .anuncio-info-panel { padding: 1rem; }
    .modal-specs        { padding: 0.75rem; }

    .anuncio-location-section {
        margin-top: 1.125rem;
        padding-top: 0.875rem;
    }

    .modal-gallery-main { aspect-ratio: 16/10; }
}

@media (max-width: 375px) {
    .hero-title         { font-size: 2rem; }
    .anuncio-info-panel { padding: 0.875rem; }
    .modal-specs        { padding: 0.625rem; }
    .modal-price        { font-size: 1.15rem; }
}

@media (max-width: 320px) {
    .anuncio-info-panel { padding: 0.75rem; }
    .modal-specs        { padding: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.sobre-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.sobre-foto-col {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 420px;
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
}

.sobre-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.sobre-foto-col::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        var(--surface) 96%
    );
    pointer-events: none;
    z-index: 1;
}

.sobre-content {
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
}

.sobre-eyebrow {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.625rem;
}

.sobre-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 8vw, 3.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.sobre-creci-inline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.sobre-divider {
    margin: 0 0 1.5rem;
}

.sobre-text {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.82;
    margin-bottom: 0.875rem;
}

@media (min-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 500px;
    }

    .sobre-foto-col {
        aspect-ratio: unset;
        max-height: unset;
    }

    .sobre-foto-col::after {
        background: linear-gradient(
            to right,
            transparent 60%,
            var(--surface) 100%
        );
    }

    .sobre-content {
        padding: 3.5rem 2rem 3.5rem 1.5rem;
        justify-content: center;
        max-width: 580px;
    }

    .sobre-cta {
        width: auto;
        align-self: flex-start;
    }
}

@media (min-width: 1024px) {
    .sobre-content {
        padding: 4rem 3rem 4rem 1.5rem;
    }
}

.sobre-animate {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sobre-animate[data-anim="from-left"]  { transform: translateX(-24px); }
.sobre-animate[data-anim="from-right"] { transform: translateY(18px); }

@media (min-width: 768px) {
    .sobre-animate[data-anim="from-right"] { transform: translateX(24px); }
}

.sobre-animate.sobre-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .sobre-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}