/* -------------------------------------------------------
   SUNNYCARD – BASISLAYOUT
------------------------------------------------------- */

.cwfeeds-item-sunnycard {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    transition: transform .2s ease;
}

.cwfeeds-item-sunnycard:hover {
    transform: translateY(-4px);
}

/* -------------------------------------------------------
   AFBEELDING
------------------------------------------------------- */

.cwfeeds-sunnycard-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* -------------------------------------------------------
   BODY
------------------------------------------------------- */

.cwfeeds-sunnycard-body {
    padding: 15px 18px;
}

/* -------------------------------------------------------
   TITEL
------------------------------------------------------- */

.cwfeeds-sunnycard-title {
    font-size: 20px;
    margin: 0 0 8px;
    font-weight: 600;
    color: #222;
}

/* -------------------------------------------------------
   LOCATIE – COMPACT ONDER TITEL
------------------------------------------------------- */

.cwfeeds-sunnycard-location {
    font-size: 12px !important;
    color: #888 !important;
    margin-top: -4px !important;
    margin-bottom: 4px !important;
    line-height: 1.3 !important;
    text-transform: lowercase !important;
    display: block !important;
}

/* -------------------------------------------------------
   META (rating + prijs)
------------------------------------------------------- */

.cwfeeds-sunnycard-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cwfeeds-sunnycard-rating {
    font-size: 15px;
    color: #444;
}

.cwfeeds-sunnycard-price {
    font-size: 18px;
    font-weight: bold;
    color: #e60023;
}

/* -------------------------------------------------------
   DESCRIPTION – UNIFORM & IMPREZA-PROOF
------------------------------------------------------- */

.cwfeeds-sunnycard-description,
.cwfeeds-sunnycard-description * {
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #666 !important;
}

.cwfeeds-sunnycard-description p {
    margin: 0 0 10px !important;
}

.cwfeeds-sunnycard-description ul {
    margin: 0 0 10px 18px !important;
    padding: 0 !important;
}

.cwfeeds-sunnycard-description li {
    list-style: disc !important;
    margin-bottom: 4px !important;
}

/* -------------------------------------------------------
   DESCRIPTION – MAX 7 REGELS
------------------------------------------------------- */

.cwfeeds-sunnycard-description {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -------------------------------------------------------
   BUTTON
------------------------------------------------------- */

.cwfeeds-sunnycard-button {
    all: unset;
    display: inline-block;
    background-color: #ffcc00 !important;
    color: #000 !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cwfeeds-sunnycard-button:hover {
    background-color: #ffb700 !important;
    transform: translateY(-1px);
}

/* -------------------------------------------------------
   LAYOUT – DESKTOP (VASTE HOOGTE)
------------------------------------------------------- */

@media (min-width: 768px) {

    .cwfeeds-item-sunnycard {
        display: flex;
        flex-direction: row;
        height: 240px; /* vaste hoogte */
        gap: 20px;
    }

    .cwfeeds-sunnycard-image {
        flex: 0 0 300px;
        height: 100%;
    }

    .cwfeeds-sunnycard-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        display: block;
    }

    .cwfeeds-sunnycard-body {
        flex: 1;
        padding: 20px 25px;
    }

    .cwfeeds-sunnycard-sidebar {
        flex: 0 0 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 10px;
        background: #f9f9f9;
        border-left: 1px solid #eee;
    }
}

/* -------------------------------------------------------
   MOBIEL
------------------------------------------------------- */

@media (max-width: 767px) {
    .cwfeeds-item-sunnycard {
        flex-direction: column;
        gap: 15px;
        height: auto;
    }

    .cwfeeds-sunnycard-image img {
        height: auto;
    }

    .cwfeeds-sunnycard-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        background: #fafafa;
        padding: 15px;
    }
}

/* -------------------------------------------------------
   STERREN
------------------------------------------------------- */

.cwfeeds-sunnycard-stars {
    display: flex;
    gap: 3px;
}

.cwfeeds-sunnycard-stars .star {
    font-size: 20px;
    width: 20px;
    height: 20px;
    position: relative;
}

.cwfeeds-sunnycard-stars .star.full::before {
    content: "★";
    color: #f5b301;
}

.cwfeeds-sunnycard-stars .star.empty::before {
    content: "★";
    color: #ddd;
}

.cwfeeds-sunnycard-stars .star.half::before {
    content: "★";
    color: #ddd;
}

.cwfeeds-sunnycard-stars .star.half::after {
    content: "★";
    color: #f5b301;
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

/* -------------------------------------------------------
   FILTERVELDEN – BREEDTE VERGROTEN
------------------------------------------------------- */

form input[name^="cwf["],
form input[name="cwfRating_min"],
form input[name="cwfStars_min"],
form select[name^="cwf"] {
    width: 240px !important;
    max-width: 240px !important;
}

/* -------------------------------------------------------
   FILTERVELDEN – 4 naast elkaar
------------------------------------------------------- */

.cwfeeds-filter form {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
}

/* -------------------------------------------------------
   IMPREZA OVERRIDES
------------------------------------------------------- */

body .cwfeeds-sunnycard-title {
    margin-bottom: 4px !important;
}

body .cwfeeds-sunnycard-location {
    margin-top: -6px !important;
}
