/**
 * CEC Assessoria Imobiliaria — Estilos do Site Publico
 * Identidade Visual Premium: Vinho/Bordo (#4a1022), Dourado (#d4af37), Fundo Creme (#f7f2ed)
 */

:root {
    --wine: #4a1022;
    --wine-dark: #320815;
    --wine-light: #6a1631;
    --gold: #d4af37;
    --gold-light: #f5e4ab;
    --gold-dark: #a1811e;
    --cream: #f8f4f0;
    --cream-light: #fdfbf9;
    --ink: #2b1f24;
    --muted: #73656b;
    --line: #e8dedf;
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(45, 10, 20, 0.05);
    --shadow-md: 0 10px 30px rgba(45, 10, 20, 0.09);
    --shadow-lg: 0 20px 50px rgba(35, 7, 16, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    --transition: all 0.25s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, input, select, textarea {
    font: inherit;
}

h1, h2, h3, h4, .serif {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--wine);
}

/* Layout Container */
.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-wine {
    background-color: var(--wine);
    color: var(--white);
}
.btn-wine:hover {
    background-color: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background-color: var(--gold);
    color: #382500;
}
.btn-gold:hover {
    background-color: #dfbe4a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--wine);
}

.btn-outline-wine {
    background: transparent;
    border-color: var(--wine);
    color: var(--wine);
}
.btn-outline-wine:hover {
    background: var(--wine);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
}
.btn-whatsapp:hover {
    background-color: #1eb956;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Header & Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.nav-wrapper {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.desktop-nav a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    padding: 6px 0;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--wine);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-around;
    border-radius: var(--radius-sm);
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--wine);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 85vw);
    height: 100vh;
    background: var(--white);
    z-index: 200;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    transition: right 0.35s ease;
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(38, 8, 18, 0.6);
    backdrop-filter: blur(4px);
    z-index: 190;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
    display: block;
    opacity: 1;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.drawer-header img {
    height: 48px;
}

.drawer-close {
    background: none;
    border: 0;
    font-size: 32px;
    line-height: 1;
    color: var(--wine);
    cursor: pointer;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drawer-nav a {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    padding: 10px 0;
    border-bottom: 1px solid #f1eaed;
}

.drawer-nav a:hover {
    color: var(--wine);
    padding-left: 6px;
}

.drawer-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(74, 16, 34, 0.95) 0%, rgba(74, 16, 34, 0.82) 45%, rgba(0, 0, 0, 0.35) 100%),
                url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=85') center/cover no-repeat;
    color: var(--white);
    padding: 70px 0 110px;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-title {
    color: var(--white);
    font-size: 58px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Quick Search Box (Attached to Hero bottom) */
.quick-search-box {
    margin-top: -65px;
    position: relative;
    z-index: 10;
    background: var(--white);
    padding: 24px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.search-tab {
    padding: 8px 18px;
    background: #f0e7eb;
    color: var(--wine);
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-tab.active {
    background: var(--wine);
    color: var(--white);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: #fff;
    color: var(--ink);
    font-size: 14px;
}

.search-field select:focus,
.search-field input:focus {
    border-color: var(--wine);
    outline: none;
}

/* Services Section */
.section {
    padding: 85px 0;
}

.section-alt {
    background-color: var(--cream-light);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 40px;
    margin-top: 8px;
}

.kicker {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 16px;
    display: inline-block;
}

.service-card h3 {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

/* About Split Section */
.split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.split-photo {
    min-height: 480px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.split-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--gold);
}

.split-badge strong {
    display: block;
    color: var(--wine);
    font-size: 16px;
}

.split-badge span {
    color: var(--muted);
    font-size: 13px;
}

/* Property Cards & Vitrine */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-thumb {
    position: relative;
    height: 230px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.property-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.badge-tag {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-purpose {
    background: var(--wine);
    color: var(--white);
}

.badge-featured {
    background: var(--gold);
    color: #382500;
}

.badge-status {
    background: #2b1f24;
    color: #ffffff;
}

.property-code {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
    backdrop-filter: blur(4px);
}

.property-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-type {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 800;
    margin-bottom: 4px;
}

.property-title {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--wine);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.property-location {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-price {
    color: var(--wine);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.property-specs {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #f1eaed;
    border-bottom: 1px solid #f1eaed;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.property-specs span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.property-footer {
    margin-top: auto;
}

.property-footer .btn {
    width: 100%;
}

/* Callout Section */
.callout-section {
    background: linear-gradient(135deg, var(--wine-dark), var(--wine));
    padding: 80px 0;
    color: var(--white);
}

.callout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.callout-inner h2 {
    color: var(--white);
    font-size: 42px;
    max-width: 760px;
    margin: 8px 0 14px;
}

.callout-inner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 650px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.contact-form {
    display: grid;
    gap: 16px;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--wine);
    outline: none;
}

.contact-sidebar {
    background: var(--wine);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-sidebar h3 {
    color: var(--white);
    font-size: 32px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-item strong {
    color: var(--gold-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-info-item span {
    font-size: 16px;
}

/* ======================================================
   PROPERTY DETAIL PAGE (INSPIRADA EM PRALON IMÓVEIS)
   ====================================================== */
.detail-page {
    padding: 30px 0 70px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumbs a:hover {
    color: var(--wine);
}

.breadcrumbs span {
    color: #c0b0b6;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.detail-title-group h1 {
    font-size: 38px;
    margin: 8px 0;
}

.detail-pills {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-ref-badge {
    background: #f0e4e8;
    color: var(--wine);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.detail-price-box {
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    text-align: right;
}

.detail-price-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.detail-main-price {
    color: var(--wine);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin: 4px 0;
}

.detail-fees {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--muted);
    justify-content: flex-end;
}

/* Grand Gallery (Main + Thumbnails) */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-main {
    position: relative;
    height: 100%;
    cursor: pointer;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.gallery-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.gallery-secondary-item {
    position: relative;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.gallery-secondary-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-secondary-item:hover img {
    transform: scale(1.04);
}

.btn-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--wine);
    border: 1px solid var(--line);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-all-photos:hover {
    background: var(--wine);
    color: var(--white);
    transform: translateY(-2px);
}

/* Detail Main Layout: Left Content, Right Sticky Sidebar */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.detail-specs-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    margin-bottom: 36px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    border-right: 1px solid #f1eaed;
}

.spec-item:last-child {
    border-right: none;
}

.spec-icon {
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 2px;
}

.spec-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--wine);
}

.spec-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.detail-block {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    margin-bottom: 30px;
}

.detail-block h2 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5edef;
}

.detail-description p {
    color: #4b3e44;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fbf8f9;
    border: 1px solid #eee4e7;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.feature-tag span {
    font-size: 18px;
}

/* Location Map Placeholder */
.map-placeholder {
    height: 280px;
    background: #ebe4dc url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: var(--radius-sm);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.map-card {
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    backdrop-filter: blur(6px);
}

.map-card strong {
    display: block;
    color: var(--wine);
    font-size: 16px;
}

.map-card small {
    color: var(--muted);
}

/* Sticky Contact Card in Details Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 108px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.agent-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.agent-profile {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.agent-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.agent-info h4 {
    font-size: 18px;
    margin: 0 0 2px;
}

.agent-info small {
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}

.agent-bio {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.interest-form-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
}

.interest-form-box h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.interest-form-box p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.interest-form {
    display: grid;
    gap: 12px;
}

.interest-form input,
.interest-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.interest-form input:focus,
.interest-form textarea:focus {
    border-color: var(--wine);
    outline: none;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(14, 2, 6, 0.95);
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-topbar {
    position: absolute;
    top: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    z-index: 10;
}

.lightbox-counter {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.lightbox-close {
    background: transparent;
    border: 0;
    color: var(--white);
    font-size: 38px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.lightbox-stage {
    position: relative;
    max-width: 1080px;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-btn:hover {
    background: var(--gold);
    color: #000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-thumbs {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 90vw;
    padding: 10px;
}

.lightbox-thumb-item {
    width: 60px;
    height: 45px;
    border-radius: 3px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.lightbox-thumb-item.active,
.lightbox-thumb-item:hover {
    opacity: 1;
    border-color: var(--gold);
}

/* Listing Page Filters */
.listing-header {
    background: var(--white);
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 35px;
}

.filters-bar {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    margin-bottom: 30px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.filter-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 5px;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13px;
}

/* Footer */
.site-footer {
    background: var(--wine-dark);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: #c9bbc1;
    font-size: 14px;
    margin: 16px 0;
    line-height: 1.6;
}

.footer-title {
    color: var(--gold);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #d8c9cf;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #a89aa0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: var(--gold);
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--wine);
    color: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 10px;
    border-left: 4px solid var(--gold);
}

.toast-msg.show {
    display: flex;
}

/* ======================================================
   RESPONSIVIDADE (1440px, 1024px, 768px, 480px, 360px)
   ====================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .sticky-sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-cta {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .hero-section {
        min-height: 480px;
        padding: 50px 0 90px;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-subtitle {
        font-size: 17px;
    }
    .quick-search-box {
        margin-top: -45px;
        padding: 20px;
    }
    .search-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .split-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .split-photo {
        min-height: 320px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        height: 340px;
    }
    .gallery-secondary {
        display: none;
    }
    .detail-header {
        flex-direction: column;
    }
    .detail-price-box {
        width: 100%;
        text-align: left;
    }
    .detail-fees {
        justify-content: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 28px);
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .detail-title-group h1 {
        font-size: 26px;
    }
    .detail-main-price {
        font-size: 28px;
    }
    .detail-specs-bar {
        grid-template-columns: 1fr 1fr;
    }
    .callout-inner h2 {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .nav-wrapper {
        height: 72px;
    }
    .logo-img {
        height: 48px;
    }
    .hero-title {
        font-size: 26px;
    }
    .detail-specs-bar {
        grid-template-columns: 1fr;
    }
    .spec-item {
        border-right: none;
        border-bottom: 1px solid #f1eaed;
        padding-bottom: 8px;
    }
}


/* Avatar neutro para corretor sem foto */
.agent-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wine);
    color: #fff;
    flex: 0 0 68px;
}

.agent-avatar-placeholder svg {
    width: 34px;
    height: 34px;
}

/* Garante alternância correta entre foto e avatar neutro */
.agent-avatar[hidden],
.agent-avatar-placeholder[hidden] {
    display: none !important;
}
