/* polweb additions on top of the vendored legacy theme CSS:
   status ribbons, the local Google-reviews section, and small fixes. */

/* ── Status ribbon (replaces "SOLD" burned into JPEGs) ─────────────────────── */
.card-advert .card-header { position: relative; overflow: hidden; }
.status-ribbon {
    position: absolute;
    top: 22px;
    left: -38px;
    transform: rotate(-45deg);
    width: 160px;
    text-align: center;
    padding: 5px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.status-sold     { background: #d9534f; }
.status-reserved { background: #f0ad4e; }
.status-ribbon-detail {
    top: 34px;
    left: -32px;
    font-size: 17px;
}
#advert-gallery { position: relative; overflow: hidden; }

/* ── Google reviews section ────────────────────────────────────────────────── */
.reviews-section { padding: 50px 15px 60px; }
.reviews-header .reviews-headline {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.reviews-stars { color: #fbbc04; font-size: 22px; margin-bottom: 6px; }
.reviews-count { margin-bottom: 8px; }
.reviews-google-logo { height: 36px; width: auto; }
.reviews-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.review-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 16px;
}
.review-card-header { display: flex; align-items: center; gap: 10px; }
.review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 40px;
}
.review-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #667791;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
.review-meta { flex: 1 1 auto; min-width: 0; }
.review-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-date { font-size: 12px; color: #6c757d; }
.review-platform-icon { color: #4285f4; font-size: 18px; }
.review-stars { color: #fbbc04; margin: 8px 0 6px; }
.review-verified { color: #4285f4; margin-left: 6px; font-size: 14px; }
.review-text {
    font-size: 14px;
    line-height: 1.5;
    max-height: 168px;
    overflow-y: auto;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

/* Keep gallery slides tidy before Splide mounts */
#primary-slider:not(.is-active) li + li { display: none; }
