/* ==========================================================================
   StarzMeet — single-listing UX polish (child theme, detail style 6)
   Loaded only on single `listing` pages. Fixes the "thin auto-collected
   listing" look: consistent hero, no empty rating stub, friendlier claim
   card, trust badge.
   ========================================================================== */

/* 1. Hero image: uniform height + cover crop so real photos AND generated
      category placeholders both fill the banner cleanly. */
body.single-listing .single-page-slider-container .slide img,
body.single-listing .single-page-slider-container .slide_ban img,
body.single-listing .listing-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}
@media (max-width: 767px) {
    body.single-listing .single-page-slider-container .slide img,
    body.single-listing .single-page-slider-container .slide_ban img,
    body.single-listing .listing-slide img { height: 240px; }
}

/* 2. Hide the empty rating list in the title bar when a listing has no
      reviews yet (theme leaves an empty <ul><li>). :has() + JS fallback. */
body.single-listing .classic-detail-reviews:not(:has(.lp-rating-stars-outers)) {
    display: none;
}
/* Soften the sidebar zero-state text instead of a stark "0". */
body.single-listing .rating-section .no-review {
    color: #64748b;
    font-weight: 500;
    font-size: 13px;
}

/* 3. StarzMeet trust badge (injected by starzmeet-single.js after the title). */
.sm-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 2px;
    padding: 5px 12px 5px 10px;
    background: #e8f5f0;
    color: #0f7b5f;
    border: 1px solid #b7e3d4;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    vertical-align: middle;
}
.sm-verified-badge svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* 4. Claim area -> reads as an intentional card, not leftover chrome. */
body.single-listing .claim-area {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
body.single-listing .claim-area .phone-number.claimformtrigger2,
body.single-listing .claim-area .phone-number.claimformtrigger {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 18px;
    background: #0f7b5f;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
body.single-listing .claim-area .phone-number.claimformtrigger2:hover,
body.single-listing .claim-area .phone-number.claimformtrigger:hover {
    background: #0c6650;
}

/* 5. Safety net: collapse any truly-empty widget/section containers. */
body.single-listing .widget-box:empty,
body.single-listing .post-row:empty { display: none; }

/* 6. Consistent AI description template (intro + facts list + provenance note). */
body.single-listing .sm-listing-facts {
    list-style: none;
    margin: 14px 0;
    padding: 0;
}
body.single-listing .sm-listing-facts li {
    position: relative;
    padding: 8px 0 8px 26px;
    border-bottom: 1px solid #eef1f4;
    line-height: 1.5;
}
body.single-listing .sm-listing-facts li:last-child { border-bottom: 0; }
body.single-listing .sm-listing-facts li::before {
    content: "";
    position: absolute;
    left: 4px; top: 14px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #0f7b5f;
}
body.single-listing .sm-listing-facts li strong { color: #1f2937; margin-right: 4px; }
body.single-listing .sm-listing-note {
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
}
