/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #b10e10;
  --primary-dark: #7a0a0c;
  --primary-light: #d62828;
  --primary-soft: #FCE8E8;
  --primary-soft-2: #FFF5F5;
  --accent: #F97316;
  --accent-hover: #EA6C0A;
  --success: #16A34A;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .2s ease;
  --imovel-blue: #2563eb;
  --imovel-map-bg: #e4e6ec;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.1rem; font-weight: 600; }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: none; cursor: pointer; transition: all var(--transition); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,.4); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--bg); }
.badge { display: inline-block; padding: .25rem .75rem; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.badge-sale { background: var(--primary-soft); color: var(--primary-dark); }
.badge-rent { background: #D1FAE5; color: #065F46; }
.badge-launch { background: #FEF3C7; color: #92400E; }
.section { padding: 5rem 0; }
.section-title { font-weight: 800; color: var(--text); }
.section-subtitle { color: var(--text-muted); margin-top: .5rem; font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: var(--shadow); transition: box-shadow .3s ease; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-titles { display: flex; flex-direction: column; gap: .12rem; justify-content: center; min-width: 0; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon:has(img) { background: transparent; border-radius: 10px; }
.logo-icon img { width: 40px; height: 40px; object-fit: contain; display: block; border-radius: 10px; }
.logo-icon svg { width: 24px; height: 24px; fill: white; }
.logo-wordmark { height: 28px; width: auto; max-width: min(200px, 42vw); object-fit: contain; object-position: left center; display: block; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--primary); transition: color var(--transition); }
.logo-subtitle { font-size: .7rem; color: var(--text-muted); font-weight: 500; display: block; line-height: 1; }
.nav { display: flex; align-items: center; gap: 0; }
.nav-link { padding: .5rem 1rem; font-size: .9rem; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); transition: all var(--transition); position: relative; }
.nav-link:hover { color: var(--primary); background: var(--bg); }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu { position: absolute; top: calc(100% + .5rem); left: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 180px; padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--transition); }
.dropdown-menu a { display: block; padding: .6rem 1rem; border-radius: var(--radius-sm); font-size: .875rem; color: var(--text); font-weight: 500; }
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-area-cliente { background: var(--primary); color: #fff; padding: .5rem 1.2rem; border-radius: 100px; font-size: .875rem; font-weight: 600; border: 1.5px solid var(--primary); transition: all var(--transition); }
.nav-area-cliente:hover { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background-color: var(--primary-dark);
  background-image: url('../images/ComfyUI_00101_.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* vinheta leve em vermelho — deixa a foto aparecer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(122, 10, 12, 0.42) 0%,
    rgba(177, 14, 16, 0.32) 45%,
    rgba(214, 40, 40, 0.22) 100%
  );
  z-index: 0;
}
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hero-shape { position: absolute; border-radius: 50%; opacity: .08; background: #fff; }
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-tag { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: .4rem 1rem; border-radius: 100px; font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: .05em; text-transform: uppercase; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 500px; }

/* Search box */
.search-box { background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); max-width: 780px; }
.search-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.search-tab { flex: 1; padding: .75rem; text-align: center; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; cursor: pointer; border: 2px solid var(--border); color: var(--text-muted); transition: all var(--transition); }
.search-tab.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.search-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.search-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: .75rem; margin-bottom: 1rem; }
.search-field { display: flex; flex-direction: column; gap: .3rem; }
.search-field label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.search-field select, .search-field input { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); background: var(--bg); transition: border-color var(--transition); outline: none; appearance: none; -webkit-appearance: none; }
.search-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.search-field select:focus, .search-field input:focus { border-color: var(--primary); background: #fff; }
.search-row-2 { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: end; }
.search-code { display: flex; flex-direction: column; gap: .3rem; }
.search-code label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.search-code input { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); background: var(--bg); outline: none; transition: border-color var(--transition); }
.search-code input:focus { border-color: var(--primary); background: #fff; }
.btn-search { background: var(--accent); color: #fff; padding: .75rem 2rem; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem; border: none; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: .5rem; white-space: nowrap; height: fit-content; }
.btn-search:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(249,115,22,.4); }
.hero-stats { display: flex; gap: 3rem; margin-top: 2rem; }
.stat { text-align: left; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 500; }

/* ===== QUICK CATEGORIES ===== */
.categories { padding: 3.5rem 0; background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2rem; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.5rem 1rem; border-radius: var(--radius); border: 1.5px solid var(--border); cursor: pointer; transition: all var(--transition); text-align: center; }
.cat-card:hover { border-color: var(--primary); background: var(--primary-soft-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: all var(--transition); }
.cat-icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--transition); }
.cat-card:hover .cat-icon { background: var(--primary); }
.cat-card:hover .cat-icon svg { stroke: #fff; }
.cat-name { font-size: .85rem; font-weight: 600; color: var(--text); }
.cat-count { font-size: .75rem; color: var(--text-muted); }

/* ===== PROPERTY CARD (novo padrão QuintoAndar) ===== */
/* overflow só na imagem — overflow:hidden no card inteiro quebra altura de linha no CSS Grid (min-size auto). */
.prop-card-v { background: #fff; border-radius: 12px; overflow: visible; cursor: pointer; transition: border-color .2s, box-shadow .2s; border: 2px solid transparent; display: flex; flex-direction: column; align-self: stretch; }
.prop-card-v:hover { border-color: var(--primary); box-shadow: 0 6px 24px rgba(177,14,16,.15); }

/* imagem */
.pcv-img { position: relative; height: 190px; overflow: hidden; flex-shrink: 0; border-radius: 12px 12px 0 0; background: var(--primary-soft-2); }
.pcv-img img,
.pcv-img .pcv-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.prop-card-v:hover .pcv-img img,
.prop-card-v:hover .pcv-img .pcv-photo { transform: scale(1.06); }
.pcv-img--rent::after,
.pcv-img--launch::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.pcv-img--rent::after { background: linear-gradient(180deg, rgba(209, 250, 229, 0.35) 0%, transparent 55%); }
.pcv-img--launch::after { background: linear-gradient(180deg, rgba(254, 243, 199, 0.45) 0%, transparent 55%); }
.pcv-badge { z-index: 2; }
.pcv-dots { z-index: 2; }
.pcv-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2)); }
.pcv-placeholder svg { width: 50px; height: 50px; opacity: .2; }

/* badge branco */
.pcv-badge { position: absolute; top: .65rem; left: .65rem; background: #fff; color: #0F172A; font-size: .75rem; font-weight: 600; padding: .28rem .7rem; border-radius: 100px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* dots */
.pcv-dots { position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.pcv-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); }
.pcv-dot.active { background: #fff; width: 8px; height: 8px; }

/* corpo — flex:1 iguala altura entre cards na mesma linha da grade */
.pcv-body { padding: .85rem; flex: 1 1 auto; min-width: 0; min-height: min-content; display: flex; flex-direction: column; justify-content: flex-start; background: #fff; border-radius: 0 0 12px 12px; }
.pcv-desc { font-size: .8rem; color: var(--primary); line-height: 1.45; margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcv-desc:hover { text-decoration: underline; }
.pcv-price { font-size: 1.15rem; font-weight: 800; color: #0F172A; display: flex; align-items: baseline; gap: .35rem; line-height: 1.2; }
.pcv-price-label { font-size: .82rem; font-weight: 400; color: #0F172A; }
.pcv-total-row { display: flex; align-items: center; justify-content: space-between; margin-top: .25rem; margin-bottom: .75rem; }
.pcv-total { font-size: .775rem; color: #64748B; }
.pcv-fav-body { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; transition: all .2s; flex-shrink: 0; }
.pcv-fav-body:hover { background: #FEE2E2; }
.pcv-fav-body svg { width: 20px; height: 20px; stroke: #64748B; fill: none; stroke-width: 1.8; }
.pcv-fav-body.active svg { stroke: #EF4444; fill: #EF4444; }
.pcv-feats { font-size: .82rem; color: #0F172A; font-weight: 700; letter-spacing: -.01em; margin-bottom: .25rem; }
.pcv-address { font-size: .775rem; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== SECTIONS ===== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.see-all { display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--primary); transition: gap var(--transition); }
.see-all:hover { gap: .7rem; }
.see-all svg { width: 16px; height: 16px; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.step { text-align: center; padding: 2rem 1rem; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; margin: 0 auto 1.5rem; position: relative; }
.step-num::after { content: ''; position: absolute; right: -100%; top: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.step:last-child .step-num::after { display: none; }
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .875rem; color: var(--text-muted); }

/* ===== ADVERTISE CTA ===== */
.cta-anunciar { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 5rem 0; position: relative; overflow: hidden; }
.cta-anunciar::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.05); }
.cta-anunciar-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; position: relative; z-index: 1; }
.cta-anunciar h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-anunciar p { color: rgba(255,255,255,.75); margin-top: .5rem; }
.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* ===== ABOUT STRIP ===== */
.about-strip { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img { border-radius: var(--radius-lg); overflow: hidden; height: 380px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; }
.about-img svg { width: 120px; height: 120px; fill: rgba(255,255,255,.3); }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.about-hl { display: flex; align-items: flex-start; gap: .75rem; }
.about-hl-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-hl-icon svg { width: 18px; height: 18px; fill: var(--primary); }
.about-hl-text h4 { font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.about-hl-text p { font-size: .8rem; color: var(--text-muted); }
.creci { display: inline-flex; align-items: center; gap: .5rem; background: var(--bg); border: 1.5px solid var(--border); padding: .5rem 1rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer { background: #0F172A; color: #94A3B8; }
.footer-top { padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-subtitle { color: #64748B; }
.footer-desc { font-size: .875rem; margin: 1rem 0 1.5rem; line-height: 1.7; }
.social-links { display: flex; gap: .75rem; }
.social-link { width: 38px; height: 38px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.social-link:hover { background: var(--primary); color: #fff; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-size: .875rem; color: #64748B; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: #64748B; margin-bottom: .75rem; }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--primary-light); fill: none; flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 1.5rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: .8rem; color: #475569; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .8rem; color: #475569; transition: color var(--transition); }
.footer-bottom-links a:hover { color: #fff; }

/* ===== COOKIE BANNER ===== */
.cookie-banner { position: fixed; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; max-width: 600px; background: #1E293B; color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; z-index: 999; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1.5rem; transform: translateY(120%); transition: transform .4s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .85rem; color: #CBD5E1; flex: 1; }
.cookie-banner p a { color: var(--primary-light); text-decoration: underline; }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.cookie-btns button { padding: .5rem 1.2rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; border: none; cursor: pointer; transition: all var(--transition); }
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: var(--accent-hover); }
.cookie-decline { background: rgba(255,255,255,.1); color: #CBD5E1; }
.cookie-decline:hover { background: rgba(255,255,255,.2); }

/* ===== MOBILE MENU ===== */
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: all var(--transition); }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; background: #fff; padding: 2rem; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-close { align-self: flex-end; padding: .5rem; cursor: pointer; }
.mobile-close svg { width: 24px; height: 24px; stroke: var(--text); fill: none; }
.mobile-nav-link { display: block; padding: .875rem 0; font-size: 1rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 8rem 0 4rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,.06); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: .75rem; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }

/* ===== SEARCH PAGE ===== */
.search-page { min-height: 100vh; padding-top: 72px; }
.search-filters-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 1.25rem 0; position: sticky; top: 72px; z-index: 100; box-shadow: var(--shadow-sm); }
.filters-row { display: flex; gap: 1rem; align-items: center; overflow-x: auto; }
.filter-chip { display: flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border: 1.5px solid var(--border); border-radius: 100px; font-size: .85rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: all var(--transition); background: #fff; color: var(--text); }
.filter-chip:hover, .filter-chip.active { border-color: var(--primary); background: var(--primary-soft-2); color: var(--primary); }
.filter-chip svg { width: 14px; height: 14px; }
.search-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; padding: 2rem 0; }
.filter-sidebar { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: 148px; }
.filter-sidebar h3 { margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 1.5rem; }
.filter-group h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: .75rem; }
.filter-group select, .filter-group input[type="text"] { width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; color: var(--text); outline: none; background: var(--bg); }
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.range-inputs input { width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; outline: none; }
.range-inputs input:focus { border-color: var(--primary); }
.bedroom-btns { display: flex; gap: .4rem; }
.bedroom-btn { flex: 1; padding: .5rem; text-align: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); background: #fff; }
.bedroom-btn:hover, .bedroom-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.results-count { font-size: .9rem; color: var(--text-muted); }
.results-count strong { color: var(--text); }
.sort-select { padding: .5rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; outline: none; cursor: pointer; }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.load-more { text-align: center; margin-top: 2.5rem; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 4rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start; }
.contact-card-icon { width: 44px; height: 44px; background: var(--primary-soft); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; }
.contact-card h4 { font-size: .875rem; font-weight: 700; margin-bottom: .25rem; }
.contact-card p, .contact-card a { font-size: .875rem; color: var(--text-muted); }
.contact-card a:hover { color: var(--primary); }
.contact-form { background: #fff; border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm); }
.contact-form h2 { margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; color: var(--text); outline: none; background: var(--bg); transition: border-color var(--transition); font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== ABOUT PAGE ===== */
.about-section { padding: 4rem 0; }
.about-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.value-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); text-align: center; }
.value-card-icon { width: 60px; height: 60px; background: var(--primary-soft); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.value-card-icon svg { width: 28px; height: 28px; stroke: var(--primary); fill: none; }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { font-size: .875rem; color: var(--text-muted); line-height: 1.7; }
.team-section { padding: 4rem 0; background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.team-card { text-align: center; }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: #fff; }
.team-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.team-card p { font-size: .8rem; color: var(--text-muted); }

/* ===== ADVERTISE PAGE ===== */
.anunciar-section { padding: 4rem 0; }
.anunciar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.anunciar-benefits { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit-icon { width: 44px; height: 44px; background: var(--primary-soft); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-icon svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; }
.benefit h4 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.benefit p { font-size: .85rem; color: var(--text-muted); }

/* ===== AREA DO CLIENTE ===== */
.auth-page { min-height: 100vh; padding-top: 72px; background: var(--bg); display: flex; align-items: center; justify-content: center; padding-bottom: 4rem; }
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; background: var(--bg); padding: .25rem; border-radius: var(--radius-sm); }
.auth-tab { flex: 1; padding: .65rem; text-align: center; border-radius: 6px; font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: all var(--transition); border: none; background: transparent; }
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* ===== PRIVACY PAGE ===== */
.privacy-section { padding: 4rem 0; max-width: 800px; margin: 0 auto; }
.privacy-section h2 { margin-bottom: 1rem; margin-top: 2.5rem; font-size: 1.2rem; }
.privacy-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .search-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { height: 260px; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav-area-cliente { display: none; }
  .hamburger { display: flex; }
  .cta-anunciar-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .anunciar-grid { grid-template-columns: 1fr; }
  .about-page-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.4rem; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4, .results-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr; }
  .search-row-2 { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .search-box { padding: 1.25rem; border-radius: var(--radius); }
  .hero { padding-top: 96px; }
  .hero-tag { font-size: .65rem; padding: .3rem .75rem; margin-bottom: 1rem; }
  .hero h1 { font-size: 1.5rem; margin-bottom: .75rem; }
  .hero-sub { font-size: .9rem; margin-bottom: 1.75rem; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; text-align: center; }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: .7rem; }
  .categories { padding-top: 5rem; }
  .cookie-banner { flex-direction: column; }
  .cookie-btns { width: 100%; }
  .cookie-btns button { flex: 1; }
}

.form-flash {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.form-flash--ok {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}
.form-flash--err {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}
.db-warning {
  background: #FEF3C7;
  color: #92400E;
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  border-bottom: 1px solid #FCD34D;
}
.db-warning a {
  color: var(--primary);
  font-weight: 700;
}

.prop-card-v[data-href] { cursor: pointer; }

/* ===== PÁGINA DETALHE DO IMÓVEL (estilo portal) ===== */
.imovel-page { background: #fff; padding-top: 72px; }
.imovel-gallery-wrap {
  position: relative;
  background: #0f172a;
}
.imovel-gallery-count {
  position: absolute;
  bottom: 7.5rem;
  left: 1.25rem;
  z-index: 7;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  pointer-events: none;
}
@media (max-width: 768px) {
  .imovel-gallery-count { bottom: 6.5rem; left: 0.75rem; font-size: 0.72rem; }
}
.imovel-gnav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.imovel-gnav:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
.imovel-gnav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.imovel-gnav[hidden] {
  display: none;
}
.imovel-gnav--prev { left: 0.75rem; }
.imovel-gnav--next { right: 0.75rem; }
@media (max-width: 480px) {
  .imovel-gnav { width: 40px; height: 40px; }
  .imovel-gnav--prev { left: 0.35rem; }
  .imovel-gnav--next { right: 0.35rem; }
}
.imovel-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 3.5rem;
  padding-inline: 3.25rem;
  scrollbar-width: thin;
  min-height: 320px;
  max-height: 52vh;
  outline: none;
}
@media (max-width: 480px) {
  .imovel-gallery {
    padding-inline: 2.85rem;
    scroll-padding-inline: 3rem;
  }
}
.imovel-gallery::-webkit-scrollbar { height: 6px; }
.imovel-gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
.imovel-slide {
  flex: 0 0 72%;
  max-width: 900px;
  scroll-snap-align: start;
  min-height: 280px;
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
  position: relative;
}
.imovel-slide:first-child { border-radius: 0 var(--radius) var(--radius) 0; }
.imovel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
.imovel-slide-ph {
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imovel-slide-ph svg { width: 64px; height: 64px; opacity: 0.35; fill: #fff; }
.imovel-gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(15,23,42,.92));
  pointer-events: none;
}
.imovel-gallery-overlay .container { pointer-events: auto; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.imovel-hero-title {
  color: #fff;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 720px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.imovel-hero-price {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-top: 0.5rem;
}
.imovel-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.imovel-hero-actions .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(249,115,22,.45);
}
.imovel-hero-actions .btn-outline {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.imovel-hero-actions .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}
.imovel-gallery-tools {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.imovel-gtool {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.imovel-gtool svg { width: 18px; height: 18px; stroke: var(--text); fill: none; }
.imovel-gtool.active svg { fill: var(--primary); stroke: var(--primary); }
.imovel-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.imovel-main { min-width: 0; }

/* .imovel-map-hero e .imovel-addr-* definidos em imovel-endereco-mapa.php (Leaflet inline) */

.imovel-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1rem;
  margin: 1.75rem 0 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .imovel-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.imovel-spec-cell {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
}
.imovel-spec-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
}
.imovel-spec-ic svg {
  width: 22px;
  height: 22px;
}
.imovel-spec-main {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}
.imovel-spec-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 600;
}

.imovel-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.imovel-pill-id {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}
.imovel-pub-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.imovel-pub-date svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.imovel-desc-wrap {
  position: relative;
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.imovel-desc-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.imovel-desc-wrap.imovel-desc-wrap--open {
  max-height: 5000px;
}
.imovel-desc-wrap.imovel-desc-wrap--open::after {
  display: none;
}
.imovel-desc-p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1rem;
}
.imovel-owner-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.5rem 0 0.65rem;
}
.imovel-owner-text {
  margin-bottom: 0;
}
.imovel-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.55rem 1.15rem;
  border-radius: 100px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.imovel-toggle-pill:hover {
  border-color: var(--imovel-blue);
  color: var(--imovel-blue);
}
.imovel-toggle-chev {
  transition: transform 0.25s ease;
}

.imovel-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.imovel-breadcrumb a { color: var(--accent); font-weight: 600; }
.imovel-breadcrumb svg { width: 14px; height: 14px; opacity: 0.5; }
.imovel-section-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.imovel-amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}
@media (max-width: 640px) {
  .imovel-amenities { grid-template-columns: 1fr; }
}
.imovel-amenities h3 { font-size: 0.85rem; font-weight: 800; margin-bottom: 0.75rem; color: var(--text); }
.imovel-amenities ul { font-size: 0.875rem; }
.imovel-amenities li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  color: var(--text-muted);
}
.imovel-amenities li svg { flex-shrink: 0; width: 16px; height: 16px; }
.imovel-amenities .ok svg { stroke: var(--imovel-blue); }
.imovel-amenities .no svg { stroke: #94a3b8; opacity: 0.85; }
.imovel-analysis {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.imovel-analysis h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.imovel-analysis p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.imovel-gauge {
  height: 10px;
  background: linear-gradient(90deg, #D1FAE5 0%, #FEF3C7 45%, #FEE2E2 100%);
  border-radius: 100px;
  position: relative;
  margin-bottom: 0.75rem;
}
.imovel-gauge-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  left: 42%;
}
.imovel-similares { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.imovel-similares h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.25rem; }
.imovel-similares .grid-3 { align-items: stretch; }
.imovel-sidebar {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.imovel-sidebar-price { font-size: 1.75rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.imovel-sidebar-lines { margin: 1.25rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.imovel-sidebar-lines div { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: var(--text-muted); }
.imovel-sidebar-lines div:last-child { margin-bottom: 0; }
.imovel-sidebar-lines strong { color: var(--text); font-weight: 700; }
.imovel-sidebar-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.imovel-sidebar .btn-primary { width: 100%; justify-content: center; padding: 1rem; margin-bottom: 0.65rem; }
.imovel-sidebar .btn-outline { width: 100%; justify-content: center; padding: 0.85rem; border-color: var(--border); color: var(--text); }
.imovel-sidebar .btn-outline:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.imovel-sidebar-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.imovel-sidebar-links button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.imovel-sidebar-links button:hover { color: var(--accent); }
@media (max-width: 1024px) {
  .imovel-detail-grid { grid-template-columns: 1fr; }
  .imovel-sidebar { position: static; order: -1; }
}

/* ── Pills (mobile only) ────────────────────────────── */
.imovel-gallery-pills {
  display: none;
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  gap: 0.5rem;
  z-index: 6;
  white-space: nowrap;
}
.imovel-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  font-family: inherit;
  transition: background 0.15s;
}
.imovel-pill-btn:hover { background: #fff; }
.imovel-pill-btn svg { flex-shrink: 0; }

/* Botão voltar: visível só mobile */
.imovel-gtool-back { display: none; }

/* ── Mobile imovel layout ───────────────────────────── */
@media (max-width: 1024px) {
  /* Esconde header na página de imóvel */
  body.imovel-page .header { display: none; }
  /* Galeria ocupa o topo absoluto, 1 foto grande */
  .imovel-page { padding-top: 0; }
  .imovel-gallery-wrap { min-height: 60vh; }
  .imovel-gallery {
    padding-inline: 0;
    scroll-padding-inline: 0;
    gap: 0;
    height: 60vh;
    min-height: 60vh;
    max-height: 60vh;
    scrollbar-width: none;
  }
  .imovel-gallery::-webkit-scrollbar { display: none; }
  .imovel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-height: 60vh;
    border-radius: 0;
  }
  .imovel-slide img { min-height: 60vh; }

  /* Botão voltar flutua sobre a imagem à esquerda */
  .imovel-gtool-back {
    display: flex;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 9;
  }

  /* Overlay sobe para o topo */
  .imovel-gallery-overlay {
    top: 0;
    bottom: auto;
    padding: 4.5rem 1rem 1.5rem;
    background: linear-gradient(rgba(15,23,42,.6) 0%, transparent 100%);
  }
  .imovel-hero-title {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }
  /* Preço e CTAs somem do overlay — aparecem no card abaixo */
  .imovel-hero-price,
  .imovel-hero-actions { display: none; }

  /* Pills aparecem */
  .imovel-gallery-pills { display: flex; }
  .imovel-gallery-count { display: none; }

  /* Sidebar card limpo, sem borda/sombra */
  .imovel-sidebar {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 1.35rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
  }
  .imovel-sidebar-price { font-size: 2rem; }

  /* Botões pill-shaped */
  .imovel-sidebar .btn-primary,
  .imovel-sidebar .btn-outline {
    border-radius: 100px;
    font-size: 0.95rem;
  }
  .imovel-sidebar .btn-primary { margin-top: 1.1rem; }

  /* Botão WhatsApp */
  .imovel-btn-wpp { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; }
}
