:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --soft: #f3f1ec;
  --ink: #131a2b;
  --ink-2: #4a4e54;
  --muted: #7b8087;
  --line: #e6e3dd;
  --dark: #0a1a3e;
  --accent: #9a7b45;
  --accent-dark: #7a5f30;
  --wa: #1f7a4d;
  --wa-dark: #186540;
  --line-strong: #d3cfc7;
  --primary: #131a2b;
  --on-primary: #fff;
  --header-bg: rgba(251, 250, 248, .96);
  --brand: #081c4a;
  --tag-bg: #f1e9dc;
  --ok-bg: #e7f1ea;
  --err-bg: #fbeeea;
  --err-line: #ecc8bd;
  --err-ink: #8a2e16;
  --r: 3px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .05), 0 4px 14px rgba(20, 20, 20, .04);
  --shadow-up: 0 2px 4px rgba(20, 20, 20, .06), 0 10px 26px rgba(20, 20, 20, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrapw: 1200px;
  --headh: 68px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1424;
  --surface: #151c2f;
  --soft: #111828;
  --ink: #eceef3;
  --ink-2: #b6bccb;
  --muted: #8b93a5;
  --line: #252d43;
  --line-strong: #3a4360;
  --dark: #070c1a;
  --accent: #c7aa74;
  --accent-dark: #d6bc8a;
  --primary: #c7aa74;
  --on-primary: #0e1424;
  --header-bg: rgba(14, 20, 36, .95);
  --brand: #f1ece0;
  --tag-bg: #2a2417;
  --ok-bg: #16301f;
  --err-bg: #34191a;
  --err-line: #5a2c2c;
  --err-ink: #f0b3a3;
  --wa: #23895a;
  --wa-dark: #1d7449;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-up: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 26px rgba(0, 0, 0, .4);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; background: var(--soft); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(100% - 40px, var(--wrapw)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted-light { color: #a9adb3; font-size: .9rem; }
[hidden] { display: none !important; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; font: 500 .95rem/1 var(--sans); cursor: pointer; transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.18); }
:root[data-theme="dark"] .btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--surface); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-light { background: #fff; color: #131a2b; }
.btn-light:hover { background: var(--soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--accent-dark); white-space: nowrap; }
.link-arrow svg { width: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--headh); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: .06em; color: var(--brand); }
.brand img { width: 38px; height: auto; background: none; }
:root[data-theme="dark"] .hero-img, :root[data-theme="dark"] .card-media img, :root[data-theme="dark"] .cat img, :root[data-theme="dark"] .g-item img { filter: brightness(.92); }
.brand-foot { color: #fff; }
.brand-foot img { width: 44px; }
.header-right { display: flex; align-items: center; gap: 6px; }
.nav { display: flex; gap: 6px; }
.theme-toggle { background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; border-radius: 50%; transition: color .15s, background .15s; }
.theme-toggle:hover { color: var(--ink); background: var(--soft); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav a { padding: 8px 14px; font-size: .93rem; color: var(--ink-2); position: relative; transition: color .15s; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg:last-child { display: none; }
.nav-toggle[aria-expanded="true"] svg:first-child { display: none; }
.nav-toggle[aria-expanded="true"] svg:last-child { display: block; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a2c2f; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #2a2c2f; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,.25) 0%, rgba(15,15,16,.55) 100%); }
.hero-in { position: relative; padding: 90px 0 48px; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero-sub { margin-top: 14px; max-width: 46ch; font-size: 1.1rem; color: #ecebe8; }
.quick { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 1px; background: var(--surface); padding: 12px; border-radius: var(--r); max-width: 820px; align-items: end; gap: 12px; box-shadow: var(--shadow-up); }
.quick label { display: grid; gap: 4px; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.quick select { height: 48px; }

/* Seções */
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.eyebrow { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.eyebrow-light { color: #c9a878; }
.lede { color: var(--ink-2); max-width: 60ch; margin-top: 12px; font-size: 1.05rem; }
.lede-light { color: #c9ccd1; max-width: 56ch; margin-top: 14px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.contact-box { background: var(--surface); border: 1px solid var(--line); padding: 32px; border-radius: var(--r); box-shadow: var(--shadow); }
.contact-box h2, .contact-box h3 { font-size: 1.5rem; }
.contact-box p { color: var(--ink-2); margin-top: 10px; }
.empty { color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; display: flex; flex-direction: column; position: relative; }
.card:hover { box-shadow: var(--shadow-up); transform: translateY(-2px); border-color: var(--line-strong); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.badge { position: absolute; left: 12px; top: 12px; background: var(--primary); color: var(--on-primary); font-size: .72rem; font-weight: 500; letter-spacing: .04em; padding: 5px 10px; border-radius: 2px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-tags { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-tags i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.card-title { font-size: 1.28rem; margin-top: 8px; }
.card-title a::after { content: ''; position: absolute; inset: 0; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.card-loc svg { width: 16px; height: 16px; color: var(--muted); }
.card-price { font-family: var(--serif); font-size: 1.6rem; margin-top: 14px; color: var(--ink); }
.specs { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; }
.specs li { display: flex; align-items: center; gap: 6px; }
.specs svg { width: 18px; height: 18px; color: var(--muted); }
.card-code { margin-top: auto; padding-top: 14px; font-size: .78rem; color: var(--muted); }

/* Categorias */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); background: var(--dark); }
.cat img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--ease), opacity .3s; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(12,12,13,.72)); }
.cat:hover img { transform: scale(1.04); opacity: 1; }
.cat-text { position: absolute; left: 20px; bottom: 16px; right: 20px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.cat-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.cat-text small { font-size: .82rem; color: #d7d9dc; }

/* Cabeçalho de página */
.page-head { padding: 34px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.page-head .lede { margin-top: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs > *:not(:last-child)::after { content: '/'; margin-left: 8px; opacity: .5; }

/* Formulários */
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); height: 46px; padding: 0 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 12px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8087' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; padding-right: 34px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140, 106, 63, .15); }
label { display: grid; gap: 6px; font-size: .86rem; color: var(--ink-2); font-weight: 500; }

/* Catálogo */
.catalog { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 36px 0 80px; align-items: start; }
.filters { position: sticky; top: calc(var(--headh) + 20px); max-height: calc(100vh - var(--headh) - 40px); display: flex; }
.filters-form { display: flex; flex-direction: column; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); max-height: inherit; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 1.25rem; }
.filters-head .icon-btn { display: none; }
.filters-body { padding: 4px 20px; overflow-y: auto; flex: 1; }
.fgroup { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 16px 0; display: grid; gap: 12px; min-width: 0; }
.fgroup:last-child { border-bottom: 0; }
.fgroup legend { font-size: .86rem; font-weight: 500; color: var(--ink-2); padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.fgroup.pair { grid-template-columns: 1fr 1fr; }
.fgroup.pair legend { grid-column: 1 / -1; }
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { font-size: .86rem; font-weight: 500; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.seg-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg-in label { display: block; }
.seg-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-in span { display: block; text-align: center; padding: 9px 0; font-size: .85rem; cursor: pointer; border-left: 1px solid var(--line-strong); color: var(--ink-2); transition: background .15s, color .15s; }
.seg-in label:first-child span { border-left: 0; }
.seg-in span:hover { background: var(--soft); }
.seg-in input:checked + span { background: var(--primary); color: var(--on-primary); }
.seg-in input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.comod summary { cursor: pointer; font-size: .86rem; font-weight: 500; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.comod summary::-webkit-details-marker { display: none; }
.comod summary::after { content: '+'; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.comod[open] summary::after { content: '−'; }
.comod summary em { font-style: normal; background: var(--accent); color: #fff; border-radius: 10px; font-size: .72rem; padding: 1px 8px; margin-left: 8px; margin-right: auto; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .86rem; cursor: pointer; }
.check input { width: 17px; height: 17px; padding: 0; accent-color: var(--ink); flex: none; }
.filters-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.link-clear { font-size: .86rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.filters-overlay { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.count { color: var(--ink-2); }
.count strong { color: var(--ink); font-weight: 600; transition: color .2s; }
.count strong.flash { color: var(--accent); }
.results-tools { display: flex; gap: 10px; align-items: center; }
.sort select { height: 40px; font-size: .9rem; min-width: 170px; }
.only-mobile { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border: 1px solid var(--line-strong); border-radius: 30px; font-size: .82rem; color: var(--ink-2); background: var(--surface); transition: border-color .15s, color .15s; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }
.chips svg { width: 14px; height: 14px; }
.results .grid { grid-template-columns: repeat(2, 1fr); }
.empty-box { background: var(--surface); border: 1px dashed var(--line-strong); padding: 48px 28px; text-align: center; border-radius: var(--r); }
.empty-box h2 { font-size: 1.5rem; }
.empty-box p { color: var(--ink-2); max-width: 46ch; margin: 10px auto 0; }
.empty-box .btn-row { justify-content: center; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager .gap { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); font-size: .92rem; color: var(--ink-2); transition: border-color .15s, background .15s; }
.pager .gap { border: 0; background: none; min-width: 24px; }
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pager svg { width: 18px; }

/* Detalhe */
.detail-top { padding-top: 22px; }
.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; border-radius: var(--r); overflow: hidden; }
.g-item { padding: 0; border: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.g-item:hover img { transform: scale(1.03); filter: brightness(.95); }
.g-main { grid-row: 1 / 3; }
.g-hidden { display: none; }
.gallery.n1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.gallery.n1 .g-main { grid-row: auto; }
.gallery.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 460px; }
.gallery.n2 .g-main { grid-row: auto; }
.gallery.n3 { grid-template-columns: 2fr 1fr; }
.g-more { position: absolute; right: 14px; bottom: 14px; background: rgba(20,20,22,.85); color: #fff; font-size: .82rem; padding: 6px 12px; border-radius: 2px; pointer-events: none; }
.g-counter { display: none; }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 56px; padding: 36px 0 70px; align-items: start; }
.detail-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-top: 10px; }
.card-loc.big { font-size: 1.02rem; margin-top: 10px; }
.special { display: inline-block; margin-top: 16px; padding: 6px 12px; background: var(--tag-bg); color: var(--accent-dark); font-size: .85rem; font-weight: 500; border-radius: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 0; border-radius: var(--r); overflow: hidden; }
.fact { background: var(--surface); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.fact svg { color: var(--accent); width: 22px; height: 22px; }
.fact strong { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.fact span { font-size: .8rem; color: var(--muted); }
.block { margin-top: 44px; }
.block h2 { font-size: 1.55rem; margin-bottom: 16px; }
.prose p { color: var(--ink-2); max-width: 68ch; }
.prose p + p { margin-top: 14px; }
.prose-p { color: var(--ink-2); margin-top: 12px; max-width: 68ch; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.feat svg { color: var(--accent); width: 18px; margin-top: 3px; }
.dl { display: flex; gap: 40px; flex-wrap: wrap; margin: 0; }
.dl dt { font-size: .8rem; color: var(--muted); }
.dl dd { margin: 2px 0 0; font-weight: 500; }
.map { aspect-ratio: 16 / 8; background: var(--soft); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-note { font-size: .86rem; color: var(--muted); margin-top: 10px; }
.updated { margin-top: 40px; font-size: .82rem; color: var(--muted); }
.detail-side { position: sticky; top: calc(var(--headh) + 20px); }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.buy-label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.buy-price { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; margin-top: 6px; }
.buy-sub { color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.buy-actions { display: grid; gap: 10px; margin-top: 22px; }
.buy-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.mobile-bar { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox::backdrop { background: rgba(10, 10, 11, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; max-width: min(94vw, 1400px); }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; margin: 0 auto; object-fit: contain; background: transparent; }
.lightbox figcaption { margin-top: 12px; font-size: .88rem; color: #c8cacd; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Formulário de contato */
.form-page { padding: 40px 0 90px; max-width: 820px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 34px; display: grid; gap: 16px; }
.form legend { font-family: var(--serif); font-size: 1.4rem; padding: 0; margin-bottom: 16px; float: left; width: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols.c3 { grid-template-columns: repeat(3, 1fr); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.fine { font-size: .82rem; color: var(--muted); max-width: 44ch; }
.form-errors { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); padding: 14px 18px; border-radius: var(--r); margin-bottom: 24px; font-size: .92rem; }
.form-errors ul { list-style: disc; padding-left: 18px; }
.form input[aria-invalid="true"] { border-color: #b8442a; }
.confirm { text-align: center; padding: 56px 20px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); animation: fade .35s var(--ease); }
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--wa); display: grid; place-items: center; margin: 0 auto 18px; }
.confirm-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.confirm p { color: var(--ink-2); max-width: 46ch; margin: 10px auto 0; }
.confirm .btn-row { justify-content: center; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Contato */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 44px 0 90px; align-items: start; }
.contact-list { display: grid; gap: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); }
.contact-list li { display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); }
.contact-list span { display: block; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { font-weight: 500; }
.contact-list a:hover { color: var(--accent-dark); }
.empty-page { padding: 100px 0; }
.empty-page h1 { margin-top: 6px; }

/* Rodapé */
.site-footer { background: var(--dark); color: #fff; margin-top: 0; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; padding: 52px 0 36px; flex-wrap: wrap; align-items: flex-start; }
.footer-in nav { display: grid; gap: 8px; font-size: .92rem; color: #c8cacd; }
.footer-in nav a:hover { color: #fff; }
.foot-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-copy { padding: 18px 0 26px; border-top: 1px solid rgba(255,255,255,.1); color: #8e9298; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1024px) {
  .grid, .cats { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .only-mobile { display: inline-flex; }
  .filters { position: fixed; z-index: 90; top: 0; left: 0; bottom: 0; width: min(92vw, 400px); max-height: none; transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow-up); }
  .filters-form { border: 0; border-radius: 0; height: 100%; }
  .filters-head .icon-btn { display: block; }
  .filters-overlay { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(15,15,16,.5); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.filters-open .filters { transform: none; }
  body.filters-open .filters-overlay { opacity: 1; pointer-events: auto; }
  body.filters-open { overflow: hidden; }
  .results .grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 0; }
  .detail-side { position: static; order: -1; margin-bottom: 30px; }
  .about, .contact-page { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-rows: 180px 180px; }
}

/* Celular */
@media (max-width: 720px) {
  :root { --headh: 60px; }
  .wrap { width: min(100% - 32px, var(--wrapw)); }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: var(--headh); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; gap: 0; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; animation: fade .2s var(--ease); }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a::after { display: none; }
  .nav a[aria-current] { color: var(--accent-dark); font-weight: 500; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .grid, .results .grid, .cats { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 9; }
  .hero { min-height: 74vh; }
  .hero-in { padding: 70px 0 28px; }
  .quick { grid-template-columns: 1fr 1fr; padding: 14px; }
  .quick label:first-child { grid-column: 1 / -1; }
  .quick .btn { grid-column: 1 / -1; }
  .split { flex-direction: column; align-items: flex-start; }
  .cols, .cols.c3 { grid-template-columns: 1fr; }
  .cols.c3 { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: 1fr; }
  .contact-box { padding: 24px; }
  .footer-in { flex-direction: column; }
  /* Galeria em carrossel de deslizar */
  .gallery, .gallery.n1, .gallery.n2, .gallery.n3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; height: auto; border-radius: 0; margin-inline: -16px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .g-item, .g-hidden { display: block; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .g-main { grid-row: auto; }
  .g-more { display: none; }
  .g-counter { display: block; position: sticky; right: 12px; bottom: 12px; margin-left: -70px; align-self: flex-end; margin-bottom: 12px; background: rgba(20,20,22,.8); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 2px; flex: none; }
  .gallery { position: relative; }
  .buy-box { padding: 22px; }
  .buy-price { font-size: 2rem; }
  .buy-actions { display: none; }
  .buy-note { display: none; }
  .detail-side { margin-bottom: 8px; }
  .buy-box { border: 0; box-shadow: none; padding: 0; background: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--header-bg); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  body.has-bar { padding-bottom: 74px; }
  .filters-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Conta, favoritos e tema */
.auth-btn { gap: 6px; list-style: none; }
.auth-btn::-webkit-details-marker { display: none; }
.auth-btn svg { width: 18px; height: 18px; }
.user-menu { position: relative; }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-up); padding: 8px; display: grid; z-index: 60; animation: fade .18s var(--ease); }
.user-pop a, .user-pop button { text-align: left; background: none; border: 0; padding: 10px 12px; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; border-radius: 2px; }
.user-pop a:hover, .user-pop button:hover { background: var(--soft); }
.user-mail { padding: 8px 12px 10px; font-size: .8rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.fav { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #131a2b; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .18s var(--ease), background .15s; }
.fav:hover { transform: scale(1.08); }
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"], .fav-text[aria-pressed="true"] { color: #b3352e; }
.fav[aria-pressed="true"] svg, .fav-text[aria-pressed="true"] svg { fill: currentColor; }
.fav-text { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: var(--r); font: 500 .92rem var(--sans); color: var(--ink); cursor: pointer; transition: border-color .15s; }
.fav-text:hover { border-color: var(--ink); }
.fav-text svg { width: 18px; height: 18px; }
.fav-text [data-on], .fav-text[aria-pressed="true"] [data-off] { display: none; }
.fav-text[aria-pressed="true"] [data-on] { display: inline; }
.auth-page { display: grid; place-items: start center; padding: 56px 0 100px; }
.auth-card { width: min(100%, 440px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { background: none; border: 0; padding: 16px; font: 500 .95rem var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.auth-form { display: grid; gap: 16px; padding: 30px; }
.auth-form h1 { font-size: 1.8rem; }
.auth-form small { font-weight: 400; color: var(--muted); }
.lede-sm { color: var(--ink-2); font-size: .95rem; margin-top: -6px; }
.auth-card .form-errors { margin: 20px 30px 0; }
@media (max-width: 1024px) { .header-right .nav { margin-right: 4px; } }
@media (max-width: 720px) {
  .header-right { gap: 2px; }
  .auth-btn span { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .auth-btn { padding: 0 12px; min-height: 38px; }
  .user-pop { right: -48px; }
  .auth-form { padding: 22px; }
  .auth-card .form-errors { margin: 16px 22px 0; }
}

/* Caixas de seleção do formulário de contato */
.checks-field { border: 0; padding: 0; margin: 0; }
.checks-field legend { font-family: var(--sans); font-size: .86rem; font-weight: 500; color: var(--ink-2); float: left; width: 100%; margin-bottom: 10px; }
.wishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 16px; }
.wishes .check { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-size: .9rem; transition: border-color .15s, background .15s; }
.wishes .check:hover { border-color: var(--muted); }
.wishes .check:has(input:checked) { border-color: var(--accent); background: var(--tag-bg); }
@media (max-width: 720px) { .wishes { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Refinamento visual (alto padrão, discreto)
   ===================================================================== */
:root { --ease-out: cubic-bezier(.22, .7, .2, 1); --gold: #b8975a; }
:root[data-theme="dark"] { --gold: #c7aa74; }
::selection { background: rgba(154, 123, 69, .28); }
body { font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.012em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }

/* Botões */
.btn { position: relative; isolation: isolate; letter-spacing: .01em; transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .3s var(--ease-out); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: .98rem; }
.btn svg:last-child:not(:first-child) { transition: transform .3s var(--ease-out); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: inset 0 -2px 0 transparent, 0 1px 2px rgba(10, 26, 62, .18); }
.btn-primary:hover { filter: none; box-shadow: inset 0 -2px 0 var(--gold), 0 10px 22px -8px rgba(10, 26, 62, .45); }
:root[data-theme="dark"] .btn-primary:hover { filter: none; box-shadow: inset 0 -2px 0 rgba(14, 20, 36, .35), 0 10px 22px -8px rgba(0, 0, 0, .6); background: #d6bc8a; }
.btn-outline { background-image: linear-gradient(var(--primary), var(--primary)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left; }
.btn-outline:hover { background-size: 100% 100%; color: var(--on-primary); border-color: var(--primary); background-color: transparent; }
.btn-wa { box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.btn-wa:hover { box-shadow: 0 10px 22px -8px rgba(31, 122, 77, .55); }
.btn-light { box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn-light:hover { background: #fff; box-shadow: inset 0 -2px 0 var(--gold), 0 14px 28px -10px rgba(0, 0, 0, .5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .08); }
.link-arrow { position: relative; }
.link-arrow::after { content: ''; position: absolute; left: 0; right: 24px; bottom: -3px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.link-arrow:hover::after { transform: scaleX(1); }

/* Títulos de seção */
.eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .18em; font-size: .72rem; color: var(--accent); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.eyebrow-light { color: #d3b884; }
.section { padding: 92px 0; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-head { position: relative; }
.page-head::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: min(100% - 40px, var(--wrapw)); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, var(--gold), transparent 30%); opacity: .55; }

/* Cartões */
.card { border-color: var(--line); box-shadow: 0 1px 1px rgba(10, 26, 62, .03), 0 8px 24px -14px rgba(10, 26, 62, .18); transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-out), border-color .35s; }
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); z-index: 3; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10, 26, 62, .05), 0 22px 40px -18px rgba(10, 26, 62, .35); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card-media img { transition: transform 1.1s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 26, 62, .18), transparent 40%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.card:hover .card-media::after { opacity: 1; }
.card-title { font-size: 1.32rem; }
.card-title a { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .45s var(--ease-out); }
.card:hover .card-title a { background-size: 100% 1px; }
.card-price { letter-spacing: -.01em; }
.badge { background: rgba(10, 26, 62, .88); backdrop-filter: blur(4px); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; padding: 6px 11px; border-left: 2px solid var(--gold); border-radius: 0 2px 2px 0; left: 0; top: 14px; color: #fff; }
:root[data-theme="dark"] .badge { background: rgba(7, 12, 26, .88); color: #eceef3; }
.fav { opacity: .96; backdrop-filter: blur(4px); }

/* Categorias */
.cat { transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out); }
.cat:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -20px rgba(10, 26, 62, .55); }
.cat::before { content: ''; position: absolute; left: 20px; right: 20px; bottom: 12px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); z-index: 2; }
.cat:hover::before { transform: scaleX(1); }
.cat-text { bottom: 22px; }

/* Campos e detalhes */
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 151, 90, .22); }
.contact-box, .auth-card, .buy-box { box-shadow: 0 1px 1px rgba(10, 26, 62, .03), 0 16px 34px -20px rgba(10, 26, 62, .3); }
.nav a::after { background: var(--gold); }
.site-footer { border-top: 1px solid rgba(184, 151, 90, .5); }

/* Aparecer suavemente ao rolar (só em elementos abaixo da dobra) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* Cabeçalho transparente sobre o carrossel da home */
.site-header { transition: background-color .35s var(--ease-out), border-color .35s, box-shadow .35s; }
.site-header.scrolled { box-shadow: 0 8px 28px -20px rgba(10, 26, 62, .5); }
body.home .site-header { position: fixed; left: 0; right: 0; top: 0; }
body.home .site-header:not(.scrolled) { background: transparent; border-bottom-color: rgba(255, 255, 255, .14); backdrop-filter: none; }
body.home .site-header:not(.scrolled) .brand { color: #fff; }
body.home .site-header:not(.scrolled) .nav a { color: rgba(255, 255, 255, .86); }
body.home .site-header:not(.scrolled) .nav a:hover, body.home .site-header:not(.scrolled) .nav a[aria-current] { color: #fff; }
body.home .site-header:not(.scrolled) .theme-toggle, body.home .site-header:not(.scrolled) .nav-toggle { color: #fff; }
body.home .site-header:not(.scrolled) .theme-toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.home .site-header:not(.scrolled) .auth-btn { color: #fff; border-color: rgba(255, 255, 255, .45); }
body.home .site-header:not(.scrolled) .auth-btn:hover { color: #0a1a3e; border-color: #fff; background-color: #fff; background-image: none; }

/* Carrossel de destaque */
.hero { position: relative; display: block; min-height: 0; background: #0a1a3e; color: #fff; overflow: hidden; }
.hero-carousel { min-height: min(90vh, 800px); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease; z-index: 1; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0a1a3e; transform: scale(1.06); transition: transform 9s cubic-bezier(.2, .5, .3, 1); }
.slide.is-active .slide-img { transform: scale(1); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 14, 34, .82) 0%, rgba(7, 14, 34, .5) 42%, rgba(7, 14, 34, .08) 100%), linear-gradient(0deg, rgba(7, 14, 34, .6) 0%, transparent 38%), linear-gradient(180deg, rgba(7, 14, 34, .5) 0%, transparent 22%); }
.slide-in { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: flex-end; padding-bottom: 178px; }
.slide-info { max-width: 620px; }
.slide.is-active .slide-info > * { animation: rise .9s var(--ease-out) both; }
.slide.is-active .slide-info > :nth-child(2) { animation-delay: .08s; }
.slide.is-active .slide-info > :nth-child(3) { animation-delay: .16s; }
.slide.is-active .slide-info > :nth-child(4) { animation-delay: .24s; }
.slide.is-active .slide-info > :nth-child(5) { animation-delay: .32s; }
.slide.is-active .slide-info > :nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slide-tag { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #e2cb9b; font-weight: 500; }
.slide-tag i { width: 32px; height: 1px; background: #c7aa74; }
.slide-title { font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.06; margin-top: 16px; max-width: 18ch; text-wrap: balance; color: #fff; }
.slide-title a { color: inherit; background-image: linear-gradient(#c7aa74, #c7aa74); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size .5s var(--ease-out); padding-bottom: 4px; }
.slide-title a:hover { background-size: 100% 1px; }
.slide-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; color: #e4e6ea; font-size: .98rem; }
.slide-loc svg { width: 18px; height: 18px; color: #c7aa74; }
.slide-loc i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.slide-price { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-top: 20px; }
.slide-specs { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 26px; font-size: .92rem; color: #dfe2e8; }
.slide-specs li { display: flex; align-items: center; gap: 7px; }
.slide-specs svg { width: 18px; height: 18px; color: #c7aa74; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; justify-content: space-between; align-items: center; gap: 28px; z-index: 3; }
.inds { display: flex; gap: 10px; flex: 1; max-width: 440px; }
.ind { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.ind i { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(255, 255, 255, .28); transition: background .3s; overflow: hidden; }
.ind:hover i { background: rgba(255, 255, 255, .5); }
.ind i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ind.is-active i::after { animation: fill var(--dur, 6500ms) linear forwards; }
.hero.is-static .ind.is-active i::after { animation: none; transform: scaleX(1); }
.hero.is-paused .ind.is-active i::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ctl { display: flex; align-items: center; gap: 10px; }
.ctl-count { font-size: .82rem; letter-spacing: .1em; color: #dfe2e8; margin-right: 8px; font-variant-numeric: tabular-nums; }
.ctl-count b { font-weight: 500; color: #fff; }
.ctl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 26, 62, .25); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s var(--ease-out), color .3s, border-color .3s, transform .3s var(--ease-out); }
.ctl-btn:hover { background: #fff; color: #0a1a3e; border-color: #fff; transform: translateY(-1px); }
.ctl-btn svg { width: 18px; height: 18px; }
.ctl-btn .i-play { display: none; }
.ctl-btn[aria-pressed="true"] .i-pause { display: none; }
.ctl-btn[aria-pressed="true"] .i-play { display: block; fill: currentColor; }

/* Busca rápida flutuante */
.quick-wrap { position: relative; z-index: 6; margin-top: -66px; }
.quick { position: relative; display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 12px 36px; align-items: center; max-width: none; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 2px 4px rgba(10, 26, 62, .06), 0 30px 60px -28px rgba(10, 26, 62, .5); }
.quick::before { content: ''; position: absolute; left: 32px; top: -1px; width: 56px; height: 2px; background: var(--gold); }
.quick-head h1 { font-size: 1.55rem; line-height: 1.15; }
.quick-head p { margin-top: 8px; font-size: .88rem; color: var(--ink-2); }
.quick-fields { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.quick label span { color: var(--muted); }

@media (max-width: 1024px) {
  .quick { grid-template-columns: 1fr; padding: 24px; }
  .quick-fields { grid-template-columns: 1fr 1fr; }
  .quick-fields .btn { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .hero-carousel { min-height: 88vh; }
  .slide-in { padding-bottom: 168px; }
  .slide-title { font-size: 2rem; }
  .slide-price { font-size: 1.6rem; margin-top: 14px; }
  .slide-specs { margin: 12px 0 20px; gap: 6px 16px; font-size: .86rem; }
  .hero-ctrl { bottom: 92px; gap: 12px; }
  .ctl-count { display: none; }
  .ctl-btn { width: 40px; height: 40px; }
  .quick-wrap { margin-top: -54px; }
  body.home .site-header:not(.scrolled) .nav.open a { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .slide-img { transform: none !important; }
}

/* Botão "imóveis próximos" abaixo do mapa */
.near-btn { margin-top: 18px; max-width: 100%; text-align: left; }
.near-btn span { flex: 1; }
@media (max-width: 720px) { .near-btn { width: 100%; justify-content: flex-start; padding: 12px 18px; min-height: 52px; line-height: 1.3; } }

/* Corrige o hover dos botões de contorno: o preenchimento precisa ser declarado no próprio estado :hover,
   porque uma regra antiga com "background:" o apagava e deixava o texto invisível. */
.btn-outline:hover {
  background-color: transparent;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-repeat: no-repeat;
  background-position: left;
  background-size: 100% 100%;
  color: var(--on-primary);
  border-color: var(--primary);
}
.btn-outline:hover svg { color: inherit; }

/* Busca por distância */
.card-dist { margin-left: auto; padding-left: 10px; font-style: normal; font-size: .78rem; font-weight: 500; color: var(--accent-dark); white-space: nowrap; }
.near-group { background: var(--tag-bg); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: var(--r); padding: 14px !important; margin: 14px 0 6px; }
.near-note { font-size: .8rem; color: var(--ink-2); margin: 0; }

/* =====================================================================
   Visualização 3D do imóvel
   ===================================================================== */
.v3d-block { margin-top: 36px; }
.v3d-head { margin-bottom: 16px; }
.v3d-head h2 { font-size: 1.55rem; }
.v3d-head p { color: var(--ink-2); margin-top: 6px; max-width: 62ch; font-size: .96rem; }
.v3d { position: relative; overflow: hidden; border-radius: var(--r); background: #0a1a3e; border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(10, 26, 62, .04), 0 22px 44px -26px rgba(10, 26, 62, .55); aspect-ratio: 16 / 9; min-height: 380px; max-height: 660px; user-select: none; -webkit-user-select: none; }
.v3d canvas { display: block; width: 100%; height: 100%; outline: none; cursor: grab; }
.v3d canvas:active { cursor: grabbing; }
.v3d-ui { position: absolute; inset: 0; pointer-events: none; }
.v3d-ui > * { pointer-events: auto; }

/* Barra de controles (estilo das abas do vídeo, em azul e dourado) */
.v3d-bar { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.v3d-bar > * { pointer-events: auto; }
.v3d-seg { display: inline-flex; background: rgba(8, 16, 38, .74); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 3px; gap: 2px; }
.v3d-seg button { min-height: 34px; padding: 0 14px; border: 0; background: transparent; color: #dfe3ec; font: 500 .84rem var(--sans); cursor: pointer; border-radius: 4px; display: inline-flex; align-items: center; gap: 7px; transition: background-color .25s var(--ease-out), color .25s; white-space: nowrap; }
.v3d-seg button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.v3d-seg button[aria-pressed="true"] { background: #c7aa74; color: #0a1a3e; }
.v3d-seg svg { width: 16px; height: 16px; }
.v3d-end { margin-left: auto; }

/* Pontos de interesse */
.v3d-pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.v3d-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; will-change: transform; }
.v3d-dot { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #c7aa74; border: 2px solid #0a1a3e; box-shadow: 0 0 0 5px rgba(199, 170, 116, .26); animation: v3dpulso 2.6s ease-in-out infinite; }
.v3d-lbl { position: absolute; left: 16px; top: -13px; white-space: nowrap; background: rgba(8, 16, 38, .92); color: #fff; font: 500 .78rem var(--sans); padding: 4px 10px; border-left: 2px solid #c7aa74; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.v3d-pin:hover .v3d-lbl, .v3d-pin:focus-visible .v3d-lbl { opacity: 1; transform: none; }
.v3d-pin:hover, .v3d-pin:focus-visible { z-index: 3; }
@keyframes v3dpulso { 0%, 100% { box-shadow: 0 0 0 4px rgba(199, 170, 116, .26); } 50% { box-shadow: 0 0 0 9px rgba(199, 170, 116, .08); } }

.v3d-tip { position: absolute; left: 0; top: 0; max-width: 260px; background: rgba(8, 16, 38, .94); color: #fff; font: 500 .82rem/1.35 var(--sans); padding: 7px 12px; border-left: 2px solid #c7aa74; opacity: 0; transition: opacity .15s; pointer-events: none !important; z-index: 4; }
.v3d-tip.on { opacity: 1; }
.v3d-hint { position: absolute; left: 14px; bottom: 12px; margin: 0; font-size: .76rem; color: rgba(255, 255, 255, .78); background: rgba(8, 16, 38, .55); padding: 4px 10px; border-radius: 4px; pointer-events: none !important; transition: opacity .6s; }
.v3d[data-state="pronto"]:hover .v3d-hint { opacity: 0; }

.v3d-loading, .v3d-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #dfe3ec; font-size: .95rem; background: #0a1a3e; text-align: center; padding: 24px; }
.v3d-spin { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #c7aa74; border-radius: 50%; animation: v3dgira .9s linear infinite; }
@keyframes v3dgira { to { transform: rotate(360deg); } }
.v3d[data-state="pronto"] .v3d-loading { display: none; }
.v3d[data-state="erro"] .v3d-loading { display: none; }
.v3d[data-state="erro"] canvas, .v3d[data-state="erro"] .v3d-ui { display: none; }

.v3d-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.v3d-chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 .85rem var(--sans); border-radius: var(--r); cursor: pointer; transition: border-color .25s var(--ease-out), background-color .25s, color .25s, transform .25s var(--ease-out); }
.v3d-chip:hover { border-color: var(--gold); background: var(--tag-bg); transform: translateY(-1px); }
.v3d-note { margin-top: 12px; font-size: .8rem; color: var(--muted); max-width: 70ch; }

/* Tela cheia */
html.v3d-lock { overflow: hidden; }
.v3d.is-full { position: fixed; inset: 0; z-index: 300; max-height: none; min-height: 0; aspect-ratio: auto; border-radius: 0; border: 0; }

@media (max-width: 720px) {
  .v3d { aspect-ratio: 4 / 5; min-height: 440px; max-height: 76vh; }
  .v3d-seg button { min-height: 40px; padding: 0 12px; font-size: .82rem; }
  .v3d-end { margin-left: 0; }
  .v3d-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .v3d-dot, .v3d-spin { animation: none; } }

/* Visualização 3D no celular: controles em duas linhas, mais baixos */
@media (max-width: 720px) {
  .v3d-bar { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .v3d-seg { padding: 2px; }
  .v3d-seg button { min-height: 36px; padding: 0 10px; font-size: .78rem; }
  .v3d-bar > .v3d-seg:nth-child(2) { order: 5; width: 100%; }
  .v3d-bar > .v3d-seg:nth-child(2) button { flex: 1; padding: 0 4px; }
  .v3d-bar .v3d-ico span { display: none; }
  .v3d-end { margin-left: auto; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.05rem; letter-spacing: .03em; gap: 8px; white-space: nowrap; }
  .brand img { width: 30px; }
}

.near-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.near-row .near-btn { margin-top: 0; }
@media (max-width: 720px) { .near-row { flex-direction: column; } }

/* ---------- Migo, o mascote ---------- */
.migo { position: fixed; right: 18px; bottom: 14px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.migo.in { opacity: 1; transform: none; }
.migo > * { pointer-events: auto; }
.migo { --migo-w: 104px; --migo-wm: 76px; }
.migo.esq { right: auto; left: 18px; align-items: flex-start; }
.migo.esq .migo-bubble { margin-right: 0; margin-left: 8px; border-radius: 10px 10px 10px 4px; transform-origin: 0 100%; }
.migo.esq .migo-bubble::after { right: auto; left: 34px; }
.migo.parado .migo-btn img { animation: none; }
.migo-btn img.troca { opacity: 0; transform: scale(.94); }
.migo-btn { position: relative; width: var(--migo-w); height: var(--migo-w); padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.migo-btn img { background: none; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 6px 10px rgba(10, 26, 62, .28)); transform-origin: 50% 100%; animation: migo-bob 4.2s ease-in-out infinite; transition: transform .3s var(--ease), opacity .22s ease; }
.migo-btn:hover img { transform: scale(1.06) rotate(-2deg); animation-play-state: paused; }
.migo-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.migo-dot { position: absolute; top: 8px; right: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
@keyframes migo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.migo-bubble { position: relative; width: min(320px, calc(100vw - 36px)); margin-right: 8px; padding: 16px 18px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-top: 2px solid var(--accent); border-radius: 10px 10px 4px 10px; box-shadow: var(--shadow-up); opacity: 0; transform: translateY(8px) scale(.97); transform-origin: 100% 100%; transition: opacity .35s ease, transform .35s var(--ease); }
.migo-bubble.on { opacity: 1; transform: none; }
.migo-bubble::after { content: ''; position: absolute; right: 34px; bottom: -8px; width: 14px; height: 14px; background: var(--surface); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transform: rotate(45deg); }
.migo-nome { margin: 0 0 4px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.migo-txt { margin: 0; font-family: var(--serif); font-size: 1.06rem; line-height: 1.42; color: var(--ink); padding-right: 16px; }
.migo-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; line-height: 1; cursor: pointer; border-radius: 50%; transition: background .15s, color .15s; }
.migo-x:hover { background: var(--soft); color: var(--ink); }
.migo-acoes { display: grid; gap: 8px; margin-top: 12px; }
.migo-acoes:empty { display: none; }
.migo-act { display: block; text-align: center; padding: 10px 14px; border-radius: var(--r); font-size: .88rem; font-weight: 500; border: 1px solid transparent; transition: background .2s var(--ease), border-color .2s, color .2s, transform .2s var(--ease); }
.migo-act:hover { transform: translateY(-1px); }
.migo-act.is-wa { background: var(--wa); color: #fff; }
.migo-act.is-wa:hover { background: var(--wa-dark); }
.migo-act.is-gold { background: var(--accent); color: #fff; }
.migo-act.is-gold:hover { background: var(--accent-dark); }
:root[data-theme="dark"] .migo-act.is-gold { color: #0a1a3e; }
.migo-act.is-line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.migo-act.is-line:hover { border-color: var(--ink); background: var(--soft); }
.migo-off { margin: 10px auto 0; display: block; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .74rem; cursor: pointer; padding: 2px 4px; }
.migo-off:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 900px) {
  .migo { right: 8px; bottom: 8px; }
  .migo.esq { left: 8px; }
  .migo-btn { width: var(--migo-wm); height: var(--migo-wm); }
  body.has-bar .migo { bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .migo-btn img { animation: none; }
  .migo, .migo-bubble { transition: none; }
}

/* Anúncio que o Enrico traz ao voltar */
.migo-card { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; margin-top: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); transition: border-color .2s, transform .2s var(--ease); }
.migo-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.migo-card img { width: 88px; height: 70px; object-fit: cover; border-radius: 2px; background: var(--soft); }
.migo-card-t { display: grid; gap: 1px; min-width: 0; line-height: 1.3; }
.migo-card-t small { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.migo-card-t strong { font-size: .86rem; font-weight: 500; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.migo-card-t span { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.migo-card-t b { font-family: var(--serif); font-weight: 500; font-size: 1rem; color: var(--ink); }

/* Topo da home com o catálogo vazio */
.slide-lede { margin-top: 18px; max-width: 48ch; font-size: 1.08rem; line-height: 1.55; color: #e4e6ea; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-vazio .slide-img { transform: none; }

/* Imóveis na planta */
.tag-planta { color: var(--accent); font-weight: 600; }
.special-planta { border-left-color: var(--accent); }
@media (min-width: 721px) { .cat:nth-child(7):last-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; } }
