.listing-gallery {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.listing-main-image-wrapper {
    flex: 1 1 0%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    min-width: 0;
    overflow: hidden;
}

.listing-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-main-image-wrapper:hover .listing-main-image {
    transform: none;
    cursor: default;
}

.listing-thumbnails {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: -1;
}

.listing-thumbnail-btn {
    border: 1px solid transparent;
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
}

.listing-thumbnail-btn img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    background-color: #f8f8f8;
    display: block;
}

.listing-thumbnail-btn.active {
    border-color: var(--color-coral);
    box-shadow: none;
}

.listing-info-detail {
    padding: 10px 5px;
}

.listing-category-detail {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0;
}

.listing-rarity-badge {
    display: inline-block;
    color: #fff;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin: 0;
}

.listing-title-detail {
    font-size: 2.1em;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.listing-top-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.listing-top-meta-left {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.listing-condition-detail {
    font-size: 1em;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 10px;
}

.listing-status-detail {
    font-size: 0.98em;
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.listing-price-detail {
    font-size: 1.4em;
    color: #d32f2f;
    font-weight: 700;
    margin-bottom: 30px;
}

.listing-like-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #d63384;
    margin-left: auto;
    text-align: right;
}

.listing-like-count-detail {
    line-height: 1;
}

.listing-description-detail {
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
    color: #555;
    line-height: 1.6;
}

.listing-field-block {
    margin-bottom: 12px;
}

.listing-field-label {
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 2px;
}

.listing-field-value {
    color: #212529;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.listing-details-block {
    border-top: 1px solid #e9ecef;
    padding-top: 14px;
}

.listing-meta-panel {
    margin-top: 16px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.listing-meta-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.listing-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.listing-meta-item {
    background: #f8f9fa;
    border: 1px solid #edf0f2;
    border-radius: 10px;
    padding: 10px;
}

.listing-meta-item-wide {
    grid-column: 1 / -1;
}

.listing-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 6px;
}

.listing-meta-value {
    display: block;
    color: #212529;
    font-weight: 600;
    word-break: break-word;
}

.listing-meta-value-code {
    display: block;
    color: #343a40;
    background: #ffffff;
    border: 1px dashed #d9dee3;
    border-radius: 8px;
    padding: 8px;
    font-size: 0.84rem;
    white-space: normal;
    word-break: break-all;
}

.listing-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.listing-actions .btn-black-action {
    flex: 0 0 auto;
    width: auto;
    padding: 12px 24px;
    text-decoration: none;
}

.listing-actions .btn-black-action:hover {
    text-decoration: none;
}

.listing-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    border-radius: 0;
    min-width: 220px;
}

.listing-report-btn:hover {
    background: #f4f4f4;
    color: #000;
    text-decoration: none;
}

.listing-report-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.listing-trade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background-color: #667eea;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.listing-trade-btn:hover {
    background-color: #5665d8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.listing-recommendations {
    margin-top: 40px;
}

.listing-recommendations-title {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.listing-recommendation-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.listing-recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.listing-recommendation-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.listing-recommendation-body {
    padding: 12px 14px 16px;
}

.listing-recommendation-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.listing-recommendation-price {
    color: #28a745;
    font-weight: 700;
}

@media (max-width: 576px) {
    .listing-meta-grid {
        grid-template-columns: 1fr;
    }
}

