/* Listing Card Styles */
.bpd-listing-card {
    min-width: 95vw;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    margin: 0 auto 0 auto; /* top right bottom left */;
    background: var(--wp--preset--color--base, #fff);
    border: 1px solid var(--wp--preset--color--contrast-3, #e5e5e5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
    align-items: flex-start;
}

.bpd-listing-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.bpd-listing-card > a {
    text-decoration: none;
}
.bpd-card-title,
.bpd-card-title a{
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0 0.7rem 0;
    color: #00897b;
}

.bpd-card-rank {
    position: absolute;
    float: left;
    margin-left: 0.2em;
    top: 0.2em;
    padding: 0.2em 0.5em;
    border-radius: 1em;
    font-weight: bold;
    font-size: 1em;
    z-index: 3;
    box-shadow: 0 2px 8px #0002;
}
.bpd-card-rank-1 {
    background: #ffd700; /* Gold */
    opacity: 0.9;
    color: #222;
}
.bpd-card-rank-2 {
    background: #fff; /* Silver */
    opacity: 0.9;
    color: #222;
}
.bpd-card-rank-3 {
    background: #cd7f32; /* Bronze */
    opacity: 0.9;
    color: #fff;
}
.bpd-card-rank-normal {
    background: #aaaaaa; /* Default color */
    opacity: 0.9;
    color: #222;
}
.bpd-card-content {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    padding: 0 5px 5px 1em;
    justify-content: flex-start;
}
.bpd-card-info {
    display: flex;
    flex-direction: column;
}
.bpd-card-meta {
    font-size: 1em;
    color: var(--wp--preset--color--contrast-2, #666);
    margin-bottom: 0.1rem;
    display: flex;
    flex-wrap: wrap;
}
.bpd-card-stat {
    margin-bottom: 0.3rem;
}
.bpd-card-stat,
.bpd-card-category,
.bpd-card-location {
    display: flex;
    width: 100%;
    float: left;
    gap: 0.8rem;
}
.bpd-review-link {
    display: none;
}
.bpd-card-image {
    max-width: 30%;
    height: 100%;
}

.bpd-card-img { /* Thumbnail image container */
    max-width: 100%;
    min-width: 20%;
    height: 100%;
    display: flex;   
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.bpd-card-excerpt {
    font-size: 0.8rem;
    line-height: 1.4em;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

@media (min-width: 500px) {
    .bpd-listing-card {
        font-size: 1rem;
    }
    .bpd-card-title,
    .bpd-card-title a {
        max-width: 80%;
        font-size: 1.5rem;
        margin: 1rem 0 1rem 0;
    }
    .bpd-card-rank {
        font-size: 1.3rem;
        top: 0.5em;
        float: right;
        right: 0.5em;
    }
    .bpd-card-image {
        max-width: 25%;
    }
    
    .bpd-card-excerpt,
    .bpd-card-excerpt p {
        font-size: 1rem;
        line-height: normal;
        margin: 0.5rem 0;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
}

@media (min-width: 768px) {
    .bpd-listing-card {
        font-size: 1rem;
    }
    .bpd-card-title,
    .bpd-card-title a {
        font-size: 1.8rem;
        margin: 1.5rem 0 1.5rem 0;
    }
    .bpd-card-rank {
        font-size: 1.5rem;
        top: 0.5em;
        float: right;
        right: 0.5em;
    }
    .bpd-card-image {
        max-width: 25%;
    }
    
    .bpd-card-stat,
    .bpd-card-category,
    .bpd-card-location {
        line-height: normal;
    }
    
    .bpd-card-excerpt,
    .bpd-card-excerpt p {
        font-size: 1rem;
        line-height: normal;   
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }
}

@media (min-width: 1024px) {
    .bpd-listing-card {
        font-size: 1rem;
        max-width: 500px;
        min-width: 80%;
    }
    .bpd-card-title,
    .bpd-card-title a {
        font-size: 1.5rem;
        margin: 1rem 0 1rem 0;
    }
    
    .bpd-card-rank {
        top: 0.5em;
        float: right;
        right: 0.5em;
        padding: 0.5em 1em;
        font-size: 1.3em;
    }

    .bpd-card-image {
        max-width: 25%;
    }
    .bpd-card-img {
        max-width: 180px;
        padding: 0.3rem;
        display: flex;
        align-items: stretch;
        display: block;
        border-radius: 12px;
    }
    .bpd-card-stat,
    .bpd-card-category,
    .bpd-card-location {
        margin: 0.2rem 0;
    }
    .bpd-card-stat {
        margin-bottom: 0.6rem;
    }

    .bpd-card-excerpt,
    .bpd-card-excerpt p {
        font-size: 1rem;
        -webkit-line-clamp: 8;
        line-clamp: 8;
    }
}
