.vovo-detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.vovo-detail-back {
    margin-bottom: 1rem;
}

.vovo-detail-back a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Gallery */
.vovo-gallery {
    margin-bottom: 1.5rem;
}

.vovo-gallery-main {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.vovo-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vovo-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.vovo-gallery-prev { left: 1rem; }
.vovo-gallery-next { right: 1rem; }

.vovo-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.vovo-gallery-thumbs img {
    width: 90px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
}

.vovo-gallery-thumbs img.active {
    opacity: 1;
    outline: 2px solid #2563eb;
}

.vovo-gallery-viewall {
    margin-top: 0.6rem;
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.vovo-gallery-virtualtour {
    display: inline-block;
    margin-top: 0.6rem;
    margin-left: 0.6rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid #2563eb;
    color: #2563eb;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Lightbox */
.vovo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vovo-lightbox[hidden] {
    display: none;
}

.vovo-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
}

.vovo-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.vovo-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
}

.vovo-lightbox-prev { left: 1.5rem; }
.vovo-lightbox-next { right: 1.5rem; }

.vovo-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.85rem;
}

/* Body layout */
.vovo-detail-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.vovo-price-card {
    margin-bottom: 0.5rem;
}

.vovo-price-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
}

.vovo-price-txn {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.vovo-price-change {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.vovo-price-up { color: #15803d; }
.vovo-price-down { color: #b91c1c; }

.vovo-price-change-label {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 0.35rem;
}

.vovo-detail-address {
    font-size: 1.3rem;
    margin: 0.5rem 0 0.15rem;
}

.vovo-detail-city {
    color: #64748b;
    margin: 0 0 1rem;
}

.vovo-specs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.vovo-spec {
    display: flex;
    flex-direction: column;
}

.vovo-spec-value {
    font-weight: 700;
    color: #0f172a;
}

.vovo-spec-label {
    font-size: 0.75rem;
    color: #64748b;
}

.vovo-detail-remarks {
    margin-bottom: 1.5rem;
}

.vovo-detail-remarks p {
    line-height: 1.6;
    color: #334155;
}

.vovo-details-table,
.vovo-feature-section {
    margin-bottom: 1.5rem;
}

.vovo-feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 0.5rem 0 0;
}

.vovo-feature-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px dashed #e2e8f0;
    padding: 0.25rem 0;
}

.vovo-feature-row dt {
    color: #64748b;
}

.vovo-feature-row dd {
    margin: 0;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

.vovo-detail-courtesy {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 2rem;
}

.vovo-detail-main .vovo-save-actions {
    position: static;
    display: inline-flex;
    margin-bottom: 0.75rem;
}

.vovo-detail-main .vovo-favorite-btn,
.vovo-detail-main .vovo-basket-btn {
    background: #f1f5f9;
    box-shadow: none;
}

.vovo-agent-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.vovo-agent-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.vovo-agent-card-name {
    font-weight: 700;
    color: #0f172a;
}

.vovo-agent-card-title,
.vovo-agent-card-brokerage {
    font-size: 0.8rem;
    color: #64748b;
}

.vovo-agent-card-contact {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.vovo-agent-card-contact a {
    color: #2563eb;
    text-decoration: none;
}

/* Mortgage calculator */
.vovo-mortgage-calc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
}

.vovo-mortgage-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.vovo-mortgage-fields .vovo-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 0.25rem;
}

.vovo-mortgage-fields .vovo-field input,
.vovo-mortgage-fields .vovo-field select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}

.vovo-mortgage-result {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.vovo-mortgage-result-label {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.vovo-mortgage-result-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.vovo-mortgage-disclaimer {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

@media (max-width: 800px) {
    .vovo-detail-body {
        grid-template-columns: 1fr;
    }
    .vovo-mortgage-calc {
        position: static;
    }
}
