/* =============================================
   CleanFinder USA — Listing Cards Styles
   ============================================= */

/* Wrapper */
.cf-listings-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
}

/* Grid Container */
#cf-listings-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Card */
.cf-listing-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    animation: cfSlideIn 0.35s ease both;
}

.cf-listing-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Thumbnail */
.cf-card-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f4f8;
}

.cf-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cf-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f0f7ff;
}

/* Content */
.cf-card-content {
    flex: 1;
    min-width: 0;
}

/* Title */
.cf-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.cf-card-title a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.2s;
}

.cf-card-title a:hover {
    color: #0066cc;
}

/* Rating */
.cf-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.cf-card-rating span {
    font-weight: 600;
    color: #333;
}

.cf-reviews {
    color: #888 !important;
    font-weight: 400 !important;
    font-size: 13px;
}

/* Description */
.cf-card-desc {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

/* Meta Info */
.cf-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.cf-meta-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.cf-card-meta a {
    color: #0066cc;
    text-decoration: none;
}

.cf-card-meta a:hover {
    text-decoration: underline;
}

/* Service Tags */
.cf-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.cf-tag {
    background: #f0f7ff;
    color: #0066cc;
    border: 1px solid #d0e8ff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* CTA Button */
.cf-card-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #0066cc;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cf-card-btn:hover {
    background: #0052a3;
    transform: translateX(2px);
}

/* No Listings */
.cf-no-listings {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* Load More Button */
.cf-load-more-wrap {
    text-align: center;
    margin-top: 30px;
}

#cf-load-more-btn {
    display: inline-block;
    padding: 13px 36px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.15s ease;
}

#cf-load-more-btn:hover:not(:disabled) {
    background: #0052a3;
    transform: translateY(-1px);
}

#cf-load-more-btn.loading,
#cf-load-more-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

#cf-no-more {
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

/* Slide In Animation */
@keyframes cfSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .cf-listing-card {
        flex-direction: column;
    }
    .cf-card-thumb {
        width: 100%;
        height: 180px;
    }
    #cf-load-more-btn {
        width: 100%;
        padding: 14px;
    }
    .cf-card-title {
        font-size: 17px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .cf-card-thumb {
        width: 110px;
        height: 100px;
    }
}


/* Working Hours */
.hours-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a2e;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    color: #333;
    font-weight: 500;
}

.hours-time {
    color: #555;
    font-size: 13px;
}





/* ── Working Hours — Mobile Friendly ── */
.hours-card {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 15px;
}

.hours-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a2e;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    color: #333;
    font-weight: 600;
    min-width: 100px;
}

.hours-time {
    color: #555;
    font-size: 13px;
    text-align: right;
}

/* ── Tablet ── */
@media (max-width: 900px) {
    .hours-card {
        padding: 12px;
    }
    .hours-item {
        font-size: 13px;
    }
    .hours-day {
        min-width: 80px;
    }
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .hours-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    .hours-card h3 {
        font-size: 15px;
    }
    .hours-item {
        font-size: 13px;
        padding: 6px 0;
        /* Stack day and time on very small screens */
        flex-wrap: wrap;
        gap: 2px;
    }
    .hours-day {
        min-width: unset;
        width: 100%;
        font-size: 13px;
    }
    .hours-time {
        font-size: 12px;
        text-align: left;
        color: #777;
    }
}







/* Main layout — desktop side by side */
.listing-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.listing-main {
    flex: 1;
    min-width: 0;
}

.listing-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Tablet */
@media (max-width: 900px) {
    .listing-sidebar {
        width: 280px;
    }
}

/* Mobile — stack sidebar below main content */
@media (max-width: 768px) {
    .listing-wrapper {
        flex-direction: column;
    }
    .listing-sidebar {
        width: 100%;
    }
}


/* ── Review Summary ── */
.review-summary {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    contain: layout style; /* CWV: prevents layout shift */
}

.review-summary-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.review-summary-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Bars */
.review-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 13px;
    color: #555;
    width: 10px;
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    /* CWV: reserve space to prevent layout shift */
    min-width: 0;
}

.bar-fill {
    height: 100%;
    width: 0; /* starts at 0 — JS animates in */
    background: #fbbc04;
    border-radius: 5px;
    /* only animate after page load — better CWV */
    transition: none;
}

.bar-fill.animate {
    transition: width 0.6s ease;
}

.bar-count {
    font-size: 12px;
    color: #888;
    width: 20px;
    flex-shrink: 0;
}

/* Score */
.review-score {
    text-align: center;
    flex-shrink: 0;
    min-width: 80px;
}

.score-number {
    font-size: 52px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 6px;
    /* CWV: reserve exact space */
    min-height: 52px;
}

.score-stars {
    color: #fbbc04;
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.score-count {
    font-size: 13px;
    color: #666;
}

/* Tablet */
@media (max-width: 900px) {
    .review-summary {
        padding: 15px;
    }
    .score-number {
        font-size: 42px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .review-summary-inner {
        flex-direction: column-reverse;
        gap: 15px;
        align-items: flex-start;
    }
    .review-bars {
        width: 100%;
    }
    .review-score {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    .score-number {
        font-size: 42px;
        margin-bottom: 0;
    }
    .score-stars {
        font-size: 18px;
        margin-bottom: 0;
    }
}