:root {
    --main-background: rgb(0, 0, 0);
    --widget-background: rgb(0, 0, 0);
    --font-overall: Arial, sans-serif;
    --text-color: #d3d3d3;
}

/* --- BASIS --- */
body {
    margin: 0;
}


.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    gap: 60px;
    padding-left: 108px;
    padding-right: 108px;
    padding-bottom: 40px;
}

.title-row h2 {
    margin: 0;
    font-size: 50px;
    color: white;
    font-size: 40px;
    font-weight: 4000;
    font-family: Arial, Helvetica, sans-serif;

}

.title-row p {
    color: white;
    font-size: 20px;
    font-weight: 300;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    text-align: right;
}

.review-foto{
    max-width: 100%; 
    border-radius: 25px; 
    margin-bottom: 20px;
    transform: scale(1);
    transform-origin: center;
    overflow: hidden;
}

.tooltip {
    position: relative;
    display: inline-block;
    touch-action: manipulation;
}

.tooltip-text {
    border-radius: 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    bottom: 120%;
    left: 30%;
    transform: translateX(-50%);
    background: #818181;
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #818181 transparent transparent transparent;
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- REVIEWS --- */
.review-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 80px;
    padding-right: 80px;
}

.reviews-wrapper {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 16px; /* belangrijk voor breedteberekening */
    transition: transform 0.5s ease;
}

/* FIXED — dynamische breedte obv visible-count + gap */
.column {
    flex: 0 0 calc((100% - (var(--visible-count) - 1) * 15px) / var(--visible-count));
    min-width: 220px;
    border-radius: 25px;
    color: #d3d3d3;
    font-family: Arial;
    text-align: left;
    box-sizing: border-box;
    box-shadow:0 5px 15px rgba(0,0,0,0.3);
    background-color: rgb(24, 24, 24);
    height: fit-content;
    min-height: 280px;
}

/* NAV BUTTONS */
.review-nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    user-select: none;
}

.review-nav-btn:hover {
    color: #ddd;
}

.more {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.more.show { opacity: 1; }

#review-container { 
    background-color: #000000; 
    padding-top: 0px;
    padding-bottom: 25px;
    padding-top: 25px;
}

/* Profielfoto’s enz. — ongewijzigd */
.Review-profile-wrapper {
    position: relative;
    width: 75px;
    max-width: 150px;
}

.Reviews-Profile-Picture {
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.Review-white-dot {
    position: absolute;
    width: 38%;
    height: 38%;
    background-color: #fff;
    border-radius: 50%;
    bottom: 1%;
    right: 2%;
    z-index: 2;
}

.Reviews-Google-Icon {
    position: absolute;
    width: 32%;
    height: auto;
    bottom: 4%;
    right: 4%;
    z-index: 3;
}

.Review-name { font-size: 1.65rem; font-weight: bold;}
.Review-date { font-size: 1.2rem; color: #707070; }

.review-stars-wrapper {
    display: flex;
    padding-top: 10px;
    padding-bottom: 5px;
}

.review-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.review-star { width: 1.65rem; height: auto; }
.Review-verified { margin-top: 1px; margin-left: -5px; width: 20px; height: auto; }

.Review-cont { 
    transform: 0.3s; 
    padding: 10px;
}


.Review { font-size: 1.5rem; }

.Btn_LeesMeer {
    transition: 0.7s;
    font-size: 1.4rem;
    border: none;
    background: none;
    color: #8c8c8c;
}

.Btn_LeesMeer:hover {
    color: #fff;
    text-decoration: underline;
}

/* MOBIEL */
@media (max-width: 600px), (pointer: coarse) {

    .reviews-track { padding: 12px; gap: 0px; }

    .column {
        flex: 0 0 90%;
        min-width: unset;
    }

    .title-row{
        padding-left: 38px;
        padding-right: 38px;

        gap: 0;
        flex-direction: column;
        align-items: flex-start;
    }
    .title-row h2{
        font-size: 1.85rem;
        text-align: center;
    }
    .title-row p{
        margin-top: 10px;
        text-align: center;
    }

    .review-slider{
        padding-left: 0px;
        padding-right: 0px;
    }

    .Review-profile-wrapper { width: 65px; }
    .Review-name { font-size: 1.25rem; }
    .Review-date { font-size: 1rem; }

    .review-star { width: 20px; }
    .Review-verified { width: 20px; }

    .Review {
        font-size: 1rem;
    }

    .Btn_LeesMeer {
        margin-top: 10px;
        font-size: 0.8rem;
    }
    .tooltip{
        margin-left: 10px;
    }




.review-slider {
    display: flex;
    align-items: center;
    width: 100%;
}

.review-nav-btn {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;

    border: none;
    border-radius: 50%;

    color: white;

    font-size: 32px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.reviews-wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}





}

/* DESKTOP compact */
@media (min-width: 1001px) {
    .column { padding-bottom: 5px; }

    .Review-profile-wrapper { width: 60px; }

    .Review-name { font-size: 1.3rem; }
    .Review-date { font-size: 1rem; }

    .review-stars-wrapper { gap: 6px; }
    .review-star { width: 1.3rem; }

    .Review-verified { margin-top: 2px; margin-left: 3px; }

    .Review { font-size: 1.2rem;}

    .Btn_LeesMeer { font-size: 1.1rem; margin-top: 5px; }

    .tooltip-text { left: 53%; }
}


/* Root variabelen */
:root {
    --visible-count: 3; /* wordt overschreven door JS */
}

/* Container */
.reviews-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Track */
.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    gap: 15px;
}

/* CENTREREN WANNEER ER 1 ITEM IS */
[data-visible-count="1"] .reviews-track {
    justify-content: center;
}

/* Column breedte dynamisch op basis van visible count */
.column {
    flex: 0 0 calc(
        (100% - (var(--visible-count) - 1) * 15px)
        / var(--visible-count)
    );
    min-width: 220px;
}

/* Stars */
.stars-row .yellow { color: #FFD700; }
.stars-row .grey   { color: #ccc; }

/* Buttons */
.review_btn-left,
.review_btn-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    font-size: 34px;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    opacity: 0.8;
}

.review_btn-left  { left: 5px; }
.review_btn-right { right: 5px; }

.Review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    height: fit-content;
}

.Review-profile-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.Reviews-Profile-Picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.Review-info {
    text-align: left;
}

.Review-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    text-decoration: none;
}

.Review-name:hover {
    text-decoration: underline;
}

.Review-date {
    font-size: 0.85rem;
    color: #999;
}

.Review p {
    margin: 0;
}