:root {
    --brand: #1f3a68;
}
.bg-brand { background-color: var(--brand) !important; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #17305a; color: #fff; }

.listing-card { transition: transform .12s ease, box-shadow .12s ease; }
.listing-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important; }
.listing-thumb {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    background: #e9ecef;
}
.listing-thumb-empty {
    aspect-ratio: 4 / 3;
    display: flex; align-items: center; justify-content: center;
    background: #e9ecef; color: #adb5bd; font-size: 3rem;
}
.card-status-overlay {
    position: absolute; top: .5rem; left: .5rem;
}
.listing-card .card-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.6em;
}
.price { font-weight: 700; color: var(--brand); }

.gallery-main { max-height: 520px; object-fit: contain; width: 100%; background: #f1f3f5; }
.gallery-thumb { width: 80px; height: 60px; object-fit: cover; cursor: pointer; opacity: .7; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; outline: 2px solid var(--brand); }

.description { white-space: pre-wrap; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.edit-img { width: 110px; height: 82px; object-fit: cover; }
