﻿/* Acima da navbar sticky (280) e do drawer mobile (400) */
body.property-lightbox-open .marketplace-sticky-shell {
    z-index: 200;
}

.property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #fff;
    color: #222;
    overflow: hidden;
    overscroll-behavior: contain;
}

.property-lightbox.is-open {
    display: flex;
    flex-direction: column;
}

.property-lightbox[hidden] {
    display: none !important;
}

.property-gallery-tour {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.property-gallery-tour__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    min-height: 72px;
    padding: 0 clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid #ebebeb;
    background: #fff;
}

.property-gallery-tour__back,
.property-gallery-tour__action,
.property-photo-viewer__close,
.property-photo-viewer__action,
.property-photo-viewer__nav {
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.property-gallery-tour__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #222;
}

.property-gallery-tour__back svg {
    width: 1.1rem;
    height: 1.1rem;
}

.property-gallery-tour__back:hover,
.property-gallery-tour__back:focus-visible {
    background: #f7f7f7;
    outline: none;
}

.property-gallery-tour__actions,
.property-photo-viewer__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.property-gallery-tour__action {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    color: #222;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.property-gallery-tour__action svg,
.property-photo-viewer__action svg {
    width: 1rem;
    height: 1rem;
}

.property-gallery-tour__action:hover,
.property-gallery-tour__action:focus-visible,
.property-photo-viewer__action:hover,
.property-photo-viewer__action:focus-visible {
    background: #f7f7f7;
    outline: none;
}

.property-gallery-tour__action.is-active svg,
.property-photo-viewer__action.is-active svg {
    fill: #e11d48;
    stroke: #e11d48;
}

.property-gallery-tour__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem) 3rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.property-gallery-tour__title {
    margin: 0 0 1.35rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: #222;
}

.property-gallery-tour__rooms-nav {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

.property-gallery-tour__room-card {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.55rem;
    width: 132px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.property-gallery-tour__room-thumb {
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.property-gallery-tour__room-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.property-gallery-tour__room-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}

.property-gallery-tour__room-card:hover .property-gallery-tour__room-thumb,
.property-gallery-tour__room-card:focus-visible .property-gallery-tour__room-thumb,
.property-gallery-tour__room-card.is-active .property-gallery-tour__room-thumb {
    border-color: #222;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.property-gallery-tour__sections {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.property-gallery-tour__section {
    scroll-margin-top: 1rem;
}

.property-gallery-tour__section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.6fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
    margin-bottom: 1.25rem;
}

.property-gallery-tour__section-copy h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    color: #222;
}

.property-gallery-tour__section-copy p {
    margin: 0;
    color: #717171;
    font-size: 0.95rem;
}

.property-gallery-tour__hero-photo,
.property-gallery-tour__photo-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
}

.property-gallery-tour__hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.property-gallery-tour__photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.property-gallery-tour__photo-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease;
}

.property-gallery-tour__hero-photo:hover img,
.property-gallery-tour__hero-photo:focus-visible img,
.property-gallery-tour__photo-item:hover img,
.property-gallery-tour__photo-item:focus-visible img {
    transform: scale(1.02);
}

.property-photo-viewer {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    background: #000;
    color: #fff;
}

.property-photo-viewer[hidden] {
    display: none !important;
}

.property-photo-viewer__header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    min-height: 72px;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.property-photo-viewer__close {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.2rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.property-photo-viewer__close svg {
    width: 1rem;
    height: 1rem;
}

.property-photo-viewer__counter {
    justify-self: center;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.property-photo-viewer__actions {
    justify-self: end;
}

.property-photo-viewer__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
}

.property-photo-viewer__action:hover,
.property-photo-viewer__action:focus-visible,
.property-photo-viewer__close:hover,
.property-photo-viewer__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.property-photo-viewer__stage {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(100vh - 88px);
    margin: 0;
    padding: 0 0.5rem 1rem;
}

.property-photo-viewer__image {
    display: block;
    width: auto;
    max-width: min(1200px, 92vw);
    max-height: calc(100vh - 110px);
    object-fit: contain;
}

.property-photo-viewer__nav {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 clamp(0.35rem, 2vw, 1rem);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #fff;
}

.property-photo-viewer__nav svg {
    width: 1.2rem;
    height: 1.2rem;
}

.property-photo-viewer__nav:hover,
.property-photo-viewer__nav:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.property-photo-viewer__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.property-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1.5rem 2rem;
    align-items: start;
}

.property-main {
