/* Shared visual layer for the local catalogo/aluguel preview. */
:root {
  --navy: #040c24;
  --navy-2: #0a1f44;
  --blue: #1a3a6e;
  --green: #166534;
  --green-dark: #14532d;
  --focus: #1d4ed8;
  --orange: #b45309;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(4, 12, 36, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; }
img { max-width: 100%; }
.listing-main, .detail-main { padding: 30px 0 70px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.breadcrumbs a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { margin: 0 0 10px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.listing-intro { max-width: 760px; margin-bottom: 28px; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.03em; line-height: 1.15; }
h1 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 52px); }
.listing-intro p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 17px; }
.draft-banner { margin: 0 0 22px; border: 1px solid #f8d58a; border-left: 5px solid var(--orange); border-radius: 12px; padding: 13px 16px; color: #713f12; background: #fffbeb; font-size: 14px; }
.filters { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(140px, 1fr)) auto; align-items: end; gap: 12px; margin: 22px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.filters label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.filters input, .filters select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: 13px; }
.filters input:focus-visible, .filters select:focus-visible, .button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--white); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 15px; border: 1px solid transparent; border-radius: 11px; font-size: 13px; font-weight: 900; text-decoration: none; cursor: pointer; }
.button.primary { color: var(--white); background: var(--navy); }
.button.primary:hover { background: var(--navy-2); }
.button.secondary { color: var(--navy); border-color: var(--line); background: var(--white); }
.button.secondary:hover { border-color: var(--green); background: #f0fdf4; }
.results-bar { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.results-bar strong { color: var(--navy); font-size: 18px; }
.filter-empty { margin: 12px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: #334155; background: var(--white); font-size: 13px; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.property-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card-media:hover img { transform: scale(1.04); }
.image-pending { display: grid; height: 100%; place-items: center; color: rgba(255,255,255,.85); font-weight: 800; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.code { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.status-pill { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; color: #713f12; background: #fef3c7; font-size: 10px; font-weight: 900; line-height: 1.2; }
.card-body h2 { margin: 0 0 8px; font-size: 20px; }
.card-body h2 a { text-decoration: none; }
.card-body h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-location, .card-facts { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.card-price { margin: 0 0 8px; color: var(--navy); font-size: 19px; font-weight: 900; }
.card-facts { min-height: 24px; }
.card-link { margin-top: auto; color: var(--green-dark); font-size: 13px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.empty-state { grid-column: 1 / -1; padding: 54px 20px; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: var(--white); text-align: center; }
.empty-icon { margin-bottom: 10px; color: var(--orange); font-size: 40px; }
.empty-state h2 { margin: 0 0 8px; font-size: 25px; }
.empty-state p { max-width: 620px; margin: 0 auto 20px; color: var(--muted); }
.detail-hero { display: block; margin-bottom: 24px; }
.detail-copy { padding: 14px 0; }
.detail-copy h1 { width: 100%; max-width: none; margin-right: 0; text-align: left; }
.location { margin: 0 0 14px; color: var(--muted); font-size: 15px; font-weight: 800; }
.price { margin: 12px 0; color: var(--navy); font-size: clamp(28px, 4vw, 42px); font-weight: 950; line-height: 1.1; }
.price small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.4; }
.status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-media { min-width: 0; margin-top: 24px; }
.gallery { position: relative; }
.carousel-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow); }
.carousel-stage.is-portrait { width: min(100%, calc(78vh * .5625)); aspect-ratio: 9/16; margin-inline: auto; }
.carousel-stage.is-square { width: min(100%, 78vh); aspect-ratio: 1/1; margin-inline: auto; }
.carousel-slide { display: none; margin: 0; }
.carousel-slide[aria-hidden="false"] { display: block; }
.carousel-slide img { display: block; width: auto; max-width: 100%; height: auto; max-height: 78vh; margin: 0 auto; object-fit: contain; }
.carousel-stage.is-portrait .carousel-slide img, .carousel-stage.is-square .carousel-slide img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.carousel-slide figcaption { padding: 9px 11px; color: rgba(255,255,255,.78); background: var(--navy); font-size: 11px; font-weight: 700; }
.carousel-controls { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.carousel-controls button { width: 42px; height: 42px; margin: 0 12px; border: 0; border-radius: 50%; color: var(--white); background: rgba(4,12,36,.78); font-size: 30px; line-height: 1; cursor: pointer; pointer-events: auto; }
.carousel-controls button:hover { background: var(--green); }
.carousel-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding: 2px; }
.carousel-thumb { flex: 0 0 78px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: var(--white); cursor: pointer; }
.carousel-thumb[aria-current="true"] { border-color: var(--green); }
.carousel-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 18px; align-items: start; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 7px 24px rgba(4,12,36,.06); }
.section-panel { margin-top: 18px; }
.panel h2 { margin: 0 0 13px; font-size: 24px; }
.prose p, .transparency p { margin: 0 0 13px; color: #334155; }
.prose p:last-child, .transparency p:last-child { margin-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; }
.fact { padding: 10px; border: 1px solid #edf2f7; border-radius: 11px; background: var(--soft); }
.fact dt { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.fact dd { margin: 3px 0 0; color: var(--navy); font-size: 14px; font-weight: 900; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding-left: 19px; color: #334155; }
.feature-list li::marker { color: var(--green); }
.notice { margin-top: 15px; padding: 12px 14px; border-left: 4px solid var(--orange); border-radius: 9px; color: #713f12; background: #fffbeb; font-size: 13px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.faq-item summary { padding: 13px 14px; color: var(--navy); cursor: pointer; font-size: 14px; font-weight: 900; }
.faq-item p { margin: 0; padding: 0 14px 14px; color: #334155; font-size: 13px; }
.transparency { color: var(--muted); font-size: 12px; }
.contact-section { margin-top: 30px; padding: 42px 0; color: var(--navy); background: var(--soft); border-top: 1px solid var(--line); }
.contact-inner h2 { margin: 0 0 8px; font-size: 26px; }
.contact-inner p { margin: 0 0 16px; color: var(--muted); }
.rental-contract .contract-intro { margin: -4px 0 16px; color: var(--muted); font-size: 13px; }
.contract-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contract-group { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.contract-group h3 { margin: 0 0 7px; font-size: 15px; }
.contract-group ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.contract-group li + li { margin-top: 3px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 960px) { .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters > :first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .content-grid { grid-template-columns: 1fr; } .feature-list { grid-template-columns: 1fr; } .contract-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .property-grid, .filters, .contract-grid { grid-template-columns: 1fr; } .filters > :first-child { grid-column: auto; } .facts { grid-template-columns: 1fr; } h1 { font-size: 34px; } .listing-main, .detail-main { padding-top: 22px; } }
