/* ── Listing breadcrumb + prev/next nav bar ─────────────────── */

.hpl-listing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto 16px;
    padding: 10px 16px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    gap: 12px;
    flex-wrap: wrap;
}

.hpl-listing-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #888;
}

.hpl-nav-back,
.hpl-nav-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8B1A1A;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color .15s;
}

.hpl-nav-back:hover,
.hpl-nav-cat:hover {
    color: #6e1414;
    text-decoration: underline;
}

.hpl-nav-back svg,
.hpl-nav-cat svg {
    flex-shrink: 0;
}

.hpl-nav-sep {
    color: #ccc;
    font-size: 14px;
}

.hpl-listing-prevnext {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hpl-nav-adj {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #8B1A1A;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background .15s, color .15s;
}

.hpl-nav-adj:hover {
    background: #f0e0e0;
    color: #6e1414;
}

.hpl-nav-adj--disabled {
    color: #ccc;
    cursor: default;
    padding: 4px 8px;
}

.hpl-nav-divider {
    color: #ddd;
    font-size: 14px;
    user-select: none;
}

@media ( max-width: 600px ) {
    .hpl-listing-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ── End nav bar ────────────────────────────────────────────── */

.hpl-single-listing {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

.hpl-featured-banner {
    background: #b08700;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 8px;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.hpl-sold-banner {
    background: #c0392b;
    color: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    padding: 10px;
    letter-spacing: 2px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hpl-listing-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .hpl-listing-layout { grid-template-columns: 1fr; }
}

/* Gallery */
.hpl-gallery-main img {
    width: 100%;
    border-radius: 6px;
    object-fit: contain;
    max-height: 560px;
    background: #f5f5f5;
}

.hpl-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hpl-gallery-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s;
}

.hpl-gallery-thumbs img.active,
.hpl-gallery-thumbs img:hover {
    border-color: #0073aa;
}

.hpl-no-image img {
    background: #f5f5f5;
    opacity: 0.5;
}

/* Details sidebar */
.hpl-listing-details {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
}

.hpl-listing-title {
    font-size: 22px;
    margin: 0 0 12px;
}

.hpl-price {
    font-size: 28px;
    font-weight: 700;
    color: #1a7f37;
}

.hpl-price-contact {
    font-size: 18px;
    color: #555;
    font-style: italic;
}

.hpl-sold-label {
    font-size: 14px;
    background: #c0392b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

.hpl-condition-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #0073aa;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin: 10px 0 16px;
}

.hpl-dealer-badge {
    display: inline-block;
    background: #f0f7ff;
    color: #0073aa;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
}

.hpl-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.hpl-specs-table th,
.hpl-specs-table td {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.hpl-specs-table th {
    color: #777;
    font-weight: 500;
    width: 100px;
}

.hpl-listing-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.hpl-btn {
    display: block;
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.hpl-btn-primary   { background: #0073aa; color: #fff; }
.hpl-btn-primary:hover { background: #005f8a; color: #fff; }
.hpl-btn-secondary { background: #f0f0f0; color: #333; }
.hpl-btn-secondary:hover { background: #e0e0e0; }
.hpl-btn-outline   { background: transparent; color: #c0392b; border: 1.5px solid #c0392b; }
.hpl-btn-outline:hover { background: #fdf0ee; }

/* ── Seller info (individual) ─────────────────────────────── */

.hpl-seller-info {
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
    padding-top: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.hpl-seller-info strong { display: block; font-size: 15px; }
.hpl-seller-info small  { color: #888; display: block; }

/* ── Dealer card in listing sidebar ──────────────────────── */

.hpl-dealer-card-info {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
}

.hpl-dealer-featured-tag {
    display: inline-block;
    background: #b08700;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.hpl-dealer-card-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.hpl-dealer-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.hpl-dealer-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hpl-dealer-card-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #8B1A1A;
    background: #fdecea;
}

.hpl-dealer-card-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hpl-dealer-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hpl-dealer-card-name:hover { color: #8B1A1A; }

.hpl-dealer-card-loc,
.hpl-dealer-card-count {
    font-size: 12px;
    color: #888;
}

.hpl-dealer-card-phone {
    font-size: 13px;
    color: #8B1A1A;
    text-decoration: none;
    font-weight: 600;
}

.hpl-dealer-card-phone:hover { text-decoration: underline; }

.hpl-dealer-card-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: #8B1A1A;
    color: #fff;
    text-decoration: none;
    padding: 9px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s;
}

.hpl-dealer-card-view-btn:hover { background: #a82020; color: #fff; }

/* Description */
.hpl-listing-description {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 15px;
    line-height: 1.7;
}

.hpl-message-form-wrap {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* More Like This */
.hpl-related-wrap {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}
