/* Destino Rifaina V2 — vitrine clara, fotos grandes, contato sempre à mão */
:root {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --ink: #0b2540;
  --muted: #55677a;
  --line: #dbe4ea;
  --brand: #083766;
  --brand-2: #0b4a86;
  --accent: #0799ae;
  --accent-soft: #e2f4f7;
  --sun: #ff9d19;
  --wa: #138a45;
  --wa-hover: #0f7539;
  --danger: #b4321f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(8, 55, 102, .06), 0 8px 24px rgba(8, 55, 102, .08);
  --shadow-up: 0 2px 4px rgba(8, 55, 102, .08), 0 16px 36px rgba(8, 55, 102, .16);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.pular:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-azul { background: var(--brand); color: #fff; }
.btn-azul:hover { background: var(--brand-2); }
.btn-claro { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-claro:hover { border-color: var(--brand); }
.btn-texto { background: transparent; color: var(--brand); padding: 0 12px; min-height: 40px; font-weight: 600; }
.btn-texto:hover { background: var(--accent-soft); }
.btn-grande { min-height: 52px; font-size: 16px; padding: 0 24px; }
.btn-bloco { display: flex; width: 100%; }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topo-in { display: flex; align-items: center; gap: 20px; min-height: 66px; flex-wrap: wrap; padding-block: 8px; }
.marca img { height: 46px; width: auto; }
.menu { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; order: 3; width: 100%; padding-bottom: 2px; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.menu a:hover { background: var(--accent-soft); }
.btn-topo { margin-left: auto; min-height: 40px; padding: 0 16px; }
@media (min-width: 960px) {
  .menu { order: 0; width: auto; padding: 0; }
  .btn-topo { margin-left: 0; }
}

/* ---------- Início ---------- */
.hero { background: radial-gradient(120% 90% at 85% 0%, #d4eef3 0%, rgba(212, 238, 243, 0) 60%), linear-gradient(180deg, #eaf4f7 0%, var(--bg) 100%); padding-block: 40px 28px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.sobretitulo { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 9vw, 84px); line-height: .98; letter-spacing: -.01em; color: var(--brand); }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-texto { min-width: 0; }
.hero-sub { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.busca { margin-top: 26px; display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 560px; }
.busca input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font: inherit; color: var(--ink); outline: none; }
.busca:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(7, 153, 174, .2); }
.numeros { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.numeros strong { color: var(--brand); font-size: 22px; font-weight: 800; margin-right: 4px; font-variant-numeric: tabular-nums; }
.mosaico { display: none; }
@media (min-width: 960px) {
  .hero { padding-block: 64px 44px; }
  .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .mosaico { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 480px; }
  .mos { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-up); background: var(--line); }
  .mos img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
  .mos:hover img { transform: scale(1.04); }
  .mos span { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .95); color: var(--brand); font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
  .mos1 { grid-row: 1 / 3; }
  .mos2 { grid-column: 2; }
  .mos3 { grid-column: 2; }
}

/* ---------- Filtros e grade ---------- */
.vitrine { padding-block: 20px 56px; }
.filtros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; min-height: 42px; padding: 0 16px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip small { background: var(--bg); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on small { background: rgba(255, 255, 255, .2); color: #fff; }
.selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sel { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; min-width: 0; }
.sel select { font: 500 15px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; min-height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; width: 100%; min-width: 0; }
.sel:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .selects { grid-template-columns: repeat(3, minmax(0, 220px)); }
  .sel:last-child { grid-column: auto; }
}
@media (min-width: 960px) {
  .filtros { grid-template-columns: 1fr auto; align-items: end; }
  .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; }
}

.cab-secao { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.cab-secao h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 42px); color: var(--brand); }
.contador { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cab-vendidos { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 22px; }
.vazio { padding: 28px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-2); text-decoration: underline; cursor: pointer; }

.card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.card-foto { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #dbe9ee, #c8dbe3); overflow: hidden; }
.card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-foto img { transform: scale(1.05); }
.sem-foto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.selo { position: absolute; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.selo-tipo { left: 12px; top: 12px; background: rgba(255, 255, 255, .95); color: var(--brand); }
.selo-destaque { right: 12px; top: 12px; background: var(--sun); color: #3a2300; }
.selo-vendido { right: 12px; top: 12px; background: var(--danger); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
.selo-grande { right: 16px; top: 16px; font-size: 14px; padding: 8px 16px; z-index: 2; }
.card-corpo { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.card-preco { font-weight: 800; font-size: 22px; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.card-titulo { font-size: 16px; font-weight: 600; line-height: 1.3; }
.card-link { color: var(--ink); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-local { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; }
.card-local .ic { width: 15px; height: 15px; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 4px 0 0; }
.tags li { background: var(--accent-soft); color: #075a67; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.card-vendido .card-foto img { filter: grayscale(.7); opacity: .85; }
.card-vendido .card-preco { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.parceiro { padding-block: 0 48px; }
.parceiro a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.parceiro img { width: 100%; height: auto; }

.contato { background: var(--brand); color: #fff; padding-block: 52px; }
.contato-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.contato h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); }
.contato p { margin-top: 8px; color: #cfe0ef; max-width: 46ch; }
.contato-acoes { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 860px) { .contato-in { grid-template-columns: 1fr auto; } }

.rodape { background: #06223f; color: #b9cbdc; padding-top: 40px; font-size: 14px; }
.rodape-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
.rodape img { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 10px; }
.rodape strong { color: #fff; display: block; margin-bottom: 6px; }
.rodape a { color: #fff; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 16px; font-size: 13px; }
@media (min-width: 760px) { .rodape-in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Página do anúncio ---------- */
.migalha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-block: 18px 12px; font-size: 14px; color: var(--muted); }
.migalha a { color: var(--brand-2); text-decoration: none; }
.migalha a:hover { text-decoration: underline; }
.aviso-vendido { background: #fdeceb; border: 1px solid #f1c3be; color: #7b2418; padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; }

.det { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.det-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
@media (max-width: 959px) {
  .det-main { display: contents; }
  .gal { order: 0; }
  .painel { order: 1; }
  .det-main > .bloco { order: 2; }
  .det { gap: 22px; }
}
@media (min-width: 960px) {
  .det { grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
  .painel { position: sticky; top: 92px; }
}

.gal-quadro { position: relative; border-radius: 20px; overflow: hidden; background: #e7eef2; box-shadow: var(--shadow); }
.gal-trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-trilho::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: #dfe8ed; cursor: zoom-in; aspect-ratio: 4 / 3; display: block; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 960px) { .gal-slide { aspect-ratio: 3 / 2; } }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--brand); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.gal-nav:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-next .ic { transform: rotate(180deg); }
.gal-cont { position: absolute; right: 14px; bottom: 14px; background: rgba(11, 37, 64, .75); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; z-index: 2; }
.gal-mini { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin; position: relative; }
.mini { flex: none; width: 96px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--line); cursor: pointer; opacity: .7; }
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini.on { border-color: var(--accent); opacity: 1; }
.mini:hover { opacity: 1; }

.lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(5, 15, 28, .96); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(5, 15, 28, .96); }
.lb img { max-width: 96vw; max-height: 90dvh; object-fit: contain; }
.lb-x, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-x { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-next .ic { transform: rotate(180deg); }
.lb-cont { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .14); padding: 4px 14px; border-radius: 999px; }

.painel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.painel-tipo { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.painel h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.2vw, 38px); color: var(--brand); line-height: 1.08; overflow-wrap: anywhere; }
.painel-preco { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vendido-txt { font-size: 14px; font-weight: 800; color: var(--danger); text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }
.painel-acoes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.painel-nota { font-size: 14px; color: var(--wa); font-weight: 600; }

.bloco { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.bloco h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--brand); margin-bottom: 14px; }
.texto { max-width: 68ch; display: grid; gap: 12px; color: #1d3550; overflow-wrap: anywhere; }
.texto strong { color: var(--brand); }
.carac { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.carac div { background: var(--bg); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.carac dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.carac dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.videos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.videos video, .video-yt { width: 100%; border-radius: 14px; background: #000; aspect-ratio: 16 / 9; }
.video-yt iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.doc:hover { border-color: var(--accent); background: var(--accent-soft); }
.doc .ic { color: var(--danger); width: 26px; height: 26px; }
.doc-nome { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.doc-acao { font-size: 13px; font-weight: 700; color: var(--brand-2); white-space: nowrap; }
.bloco-links { display: flex; flex-wrap: wrap; gap: 10px; }
.parecidos { margin-block: 44px 20px; }
.parecidos h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--brand); margin-bottom: 18px; }

.barra-cta { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(8, 55, 102, .1); }
.barra-cta .btn-wa { flex: 1; }
.barra-preco { display: grid; line-height: 1.1; min-width: 0; margin-right: auto; }
.barra-preco small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.barra-preco strong { font-size: 18px; color: var(--brand); white-space: nowrap; }
.barra-cta .btn-claro { padding: 0 16px; }
.pg-anuncio { padding-bottom: 84px; }
@media (min-width: 960px) {
  .barra-cta { display: none; }
  .pg-anuncio { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topo, .barra-cta, .rodape, .contato, .parceiro, .painel-acoes { display: none !important; }
}

/* Carrossel de fotos nos cards: arrasta com o dedo ou usa as setas */
.car { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car::-webkit-scrollbar { display: none; }
.car img { flex: 0 0 100%; scroll-snap-align: start; }
.car-seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--brand); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .2s; display: grid; place-items: center; padding: 0 0 3px; }
.car-ant { left: 8px; } .car-prox { right: 8px; }
.card:hover .car-seta, .car-seta:focus-visible { opacity: 1; }
@media (hover: none) { .car-seta { opacity: .9; width: 32px; height: 32px; } }
.car-pts { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.car-pts i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.car-pts i.on { background: #fff; transform: scale(1.3); }
.card:hover .card-foto img { transform: none; }
.car { position: relative; z-index: 2; cursor: pointer; }
