/* visual9: detalhe do imóvel. Escrito a partir de "Property Details" do main.css do LuxEstate (reference/css/main.css):
   galeria com raio 8px, quick-stats em selos, abas com sublinhado na aba ativa, sidebar-card branco com borda, raio 8px e
   sombra leve. Usa só os tokens --lux-* de site.css. O título de página (.page-title) é definido em site.css. */

.lux-pd { padding: 40px 0 72px; background: #f9fcfd; }
.lux-pd .row > * { min-width: 0; }

/* Galeria (.listing-gallery) */
.lux-pd-gallery { margin-bottom: 24px; }
.lux-pd-slider { position: relative; overflow: hidden; border-radius: 8px; background: #e3eaf0; }
.lux-pd-slide { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.lux-pd-slide img { display: block; width: 100%; height: 420px; object-fit: cover; }
.lux-pd-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--lux-text); font-size: 14px; transform: translateY(-50%); box-shadow: 0 1px 3px rgba(76, 86, 106, .18); cursor: pointer; transition: background .2s; }
.lux-pd-arrow:hover { background: #eef3f7; }
.lux-pd-arrow--prev { left: 12px; }
.lux-pd-arrow--next { right: 12px; }
.lux-pd-counter, .lux-pd-ia { position: absolute; bottom: 12px; padding: 4px 12px; border-radius: 6px; background: rgba(29, 51, 64, .82); color: #fff; font-size: 13px; font-weight: 500; }
.lux-pd-counter { right: 12px; }
.lux-pd-ia { left: 12px; max-width: calc(100% - 110px); }
.lux-pd-ia[hidden] { display: none; }
.lux-pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.lux-pd-thumb { position: relative; overflow: hidden; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #e3eaf0; cursor: pointer; opacity: .75; transition: opacity .2s, border-color .2s; }
.lux-pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lux-pd-thumb:hover { opacity: 1; }
.lux-pd-thumb.is-active { border-color: var(--lux-accent); opacity: 1; }
.lux-pd-thumb__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(29, 51, 64, .62); color: #fff; font-weight: 700; }

/* Quick stats (.quick-stats .stat-badge) */
.lux-pd-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.lux-pd-stat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #e3eaf0; border-radius: 6px; background: #fff; color: var(--lux-text); font-size: 13px; font-weight: 500; }
.lux-pd-stat i { color: var(--lux-accent); font-size: 14px; }

/* Abas (.listing-tabs) */
.lux-pd-tablist { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e3eaf0; }
.lux-pd-tab { margin-bottom: -1px; padding: 10px 20px; border: 0; border-bottom: 2px solid transparent; background: none; color: #667085; font: 500 14px var(--lux-body); cursor: pointer; transition: color .2s, border-color .2s; }
.lux-pd-tab:hover { color: var(--lux-ink); border-bottom-color: #c9d6df; }
.lux-pd-tab.is-active { border-bottom-color: var(--lux-accent); color: var(--lux-ink); }
.lux-pd-pane { padding: 32px 0; }
.lux-pd-pane[hidden] { display: none; }
.lux-site .lux-pd-pane h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.lux-site .lux-pd-pane h3:not(:first-child) { margin-top: 28px; }
.lux-site .lux-pd-pane h4 { margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lux-pd-text { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.lux-pd-amenities { margin: 0 0 16px; padding: 0; list-style: none; }
.lux-pd-amenities li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f4; font-size: 14px; }
.lux-pd-amenities li:last-child { border-bottom: 0; }
.lux-pd-amenities i { color: var(--lux-accent); font-size: 13px; }
.lux-pd-address { display: flex; gap: 10px; margin: 0 0 16px; font-size: 14px; }
.lux-pd-address i { margin-top: 3px; color: var(--lux-accent); }
.lux-pd-map { height: 340px; overflow: hidden; border: 1px solid #e3eaf0; border-radius: 8px; background: #eef3f7; }
.lux-pd-maplink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.lux-pd-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; }
.lux-pd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Sidebar (.sidebar-card) */
.lux-pd-sidebar { position: sticky; top: 150px; padding: 24px; border: 1px solid #e3eaf0; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(76, 86, 106, .08); }
.lux-pd-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.lux-pd-price { display: grid; gap: 2px; }
.lux-pd-price strong { color: var(--lux-ink); font: 700 26px/1.2 var(--lux-title); letter-spacing: -.01em; }
.lux-pd-price small { font: 400 14px var(--lux-body); }
.lux-pd-status { flex: 0 0 auto; padding: 4px 12px; border: 1px solid rgba(0, 117, 192, .3); border-radius: 12px; background: rgba(0, 117, 192, .1); color: #005a94; font-size: 12px; font-weight: 500; }
.lux-pd-addr { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.lux-pd-addr i { margin-top: 2px; color: var(--lux-accent); font-size: 17px; }
.lux-pd-addr__street { display: block; color: var(--lux-text); font-weight: 500; }
.lux-pd-addr__city { display: block; font-size: 13px; }
.lux-pd-divider { height: 1px; margin: 20px 0; background: #e9eef2; }
.lux-pd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.lux-pd-row:not(:last-child) { border-bottom: 1px solid #edf1f4; }
.lux-pd-row span { color: #667085; font-size: 13px; }
.lux-pd-row strong { color: var(--lux-ink); font-size: 14px; font-weight: 600; text-align: right; }

/* Atendimento (.agent-card) */
.lux-pd-agent { display: flex; align-items: center; gap: 16px; }
.lux-pd-agent__avatar { display: grid; flex: 0 0 56px; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 117, 192, .1); color: var(--lux-accent); font-size: 22px; }
.lux-pd-agent__meta { min-width: 0; }
.lux-site .lux-pd-agent__meta h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.lux-pd-agent__role { display: block; margin-bottom: 8px; color: #667085; font-size: 12px; }
.lux-pd-agent__links { display: flex; flex-direction: column; gap: 4px; }
.lux-pd-agent__links a { font-size: 13px; color: var(--lux-text); }
.lux-pd-agent__links a:hover { color: var(--lux-accent); }
.lux-pd-agent__links i { width: 16px; margin-right: 4px; color: var(--lux-accent); }

/* Formulário (.inquiry-form) */
.lux-site .lux-pd-form h4 { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.lux-pd-field { margin-bottom: 16px; }
.lux-pd-field label { display: block; margin-bottom: 6px; color: var(--lux-ink); font-size: 14px; font-weight: 500; }
.lux-pd-field :is(input, textarea) { width: 100%; padding: 8px 12px; border: 1px solid #cfd8e0; border-radius: 6px; background: #fff; color: var(--lux-text); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.lux-pd-field input { height: 40px; }
.lux-pd-field textarea { min-height: 96px; resize: vertical; }
.lux-pd-field :is(input, textarea):focus { border-color: var(--lux-accent); outline: 0; box-shadow: 0 0 0 3px rgba(0, 117, 192, .18); }
.lux-pd-submit { width: 100%; margin-top: 8px; padding: 10px 24px; border: 0; border-radius: 6px; background: var(--lux-accent); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s; }
.lux-pd-submit:hover { background: var(--lux-accent-dark); }
.lux-pd-submit:disabled { opacity: .6; cursor: wait; }
.lux-pd-form :focus-visible, .lux-pd-share :focus-visible, .lux-pd-tab:focus-visible, .lux-pd-arrow:focus-visible, .lux-pd-thumb:focus-visible, .lux-pd-slide:focus-visible { outline: 2px solid var(--lux-accent); outline-offset: 2px; }
.lux-detail-form__status { margin-top: 12px; font-size: 14px; }
.lux-detail-form__status:empty { display: none; }
.lux-detail-form__status.is-ok { color: #0d7a3d; }
.lux-detail-form__status.is-err { color: #b3261e; }
.lux-turnstile { margin-bottom: 8px; max-width: 100%; overflow: hidden; }

/* Compartilhar (.share-row) */
.lux-pd-share { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.lux-pd-fav { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #cfd8e0; border-radius: 6px; background: #fff; color: var(--lux-text); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.lux-pd-fav:hover { border-color: var(--lux-accent); color: var(--lux-accent); }
.lux-pd-fav.active { border-color: var(--lux-accent); background: var(--lux-accent); color: #fff; }
.lux-pd-share__icons { display: flex; gap: 4px; }
.lux-pd-share__icons :is(a, button) { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: none; color: #5b6676; font-size: 15px; cursor: pointer; transition: all .2s; }
.lux-pd-share__icons :is(a, button):hover { background: #eef3f7; color: var(--lux-accent); }

/* Imóveis similares e próximos */
.lux-pd-more { margin-top: 56px; }
.lux-site .lux-pd-more h2 { margin-bottom: 8px; font-size: 26px; font-weight: 700; }
.lux-pd-more__lead { margin-bottom: 20px; }
.lux-pd-more h2 + .row { margin-top: 20px; }
.lux-pd-more .lux-card-col, .lux-pd-more .row > div > .lux-card { height: 100%; }

/* Lightbox */
.lux-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(8, 20, 28, .94); }
.lux-lightbox[hidden], .lux-compare[hidden] { display: none; }
.lux-lightbox__figure { display: grid; justify-items: center; gap: 10px; max-width: 100%; max-height: 100%; margin: 0; }
.lux-lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.lux-lightbox__figure figcaption { color: #fff; font-size: 14px; text-align: center; }
.lux-lightbox__count { margin-left: 12px; opacity: .8; }
.lux-lightbox__close, .lux-lightbox__nav, .lux-compare__close { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; cursor: pointer; transition: background .2s; }
.lux-lightbox__close:hover, .lux-lightbox__nav:hover, .lux-compare__close:hover { background: rgba(255, 255, 255, .3); }
.lux-lightbox__close, .lux-compare__close { top: 14px; right: 14px; }
.lux-lightbox__nav { top: 50%; transform: translateY(-50%); }
.lux-lightbox__nav--prev { left: 12px; }
.lux-lightbox__nav--next { right: 12px; }
.lux-lightbox__ia { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 10px 20px; border: 0; border-radius: 6px; background: var(--lux-accent); color: #fff; font-weight: 500; cursor: pointer; }
.lux-lightbox__ia[hidden] { display: none; }
.lux-lightbox :focus-visible, .lux-compare :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Comparação antes/depois (foto decorada com IA) */
.lux-compare { position: fixed; inset: 0; z-index: 2100; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 56px 16px; background: rgba(8, 20, 28, .96); }
.lux-compare__hint { margin: 0; color: #fff; font-size: 14px; text-align: center; }
.lux-compare__stage { --lux-pos: 50%; position: relative; width: min(92vw, 1000px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #000; user-select: none; }
.lux-compare__after, .lux-compare__before { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.lux-compare__before { clip-path: inset(0 calc(100% - var(--lux-pos)) 0 0); }
.lux-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--lux-pos); display: grid; place-items: center; width: 3px; margin-left: -1px; background: #fff; pointer-events: none; }
.lux-compare__handle i { display: grid; place-items: center; width: 40px; height: 40px; margin-left: -1px; border-radius: 50%; background: #fff; color: var(--lux-accent); }
.lux-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }


@media (max-width: 991.98px) {
    .lux-pd-sidebar { position: static; margin-top: 8px; }
    .lux-pd-slide img { height: 320px; }
}
@media (max-width: 575.98px) {
    .lux-pd { padding: 24px 0 56px; }
    .lux-pd-slide img { height: 240px; }
    .lux-pd-sidebar { padding: 18px; }
    .lux-pd-price strong { font-size: 22px; }
    .lux-pd-tab { padding: 10px 12px; }
    .lux-pd-pane { padding: 24px 0; }
    .lux-lightbox { padding: 56px 8px; }
    .lux-lightbox__nav { top: auto; bottom: 14px; transform: none; }
    .lux-lightbox__ia { bottom: 70px; max-width: calc(100% - 24px); }
    .lux-pd-map { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .lux-pd * { transition: none !important; } }
