/* Página de detalhe do imóvel */

/* ── Faixa de navegação ── */
.imovel-band {
    background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 24px 0;
}

.imovel-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.imovel-breadcrumb a:hover {
    color: var(--color-white);
}

/* ── Layout principal ── */
.imovel-layout {
    display: grid;
    gap: 32px;
    padding: 40px 0 64px;
}

/* ── Galeria de fotos ── */
.imovel-gallery {
    display: grid;
    gap: 16px;
    align-content: start;
}

.property-gallery__main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.property-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(13, 9, 86, 0.72);
    color: var(--color-white);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-button:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
}

.gallery-button--prev {
    left: 16px;
}

.gallery-button--next {
    right: 16px;
}

.property-gallery__thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 88px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.property-gallery__thumbs button {
    padding: 0;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    opacity: 0.7;
    transition: border-color 180ms ease, opacity 180ms ease;
}

.property-gallery__thumbs button:hover {
    opacity: 1;
}

.property-gallery__thumbs button.is-active {
    border-color: var(--color-accent);
    border-width: 3px;
    opacity: 1;
    transform: scale(1.05);
}

.property-gallery__thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.property-gallery__fallback {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary), var(--color-tertiary));
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
}

.property-gallery__fallback i {
    color: var(--color-accent);
    font-size: 56px;
}

/* ── Card de informações ── */
.imovel-card {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.imovel-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-tertiary);
    font-weight: 800;
}

.imovel-title {
    margin: 8px 0 0;
    color: var(--color-primary);
    font-size: clamp(28px, 6vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.imovel-price {
    margin: 16px 0 0;
    color: var(--color-accent-dark);
    font-size: 32px;
    font-weight: 900;
}

.imovel-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 24px 0 0;
}

.imovel-features span {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-muted);
    text-align: center;
}

.imovel-features i {
    color: var(--color-secondary);
    font-size: 20px;
}

.imovel-description__title {
    margin: 32px 0 8px;
    color: var(--color-primary);
    font-size: 24px;
    letter-spacing: -0.03em;
}

.imovel-description {
    margin: 0;
    color: var(--color-muted);
    white-space: pre-line;
}

.imovel-cta {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.imovel-cta .btn {
    width: 100%;
    min-height: 56px;
}

/* ── Sugestões de imóveis ── */
.suggestions {
    background: var(--color-white);
}

@media (min-width: 900px) {
    .imovel-layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}
