/* ============================================================================
   Traveller testimonials.

   A snap-scrolling rail rather than a JS carousel: it is one CSS property on
   mobile, it works with a trackpad, a touch swipe and the keyboard, and it has
   no autoplay to fight with. The arrows just scroll the rail.
   ========================================================================== */

.pt-testimonials { position: relative; overflow: hidden; }

/* Oversized serif quote mark bled into the corner — a typographic device
   rather than another icon. */
.pt-testimonials::before {
    content: "\201C";
    position: absolute;
    top: -3rem;
    right: 4%;
    font-family: var(--pt-font-accent);
    font-size: 22rem;
    line-height: 1;
    color: rgba(27, 95, 170, .05);
    pointer-events: none;
    user-select: none;
}

.pt-testimonials__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--pt-gap-lg);
    margin-bottom: var(--pt-gap-xl);
    position: relative;
}

.pt-testimonials__head .pt-heading { margin-bottom: 0; }

/* -- aggregate rating panel ----------------------------------------------- */

.pt-rating-panel {
    display: flex;
    align-items: center;
    gap: var(--pt-gap);
    padding: var(--pt-gap) var(--pt-gap-lg);
    background: var(--pt-paper);
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius-lg);
    box-shadow: var(--pt-shadow-sm);
}

.pt-rating-panel__score {
    font-family: var(--pt-font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--pt-heading);
    letter-spacing: -0.03em;
}

.pt-rating-panel__meta { font-size: var(--pt-text-sm); color: var(--pt-text-faint); }
.pt-rating-panel__meta .pt-stars { margin-bottom: .15rem; }

.pt-rating-panel__source {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .2rem;
    font-size: var(--pt-text-xs);
    color: var(--pt-text-faint);
}

.pt-rating-panel__source svg { width: 14px; height: 14px; }

/* -- rail ----------------------------------------------------------------- */

.pt-testimonial-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 86vw);
    gap: var(--pt-gap-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .5rem .25rem 1.25rem;
    margin-inline: -.25rem;
    scrollbar-width: none;
}

.pt-testimonial-rail::-webkit-scrollbar { display: none; }
.pt-testimonial-rail > * { scroll-snap-align: start; }

@media (min-width: 700px) { .pt-testimonial-rail { grid-auto-columns: minmax(340px, 44%); } }
@media (min-width: 1080px) { .pt-testimonial-rail { grid-auto-columns: minmax(330px, 32%); } }

/* -- card ----------------------------------------------------------------- */

.pt-testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--pt-gap);
    padding: var(--pt-gap-lg);
    background: var(--pt-paper);
    border: 1px solid var(--pt-line-soft);
    border-radius: var(--pt-radius-lg);
    box-shadow: var(--pt-shadow-sm);
    transition: transform .35s var(--pt-ease-out), box-shadow .35s var(--pt-ease-out), border-color .3s var(--pt-ease);
    height: 100%;
}

.pt-testimonial:hover {
    transform: translateY(-4px);
    border-color: var(--pt-blue-200);
    box-shadow: var(--pt-shadow-lg);
}

.pt-testimonial__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pt-gap);
}

.pt-testimonial__quote {
    flex: 1;
    margin: 0;
    color: var(--pt-slate-700);
    font-size: var(--pt-text-base);
    line-height: 1.7;
    /* Long reviews are clamped so a rail of cards keeps one height; the full
       text stays in the DOM for search engines and screen readers. */
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pt-testimonial__foot {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: var(--pt-gap);
    border-top: 1px solid var(--pt-line-soft);
}

.pt-testimonial__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pt-blue-600), var(--pt-blue-800));
    color: #fff;
    font-family: var(--pt-font-display);
    font-size: var(--pt-text-base);
    font-weight: 700;
    letter-spacing: .02em;
}

.pt-testimonial__avatar img { width: 100%; height: 100%; object-fit: cover; }

.pt-testimonial__who { min-width: 0; }
.pt-testimonial__who strong { display: block; font-family: var(--pt-font-display); color: var(--pt-heading); font-size: var(--pt-text-base); }
.pt-testimonial__who small { display: block; color: var(--pt-text-faint); font-size: var(--pt-text-xs); }

/* Platform badge — Google gets its real colours, which is the point of it. */
.pt-testimonial__source {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--pt-sand);
    border: 1px solid var(--pt-line-soft);
}

.pt-testimonial__source svg { width: 15px; height: 15px; }

/* -- controls ------------------------------------------------------------- */

.pt-rail-controls { display: flex; gap: .5rem; }

.pt-rail-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pt-line);
    border-radius: 50%;
    background: var(--pt-paper);
    color: var(--pt-slate-700);
    cursor: pointer;
    transition: background .2s var(--pt-ease), color .2s var(--pt-ease), border-color .2s var(--pt-ease), opacity .2s var(--pt-ease);
}

.pt-rail-btn:hover:not(:disabled) { background: var(--pt-blue-600); border-color: var(--pt-blue-600); color: #fff; }
.pt-rail-btn:disabled { opacity: .35; cursor: not-allowed; }
.pt-rail-btn svg { width: 18px; height: 18px; }

.pt-testimonials__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--pt-gap);
    margin-top: var(--pt-gap-lg);
}

/* "Read our reviews on Google" — real Google colours on a white pill, which is
   what makes it read as genuine rather than as a styled link. */
.pt-google-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.35rem;
    border: 1px solid var(--pt-line);
    border-radius: var(--pt-radius-pill);
    background: var(--pt-paper);
    color: var(--pt-slate-700);
    font-family: var(--pt-font-display);
    font-weight: 600;
    font-size: var(--pt-text-base);
    box-shadow: var(--pt-shadow-sm);
    transition: transform .2s var(--pt-ease), box-shadow .2s var(--pt-ease);
}

.pt-google-link:hover { transform: translateY(-2px); box-shadow: var(--pt-shadow); color: var(--pt-slate-700); }
.pt-google-link svg { width: 18px; height: 18px; }
