:root{
    --rh-navy:#071833;
    --rh-blue:#0b63ce;
    --rh-yellow:#ffc928;
    --rh-gold:#f5b400;
    --rh-border:#dfe7f2;
    --rh-soft:#f5f7fb;
    --rh-muted:#64748b;
    --rh-text:#132746;
}

.rh-clean-page{
    background:var(--rh-soft);
    color:var(--rh-text);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    padding:28px 0 44px;
}

.rh-clean-wrap{
    max-width:1180px;
    margin:0 auto;
    padding:0 16px;
}

.rh-clean-card{
    background:#fff;
    border:1px solid var(--rh-border);
    border-radius:24px;
    box-shadow:0 14px 36px rgba(7,24,51,.06);
}

.rh-clean-hero{
    padding:18px;
    overflow:hidden;
}

.rh-clean-hero-grid{
    display:grid;
    grid-template-columns:minmax(320px,42%) minmax(0,58%);
    gap:22px;
    align-items:start;
}

.rh-clean-gallery-main{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    background:#e8eef7;
    height:330px;
}

.rh-clean-gallery-main img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.rh-clean-thumbs{
    position:absolute;
    left:12px;
    right:12px;
    bottom:12px;
    display:flex;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
}

.rh-clean-thumbs::-webkit-scrollbar{display:none;}

.rh-clean-thumbs img{
    width:76px;
    height:56px;
    flex:0 0 76px;
    object-fit:cover;
    border-radius:10px;
    border:2px solid rgba(255,255,255,.94);
    box-shadow:0 8px 18px rgba(7,24,51,.20);
    background:#fff;
}

.rh-clean-info{
    position:relative;
    padding:4px 2px;
}

.rh-clean-badges{
    display:flex;
    gap:8px;
    justify-content:flex-end;
    flex-wrap:wrap;
    margin-bottom:10px;
}

.rh-clean-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
    background:#e8f8ee;
    color:#116b35;
    border:1px solid #c9efd8;
}

.rh-clean-badge.gold{
    background:#fff4cc;
    color:#8a5d00;
    border-color:#ffe18a;
}

.rh-clean-title{
    margin:0 0 10px;
    color:var(--rh-navy);
    font-size:42px;
    line-height:1.05;
    letter-spacing:-1px;
    font-weight:950;
}

.rh-clean-rating{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
    font-size:15px;
    font-weight:850;
}

.rh-clean-stars{
    display:inline-flex;
    gap:2px;
    color:var(--rh-gold);
    font-size:22px;
    line-height:1;
}

.rh-clean-rating a{
    color:var(--rh-blue);
    text-decoration:none;
}

.rh-clean-chip{
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:0 13px;
    border-radius:999px;
    background:#eef4ff;
    color:var(--rh-navy);
    font-size:13px;
    font-weight:900;
}

.rh-clean-meta{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    color:#475569;
    font-size:14px;
    font-weight:800;
    margin:12px 0 18px;
}

.rh-clean-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
}

.rh-clean-btn{
    min-height:48px;
    border-radius:14px;
    border:1px solid #cfdced;
    background:#fff;
    color:var(--rh-navy);
    font-size:15px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
}

.rh-clean-btn.dark{
    background:var(--rh-navy);
    color:#fff;
    border-color:var(--rh-navy);
}

.rh-clean-btn.yellow{
    background:var(--rh-yellow);
    color:var(--rh-navy);
    border-color:#e7b900;
}

.rh-clean-actions .wide{
    grid-column:span 2;
}

.rh-clean-tabs{
    margin:18px -18px -18px;
    padding:0 18px;
    display:flex;
    overflow-x:auto;
    border-top:1px solid var(--rh-border);
    background:#fbfdff;
}

.rh-clean-tabs a{
    min-width:150px;
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#475569;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    border-bottom:3px solid transparent;
}

.rh-clean-tabs a.active{
    color:var(--rh-navy);
    border-bottom-color:var(--rh-yellow);
}

.rh-clean-section{
    margin-top:22px;
    padding:22px;
}

.rh-clean-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
    margin-bottom:16px;
}

.rh-clean-kicker{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 12px;
    border-radius:999px;
    background:#f2f5f9;
    border:1px solid #e1e8f2;
    color:#8a94a6;
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:8px;
}

.rh-clean-section h2{
    margin:0;
    color:var(--rh-navy);
    font-size:26px;
    line-height:1.2;
    font-weight:950;
}

.rh-clean-section p{
    color:#334155;
    font-size:16px;
    line-height:1.65;
}

.rh-clean-service-grid{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.rh-clean-service-chip{
    border:1px solid #cfdced;
    background:#fff;
    border-radius:999px;
    padding:11px 16px;
    color:var(--rh-navy);
    font-size:14px;
    font-weight:850;
}

.rh-clean-location-grid{
    display:grid;
    grid-template-columns:minmax(260px,35%) minmax(0,65%);
    gap:16px;
}

.rh-clean-address{
    border:1px solid var(--rh-border);
    border-radius:18px;
    padding:18px;
    background:#fbfdff;
}

.rh-clean-address span{
    display:block;
    color:#64748b;
    text-transform:uppercase;
    font-size:12px;
    font-weight:950;
    letter-spacing:.04em;
    margin-bottom:8px;
}

.rh-clean-address strong{
    color:var(--rh-navy);
    font-size:18px;
    line-height:1.35;
}

.rh-clean-map{
    min-height:300px;
    border:1px solid var(--rh-border);
    border-radius:18px;
    overflow:hidden;
    background:#eef3f9;
}

.rh-clean-map iframe{
    width:100%;
    height:100%;
    min-height:300px;
    border:0;
}

.rh-clean-review-overview{
    display:grid;
    grid-template-columns:minmax(190px,32%) minmax(0,68%);
    gap:20px;
    padding:18px;
    border:1px solid var(--rh-border);
    border-radius:18px;
    background:#f8fbff;
    margin-bottom:18px;
}

.rh-clean-score{
    border:1px solid #d8e4f4;
    border-radius:18px;
    background:#fff;
    padding:18px;
    text-align:center;
}

.rh-clean-score strong{
    display:block;
    color:var(--rh-navy);
    font-size:52px;
    line-height:1;
    font-weight:950;
}

.rh-clean-score small{
    display:block;
    color:#475569;
    font-size:14px;
    font-weight:900;
    margin-top:8px;
}

.rh-clean-bars{
    display:grid;
    gap:9px;
    align-content:center;
}

.rh-clean-bar-row{
    display:grid;
    grid-template-columns:18px minmax(0,1fr) 34px;
    align-items:center;
    gap:9px;
    color:#475569;
    font-size:13px;
    font-weight:900;
}

.rh-clean-bar-track{
    height:9px;
    border-radius:999px;
    background:#e8eef7;
    overflow:hidden;
}

.rh-clean-bar-track i{
    display:block;
    height:100%;
    background:var(--rh-gold);
    border-radius:999px;
}

.rh-clean-write{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:16px 18px;
    border:1px solid var(--rh-border);
    border-radius:18px;
    background:#fff;
    margin-bottom:22px;
}

.rh-clean-write h3{
    margin:0 0 4px;
    color:var(--rh-navy);
    font-size:20px;
    font-weight:950;
}

.rh-clean-write p{
    margin:0;
    color:#64748b;
    font-size:14px;
    font-weight:700;
}

.rh-clean-review-list{
    display:grid;
    gap:14px;
}

.rh-clean-review-card{
    border:1px solid var(--rh-border);
    border-radius:18px;
    background:#fff;
    padding:18px;
}

.rh-clean-review-top{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-bottom:10px;
}

.rh-clean-avatar{
    width:46px;
    height:46px;
    flex:0 0 46px;
    border-radius:50%;
    background:var(--rh-blue);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    font-weight:950;
}

.rh-clean-review-name{
    color:var(--rh-navy);
    font-size:16px;
    font-weight:950;
    margin:0;
}

.rh-clean-review-date{
    color:#64748b;
    font-size:13px;
    font-weight:650;
    margin-top:2px;
}

.rh-clean-review-text{
    margin:8px 0 0;
    color:#334155;
    font-size:15px;
    line-height:1.6;
}

.rh-clean-form{
    margin-top:22px;
    border:1px solid var(--rh-border);
    border-radius:18px;
    background:#fbfdff;
    padding:18px;
}

.rh-clean-form-grid{
    display:grid;
    grid-template-columns:180px minmax(0,1fr);
    gap:12px;
}

.rh-clean-form label{
    color:var(--rh-navy);
    font-weight:900;
    font-size:13px;
}

.rh-clean-form input,
.rh-clean-form select,
.rh-clean-form textarea{
    width:100%;
    border:1px solid #cfdced;
    border-radius:12px;
    padding:12px 14px;
    font:inherit;
}

.rh-clean-form textarea{
    min-height:110px;
    resize:vertical;
}

.rh-clean-full{grid-column:1 / -1;}

@media(max-width:880px){
    .rh-clean-page{padding-top:14px;}
    .rh-clean-hero-grid,
    .rh-clean-location-grid,
    .rh-clean-review-overview,
    .rh-clean-form-grid{
        grid-template-columns:1fr;
    }

    .rh-clean-gallery-main{
        height:245px;
    }

    .rh-clean-title{
        font-size:32px;
    }

    .rh-clean-actions{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .rh-clean-actions .wide{
        grid-column:span 2;
    }

    .rh-clean-section{
        padding:18px;
    }

    .rh-clean-write{
        flex-direction:column;
        align-items:flex-start;
    }

    .rh-clean-write .rh-clean-btn{
        width:100%;
    }
}

/* RepairHit clean page: compact discovery modules */
.rh-clean-discovery-grid{
    display:grid;
    grid-template-columns:1.2fr .9fr .9fr;
    gap:14px;
    margin-top:18px;
}

.rh-clean-mini-card{
    background:#fff;
    border:1px solid var(--rh-border);
    border-radius:20px;
    box-shadow:0 10px 28px rgba(7,24,51,.045);
    padding:18px;
    min-height:170px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.rh-clean-claim-card{
    background:linear-gradient(180deg,#fff9df 0%,#ffffff 78%);
    border-color:#f4d66d;
}

.rh-clean-mini-kicker{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:0 10px;
    border-radius:999px;
    background:#eef4ff;
    color:#0b63ce;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.04em;
    margin-bottom:10px;
}

.rh-clean-claim-card .rh-clean-mini-kicker{
    background:#071833;
    color:#fff;
}

.rh-clean-mini-card h2{
    margin:0 0 8px;
    color:var(--rh-navy);
    font-size:21px;
    line-height:1.2;
    font-weight:950;
}

.rh-clean-mini-card p{
    margin:0;
    color:#526174;
    font-size:14px;
    line-height:1.5;
    font-weight:650;
}

.rh-clean-mini-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:14px;
}

.rh-clean-mini-actions a,
.rh-clean-text-link{
    color:#0b63ce;
    font-size:14px;
    font-weight:900;
    text-decoration:none;
}

.rh-clean-fact-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.rh-clean-fact-grid div{
    background:#f8fbff;
    border:1px solid #e2e9f3;
    border-radius:14px;
    padding:12px;
}

.rh-clean-fact-grid strong{
    display:block;
    color:var(--rh-navy);
    font-size:22px;
    line-height:1;
    font-weight:950;
}

.rh-clean-fact-grid span{
    display:block;
    color:#64748b;
    font-size:12px;
    font-weight:850;
    margin-top:5px;
}

.rh-clean-similar-section{
    padding-bottom:18px;
}

.rh-clean-similar-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.rh-clean-similar-card{
    display:block;
    min-height:112px;
    padding:15px;
    border:1px solid #dfe7f2;
    border-radius:16px;
    background:#fbfdff;
    color:var(--rh-navy);
    text-decoration:none;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.rh-clean-similar-card:hover{
    transform:translateY(-2px);
    border-color:#b9cbe3;
    box-shadow:0 10px 24px rgba(7,24,51,.07);
}

.rh-clean-similar-card strong{
    display:block;
    font-size:15px;
    font-weight:950;
    line-height:1.25;
    margin-bottom:7px;
}

.rh-clean-similar-card span{
    display:block;
    color:#526174;
    font-size:13px;
    font-weight:800;
    margin-bottom:8px;
}

.rh-clean-similar-card small{
    color:#0b63ce;
    font-size:12px;
    font-weight:900;
}

@media(max-width:900px){
    .rh-clean-discovery-grid{
        grid-template-columns:1fr;
    }

    .rh-clean-mini-card{
        min-height:auto;
    }

    .rh-clean-similar-row{
        grid-template-columns:1fr;
    }
}

/* RepairHit clean redesign: mobile spacing correction */
@media(max-width:760px){
    .rh-clean-page{
        padding:8px 0 26px !important;
        background:#f5f7fb !important;
    }

    .rh-clean-wrap{
        padding-left:6px !important;
        padding-right:6px !important;
        max-width:100% !important;
    }

    .rh-clean-card{
        border-radius:16px !important;
        box-shadow:none !important;
    }

    .rh-clean-hero{
        padding:8px !important;
        border-radius:16px !important;
        margin:0 0 10px !important;
    }

    .rh-clean-hero-grid{
        gap:10px !important;
    }

    .rh-clean-gallery-main{
        height:215px !important;
        border-radius:14px !important;
    }

    .rh-clean-info{
        padding:2px 2px 4px !important;
    }

    .rh-clean-badges{
        justify-content:flex-start !important;
        margin-bottom:8px !important;
    }

    .rh-clean-title{
        font-size:29px !important;
        line-height:1.08 !important;
        margin-bottom:8px !important;
    }

    .rh-clean-meta{
        margin:8px 0 12px !important;
        gap:8px !important;
    }

    .rh-clean-actions{
        gap:7px !important;
    }

    .rh-clean-btn{
        min-height:42px !important;
        border-radius:11px !important;
        font-size:13.5px !important;
        padding:0 10px !important;
    }

    .rh-clean-tabs{
        margin:10px -8px -8px !important;
        padding:0 8px !important;
    }

    .rh-clean-tabs a{
        min-width:auto !important;
        padding:0 14px !important;
        min-height:46px !important;
        font-size:13px !important;
    }

    .rh-clean-discovery-grid{
        gap:8px !important;
        margin-top:8px !important;
    }

    .rh-clean-mini-card{
        padding:13px !important;
        border-radius:15px !important;
        min-height:auto !important;
    }

    .rh-clean-mini-card h2{
        font-size:18px !important;
        margin-bottom:6px !important;
    }

    .rh-clean-mini-card p{
        font-size:13px !important;
        line-height:1.45 !important;
    }

    .rh-clean-section{
        margin-top:10px !important;
        padding:14px !important;
        border-radius:16px !important;
    }

    .rh-clean-section h2{
        font-size:22px !important;
    }

    .rh-clean-section p{
        font-size:14.5px !important;
        line-height:1.55 !important;
    }

    .rh-clean-service-grid{
        gap:7px !important;
    }

    .rh-clean-service-chip{
        padding:9px 12px !important;
        font-size:13px !important;
    }

    .rh-clean-location-grid{
        gap:10px !important;
    }

    .rh-clean-address{
        padding:13px !important;
        border-radius:14px !important;
    }

    .rh-clean-map,
    .rh-clean-map iframe{
        min-height:220px !important;
        border-radius:14px !important;
    }

    .rh-clean-review-overview{
        padding:12px !important;
        gap:10px !important;
        border-radius:14px !important;
    }

    .rh-clean-score{
        padding:13px !important;
        border-radius:14px !important;
    }

    .rh-clean-score strong{
        font-size:42px !important;
    }

    .rh-clean-write{
        padding:13px !important;
        border-radius:14px !important;
        margin-bottom:12px !important;
    }

    .rh-clean-review-list{
        gap:9px !important;
    }

    .rh-clean-review-card{
        padding:13px !important;
        border-radius:14px !important;
    }

    .rh-clean-form{
        padding:13px !important;
        border-radius:14px !important;
    }
}

/* RepairHit clean redesign: photo section should not stack vertically */
.rh-clean-page #photos .rh-clean-service-grid{
    display:grid !important;
    grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap:10px !important;
}

.rh-clean-page #photos .rh-clean-service-grid img{
    width:100% !important;
    height:130px !important;
    object-fit:cover !important;
    border-radius:14px !important;
    display:block !important;
}

/* Mobile: horizontal photo strip, not stacked blocks */
@media(max-width:760px){
    .rh-clean-page #photos .rh-clean-service-grid{
        display:flex !important;
        flex-wrap:nowrap !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        gap:8px !important;
        padding-bottom:4px !important;
        scroll-snap-type:x mandatory !important;
        scrollbar-width:none !important;
    }

    .rh-clean-page #photos .rh-clean-service-grid::-webkit-scrollbar{
        display:none !important;
    }

    .rh-clean-page #photos .rh-clean-service-grid img{
        flex:0 0 142px !important;
        width:142px !important;
        height:104px !important;
        min-width:142px !important;
        border-radius:12px !important;
        scroll-snap-align:start !important;
    }
}

/* RepairHit clean redesign: Google-style photo viewer */
.rh-clean-gallery-main img,
.rh-clean-thumbs img,
.rh-clean-page #photos img{
    cursor:pointer !important;
}

.rh-photo-viewer{
    position:fixed;
    inset:0;
    z-index:99999;
    background:rgba(5,12,24,.96);
    color:#fff;
    display:none;
}

.rh-photo-viewer.is-open{
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
}

.rh-photo-viewer-top{
    min-height:62px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 18px;
    border-bottom:1px solid rgba(255,255,255,.12);
}

.rh-photo-viewer-title{
    min-width:0;
}

.rh-photo-viewer-title strong{
    display:block;
    font-size:15px;
    font-weight:900;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.rh-photo-viewer-title span{
    display:block;
    margin-top:2px;
    color:rgba(255,255,255,.68);
    font-size:12px;
    font-weight:700;
}

.rh-photo-viewer-close{
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
}

.rh-photo-viewer-stage{
    position:relative;
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px 72px;
}

.rh-photo-viewer-stage img{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    border-radius:10px;
    box-shadow:0 18px 60px rgba(0,0,0,.45);
    background:#111827;
}

.rh-photo-viewer-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.20);
    background:rgba(255,255,255,.10);
    color:#fff;
    font-size:34px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.rh-photo-viewer-nav:hover,
.rh-photo-viewer-close:hover{
    background:rgba(255,255,255,.18);
}

.rh-photo-viewer-prev{
    left:18px;
}

.rh-photo-viewer-next{
    right:18px;
}

.rh-photo-viewer-bottom{
    min-height:92px;
    display:flex;
    align-items:center;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:12px 18px 16px;
    border-top:1px solid rgba(255,255,255,.12);
    scrollbar-width:none;
}

.rh-photo-viewer-bottom::-webkit-scrollbar{
    display:none;
}

.rh-photo-viewer-thumb{
    flex:0 0 86px;
    width:86px;
    height:62px;
    border-radius:10px;
    overflow:hidden;
    border:2px solid transparent;
    background:rgba(255,255,255,.08);
    padding:0;
    cursor:pointer;
}

.rh-photo-viewer-thumb.is-active{
    border-color:#ffc928;
}

.rh-photo-viewer-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

body.rh-photo-viewer-open{
    overflow:hidden !important;
}

@media(max-width:760px){
    .rh-photo-viewer-top{
        min-height:56px;
        padding:10px 12px;
    }

    .rh-photo-viewer-stage{
        padding:10px 0;
    }

    .rh-photo-viewer-stage img{
        width:100%;
        max-height:100%;
        border-radius:0;
    }

    .rh-photo-viewer-nav{
        width:42px;
        height:42px;
        background:rgba(0,0,0,.36);
        border-color:rgba(255,255,255,.18);
    }

    .rh-photo-viewer-prev{
        left:8px;
    }

    .rh-photo-viewer-next{
        right:8px;
    }

    .rh-photo-viewer-bottom{
        min-height:78px;
        padding:8px 10px 12px;
    }

    .rh-photo-viewer-thumb{
        flex-basis:70px;
        width:70px;
        height:52px;
        border-radius:8px;
    }
}
