/* Travespert Reviews page (/reviews/, [travespert_reviews]) - fanned card deck. Uses tokens.css. */
body.tv-reviews-page { overflow-x: hidden; }
body.tv-reviews-page #brx-content > h1 { display: none; }
html.tv-rv-lock, html.tv-rv-lock body { overflow: hidden; }
.tv-rv { color: var(--tv-body); }
.tv-rv-wrap { max-width: calc(var(--tv-container) + 2 * var(--tv-gutter)); margin: 0 auto; padding: 0 var(--tv-gutter); box-sizing: border-box; }

/* Stage: warm off-white band, full bleed */
.tv-rv-stage { width: 100vw; margin-left: calc(50% - 50vw); background: #f7f3ea; padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 88px); overflow: hidden; }
.tv-rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.tv-rv-h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: .98; letter-spacing: -2px; color: var(--tv-ink); }
.tv-rv-h1 span { display: block; color: #8c847c; }
.tv-rv-headside { max-width: 380px; display: grid; gap: 14px; }
.tv-rv-lead { margin: 0; font-size: var(--tv-fs-lead); line-height: 1.6; color: var(--tv-body); }
.tv-rv-badge { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-self: start; background: #fff; border: 1px solid #ebe3d2; border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--tv-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .05); }
.tv-rv-badge__g svg { width: 20px; height: 20px; display: block; }
.tv-rv-stars { display: inline-flex; gap: 2px; color: #f28c28; }
.tv-rv-stars svg { width: 15px; height: 15px; }
.tv-rv-stars--sm svg { width: 13px; height: 13px; }

/* ---- Deck ---- */
.tv-rv-deck { --cw: 300px; --step: 196px; position: relative; height: 520px; margin: 0 auto; }
.tv-rv-card {
  --off: calc(var(--i) - (var(--n) - 1) / 2);
  --rot: calc(var(--off) * 3.2deg);
  --lift: calc(var(--off) * var(--off) * 7px);
  position: absolute; left: 50%; top: 24px; width: var(--cw); height: 452px; margin: 0; padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 12px; text-align: left; font: inherit; cursor: pointer;
  background: #efe9dd; color: var(--tv-ink); border: 0; border-radius: 22px;
  box-shadow: 0 18px 40px rgba(60, 45, 20, .16), 0 2px 6px rgba(60, 45, 20, .08);
  z-index: calc(10 + var(--i));
  transform: translateX(calc(-50% + var(--off) * var(--step))) translateY(var(--lift)) rotate(var(--rot));
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .6s ease, box-shadow .3s ease, filter .3s ease;
  transition-delay: calc(var(--i) * 70ms);
}
.tv-rv-card--dark { background: #8c847c; color: #fff; }
.tv-rv-deck.is-anim:not(.is-in) .tv-rv-card { transform: translateX(-50%) translateY(40px) rotate(0deg) scale(.94); opacity: 0; }
.tv-rv-deck.is-in .tv-rv-card { opacity: 1; transform: translateX(calc(-50% + var(--off) * var(--step))) translateY(var(--lift)) rotate(var(--rot)); }
/* Interactive: hovered card straightens and rises; the rest ease back */
@media (hover: hover) {
  .tv-rv-deck.is-in:hover .tv-rv-card { filter: saturate(.85) brightness(.97); transition-delay: 0s; }
  .tv-rv-deck.is-in .tv-rv-card:hover, .tv-rv-deck.is-in .tv-rv-card:focus-visible {
    z-index: 60; filter: none; transform: translateX(calc(-50% + var(--off) * var(--step))) translateY(-18px) rotate(0deg) scale(1.05);
    box-shadow: 0 30px 60px rgba(60, 45, 20, .28);
  }
}
.tv-rv-card:focus-visible { outline: 3px solid var(--tv-primary); outline-offset: 4px; }
.tv-rv-card__media { position: relative; display: block; height: 138px; flex-shrink: 0; border-radius: 14px; overflow: hidden; background: #ddd3c0; }
.tv-rv-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tv-rv-card:hover .tv-rv-card__img { transform: scale(1.06); }
.tv-rv-card__place { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: 999px; padding: 4px 10px; }
.tv-rv-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.tv-rv-chip { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: inherit; opacity: .85; }
.tv-rv-card__text { flex: 1; padding: 0 4px; font-size: 16.5px; line-height: 1.45; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tv-rv-card__who { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.tv-rv-av { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.tv-rv-av--0 { background: #e59a1a; } .tv-rv-av--1 { background: #2f7d6b; } .tv-rv-av--2 { background: #5b6ee1; } .tv-rv-av--3 { background: #c2552f; }
.tv-rv-card__name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tv-rv-card__name b { font-size: 13.5px; }
.tv-rv-card__name em { font-style: normal; font-size: 11.5px; opacity: .7; }
.tv-rv-card__more { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 6px 10px; background: rgba(0, 0, 0, .07); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.tv-rv-card--dark .tv-rv-card__more { background: rgba(255, 255, 255, .18); }
.tv-rv-card__more svg { width: 13px; height: 13px; }
.tv-rv-card:hover .tv-rv-card__more, .tv-rv-card:focus-visible .tv-rv-card__more { opacity: 1; transform: none; }

.tv-rv-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; font-size: 13.5px; color: #8c847c; }
.tv-rv-hint__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tv-primary); animation: tvRvPulse 1.8s infinite; }
@keyframes tvRvPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 167, 27, .55); } 70% { box-shadow: 0 0 0 8px rgba(242, 167, 27, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 167, 27, 0); } }
.tv-rv-hint__m { display: none; }
.tv-rv-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.tv-rv-btn2 { background: #fff; color: var(--tv-ink); border: 1px solid #e5dccb; }

/* ---- Lightbox ---- */
.tv-rv-lb { position: fixed; inset: 0; z-index: 1600; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tv-rv-lb[hidden] { display: none; }
.tv-rv-lb__bg { position: absolute; inset: 0; background: rgba(30, 24, 14, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s ease; }
.tv-rv-lb.is-open .tv-rv-lb__bg { opacity: 1; }
.tv-rv-lb__card {
  position: relative; z-index: 1; width: min(860px, 100%); max-height: calc(100vh - 40px); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; background: #efe9dd; color: var(--tv-ink); border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(20px) rotate(-2deg) scale(.96);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1), background .3s ease, color .3s ease;
}
.tv-rv-lb.is-open .tv-rv-lb__card { opacity: 1; transform: none; }
.tv-rv-lb__card--dark { background: #8c847c; color: #fff; }
.tv-rv-lb__card.is-swap-r .tv-rv-lb__body, .tv-rv-lb__card.is-swap-r .tv-rv-lb__media img { animation: tvRvInR .4s ease; }
.tv-rv-lb__card.is-swap-l .tv-rv-lb__body, .tv-rv-lb__card.is-swap-l .tv-rv-lb__media img { animation: tvRvInL .4s ease; }
@keyframes tvRvInR { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes tvRvInL { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.tv-rv-lb__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--tv-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.tv-rv-lb__close svg { width: 20px; height: 20px; }
.tv-rv-lb__media { position: relative; min-height: 100%; background: #ddd3c0; }
.tv-rv-lb__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-rv-lb__media .tv-rv-card__place { left: 14px; bottom: 14px; font-size: 12.5px; }
.tv-rv-lb__body { display: flex; flex-direction: column; gap: 18px; padding: 34px 30px 26px; overflow-y: auto; }
.tv-rv-lb__body .tv-rv-card__top { padding: 0; padding-right: 40px; }
.tv-rv-lb__text { margin: 0; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; font-weight: 500; }
.tv-rv-lb__text::before { content: '\201C'; display: block; font-family: Georgia, serif; font-size: 64px; line-height: .6; color: var(--tv-primary); margin-bottom: 6px; }
.tv-rv-lb__body .tv-rv-card__who { padding: 0; }
.tv-rv-lb__nav { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .1); }
.tv-rv-lb__card--dark .tv-rv-lb__nav { border-top-color: rgba(255, 255, 255, .25); }
.tv-rv-lb__arrow { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--tv-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transition: transform .2s, background .2s; }
.tv-rv-lb__arrow:hover { transform: scale(1.08); background: var(--tv-primary); }
.tv-rv-lb__arrow svg { width: 20px; height: 20px; }
.tv-rv-lb__count { font-size: 13px; font-weight: 700; letter-spacing: .6px; opacity: .75; }

/* ---- Tablet: tighter fan ---- */
@media (max-width: 1024px) { .tv-rv-deck { --cw: 270px; --step: 150px; height: 490px; } .tv-rv-card { height: 430px; } .tv-rv-card__text { font-size: 15.5px; } }

/* ---- Phones: swipeable row with a gentle tilt ---- */
@media (max-width: 760px) {
  .tv-rv-head { align-items: flex-start; }
  .tv-rv-h1 { letter-spacing: -1.2px; }
  .tv-rv-deck { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--tv-gutter)); padding: 26px var(--tv-gutter) 30px; scroll-padding: 0 var(--tv-gutter); }
  .tv-rv-deck::-webkit-scrollbar { display: none; }
  .tv-rv-card, .tv-rv-deck.is-in .tv-rv-card, .tv-rv-deck.is-anim:not(.is-in) .tv-rv-card { position: relative; left: auto; top: auto; flex: 0 0 80vw; max-width: 320px; height: 440px; scroll-snap-align: center;
    transform: rotate(calc(var(--off) * 1.4deg)); opacity: 1; transition: transform .3s ease; }
  .tv-rv-card:active { transform: scale(.98); }
  .tv-rv-card__more { opacity: 1; transform: none; }
  .tv-rv-hint__d { display: none; } .tv-rv-hint__m { display: inline; }
  .tv-rv-lb { padding: 0; align-items: flex-end; }
  .tv-rv-lb__card { grid-template-columns: 1fr; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(40px); }
  .tv-rv-lb__media { min-height: 0; height: 190px; flex-shrink: 0; }
  .tv-rv-lb__body { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-rv-card, .tv-rv-lb__card, .tv-rv-lb__bg, .tv-rv-card__img { transition: none !important; transition-delay: 0s !important; }
  .tv-rv-hint__dot { animation: none; }
  .tv-rv-lb__card.is-swap-r .tv-rv-lb__body, .tv-rv-lb__card.is-swap-l .tv-rv-lb__body, .tv-rv-lb__card.is-swap-r .tv-rv-lb__media img, .tv-rv-lb__card.is-swap-l .tv-rv-lb__media img { animation: none; }
}

/* Neutralise the theme's blockquote styling inside the lightbox */
.tv-rv .tv-rv-lb__text { font-family: var(--tv-font, inherit); font-style: normal; border: 0; padding: 0; background: none; color: inherit; quotes: none; }
html.tv-rv-lock .tv-wa-fab { display: none !important; }
