/* TripAdvisor Reviews Plugin – Carousel style.css */

:root {
    --tar-accent:   #00A86B;
    --tar-bg:       #ffffff;
    --tar-surface:  #f8fafb;
    --tar-border:   #e8ecef;
    --tar-text:     #1a2332;
    --tar-muted:    #6b7a8d;
    --tar-star-on:  #F5A623;
    --tar-star-off: #dde2e8;
    --tar-radius:   16px;
    --tar-shadow:   0 4px 24px rgba(0,0,0,.08);
    --tar-shadow-h: 0 12px 40px rgba(0,0,0,.14);
}

/* ── Wrapper ── */
.tar-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tar-text);
    line-height: 1.6;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 0 40px;
    box-sizing: border-box;
}
.tar-wrapper *, .tar-wrapper *::before, .tar-wrapper *::after { box-sizing: inherit; }

/* ── Banner ── */
.tar-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
    background: var(--tar-surface);
    border: 1px solid var(--tar-border);
    border-radius: var(--tar-radius);
    padding: 28px 32px;
    margin-bottom: 40px;
}
.tar-banner__left { display: flex; align-items: center; gap: 20px; }
.tar-banner__logo { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tar-banner__logo svg { width: 44px; height: 44px; }
.tar-banner__brand { font-size: 10px; font-weight: 700; color: var(--tar-muted); letter-spacing: .08em; text-transform: uppercase; }
.tar-banner__score { text-align: center; }
.tar-banner__number { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--tar-accent); display: block; }
.tar-banner__meta { font-size: .82rem; color: var(--tar-muted); margin-top: 5px; }
.tar-banner__sep { margin: 0 4px; }
.tar-banner__bars { flex: 1; min-width: 200px; }
.tar-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.tar-bar-label { font-size: .78rem; color: var(--tar-muted); min-width: 22px; text-align: right; }
.tar-bar-track { flex: 1; height: 7px; background: var(--tar-border); border-radius: 999px; overflow: hidden; }
.tar-bar-fill { height: 100%; background: var(--tar-accent); border-radius: 999px; transition: width .9s cubic-bezier(.4,0,.2,1); }
.tar-bar-count { font-size: .75rem; color: var(--tar-muted); min-width: 24px; }
.tar-banner__cta {
    margin-left: auto;
    background: var(--tar-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    padding: 10px 22px;
    border-radius: 999px;
    white-space: nowrap;
    transition: opacity .2s, transform .15s;
}
.tar-banner__cta:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* ── Stars ── */
.tar-stars { display: inline-flex; gap: 2px; }
.tar-star { font-size: .95rem; line-height: 1; color: var(--tar-star-off); }
.tar-star--full { color: var(--tar-star-on); }
.tar-star--half { color: var(--tar-star-on); opacity: .55; }
.tar-stars--lg .tar-star { font-size: 1.4rem; }

/* ── Carousel shell ── */
.tar-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Nav buttons ── */
.tar-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--tar-border);
    background: var(--tar-bg);
    color: var(--tar-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s, transform .15s, box-shadow .18s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.tar-nav:hover {
    background: var(--tar-accent);
    border-color: var(--tar-accent);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0,168,107,.25);
}
.tar-nav:active { transform: scale(.96); }
.tar-nav:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.tar-nav svg { width: 18px; height: 18px; }

/* ── Track (the scrolling container) ── */
.tar-track-wrap {
    flex: 1;
    overflow: hidden;
    padding: 8px 4px 16px;
    margin: 0 12px;
}
.tar-track {
    display: flex;
    gap: 20px;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Cards ── */
.tar-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    background: var(--tar-bg);
    border: 1px solid var(--tar-border);
    border-radius: var(--tar-radius);
    padding: 28px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--tar-shadow);
    transition: box-shadow .22s, transform .22s, border-color .22s;
    position: relative;
    overflow: hidden;
}
.tar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--tar-radius);
    background: linear-gradient(135deg, rgba(0,168,107,.04) 0%, transparent 60%);
    pointer-events: none;
}
.tar-card:hover {
    box-shadow: var(--tar-shadow-h);
    transform: translateY(-4px);
    border-color: rgba(0,168,107,.25);
}

/* Big decorative quote mark */
.tar-card__quote {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 5rem;
    line-height: 1;
    color: var(--tar-accent);
    opacity: .10;
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}

.tar-card__body { flex: 1; }
.tar-card__excerpt,
.tar-card__full {
    font-size: .91rem;
    color: #3d4e5f;
    line-height: 1.7;
    margin: 0;
}
.tar-read-more {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--tar-accent);
    font-size: .82rem;
    font-weight: 600;
    margin-top: 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tar-read-more:hover { opacity: .75; }

.tar-card__title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    color: var(--tar-text);
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* Card footer row */
.tar-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--tar-border);
    padding-top: 14px;
    margin-top: auto;
}
.tar-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tar-accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}
.tar-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tar-card__meta { flex: 1; min-width: 0; }
.tar-card__name { font-weight: 700; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tar-card__date { font-size: .75rem; color: var(--tar-muted); }
.tar-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.tar-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--tar-muted);
    font-size: .75rem;
    font-weight: 600;
    transition: color .18s;
}
.tar-card__link:hover { color: var(--tar-accent); }

/* ── Dots ── */
.tar-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}
.tar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tar-border);
    cursor: pointer;
    transition: background .2s, transform .2s, width .25s;
    border: none;
    padding: 0;
}
.tar-dot.active {
    background: var(--tar-accent);
    width: 24px;
    border-radius: 999px;
}

/* ── Footer ── */
.tar-footer { margin-top: 28px; text-align: center; }
.tar-footer__link {
    display: inline-block;
    background: var(--tar-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    padding: 11px 30px;
    border-radius: 999px;
    transition: opacity .2s, transform .15s;
}
.tar-footer__link:hover { opacity: .88; transform: translateY(-1px); color: #fff; }

/* ── Error ── */
.tar-error { background: #fff0f0; border: 1px solid #fca5a5; border-radius: 8px; padding: 14px 18px; color: #b91c1c; font-size: .9rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .tar-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
    .tar-card { flex: 0 0 100%; }
    .tar-nav { width: 36px; height: 36px; }
    .tar-nav svg { width: 15px; height: 15px; }
    .tar-track-wrap { margin: 0 6px; }
    .tar-banner { padding: 18px; gap: 14px; }
    .tar-banner__left { gap: 12px; }
    .tar-banner__number { font-size: 2.2rem; }
    .tar-banner__cta { width: 100%; text-align: center; margin-left: 0; }
}

/* ── CTA card (6th slot) ── */
/* ── CTA card ── */
.tar-card--cta {
    text-decoration: none;
    background: linear-gradient(150deg, #0d1f2d 0%, #0a3d2e 60%, #0d5c40 100%);
    color: #fff;
    display: flex;
    align-items: stretch;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
    border: none;
}
.tar-card--cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0,170,108,.4);
}

/* Decorative blurred circles in background */
.tar-card--cta__bg-circles { position: absolute; inset: 0; pointer-events: none; }
.tar-card--cta__circle {
    position: absolute;
    border-radius: 50%;
    opacity: .18;
    background: #34E0A1;
}
.tar-card--cta__circle--1 { width: 180px; height: 180px; top: -60px; right: -50px; }
.tar-card--cta__circle--2 { width: 110px; height: 110px; bottom: -30px; left: -30px; opacity: .12; }
.tar-card--cta__circle--3 { width: 60px;  height: 60px;  bottom: 40px; right: 30px; opacity: .1; }

.tar-card--cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px 24px;
    text-align: center;
    width: 100%;
}

/* Big gold stars */
.tar-card--cta__stars {
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: #FFB800;
    text-shadow: 0 2px 8px rgba(255,184,0,.4);
    line-height: 1;
}

/* Main headline */
.tar-card--cta__headline {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: #fff;
}

/* Sub-line */
.tar-card--cta__sub {
    margin: 0;
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    letter-spacing: .02em;
    text-transform: uppercase;
}

/* Review tally */
.tar-card--cta__tally {
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
}
.tar-card--cta__tally-num {
    font-size: 2rem;
    font-weight: 900;
    color: #34E0A1;
    line-height: 1;
}
.tar-card--cta__tally-label {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    line-height: 1.4;
    text-align: left;
}

/* CTA button */
.tar-card--cta__btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #34E0A1;
    color: #0a3d2e;
    font-size: .88rem;
    font-weight: 800;
    padding: 11px 22px;
    border-radius: 999px;
    letter-spacing: .01em;
    box-shadow: 0 4px 16px rgba(52,224,161,.35);
    transition: background .18s, box-shadow .18s, transform .18s;
}
.tar-card--cta:hover .tar-card--cta__btn {
    background: #50edb5;
    box-shadow: 0 6px 24px rgba(52,224,161,.5);
    transform: scale(1.04);
}

/* Footer note */
.tar-card--cta__footer {
    margin: 0;
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    letter-spacing: .03em;
}
