.listing-archive-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.listing-hero img,
.listing-inline-photo img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

.listing-inline-photo {
    margin: 1.25rem 0;
}

.listing-body p {
    margin-bottom: 1rem;
}

.listing-essentials {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid var(--bs-primary);
}

.listing-essentials dt {
    font-weight: 600;
    font-size: 0.85rem;
}

.listing-essentials dd {
    font-size: 0.95rem;
}

.listing-documents a {
    font-weight: 500;
}

.listing-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.listing-gallery-item {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 0.25rem;
    background: #e9ecef;
}

.listing-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-comment {
    border-top: 1px solid #dee2e6;
    padding: 0.85rem 0;
}

.listing-comment-bid {
    background: #f8fff8;
    margin: 0 -0.75rem;
    padding: 0.85rem 0.75rem;
    border-radius: 0.25rem;
}

.listing-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.listing-comment-body p:last-child {
    margin-bottom: 0;
}

.listing-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.listing-lightbox img {
    max-width: 96vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.5);
}

.listing-lightbox-close,
.listing-lightbox-prev,
.listing-lightbox-next {
    position: absolute;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
}

.listing-lightbox-close {
    top: 0.5rem;
    right: 0.75rem;
}

.listing-lightbox-prev {
    left: 0.4rem;
}

.listing-lightbox-next {
    right: 0.4rem;
}

.listing-lightbox-caption {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
}
