/* listings.css */

/* General page */
body {
    font-family: Arial, sans-serif;
    background: #f6f6f6;
    margin: 0;
}
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}
h1 {
    text-align: center;
    font-size: 24px;
}

/* Verified badge & fav icon */
.verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    z-index: 10;
}
.fav-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.fav-icon-wrapper:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}
.jd-verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 2px;
}
.jd-verified-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Listing card */
.listing-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-left: 4px solid #f14d54;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.listing-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.listing-card img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.listing-content {
    flex: 1;
    min-width: 250px;
}
.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}
.listing-title-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.listing-header h2 {
    margin: 0;
    font-size: 20px;
}
.listing-header h2 a {
    color: #333;
    text-decoration: none;
}
.claimed {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

/* Ratings */
.jd-rating-container {
    font-family: Arial, sans-serif;
    display: inline-block;
    margin-top: 15px;
}
.jd-rating-label {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 6px;
}
.jd-star-box {
    display: inline-flex;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 6px;
    cursor: pointer;
}
.jd-star {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    transition: transform 0.2s ease;
}
.jd-star svg {
    width: 100%;
    height: 100%;
    display: block;
}
.jd-star svg .cls-1 {
    fill: #fff;
    stroke: #ccc;
    transition: fill 0.2s ease, stroke 0.2s ease;
}
.jd-star svg .cls-2 {
    stroke: #777;
    fill: none;
    transition: stroke 0.2s ease;
}
.jd-star.hovered svg .cls-1,
.jd-star.selected svg .cls-1 {
    fill: #ff5722;
    stroke: #ff5722;
}
.jd-star.hovered svg .cls-2,
.jd-star.selected svg .cls-2 {
    stroke: #fff;
    fill: #fff;
}

/* Rating display */
.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.rating span {
    font-size: 14px;
}

/* Categories/tags */
.tags {
    margin: 8px 0;
}
.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 6px;
}

/* Meta info */
.meta {
    margin-top: 6px;
    color: #444;
    font-size: 14px;
}
.status {
    color: green;
    font-size: 13px;
    margin-left: 10px;
}

/* Actions/buttons */
.actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn {
    background: #007BFF;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}
.btn.green {
    background: #28a745;
}
.btn.gray {
    background: #6c757d;
}

/* Bottom line */
.bottom-line {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}
