/* Tour reviews. Brand defaults follow the Elementor kit (see DESIGN.md); override the
   custom properties from the theme or the Elementor style controls. */
.tce-rv {
    --tce-rv-accent: var(--e-global-color-secondary, #007EF5);
    --tce-rv-on-accent: #ffffff;
    --tce-rv-text: #1a1a1a;
    --tce-rv-muted: #5f6368;
    --tce-rv-card-bg: #ffffff;
    --tce-rv-chip: var(--e-global-color-primary, #FDF6EC);
    --tce-rv-radius: 16px;
    --tce-rv-shadow: 0 2px 12px rgba(0, 0, 0, .07), 0 8px 32px rgba(0, 0, 0, .06);
    --tce-rv-border: 0;
    --tce-rv-line: rgba(0, 0, 0, .08);
    --tce-rv-bar: rgba(0, 0, 0, .08);
    --tce-rv-heading-font: var(--e-global-typography-primary-font-family, "Parkinsans"), sans-serif;
    color: var(--tce-rv-text);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tce-rv a:focus-visible,
.tce-rv button:focus-visible { outline: 2px solid var(--tce-rv-accent); outline-offset: 2px; }

/* Summary: score tile + "Heel goed / op basis van 42 reviews" */
.tce-rv-summary { display: flex; align-items: center; gap: 16px; }
.tce-rv-summary__score {
    flex: none;
    min-width: 96px;
    padding: 14px 16px;
    border-radius: var(--tce-rv-radius);
    background: var(--tce-rv-accent);
    color: var(--tce-rv-on-accent);
    font-family: var(--tce-rv-heading-font);
    text-align: center;
    line-height: 1;
}
.tce-rv-summary__avg { font-size: 40px; font-weight: 700; }
.tce-rv-summary__max { font-size: 15px; font-weight: 600; opacity: .75; margin-left: 2px; }
.tce-rv-summary__meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tce-rv-summary__label { font-family: var(--tce-rv-heading-font); font-size: 24px; font-weight: 700; line-height: 1.15; }
.tce-rv-summary__count { color: var(--tce-rv-muted); font-size: 15px; }
@media (max-width: 767px) {
    .tce-rv-summary__score { min-width: 80px; padding: 12px; }
    .tce-rv-summary__avg { font-size: 32px; }
    .tce-rv-summary__label { font-size: 20px; }
}

/* Highlights as pills directly under the score */
.tce-rv-highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: var(--tce-rv-justify, flex-start); }
.tce-rv--center { --tce-rv-justify: center; }
.tce-rv-highlights__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--tce-rv-card-bg);
    box-shadow: inset 0 0 0 1px var(--tce-rv-line);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}
.tce-rv-highlights__emoji { font-size: 18px; line-height: 1; flex: none; }

/* Breakdown (all-reviews page). auto-fit + a max column width, so the groups can be
   centred (--tce-rv-justify) instead of leaving empty columns on the right. */
.tce-rv-breakdown {
    display: grid;
    gap: 24px 40px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 320px));
    justify-content: var(--tce-rv-justify, flex-start);
}
@media (max-width: 600px) { .tce-rv-breakdown { grid-template-columns: 1fr; } }
.tce-rv-breakdown__title { font-family: var(--tce-rv-heading-font); font-weight: 700; margin: 0 0 8px; }
.tce-rv-breakdown__total { margin: -6px 0 8px; font-size: 13px; color: var(--tce-rv-muted); }
.tce-rv-breakdown__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tce-rv-breakdown__row { display: grid; grid-template-columns: 8.5em 1fr 3em; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.tce-rv-breakdown--counts .tce-rv-breakdown__row { grid-template-columns: 8.5em 1fr 3em 2.5em; }
.tce-rv-breakdown__bar { height: 8px; border-radius: 999px; background: var(--tce-rv-bar); overflow: hidden; }
.tce-rv-breakdown__bar > span { display: block; height: 100%; background: var(--tce-rv-accent); border-radius: 999px; }
.tce-rv-breakdown__pct { text-align: right; color: var(--tce-rv-muted); }
.tce-rv-breakdown__count { color: var(--tce-rv-muted); font-size: 13px; }

/* Breakdown style "stacked": one segmented bar per question. Segment width = count (flex-grow),
   shades of the accent for the positive / middle answers, gray for the negative ones. */
.tce-rv-breakdown__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.tce-rv-breakdown__head .tce-rv-breakdown__title { margin: 0; }
.tce-rv-breakdown__summary { font-size: 14px; font-weight: 600; color: var(--tce-rv-accent); text-align: right; }
.tce-rv-stack { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
.tce-rv-stack__seg { display: block; min-width: 4px; height: 100%; }
.tce-rv-stack__seg,
.tce-rv-stack__swatch { background: rgba(0, 0, 0, .18); }
.tce-rv-stack [data-key="great"],    .tce-rv-stack__legend [data-key="great"],
.tce-rv-stack [data-key="average"],  .tce-rv-stack__legend [data-key="average"]  { background: var(--tce-rv-accent); }
.tce-rv-stack [data-key="fun"],      .tce-rv-stack__legend [data-key="fun"]      { background: color-mix(in srgb, var(--tce-rv-accent) 65%, #fff); }
.tce-rv-stack [data-key="easy"],     .tce-rv-stack__legend [data-key="easy"],
.tce-rv-stack [data-key="hard"],     .tce-rv-stack__legend [data-key="hard"]     { background: color-mix(in srgb, var(--tce-rv-accent) 60%, #fff); }
.tce-rv-stack [data-key="okay"],     .tce-rv-stack__legend [data-key="okay"]     { background: color-mix(in srgb, var(--tce-rv-accent) 35%, #fff); }
.tce-rv-stack [data-key="too_easy"], .tce-rv-stack__legend [data-key="too_easy"],
.tce-rv-stack [data-key="too_hard"], .tce-rv-stack__legend [data-key="too_hard"] { background: color-mix(in srgb, var(--tce-rv-accent) 30%, #fff); }
.tce-rv-stack [data-key="terrible"], .tce-rv-stack__legend [data-key="terrible"] { background: rgba(0, 0, 0, .32); }
.tce-rv-stack__legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.tce-rv-stack__item { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.tce-rv-stack__swatch { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 2px; }
.tce-rv-stack__pct { color: var(--tce-rv-muted); }

/* Breakdown style "compact": the bar rows without the gray track, scaled to the top answer. */
.tce-rv-breakdown--compact .tce-rv-breakdown__row { grid-template-columns: 8.5em 1fr auto; }
.tce-rv-breakdown--compact .tce-rv-breakdown__bar { background: none; }

/* Breakdown style "chips": a pill per answer, the most chosen one filled. */
.tce-rv-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tce-rv-chips__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--tce-rv-card-bg);
    box-shadow: inset 0 0 0 1px var(--tce-rv-line);
    font-size: 14px;
    line-height: 1.3;
}
.tce-rv-chips__pct { color: var(--tce-rv-muted); }
.tce-rv-chips__item.is-top { background: var(--tce-rv-accent); color: var(--tce-rv-on-accent); box-shadow: none; font-weight: 600; }
.tce-rv-chips__item.is-top .tce-rv-chips__pct { color: inherit; opacity: .85; }

.tce-rv-chips--small { margin-top: 8px; gap: 4px; }
.tce-rv-chips--small .tce-rv-chips__item { padding: 3px 9px; font-size: 13px; }

/* Answers without votes ("Antwoorden zonder stemmen tonen"). */
.tce-rv-chips__item.is-empty,
.tce-rv-stack__item.is-empty,
.tce-rv-breakdown__row.is-empty { opacity: .5; }

/* Breakdown style "top": the most chosen answer in a tinted box, the rest as small pills. */
.tce-rv-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tce-rv-accent) 10%, var(--tce-rv-card-bg));
}
.tce-rv-top__emoji { flex: none; font-size: 28px; line-height: 1; }
.tce-rv-top__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tce-rv-top__label { display: inline-block; font-family: var(--tce-rv-heading-font); font-size: 18px; font-weight: 700; line-height: 1.2; }
.tce-rv-top__label::first-letter { text-transform: uppercase; }
.tce-rv-top__caption { font-size: 12px; color: var(--tce-rv-muted); }
.tce-rv-top__pct { flex: none; font-family: var(--tce-rv-heading-font); font-size: 26px; font-weight: 700; line-height: 1; color: var(--tce-rv-accent); }
.tce-rv-top__count { margin-left: 4px; font-family: inherit; font-size: 13px; font-weight: 400; color: var(--tce-rv-muted); }

/* Cards: one column on phones, 2–3 from 768px */
.tce-rv-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .tce-rv-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
.tce-rv-card {
    background: var(--tce-rv-card-bg);
    border: var(--tce-rv-border);
    border-radius: var(--tce-rv-radius);
    box-shadow: var(--tce-rv-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    min-width: 0;
}
/* Photo style "top": large photo; cards without one get a cream panel of the same size */
.tce-rv-card__photo { display: block; margin: -20px -20px 0; overflow: hidden; cursor: zoom-in; }
.tce-rv-card__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tce-rv-card__photo--empty {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: var(--tce-rv-chip);
    cursor: default;
}
.tce-rv-card__photo--empty span {
    font-family: var(--tce-rv-heading-font);
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: var(--tce-rv-accent);
    opacity: .35;
}
/* Photo style "thumb" (default): small photo in the avatar spot, so every card has the same height */
.tce-rv-card__thumb { flex: none; display: block; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.tce-rv-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .tce-rv-card__photo img,
    .tce-rv-card__thumb img { transition: transform .4s cubic-bezier(.4, 0, .2, 1); }
    .tce-rv-card__photo:hover img,
    .tce-rv-card__thumb:hover img { transform: scale(1.06); }
}
.tce-rv-card__head { display: flex; align-items: center; gap: 12px; }
.tce-rv-card__avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--tce-rv-chip);
    color: var(--tce-rv-accent);
    font-family: var(--tce-rv-heading-font);
    font-size: 22px;
    font-weight: 700;
}
.tce-rv-card__who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tce-rv-card__name { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.tce-rv-card__date { font-size: 13px; color: var(--tce-rv-muted); }
.tce-rv-card__score {
    flex: none;
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 12px;
    background: var(--tce-rv-accent);
    color: var(--tce-rv-on-accent);
    font-family: var(--tce-rv-heading-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.tce-rv-card__facts { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.tce-rv-card__fact { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; align-items: center; }
.tce-rv-card__fact dt { color: var(--tce-rv-muted); margin: 0; font-weight: 400; }
.tce-rv-card__fact dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tce-rv-meter { display: inline-flex; gap: 3px; }
.tce-rv-meter i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--tce-rv-bar); }
.tce-rv-meter i.is-on { background: var(--tce-rv-accent); }
/* Difficulty scale: light (easy) to full accent (hard), a thin tick marks the answer. */
.tce-rv-scale {
    position: relative;
    flex: none;
    display: block;
    width: 64px;
    height: 4px;
    margin: 0 4px;
    border-radius: 999px;
    background: var(--tce-rv-bar);
    background: linear-gradient(90deg, color-mix(in srgb, var(--tce-rv-accent) 18%, transparent), var(--tce-rv-accent));
}
.tce-rv-scale i {
    position: absolute;
    top: 50%;
    left: var(--tce-rv-pos, 50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--tce-rv-text);
    box-shadow: 0 0 0 2px var(--tce-rv-card-bg);
    transform: translate(-50%, -50%);
}
.tce-rv-card__type {
    align-self: flex-start;
    margin-top: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--tce-rv-chip);
    font-size: 12px;
    font-weight: 500;
}

/* "Bekijk alle reviews" as an outline button (TCE Reviews link + TCE Reviews knop), pagination,
   notice, empty state. Colours via --tce-rv-btn-* (widget style controls); align-items: stretch = full width. */
.tce-rv__more,
.tce-rv--button { margin: 0; display: flex; flex-direction: column; align-items: var(--tce-rv-btn-align, flex-start); }
.tce-rv .tce-rv__more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    background: var(--tce-rv-btn-bg, transparent);
    border: var(--tce-rv-btn-border-width, 2px) solid var(--tce-rv-btn-border, var(--tce-rv-accent));
    border-radius: var(--tce-rv-btn-radius, 10px);
    color: var(--tce-rv-btn-text, var(--tce-rv-accent));
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.tce-rv .tce-rv__more-link:hover,
.tce-rv .tce-rv__more-link:focus-visible {
    background: var(--tce-rv-btn-hover-bg, var(--tce-rv-accent));
    border-color: var(--tce-rv-btn-hover-border, var(--tce-rv-btn-hover-bg, var(--tce-rv-accent)));
    color: var(--tce-rv-btn-hover-text, var(--tce-rv-on-accent));
}
.tce-rv__more-link svg,
.tce-rv__more-link i { flex: none; width: 1em; height: 1em; font-size: 1em; fill: currentColor; }
.tce-rv-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tce-rv-pages li { margin: 0; }
.tce-rv-pages a,
.tce-rv-pages span {
    display: inline-block;
    min-width: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--tce-rv-line);
    color: var(--tce-rv-text);
    line-height: 1.5;
}
.tce-rv-pages a:hover { box-shadow: inset 0 0 0 2px var(--tce-rv-accent); }
.tce-rv-pages .is-current { background: var(--tce-rv-accent); box-shadow: none; color: var(--tce-rv-on-accent); font-weight: 600; }
.tce-rv-pages .tce-rv-pages__gap { box-shadow: none; min-width: 0; }
.tce-rv__notice { font-size: 12px; color: var(--tce-rv-muted); border-top: 1px solid var(--tce-rv-line); padding-top: 12px; }
.tce-rv__notice p { margin: 0; }
.tce-rv__editor-note { margin: 0; font-size: 12px; font-style: italic; color: var(--tce-rv-muted); }
.tce-rv__empty { margin: 0; font-weight: 600; }

/* All-reviews page (built-in template) */
.tce-rv-page { max-width: 1140px; margin: 0 auto; padding: 32px 16px 48px; }
.tce-rv-page .tce-rv-head { margin-bottom: 32px; }

/* Tour header (TCE Tour kop + built-in reviews page). Widget controls set the custom properties. */
.tce-rv-head {
    --tce-rv-head-img: 120px;
    --tce-rv-head-radius: 16px;
    --tce-rv-head-gap: 20px;
    --tce-rv-head-btn-bg: var(--e-global-color-ebdc6b3, #FF6E03);
    --tce-rv-head-btn-text: #fff;
    --tce-rv-head-btn-radius: 10px;
    display: flex;
    gap: var(--tce-rv-head-gap);
    align-items: center;
    flex-wrap: wrap;
    justify-content: var(--tce-rv-head-align, flex-start);
    text-align: var(--tce-rv-head-text-align, left);
}
.tce-rv-head__image { display: block; flex: 0 0 auto; }
.tce-rv-head__image img {
    display: block;
    width: var(--tce-rv-head-img);
    height: var(--tce-rv-head-img);
    max-width: none;
    object-fit: cover;
    border-radius: var(--tce-rv-head-radius);
}
.tce-rv-head__body { min-width: 0; }
.tce-rv-head .tce-rv-head__title { margin: 0 0 6px; }
.tce-rv-head__meta,
.tce-rv-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; justify-content: var(--tce-rv-head-align, flex-start); }
.tce-rv-head__meta { margin: 0 0 12px; }
.tce-rv-head .tce-rv-head__price { margin: 0; font-weight: 700; }
.tce-rv-head__meta .tce-rv-badge { margin: 0; }
.tce-rv-head .tce-rv-head__book {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    background: var(--tce-rv-head-btn-bg);
    color: var(--tce-rv-head-btn-text);
    padding: 10px 22px;
    border-radius: var(--tce-rv-head-btn-radius);
    font-weight: 700;
    text-decoration: none;
}
.tce-rv-head .tce-rv-head__book:hover,
.tce-rv-head .tce-rv-head__book:focus {
    background: var(--tce-rv-head-btn-hover-bg, var(--tce-rv-head-btn-bg));
    color: var(--tce-rv-head-btn-hover-text, var(--tce-rv-head-btn-text));
    filter: var(--tce-rv-head-btn-hover-filter, brightness(.92));
}
.tce-rv-head .tce-rv-head__book:focus-visible { outline: 2px solid var(--tce-rv-head-btn-bg); outline-offset: 2px; }
@media (max-width: 599px) {
    .tce-rv-head--stack { flex-direction: column; align-items: var(--tce-rv-head-align, flex-start); }
}

/* Photo gallery. Columns/gap/ratio via custom properties (set by the widget's controls). */
.tce-rv--gallery { gap: 16px; }
.tce-rv-gallery__title { margin: 0; }
.tce-rv-gallery {
    --tce-rv-cols: 3;
    --tce-rv-gap: 16px;
    --tce-rv-ratio: 4 / 5;
    --tce-rv-focus: center center;
    --tce-rv-min: 220px;
    --tce-rv-dot: rgba(0, 0, 0, .2);
    --tce-rv-dot-active: var(--tce-rv-accent, #007EF5);
    --tce-rv-arrow-bg: #ffffff;
    --tce-rv-arrow-color: var(--tce-rv-accent, #007EF5);
    position: relative;
}
@media (max-width: 1024px) { .tce-rv-gallery { --tce-rv-cols: 2; } }
@media (max-width: 767px)  { .tce-rv-gallery { --tce-rv-cols: 1.2; } }

.tce-rv-gallery__track { list-style: none; margin: 0; padding: 0; gap: var(--tce-rv-gap); }
.tce-rv-gallery--grid .tce-rv-gallery__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tce-rv-min), 1fr)); }
.tce-rv-gallery--slider .tce-rv-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tce-rv-gallery--slider .tce-rv-gallery__track::-webkit-scrollbar { display: none; }
.tce-rv-gallery--slider .tce-rv-gallery__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tce-rv-gallery--slider .tce-rv-gallery__item {
    flex: 0 0 calc((100% - (var(--tce-rv-cols) - 1) * var(--tce-rv-gap)) / var(--tce-rv-cols));
    scroll-snap-align: start;
}
.tce-rv-gallery__item { position: relative; margin: 0; min-width: 0; }
.tce-rv-gallery__link { display: block; cursor: zoom-in; }
.tce-rv-gallery__link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--tce-rv-ratio);
    object-position: var(--tce-rv-focus);
    object-fit: cover;
    border-radius: var(--tce-rv-radius);
}
.tce-rv-gallery__name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 12px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    border-radius: 0 0 var(--tce-rv-radius) var(--tce-rv-radius);
    pointer-events: none;
}
/* The extra .tce-rv-gallery in the selectors beats theme button resets
   (Hello Elementor: button:hover / :focus { background: #c36 }). */
.tce-rv-gallery .tce-rv-gallery__arrow {
    position: absolute;
    top: calc(50% - 32px);
    z-index: 2;
    display: var(--tce-rv-arrows, flex);
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: var(--tce-rv-arrow-bg);
    color: var(--tce-rv-arrow-color);
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
    transition: transform .2s, background-color .2s, color .2s;
}
.tce-rv-gallery .tce-rv-gallery__arrow:focus { background: var(--tce-rv-arrow-bg); color: var(--tce-rv-arrow-color); }
.tce-rv-gallery .tce-rv-gallery__arrow:hover {
    background: var(--tce-rv-arrow-hover-bg, var(--tce-rv-arrow-bg));
    color: var(--tce-rv-arrow-hover-color, var(--tce-rv-arrow-color));
    transform: scale(1.06);
}
.tce-rv-gallery__arrow svg { display: block; flex: none; }
.tce-rv-gallery__arrow[hidden] { display: none; }
.tce-rv-gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.tce-rv-gallery__arrow--prev { left: var(--tce-rv-arrow-offset, 8px); }
.tce-rv-gallery__arrow--next { right: var(--tce-rv-arrow-offset, 8px); }
/* --tce-rv-arrows: per-device widget setting ({{WRAPPER}} .tce-rv-gallery wins over this default). */
@media (hover: none) { .tce-rv-gallery { --tce-rv-arrows: none; } }
.tce-rv-gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; min-height: 8px; }
.tce-rv-gallery .tce-rv-gallery__dot,
.tce-rv-gallery .tce-rv-gallery__dot:hover,
.tce-rv-gallery .tce-rv-gallery__dot:focus {
    width: 8px;
    height: 8px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--tce-rv-dot);
    cursor: pointer;
    transition: width .2s, background-color .2s;
}
.tce-rv-gallery .tce-rv-gallery__dot.is-active { width: 22px; background: var(--tce-rv-dot-active); }

/* Review cards as a carousel (TCE Reviews, layout "Carrousel"). Reuses the gallery slider above.
   Vertical padding keeps the card shadows from being clipped by the scroll container. */
@media (max-width: 767px) { .tce-rv-gallery--cards { --tce-rv-cols: 1.15; } }
.tce-rv-gallery--cards .tce-rv-gallery__track { padding: 8px 2px 16px; margin: -8px -2px -16px; }
.tce-rv-gallery--cards .tce-rv-gallery__item { display: flex; align-items: flex-start; }
.tce-rv-gallery--cards .tce-rv-card { width: 100%; }
.tce-rv-gallery--cards.is-equal .tce-rv-gallery__item { align-items: stretch; }
.tce-rv-gallery--cards .tce-rv-gallery__arrow { top: 50%; transform: translateY(-50%); }
.tce-rv-gallery--cards .tce-rv-gallery__arrow:hover { transform: translateY(-50%) scale(1.06); }
.tce-rv-gallery--cards:has(.tce-rv-gallery__dots) .tce-rv-gallery__arrow { top: calc(50% - 12px); }

/* "Nieuwe tour": TCE Nieuwe tour / TCE Reviews fallback while a tour has too few reviews.
   Text + check points on the left, the score over all tours in a cream panel on the right (stacked on phones). */
.tce-rv-new {
    --tce-rv-new-bg: var(--tce-rv-card-bg);
    --tce-rv-new-panel: var(--tce-rv-chip);
    --tce-rv-new-badge-bg: var(--e-global-color-accent, #FEB412);
    --tce-rv-new-badge-text: #000000;
    display: grid;
    gap: 24px;
    padding: 24px 20px;
    border: var(--tce-rv-border);
    border-radius: var(--tce-rv-radius);
    background: var(--tce-rv-new-bg);
    box-shadow: var(--tce-rv-shadow);
}
@media (min-width: 768px) {
    .tce-rv-new { padding: 32px; }
    .tce-rv-new.has-aside { grid-template-columns: minmax(0, 1fr) 210px; align-items: center; gap: 32px; }
}
.tce-rv-new__main { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.tce-rv-new__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--tce-rv-new-badge-bg);
    color: var(--tce-rv-new-badge-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
    text-transform: uppercase;
}
.tce-rv-new__title { margin: 0; color: inherit; font-family: var(--tce-rv-heading-font); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.tce-rv-new__text { margin: 0; color: var(--tce-rv-muted); font-size: 16px; line-height: 1.55; }
.tce-rv-new__points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tce-rv-new__points li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 500; line-height: 1.45; }
.tce-rv-new__check {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tce-rv-new-panel);
    color: var(--tce-rv-accent);
}
.tce-rv-new__check svg { display: block; width: 14px; height: 14px; }
.tce-rv-new__photos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 8px; }
.tce-rv-new__photos li { margin: 0; }
.tce-rv-new__photos a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.tce-rv-new__photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tce-rv .tce-rv-new__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--tce-rv-accent);
    color: var(--tce-rv-on-accent);
    font-weight: 600;
    text-decoration: none;
    transition: filter .2s;
}
.tce-rv .tce-rv-new__btn:hover,
.tce-rv .tce-rv-new__btn:focus { color: var(--tce-rv-on-accent); filter: brightness(.92); }
.tce-rv-new__aside {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--tce-rv-new-panel);
}
@media (min-width: 768px) {
    .tce-rv-new__aside { flex-direction: column; padding: 24px 16px; text-align: center; }
}
.tce-rv-new__score {
    flex: none;
    min-width: 88px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--tce-rv-accent);
    color: var(--tce-rv-on-accent);
    font-family: var(--tce-rv-heading-font);
    text-align: center;
    line-height: 1;
}
.tce-rv-new__avg { font-size: 36px; font-weight: 700; }
.tce-rv-new__max { margin-left: 2px; font-size: 14px; font-weight: 600; opacity: .75; }
.tce-rv-new__caption { margin: 0; color: var(--tce-rv-muted); font-size: 14px; line-height: 1.4; }
.tce-rv-new__caption strong { display: block; color: var(--tce-rv-text); font-family: var(--tce-rv-heading-font); font-size: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .tce-rv-gallery__arrow,
    .tce-rv-gallery__dot,
    .tce-rv .tce-rv__more-link,
    .tce-rv .tce-rv-new__btn { transition: none; }
}

/* Lightbox */
.tce-rv-lightbox { padding: 0; border: 0; background: transparent; max-width: 95vw; max-height: 95vh; overflow: visible; }
.tce-rv-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.tce-rv-lightbox img { display: block; max-width: 95vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; }
/* .tce-rv-lightbox prefix beats theme button resets (pink #c36 on hover/focus).
   The dialog lives in <body>, outside .tce-rv, so the accent comes straight from the kit. */
.tce-rv-lightbox .tce-rv-lightbox__close,
.tce-rv-lightbox .tce-rv-lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: #fff;
    color: #1a1a1a;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
    transition: background-color .2s, color .2s;
}
.tce-rv-lightbox .tce-rv-lightbox__close:focus,
.tce-rv-lightbox .tce-rv-lightbox__nav:focus { background: #fff; color: #1a1a1a; }
.tce-rv-lightbox .tce-rv-lightbox__close:hover,
.tce-rv-lightbox .tce-rv-lightbox__nav:hover { background: var(--e-global-color-secondary, #007EF5); color: #fff; }
.tce-rv-lightbox .tce-rv-lightbox__close:focus-visible,
.tce-rv-lightbox .tce-rv-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tce-rv-lightbox .tce-rv-lightbox__close { top: -14px; right: -14px; width: 36px; height: 36px; }
.tce-rv-lightbox .tce-rv-lightbox__close svg { width: 18px; height: 18px; }
.tce-rv-lightbox .tce-rv-lightbox__nav { top: calc(50% - 22px); width: 44px; height: 44px; }
.tce-rv-lightbox button svg { display: block; flex: none; }
.tce-rv-lightbox .tce-rv-lightbox__nav[hidden] { display: none; }
.tce-rv-lightbox__nav--prev { left: 8px; }
.tce-rv-lightbox__nav--next { right: 8px; }
.tce-rv-lightbox__count {
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}
