/* © 2026 H.W. & H. Investments Pty Ltd. All rights reserved. */
/**
 * AYIO Sales — Listing Detail Styles
 *
 * Complete visual rebuild: breadcrumb bar, photo gallery with badges/arrows,
 * lightbox, two-column layout, specs cards, description card, seller card,
 * finance calculator, safety card, similar listings, mobile sticky bar.
 */

/* ─── Back to Results Bar ─── */
.listing-back-nav {
    background: var(--off-white, #f7f8fc);
    padding: 10px 0 0;
}
.back-to-results {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-primary, #f0a500);
    text-decoration: none;
    transition: color 0.2s;
}
.back-to-results:hover {
    color: var(--brand-secondary, #0f1f3d);
}
.back-to-results svg {
    flex-shrink: 0;
}

/* ─── Breadcrumb Bar ─── */
.listing-breadcrumb {
    background: var(--off-white, #f7f8fc);
    border-bottom: 1px solid var(--grey-200, #e5e7eb);
    padding: 12px 0;
}

.breadcrumb {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.breadcrumb a {
    color: var(--grey-500, #6b7280);
    text-decoration: none;
    transition: color 0.15s;
    font-size: 13px;
}

.breadcrumb a:hover {
    color: var(--gold, #f0a500);
    text-decoration: none;
}

.bc-sep {
    margin: 0 8px;
    color: var(--grey-300, #d1d5db);
}

.bc-current {
    color: var(--navy, #0f1f3d);
    font-weight: 500;
    font-size: 13px;
}

/* ─── Gallery ─── */
.gallery-wrap {
    background: var(--off-white, #f7f8fc);
    border-bottom: 1px solid var(--grey-200, #e5e7eb);
    padding-bottom: 20px;
}

.listing-gallery {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0 0;
}

.gallery-main-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    aspect-ratio: 16/9;
    max-height: 500px;
    cursor: zoom-in;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 3;
}

.gallery-badges .badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge--auction {
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
}

.badge--clearance {
    background: rgba(15, 31, 61, 0.9);
    color: var(--gold, #f0a500);
}

.badge--featured {
    background: rgba(240, 165, 0, 0.9);
    color: #fff;
}

.badge--condition {
    background: rgba(255,255,255,0.9);
    color: var(--navy, #0f1f3d);
}

.badge--finance {
    background: rgba(22, 163, 74, 0.85);
    color: #fff;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--navy, #0f1f3d);
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 5;
    opacity: 0;
}

.gallery-main-wrap:hover .gallery-arrow {
    opacity: 1;
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-arrow:hover {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
}

/* Legacy nav arrows compatibility */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(4px);
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--navy, #0f1f3d);
    z-index: 5;
    opacity: 0;
    transition: all 0.2s;
    padding: 0;
}

.gallery-main-wrap:hover .gallery-nav,
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav.gallery-prev { left: 12px; }
.gallery-nav.gallery-next { right: 12px; }
.gallery-nav:hover {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
}

.gallery-counter-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
}

/* Gallery indicator dots (injected by JS) */
.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.gallery-dot.active {
    background: var(--white);
    transform: scale(1.25);
}

.gallery-dot:hover {
    background: rgba(255,255,255,0.85);
}

/* Legacy counter */
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 3;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-300, #d1d5db) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8px, #000 calc(100% - 8px), transparent 100%);
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--grey-300, #d1d5db);
    border-radius: 4px;
}

.gallery-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.55;
    background: var(--grey-200);
}

.gallery-thumb:hover {
    opacity: 0.85;
    filter: brightness(1.1);
    transform: scale(1.04);
}

.gallery-thumb.active,
.gallery-thumb.gallery-thumb-active {
    border-color: var(--gold, #f0a500);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.3);
}

/* Legacy button-based thumbnails */
button.gallery-thumb {
    padding: 0;
    background: none;
}
button.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.gallery-placeholder {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0;
    text-align: center;
}

.gallery-placeholder-box {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a2332 0%, #0f1f3d 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.gallery-placeholder-box svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    color: var(--gold, #f0a500);
}

.gallery-placeholder-box span {
    font-size: 15px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

.gallery-placeholder img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    object-fit: contain;
}

/* Legacy gallery-main (pre-rebuild) */
.gallery-main {
    position: relative;
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 540px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    aspect-ratio: 16/10;
    cursor: zoom-in;
}

.gallery {
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 0 0;
}

/* ─── Two-Column Layout ─── */
.listing-detail {
    padding: 32px 0 80px;
}

.listing-detail-grid,
.listing-columns {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 380px);
    gap: 32px;
    align-items: start;
}

.listing-detail-main {
    min-width: 0; /* prevent grid blowout from long content */
}

/* ─── Listing Header ─── */
.listing-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
}

.listing-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.listing-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
    line-height: 1.25;
    margin: 0;
    flex: 1;
    font-family: var(--font-display, 'DM Sans'), var(--font-body, sans-serif), sans-serif;
}

.listing-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--grey-200, #e5e7eb);
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy, #0f1f3d);
    transition: all 0.2s;
    white-space: nowrap;
}

.action-btn:hover {
    border-color: var(--navy, #0f1f3d);
}

.action-btn.active,
.action-btn.watched {
    color: var(--gold, #f0a500);
    border-color: var(--gold, #f0a500);
}

.listing-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.listing-price {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gold, #f0a500);
    font-family: var(--font-display, 'DM Sans'), var(--font-body, sans-serif), sans-serif;
    line-height: 1;
}

.listing-price-original {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--grey-400, #9ca3af);
    text-decoration: line-through;
    margin-left: 10px;
    vertical-align: middle;
}

.price-tag {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--grey-100, #f3f4f6);
    color: var(--grey-600, #4b5563);
}

.price-tag.price-negotiable {
    background: rgba(240,165,0,0.1);
    color: #b37700;
}

.price-tag.price-poa {
    background: var(--grey-100, #f3f4f6);
    color: var(--grey-600, #4b5563);
}

.price-tag.price-auction {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.finance-sale-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.finance-type-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.clearance-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--navy, #0f1f3d);
    color: var(--gold, #f0a500);
    letter-spacing: 0.06em;
}

.badge-ws-type {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.06);
    color: #7c3aed;
}

.nego-badge {
    background: rgba(240,165,0,0.12);
    color: #b37700;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(240,165,0,0.3);
}

.listing-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.listing-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: var(--grey-500, #6b7280);
}

.listing-meta-item:first-child {
    font-size: 0.875rem;
    color: var(--grey-500, #6b7280);
}

.listing-meta-item:not(:first-child) {
    font-size: 0.75rem;
    color: var(--grey-400, #9ca3af);
}

.listing-meta-item svg {
    flex-shrink: 0;
    color: var(--grey-400, #9ca3af);
}

.listing-meta-id {
    margin-left: auto;
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
}

.listing-meta-bar {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--grey-500, #6b7280);
    padding: 12px 0;
    border-top: 1px solid var(--grey-200, #e5e7eb);
    margin-top: 12px;
}

/* ─── Clearance Countdown ─── */
.clearance-countdown-box {
    background: linear-gradient(135deg, #0f1f3d 0%, #1a3260 100%);
    color: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}

.clearance-countdown-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ending-soon-label {
    background: #dc2626;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.clearance-countdown {
    display: flex;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-display, 'DM Sans'), sans-serif;
}

.clearance-countdown .cd-expired {
    color: var(--gold, #f0a500);
}

.clearance-funds-notice {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* ─── Listing Actions Bar ─── */
.listing-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ─── Share Buttons ─── */
.listing-share {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--grey-200, #e5e7eb);
    background: var(--white);
    color: var(--grey-600, #4b5563);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.share-btn:hover {
    border-color: var(--grey-300, #d1d5db);
    background: var(--grey-50, #f9fafb);
    color: var(--navy, #0f1f3d);
    text-decoration: none;
}

.social-share-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-600, #4b5563);
}

/* ─── Specs Cards ─── */
.listing-specs-card,
.listing-description-card,
.seller-card,
.extra-specs {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-title-sm {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin: 0 0 16px;
    font-family: var(--font-display, 'DM Sans'), var(--font-body, sans-serif), sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-sm::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--gold, #f0a500);
    border-radius: 2px;
    flex-shrink: 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: var(--off-white, #f7f8fc);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.spec-item:hover {
    border-color: var(--grey-200, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.spec-icon {
    display: inline-flex;
    color: var(--gold, #f0a500);
    margin-bottom: 6px;
    opacity: 0.85;
}

.spec-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-500, #6b7280);
    margin-bottom: 4px;
    display: block;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy, #0f1f3d);
    display: block;
    margin-top: 2px;
}

/* ─── Grouped Specs Table ─── */
.specs-section {
    margin-bottom: 20px;
}

.specs-section:last-child {
    margin-bottom: 0;
}

.specs-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grey-500, #6b7280);
    padding: 12px 0 8px 12px;
    margin: 0;
    border-left: 3px solid var(--gold, #f0a500);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.specs-table-row {
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
    transition: background 0.15s ease;
}

.specs-table-row:nth-child(even) {
    background: var(--grey-50, #f9fafb);
}

.specs-table-row:nth-child(odd) {
    background: var(--white, #fff);
}

.specs-table-row:last-child {
    border-bottom: none;
}

.specs-table-row:hover {
    background: var(--off-white, #f7f8fc);
}

.specs-table-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-600, #4b5563);
    padding: 11px 12px 11px 14px;
    text-align: left;
    width: 42%;
    vertical-align: middle;
}

.specs-table-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--grey-900, #111827);
    padding: 11px 14px 11px 0;
    text-align: left;
    vertical-align: middle;
}

/* ─── Registration Badges ─── */
.rego-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.rego-badge--green {
    background: #dcfce7;
    color: #166534;
}

.rego-badge--amber {
    background: #fef3c7;
    color: #92400e;
}

.rego-badge--red {
    background: #fee2e2;
    color: #991b1b;
}

.rego-badge--grey {
    background: var(--grey-100, #f3f4f6);
    color: var(--grey-600, #4b5563);
}

/* ─── History Tick/Cross Icons ─── */
.history-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.history-icon svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ─── Finance Calc Widget Results ─── */
.finance-calc-results {
    background: var(--off-white, #f7f8fc);
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}

.fc-result-row-widget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
    font-size: 14px;
    color: var(--grey-600, #4b5563);
}

.fc-result-row-widget:last-of-type {
    border-bottom: none;
}

.fc-result-row-widget strong {
    color: var(--navy, #0f1f3d);
    font-size: 16px;
}

.fc-result-row-widget--primary {
    padding: 10px 12px;
    background: rgba(240, 165, 0, 0.1);
    border-radius: 8px;
    margin: 4px -4px;
}

.fc-result-row-widget--primary strong {
    font-size: 22px;
    color: var(--gold, #f0a500);
}

/* ─── Similar Listings Grid with Card Partial ─── */
.similar-grid--cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.similar-grid--cards .listing-card {
    width: 100%;
}

/* ─── Gallery 16:9 Override ─── */
.gallery-main-wrap--16x9 {
    aspect-ratio: 16 / 9;
}

/* ─── Print CSS ─── */
@media print {
    .listing-sidebar,
    .mobile-sticky-bar,
    .listing-share,
    .listing-actions,
    .report-modal-overlay,
    .finance-calc-widget,
    .finance-card,
    .trust-strip,
    .trust-card,
    .safety-card,
    .listing-report,
    .finance-banner,
    .social-share-bar,
    .gallery-arrow,
    .gallery-counter-badge,
    .gallery-dots,
    .lightbox,
    .back-to-top,
    .fws-overlay {
        display: none !important;
    }

    .listing-detail-grid {
        display: block !important;
    }

    .listing-detail-main {
        width: 100% !important;
        max-width: 100% !important;
    }

    .gallery-main-wrap {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

/* ─── Description ─── */
.listing-description {
    font-size: 15px;
    line-height: 1.75;
    color: var(--grey-800);
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.listing-description.expanded {
    max-height: none;
}

.listing-description:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

/* Legacy description */
.description-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--grey-800);
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.description-text.expanded { max-height: none; }

.description-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.read-more-btn,
.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--gold, #f0a500);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.read-more-btn:hover,
.description-toggle:hover {
    color: var(--gold-hover);
}

.read-more-btn svg,
.description-toggle svg {
    transition: transform 0.25s ease;
}

.read-more-btn.expanded svg,
.description-toggle.expanded svg {
    transform: rotate(180deg);
}

/* ─── Work Sourcing ─── */
.work-sourcing-info-panel {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-finance-referral {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--gold, #f0a500);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.btn-finance-referral:hover {
    background: var(--gold-hover);
    text-decoration: none;
    color: #fff;
}

/* ─── Location + Map ─── */
.listing-location {
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
}

.listing-location h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-location h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--gold, #f0a500);
    border-radius: 2px;
    flex-shrink: 0;
}

.location-text {
    font-size: 14px;
    color: var(--grey-600, #4b5563);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-map {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--grey-200, #e5e7eb);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.directions-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--gold, #f0a500);
    text-decoration: none;
    font-weight: 600;
}

.directions-link:hover {
    color: var(--gold-hover);
    text-decoration: none;
}

/* ─── Price History ─── */
.price-history {
    margin-bottom: 24px;
}

.price-history h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 12px;
}

.price-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
    font-size: 14px;
}

.ph-date { color: var(--grey-500, #6b7280); min-width: 90px; }
.ph-old { color: var(--grey-500, #6b7280); }
.ph-arrow { color: var(--grey-300, #d1d5db); }
.ph-new { font-weight: 600; color: var(--navy, #0f1f3d); }
.ph-down { color: #16a34a; }
.ph-up { color: #dc2626; }

/* ─── Reviews ─── */
.listing-reviews {
    margin-bottom: 24px;
}

.listing-reviews h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 16px;
}

.review-count-label {
    font-weight: 400;
    color: var(--grey-500, #6b7280);
}

.review-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-author strong { font-size: 14px; color: var(--navy, #0f1f3d); }
.review-verified {
    font-size: 11px;
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 6px;
}

.review-stars .star { font-size: 14px; }
.review-stars .star-filled { color: var(--gold, #f0a500); }
.review-stars .star-empty { color: var(--grey-300, #d1d5db); }

.review-date {
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    margin-left: auto;
}

.review-title { font-size: 15px; font-weight: 600; color: var(--navy, #0f1f3d); margin: 4px 0; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--grey-800); margin: 0; }

.review-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.review-tag {
    font-size: 12px;
    padding: 3px 10px;
    background: var(--off-white, #f7f8fc);
    border-radius: 20px;
    color: var(--grey-600, #4b5563);
}

.review-reply {
    margin-top: 12px;
    padding: 12px;
    background: var(--off-white, #f7f8fc);
    border-radius: 8px;
    font-size: 14px;
}

.review-reply strong { font-size: 13px; color: var(--navy, #0f1f3d); }

.review-reply-form textarea {
    width: 100%;
    margin-top: 8px;
    border-radius: 8px;
}

.review-flag-btn {
    background: none;
    border: none;
    color: var(--grey-400, #9ca3af);
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

.review-flag-btn:hover { color: #dc2626; }
.review-empty { color: var(--grey-500, #6b7280); font-size: 14px; }
.review-login-prompt { font-size: 14px; color: var(--grey-500, #6b7280); }
.review-login-prompt a { color: var(--gold, #f0a500); font-weight: 600; }

.review-form-wrap {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.review-form-wrap h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 16px;
}

.star-rating-input label {
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-600, #4b5563);
    margin-bottom: 6px;
    display: block;
}

.star-select { display: flex; gap: 4px; margin-bottom: 16px; }
.star-pick {
    font-size: 28px;
    color: var(--grey-300, #d1d5db);
    cursor: pointer;
    transition: color 0.15s;
}
.star-pick.selected,
.star-pick:hover { color: var(--gold, #f0a500); }

.review-tag-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.review-tag-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--grey-600, #4b5563);
    cursor: pointer;
}

/* ─── Report Section ─── */
.listing-report { margin-bottom: 24px; }
.report-btn {
    background: none;
    border: none;
    color: var(--grey-400, #9ca3af);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}
.report-btn:hover { color: #dc2626; }

/* ─── Similar / Nearby / Related Listings ─── */
.similar-listings,
.nearby-listings,
.related-listings {
    margin-top: 32px;
}

.similar-listings h3,
.nearby-listings h3,
.related-listings h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 16px;
}

.similar-grid,
.nearby-grid,
.related-grid,
.listing-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.similar-card,
.nearby-card,
.related-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}

.similar-card:hover,
.nearby-card:hover,
.related-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.similar-card-img,
.nearby-card-img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--off-white, #f7f8fc);
}

.related-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background-color: var(--off-white, #f7f8fc);
}

.similar-card-body,
.nearby-card-body,
.related-card-body {
    padding: 12px;
}

.similar-card-body h4,
.nearby-card-body h4,
.related-card-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy, #0f1f3d);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-price,
.nearby-price,
.related-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold, #f0a500);
    display: block;
    margin-bottom: 2px;
}

.similar-location,
.nearby-distance,
.related-location {
    font-size: 12px;
    color: var(--grey-500, #6b7280);
}

.related-view-all {
    margin-top: 16px;
    text-align: center;
}

/* Finance cross-sell banner */
.finance-banner {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}

.finance-banner-content {
    color: #fff;
    font-size: 14px;
}

.finance-banner-content strong {
    font-weight: 700;
}

.finance-banner .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── Sidebar ─── */
.listing-sidebar-inner,
.sidebar-sticky {
    position: sticky;
    top: calc(var(--nav-height, 64px) + 24px);
    max-height: calc(100vh - var(--nav-height, 64px) - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300, #d1d5db) transparent;
}

.listing-sidebar-inner::-webkit-scrollbar,
.sidebar-sticky::-webkit-scrollbar {
    width: 4px;
}

.listing-sidebar-inner::-webkit-scrollbar-thumb,
.sidebar-sticky::-webkit-scrollbar-thumb {
    background: var(--gray-300, #d1d5db);
    border-radius: 4px;
}

.listing-sidebar-inner::-webkit-scrollbar-track,
.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

/* Price card */
.price-card {
    background: var(--white);
    border: 2px solid var(--gold, #f0a500);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(240, 165, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold, #f0a500), #fbbf24, var(--gold, #f0a500));
}

.price-amount {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gold, #f0a500);
    font-family: var(--font-display, 'DM Sans'), sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: center;
}

.price-amount-original {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grey-400, #9ca3af);
    text-decoration: line-through;
    display: block;
    margin-top: 2px;
}

.price-card-condition {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--off-white, #f7f8fc);
    color: var(--navy, #0f1f3d);
    margin-top: 8px;
    border: 1px solid var(--grey-200, #e5e7eb);
}

.price-neg { font-size: 13px; font-weight: 600; color: #b37700; margin-top: 4px; }
.price-gst { font-size: 13px; font-weight: 600; color: var(--grey-500, #6b7280); }

/* Sidebar actions */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-block {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Enquire button: gold bg, dark text */
.sidebar-actions .btn-primary.btn-block {
    background: var(--gold, #f0a500);
    color: var(--navy, #0f1f3d);
    font-weight: 700;
    border: none;
    min-height: 48px;
}

.sidebar-actions .btn-primary.btn-block:hover {
    background: var(--gold-hover, #d99400);
    color: var(--navy, #0f1f3d);
}

/* Make Offer button: outline gold */
.sidebar-actions .btn-outline.btn-block {
    border: 2px solid var(--gold, #f0a500);
    color: var(--gold, #f0a500);
    background: transparent;
    min-height: 48px;
    font-weight: 600;
}

.sidebar-actions .btn-outline.btn-block:hover {
    background: rgba(240, 165, 0, 0.06);
    border-color: var(--gold-hover, #d99400);
}

/* Save/Share buttons: gray outline, smaller */
.sidebar-actions .btn-ghost.btn-block {
    border: 1.5px solid var(--grey-300, #d1d5db);
    color: var(--grey-600, #4b5563);
    background: transparent;
    min-height: 40px;
    font-size: 13px;
}

.sidebar-actions .btn-ghost.btn-block:hover {
    border-color: var(--grey-400, #9ca3af);
    background: var(--grey-50, #f9fafb);
}

.finance-card .btn-accent,
.finance-calc-widget .btn-accent,
.finance-company-card .btn-accent {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s;
}

.finance-card .btn-accent:hover,
.finance-calc-widget .btn-accent:hover,
.finance-company-card .btn-accent:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #fff;
    text-decoration: none;
}

.btn-navy {
    background: var(--navy, #0f1f3d);
    color: #fff;
}

.btn-navy:hover {
    background: #1a3260;
    color: #fff;
}

/* Sidebar secondary (watch + share) */
.sidebar-secondary {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--grey-200, #e5e7eb);
    background: var(--white);
    color: var(--grey-500, #6b7280);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}

.share-icon-btn:hover {
    border-color: var(--grey-300, #d1d5db);
    background: var(--grey-50, #f9fafb);
    color: var(--navy, #0f1f3d);
    text-decoration: none;
}

.share-buttons {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

/* Sidebar divider */
.sidebar-divider {
    height: 1px;
    background: var(--grey-200, #e5e7eb);
    margin: 16px 0;
}

/* ─── Seller Card (sidebar) ─── */
.seller-card {
    border-radius: 16px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.seller-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.seller-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.seller-avatar-placeholder {
    width: 56px;
    height: 56px;
    background: var(--navy, #0f1f3d);
    color: var(--gold, #f0a500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
}

.seller-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.seller-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-private { background: var(--grey-100, #f3f4f6); color: var(--grey-600, #4b5563); }

.seller-verifications {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.verification-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--off-white, #f7f8fc);
    color: var(--grey-600, #4b5563);
    font-weight: 600;
}

.seller-rating-row {
    margin-bottom: 12px;
}

.seller-details {
    margin-bottom: 16px;
}

.seller-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--grey-400, #9ca3af);
    margin: 6px 0;
}

.detail-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.seller-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-reveal {
    margin-top: 8px;
    padding: 10px 14px;
    background: var(--off-white, #f7f8fc);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    text-align: center;
}

.seller-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.seller-response-badge svg {
    flex-shrink: 0;
}

.seller-actions .btn-primary {
    background: var(--gold, #f0a500);
    color: var(--navy, #0f1f3d);
    border: none;
    font-weight: 700;
    min-height: 48px;
    transition: background 0.2s, transform 0.15s;
}

.seller-actions .btn-primary:hover {
    background: var(--gold-hover);
    color: var(--navy, #0f1f3d);
    transform: translateY(-1px);
}

.seller-actions .btn-outline {
    border: 2px solid var(--gold, #f0a500);
    color: var(--gold, #f0a500);
    font-weight: 600;
    min-height: 48px;
    transition: all 0.2s;
}

.seller-actions .btn-outline:hover {
    border-color: var(--gold-hover, #d99400);
    background: rgba(240, 165, 0, 0.06);
}

.seller-storefront-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: var(--gold, #f0a500);
    font-weight: 600;
    text-decoration: none;
}

.seller-storefront-link:hover { color: var(--gold-hover); text-decoration: none; }

.lender-clearance-notice {
    background: var(--off-white, #f7f8fc);
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--grey-600, #4b5563);
    margin-bottom: 16px;
}

/* ─── Trust Strip ─── */
.trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--grey-600, #4b5563);
    font-weight: 500;
}

.trust-icon {
    font-size: 14px;
}

/* ─── Clearance Buy Section ─── */
.clearance-buy-card {
    background: var(--white);
    border: 2px solid var(--navy, #0f1f3d);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.clearance-buy-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 8px;
}

.clearance-buy-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--navy, #0f1f3d);
    margin-bottom: 12px;
    font-family: var(--font-display, 'DM Sans'), sans-serif;
}

.clearance-buy-notice {
    font-size: 14px;
    color: var(--grey-600, #4b5563);
    line-height: 1.5;
    margin-bottom: 16px;
}

.clearance-buy-disclaimer {
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    margin-top: 12px;
}

/* ─── Auction Section ─── */
.auction-bid-card {
    background: var(--white);
    border: 2px solid var(--navy, #0f1f3d);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.auction-bid-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 12px;
}

.auction-current-bid {
    margin-bottom: 12px;
}

.auction-label {
    display: block;
    font-size: 13px;
    color: var(--grey-500, #6b7280);
    font-weight: 600;
    margin-bottom: 4px;
}

.auction-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--navy, #0f1f3d);
    font-family: var(--font-display, 'DM Sans'), sans-serif;
}

.auction-bid-count {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
}

.auction-reserve-status {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.reserve-met { background: #dcfce7; color: #16a34a; }
.reserve-not-met { background: #fef3c7; color: #92400e; }

.auction-countdown { margin-bottom: 16px; }

.auction-timer {
    display: flex;
    gap: 4px;
    align-items: center;
}

.countdown-block {
    text-align: center;
    background: var(--off-white, #f7f8fc);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 50px;
}

.cd-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
    font-family: var(--font-display, 'DM Sans'), sans-serif;
}

.cd-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--grey-500, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cd-colon {
    font-size: 18px;
    font-weight: 700;
    color: var(--grey-300, #d1d5db);
}

.auction-ended-label {
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}

.auction-extend-notice {
    font-size: 12px;
    color: var(--grey-500, #6b7280);
    margin-bottom: 12px;
    font-style: italic;
}

.auction-buy-now {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--off-white, #f7f8fc);
    border-radius: 10px;
}

.auction-buy-now-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
}

.auction-bid-form { margin-bottom: 12px; }

.quick-bid-buttons {
    display: flex;
    gap: 6px;
    margin: 8px 0 12px;
}

.quick-bid-btn {
    padding: 4px 10px !important;
    font-size: 12px !important;
}

.auction-proxy-status {
    font-size: 13px;
    color: #2563eb;
    background: #eff6ff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.bid-status-banner {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

.bid-winning { background: #dcfce7; color: #16a34a; }
.bid-outbid { background: #fef3c7; color: #92400e; }

.auction-own-listing {
    color: var(--grey-500, #6b7280);
    font-size: 14px;
    font-style: italic;
}

/* Auction winner / ended display */
.auction-winner-banner {
    padding: 16px;
    background: #dcfce7;
    border: 2px solid #86efac;
    border-radius: 10px;
    color: #166534;
    font-size: 15px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}
.auction-winner-banner strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}
.auction-final-price {
    text-align: center;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f1f3;
}

.bid-flash { animation: bid-flash-anim 0.6s ease; }
@keyframes bid-flash-anim {
    0% { background: rgba(240,165,0,0.2); }
    100% { background: transparent; }
}

/* Bid History */
.bid-history-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.bid-history-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 12px;
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bid-history-table th {
    text-align: left;
    font-weight: 600;
    color: var(--grey-500, #6b7280);
    padding: 6px 8px;
    border-bottom: 1px solid var(--grey-200, #e5e7eb);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bid-history-table td {
    padding: 8px;
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
    color: var(--grey-700, #374151);
}

.bid-history-mine td { background: #fffbeb; }
.bid-history-empty { color: var(--grey-500, #6b7280); font-size: 14px; }

.bid-ajax-feedback {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}
.bid-ajax-success { background: #dcfce7; color: #16a34a; }
.bid-ajax-error { background: #fef2f2; color: #dc2626; }

.auction-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--navy, #0f1f3d);
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.auction-toast-show { opacity: 1; transform: translateX(0); }

/* ─── Deposit Card ─── */
.deposit-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.deposit-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 8px;
}

.deposit-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold, #f0a500);
    font-family: var(--font-display, 'DM Sans'), sans-serif;
    margin-bottom: 12px;
}

.deposit-notice {
    font-size: 14px;
    color: var(--grey-600, #4b5563);
    line-height: 1.5;
    margin-bottom: 12px;
}

.deposit-terms {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.deposit-terms li {
    font-size: 13px;
    color: var(--grey-600, #4b5563);
    padding: 4px 0 4px 20px;
    position: relative;
}

.deposit-terms li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

/* ─── Finance Calculator (sidebar) ─── */
.finance-calc-widget,
.finance-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 16px;
    overflow: hidden;
}

.finance-calc-widget > h3,
.finance-card > .finance-card-header {
    background: var(--navy, #0f1f3d);
    color: #fff;
    padding: 14px 24px;
    margin: 0;
    border-radius: 0;
}

.finance-calc-widget > h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0;
}

.finance-card > .finance-card-header h4 {
    color: #fff;
}

.finance-card > .finance-card-header .finance-card-chevron {
    color: rgba(255, 255, 255, 0.6);
}

.finance-calc-widget > *:not(h3),
.finance-card > .finance-card-body {
    padding-left: 24px;
    padding-right: 24px;
}

.finance-calc-widget > .finance-calc-sub {
    padding-top: 16px;
}

.finance-calc-widget > .finance-calc-fields {
    padding-bottom: 0;
}

.finance-calc-widget > .fc-results,
.finance-calc-widget > .finance-calc-result {
    padding-bottom: 16px;
}

.finance-calc-widget > .finance-disclaimer,
.finance-calc-widget > .finance-calc-disclaimer {
    padding-bottom: 20px;
}

.finance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.finance-card-header h4 {
    margin: 0;
}

.finance-card-chevron {
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.finance-card-chevron.open {
    transform: rotate(180deg);
}

.finance-card-body {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    max-height: 2000px;
    opacity: 1;
}

.finance-card-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.finance-calc-widget h3,
.finance-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 4px;
}

.finance-calc-sub {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
    margin-bottom: 16px;
}

.finance-calc-fields,
.finance-calc-result {
    margin-bottom: 16px;
}

.fc-field { margin-bottom: 14px; }
.fc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-600, #4b5563);
    margin-bottom: 6px;
}

.fc-price-display {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy, #0f1f3d);
}

.fc-slider,
.form-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--grey-200, #e5e7eb);
    border-radius: 3px;
    outline: none;
}

.fc-slider::-webkit-slider-thumb,
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold, #f0a500);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.fc-select {
    width: 100%;
}

.fc-results {
    background: var(--off-white, #f7f8fc);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.fc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: var(--grey-600, #4b5563);
}

.fc-result-row span:last-child,
.fc-result-row strong {
    font-weight: 700;
    color: var(--navy, #0f1f3d);
}

.fc-result-primary {
    font-size: 16px;
    background: rgba(240, 165, 0, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px -4px;
}
.fc-result-primary strong {
    font-size: 22px;
    color: var(--gold, #f0a500);
}

.fc-preapproval {
    text-align: center;
    margin-top: 12px;
}

.fc-preapproval-link {
    color: var(--gold, #f0a500);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.fc-preapproval-link:hover { color: var(--gold-hover); }
.fc-preapproval small {
    display: block;
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    margin-top: 2px;
}

.finance-calc-result {
    text-align: center;
}

.finance-calc-label {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
    display: block;
}

.finance-calc-amount {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold, #f0a500);
    font-family: var(--font-display, 'DM Sans'), sans-serif;
}

.finance-calc-weekly {
    display: block;
    font-size: 14px;
    color: var(--grey-500, #6b7280);
    font-weight: 600;
    margin-top: 2px;
}

.finance-disclaimer,
.finance-calc-disclaimer {
    font-size: 0.75rem;
    color: var(--grey-400, #9ca3af);
    line-height: 1.5;
    margin-top: 8px;
    font-style: italic;
}

.finance-disclaimer a,
.finance-calc-disclaimer a {
    color: var(--gold, #f0a500);
}

/* ─── Tender / EOI Card ─── */
.tender-info-card {
    background: var(--white);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.tender-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 8px;
}

.tender-countdown {
    font-weight: 700;
    color: #dc2626;
}

.finance-company-card {
    background: var(--off-white, #f7f8fc);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.finance-company-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 4px;
}

.finance-company-verified {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
}

/* ─── Cross-Promo Cards ─── */
.cross-promo-card {
    background: var(--off-white, #f7f8fc);
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.cross-promo-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 4px;
}

.cross-promo-card p {
    font-size: 13px;
    color: var(--grey-500, #6b7280);
    margin-bottom: 12px;
}

/* ─── Trust & Safety Cards ─── */
.trust-card {
    border: 1px solid var(--grey-200, #e5e7eb);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.trust-card-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
}

.trust-card-toggle h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin: 0;
    flex: 1;
}

.trust-card-chevron {
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    transition: transform 0.2s;
}

.trust-card-body {
    padding: 0 16px 16px;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trust-list li {
    font-size: 13px;
    color: var(--grey-600, #4b5563);
    padding: 6px 0;
    line-height: 1.5;
}

.safety-card {
    background: var(--off-white, #f7f8fc);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.safety-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 10px;
}

.safety-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-card li {
    font-size: 13px;
    color: var(--grey-600, #4b5563);
    padding: 4px 0 4px 18px;
    position: relative;
}

.safety-card li::before {
    content: '·';
    position: absolute;
    left: 4px;
    font-weight: 700;
    color: var(--grey-400, #9ca3af);
}

.safety-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin-bottom: 10px;
}

.safety-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.safety-list li {
    font-size: 13px;
    color: var(--grey-600, #4b5563);
    padding: 4px 0 4px 18px;
    position: relative;
}

.safety-list li::before {
    content: '·';
    position: absolute;
    left: 4px;
    font-weight: 700;
}

.safety-list a {
    color: var(--gold, #f0a500);
    text-decoration: none;
    font-weight: 600;
}

/* ─── Lightbox ─── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.96);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox.open,
.lightbox[style*="display: flex"],
.lightbox[style*="display:flex"] {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.2s ease;
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.lightbox-nav,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.2s;
    z-index: 10;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-nav:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ─── Modals ─── */
.modal,
.report-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,0.5);
}

.modal.open,
.report-modal-overlay[style*="display: flex"],
.report-modal-overlay[style*="display:flex"] {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-box,
.report-modal,
.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header,
.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
}

.modal-header h3,
.report-modal-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy, #0f1f3d);
    margin: 0;
}

.modal-close,
.report-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--grey-400, #9ca3af);
    padding: 4px 8px;
}

.modal-close:hover,
.report-modal-close:hover { color: var(--navy, #0f1f3d); }

.modal-body {
    padding: 12px 24px 24px;
}

.report-modal-actions,
.form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}

.report-feedback {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.enquiry-listing-ref {
    padding: 8px 24px;
    border-bottom: 1px solid var(--grey-100, #f3f4f6);
    font-size: 14px;
}

.enquiry-listing-ref strong { display: block; color: var(--navy, #0f1f3d); }
.enquiry-listing-ref span { color: var(--grey-500, #6b7280); }

.char-count {
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    text-align: right;
    margin-top: 4px;
}

/* Login prompt inside modals for logged-out users */
.modal-login-prompt {
    padding: 32px 24px;
    text-align: center;
    background: var(--off-white, #f7f8fc);
    border-radius: 12px;
    margin: 8px;
}

.modal-login-prompt p {
    font-size: 15px;
    color: var(--grey-600, #4b5563);
    margin: 0 0 20px;
    line-height: 1.6;
}

.modal-login-prompt .btn {
    min-width: 180px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
}

.modal-login-prompt .modal-login-register {
    font-size: 13px;
    color: var(--grey-400, #9ca3af);
    margin-top: 16px;
    margin-bottom: 0;
}

.modal-login-prompt .modal-login-register a {
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 600;
}

.modal-login-prompt .modal-login-register a:hover {
    text-decoration: underline;
}

/* ─── Finance Workspace Toggle ─── */
.ws-toggle {
    display: flex;
    gap: 8px;
}

.ws-toggle-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border: 2px solid var(--grey-200, #e5e7eb);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-600, #4b5563);
    transition: all 0.15s;
}

.ws-toggle-btn.active,
.ws-toggle-btn:hover {
    border-color: var(--gold, #f0a500);
    background: rgba(240,165,0,0.04);
    color: var(--navy, #0f1f3d);
}

/* ─── Mobile Sticky Bar ─── */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--white);
    border-top: 1px solid var(--grey-200, #e5e7eb);
    padding: 0 16px;
    z-index: 100;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);
}

.mobile-sticky-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.mobile-sticky-bar .mobile-sticky-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--gold, #f0a500);
    font-family: var(--font-display, 'DM Sans'), sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-sticky-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
    margin-left: auto;
}

.mobile-sticky-bar .mobile-sticky-inner .mobile-sticky-actions {
    margin-top: 0;
    flex: unset;
    margin-left: auto;
}

.mobile-sticky-actions .btn {
    min-height: 40px;
    padding: 8px 20px;
    white-space: nowrap;
}

/* On mobile sticky: Enquire button gold with dark text */
.mobile-sticky-actions .btn-primary {
    background: var(--gold, #f0a500);
    color: var(--navy, #0f1f3d);
    font-weight: 700;
    border: none;
    transition: background 0.2s, transform 0.15s;
}

.mobile-sticky-actions .btn-primary:active {
    transform: scale(0.97);
    background: var(--gold-hover, #d99400);
}

/* ─── Listing Disclaimer ─── */
.listing-disclaimer {
    margin-top: 20px;
    padding: 16px;
    background: var(--off-white, #f7f8fc);
    border-radius: 10px;
    font-size: 12px;
    color: var(--grey-400, #9ca3af);
    line-height: 1.5;
}

/* ─── Live Dot ─── */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-danger);
    margin-right: 8px;
    animation: live-pulse 1.5s infinite;
    vertical-align: middle;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(220,38,38,0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .listing-detail-grid,
    .listing-columns {
        grid-template-columns: 1fr;
    }

    .listing-sidebar-inner,
    .sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .gallery-main-wrap .gallery-arrow,
    .gallery-main .gallery-nav {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }

    .listing-detail {
        padding: 20px 0 100px;
    }

    .gallery-main-wrap {
        border-radius: 0;
        aspect-ratio: 4/3;
    }

    .gallery-wrap {
        padding-bottom: 10px;
    }
}

@media (max-width: 900px) {
    .similar-grid--cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .spec-item {
        padding: 10px 12px;
    }

    .spec-value {
        font-size: 14px;
    }

    .similar-grid,
    .similar-grid--cards,
    .nearby-grid,
    .related-grid,
    .listing-cards-row {
        grid-template-columns: 1fr;
    }

    .specs-table-label {
        width: 40%;
        font-size: 13px;
        padding: 8px 8px 8px 0;
    }

    .specs-table-value {
        font-size: 13px;
        padding: 8px 0;
    }

    .listing-title {
        font-size: 20px;
    }

    .listing-price {
        font-size: 28px;
    }

    .price-amount {
        font-size: 26px;
    }

    .listing-header-actions .print-btn {
        display: none;
    }

    .listing-header-top {
        flex-direction: column;
        gap: 12px;
    }

    .listing-header-actions {
        align-self: flex-start;
    }

    .auction-timer {
        gap: 2px;
    }

    .countdown-block {
        padding: 6px 8px;
        min-width: 44px;
    }

    .cd-val {
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PRINT                                                                       */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media print {
    .mobile-sticky-bar,
    .listing-actions,
    .listing-share,
    .social-share-bar,
    .sidebar-actions,
    .sidebar-secondary,
    .trust-strip,
    .trust-card,
    .safety-card,
    .finance-calc-widget,
    .finance-card,
    .finance-banner,
    .cross-promo-card,
    .listing-header-actions,
    .gallery-arrow,
    .gallery-counter-badge,
    .gallery-dots,
    .lightbox,
    .report-modal-overlay,
    .fws-overlay,
    .listing-report,
    .review-form-wrap,
    .deposit-card,
    .listing-disclaimer {
        display: none !important;
    }

    .listing-detail-grid,
    .listing-columns {
        grid-template-columns: 1fr;
    }

    .listing-sidebar-inner {
        position: static;
    }

    .listing-description {
        max-height: none !important;
        overflow: visible !important;
    }

    .listing-description::after {
        display: none !important;
    }

    .listing-price {
        color: #000 !important;
    }

    .price-amount {
        color: #000 !important;
    }

    body {
        font-size: 12pt;
    }
}

/* ─── Ultra-small phone gallery ─── */
@media (max-width: 375px) {
    .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .gallery-thumbs {
        gap: 0.25rem;
    }
    .gallery-thumb {
        width: 48px;
        height: 36px;
    }

    /* Auction bid form at 375px */
    .auction-bid-card {
        padding: 12px;
    }
    .auction-price {
        font-size: 1.75rem;
    }
    .countdown-block {
        padding: 4px 6px;
        min-width: 38px;
    }
    .cd-val {
        font-size: 14px;
    }
    .cd-lbl {
        font-size: 8px;
    }
    .cd-colon {
        font-size: 14px;
    }
    .quick-bid-buttons {
        gap: 4px;
    }
    .quick-bid-btn {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
    .auction-bid-form .form-control {
        font-size: 1rem;
        padding: 0.6rem;
    }
    .auction-bid-form .btn-full {
        font-size: 0.95rem;
        padding: 0.7rem;
    }
}

/* Countdown urgent state on listing detail */
.auction-countdown.countdown-urgent .countdown-block {
    background: #fef2f2;
}
.auction-countdown.countdown-urgent .cd-val {
    color: #dc2626;
}
.auction-countdown.countdown-urgent .auction-label {
    color: #dc2626;
}

/* Outbid banner (updated by JS polling) */
.bid-outbid-banner {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0;
    background: #fef2f2;
    color: #dc2626;
    text-align: center;
    display: none;
    animation: outbid-pulse 0.5s ease;
}
.bid-outbid-banner.visible { display: block; }
@keyframes outbid-pulse {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* ─── Auction-Aware Price Labels ─── */
.price-label,
.listing-price-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--grey-600, #4b5563);
    font-weight: 600;
    margin-bottom: 2px;
}
.listing-bid-count {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--grey-500, #6b7280);
    margin-left: 8px;
    font-weight: 500;
}

/* ─── Bid Status Banners ─── */
.bid-status-banner {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.75rem;
}
.bid-winning {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.bid-outbid {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ─── Bid AJAX Feedback ─── */
.bid-ajax-feedback {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
}
.bid-ajax-success {
    background: #dcfce7;
    color: #166534;
}
.bid-ajax-error {
    background: #fee2e2;
    color: #991b1b;
}

/* ─── Countdown Urgent State ─── */
.countdown-urgent .auction-timer span,
.countdown-urgent .cd-val {
    background: #991b1b;
}
.countdown-urgent .auction-timer {
    animation: urgentPulse 1.5s ease-in-out infinite;
}

/* ─── Live Dot Indicator ─── */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: livePulse 2s ease-in-out infinite;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MOBILE AUDIT FIXES — 768px iPad                                           */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Gallery: full width, no border radius */
    .gallery-wrap {
        margin-left: -16px;
        margin-right: -16px;
    }

    .listing-gallery {
        padding: 0;
    }

    .gallery-main-wrap {
        border-radius: 0;
    }

    /* Gallery thumbnails: scrollable row */
    .gallery-thumbs {
        padding: 8px 16px;
        gap: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .gallery-thumb {
        flex-shrink: 0;
    }

    /* Gallery arrows: always visible on touch */
    .gallery-main-wrap .gallery-arrow,
    .gallery-main .gallery-nav {
        opacity: 1;
    }

    /* Mobile sticky bar: account for bottom nav */
    .mobile-sticky-bar {
        bottom: 60px;
        height: 64px;
        padding: 0 16px;
        z-index: 999;
    }

    /* Finance calc: full width inputs — only add padding to body, not overriding header */
    .finance-calc-widget > *:not(h3),
    .finance-card > .finance-card-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .finance-calc-fields .form-group {
        width: 100%;
    }

    .finance-calc-fields input,
    .finance-calc-fields select {
        width: 100%;
        box-sizing: border-box;
    }

    /* Map: full width */
    .listing-map {
        height: 200px;
        border-radius: 8px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Specs table: prevent overflow */
    .specs-table {
        width: 100%;
        table-layout: fixed;
    }

    .specs-table-label,
    .specs-table-value {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Listing detail padding: room for sticky bar */
    .listing-detail {
        padding-bottom: 140px;
    }

    /* Enquiry modal: full width */
    .enquiry-modal,
    .report-modal {
        width: 95%;
        max-width: 95vw;
        margin: 20px auto;
    }

    /* Auction bid form: full width */
    .auction-bid-card {
        padding: 16px;
    }

    .auction-bid-form .form-control {
        width: 100%;
        box-sizing: border-box;
    }

    .quick-bid-buttons {
        flex-wrap: wrap;
    }

    .quick-bid-btn {
        flex: 1;
        min-width: calc(33% - 6px);
    }

    /* Breadcrumb: truncate on mobile */
    .breadcrumb {
        font-size: 12px;
    }

    .bc-current {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MOBILE AUDIT FIXES — 375px iPhone SE                                      */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
    /* Gallery: full width */
    .gallery-main-wrap {
        aspect-ratio: 4/3;
    }

    /* Listing title: smaller */
    .listing-title {
        font-size: 18px;
        line-height: 1.3;
    }

    /* Price: readable but compact */
    .listing-price,
    .price-amount {
        font-size: 24px;
    }

    /* Specs grid: 2 columns tighter */
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .spec-item {
        padding: 8px 10px;
    }

    .spec-label {
        font-size: 10px;
    }

    .spec-value {
        font-size: 13px;
    }

    /* Specs table: compact */
    .specs-table-label {
        width: 38%;
        font-size: 12px;
        padding: 6px 6px 6px 0;
    }

    .specs-table-value {
        font-size: 12px;
        padding: 6px 0;
    }

    /* Similar listings: single column */
    .similar-grid,
    .similar-grid--cards,
    .nearby-grid,
    .related-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Listing header: stack */
    .listing-header-top {
        flex-direction: column;
        gap: 8px;
    }

    .listing-header-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .listing-header-actions .btn {
        flex: 1;
        text-align: center;
    }

    /* Finance calc: compact */
    .finance-calc-amount {
        font-size: 24px;
    }

    /* Mobile sticky bar: compact at 375px */
    .mobile-sticky-bar {
        height: 64px;
        padding: 0 12px;
    }

    .mobile-sticky-bar .mobile-sticky-price {
        font-size: 18px;
    }

    .mobile-sticky-actions {
        gap: 6px;
        margin-top: 0;
    }

    .mobile-sticky-actions .btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* Description card: readable */
    .listing-description {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Seller card */
    .seller-card {
        padding: 14px;
    }

    /* Map: shorter on tiny screens */
    .listing-map {
        height: 160px;
    }

    /* Auction bid card: tight */
    .auction-bid-card {
        padding: 12px;
    }

    .auction-price {
        font-size: 1.75rem;
    }

    .auction-bid-form .btn-full {
        padding: 12px;
        font-size: 15px;
    }

    /* Countdown blocks: compact */
    .countdown-block {
        padding: 4px 6px;
        min-width: 38px;
    }

    .cd-val {
        font-size: 14px;
    }

    .cd-lbl {
        font-size: 8px;
    }

    /* Gallery nav arrows: smaller */
    .gallery-nav,
    .gallery-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Gallery thumbs: smaller */
    .gallery-thumbs {
        gap: 4px;
    }

    .gallery-thumb {
        width: 48px;
        height: 36px;
    }

    /* Quick bid buttons: 2 per row */
    .quick-bid-buttons {
        gap: 4px;
    }

    .quick-bid-btn {
        font-size: 11px !important;
        padding: 3px 6px !important;
        min-width: calc(33% - 4px);
    }
}

