{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "airbnb-reviews",
  "title": "Airbnb Reviews",
  "description": "A guest-review carousel with the Airbnb Bélo mark, aggregate rating header and CTA, above a draggable autoplaying grid of review cards.",
  "dependencies": [
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/airbnb-reviews/airbnb-reviews.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nconst TOKENS = {\n  ink: \"#0d0d0d\",\n  glassBorderSoft: \"rgba(255,255,255,0.12)\",\n  uiFontFamily: \"'Helvetica Neue', Arial, sans-serif\",\n  gapDefault: 20,\n} as const;\n\nconst MOBILE_BREAKPOINT = 640;\nconst TABLET_BREAKPOINT = 980;\n\nfunction useContainerWidth(ref: React.RefObject<HTMLDivElement | null>) {\n  const [width, setWidth] = React.useState(9999);\n  React.useEffect(() => {\n    if (!ref.current) return;\n    let rafId = 0;\n    const ro = new ResizeObserver(([entry]) => {\n      cancelAnimationFrame(rafId);\n      rafId = requestAnimationFrame(() => setWidth(entry.contentRect.width));\n    });\n    ro.observe(ref.current);\n    return () => {\n      cancelAnimationFrame(rafId);\n      ro.disconnect();\n    };\n  }, [ref]);\n  return width;\n}\n\nconst AVATAR_PALETTE = [\"#3c7a63\", \"#64748b\", \"#8b5cf6\", \"#c026d3\", \"#0ea5e9\", \"#d97706\"];\n\nexport type AirbnbReviewsThemeMode = \"light\" | \"dark\" | \"custom\";\n\nexport interface AirbnbReviewItem {\n  avatar?: string | null;\n  name: string;\n  date: string;\n  rating: number;\n  text: string;\n}\n\nexport interface AirbnbReviewsFontValue {\n  fontFamily?: string;\n  fontWeight?: string | number;\n  fontStyle?: string;\n  fontSize?: number | string;\n  lineHeight?: number | string;\n  letterSpacing?: number | string;\n}\n\nconst DEFAULT_REVIEWS: AirbnbReviewItem[] = [\n  {\n    avatar: null,\n    name: \"Emma Wilson\",\n    date: \"7 days ago\",\n    rating: 5,\n    text: \"The place was even better than the photos. Spotless, well stocked, and the host checked in at just the right moments without ever being intrusive.\",\n  },\n  {\n    avatar: null,\n    name: \"Grace Miller\",\n    date: \"21 days ago\",\n    rating: 5,\n    text: \"Loved the location, walkable to everything we wanted to see. Check-in was seamless and the host left great local recommendations.\",\n  },\n  {\n    avatar: null,\n    name: \"Sofia Martinez\",\n    date: \"21 days ago\",\n    rating: 5,\n    text: \"Cozy, clean and exactly as described. Would absolutely stay here again on our next trip.\",\n  },\n  {\n    avatar: null,\n    name: \"Marcus Lee\",\n    date: \"28 days ago\",\n    rating: 5,\n    text: \"Host was incredibly responsive and made sure we had everything we needed. The space felt like a real home, not just a rental.\",\n  },\n  {\n    avatar: null,\n    name: \"David Chen\",\n    date: \"1 month ago\",\n    rating: 5,\n    text: \"One of the best stays we've had. Comfortable beds, a great kitchen, and a quiet street that made it easy to relax after long days out.\",\n  },\n];\n\n// Official Airbnb wordmark — shown for platform attribution only.\nconst AirbnbMark = React.memo(function AirbnbMark({ size = 22 }: { size?: number }) {\n  return (\n    <svg width={size * (320.1 / 99.9)} height={size} viewBox=\"0 0 320.1 99.9\" fill=\"none\" aria-hidden=\"true\">\n      <path\n        fill=\"#FF385C\"\n        d=\"M168.7,25.1c0,3.6-2.9,6.5-6.5,6.5s-6.5-2.9-6.5-6.5s2.8-6.5,6.5-6.5C165.9,18.7,168.7,21.6,168.7,25.1z\n\t M141.9,38.2c0,0.6,0,1.6,0,1.6s-3.1-4-9.7-4c-10.9,0-19.4,8.3-19.4,19.8c0,11.4,8.4,19.8,19.4,19.8c6.7,0,9.7-4.1,9.7-4.1v1.7\n\tc0,0.8,0.6,1.4,1.4,1.4h8.1V36.8c0,0-7.4,0-8.1,0C142.5,36.8,141.9,37.5,141.9,38.2z M141.9,62.3c-1.5,2.2-4.5,4.1-8.1,4.1\n\tc-6.4,0-11.3-4-11.3-10.8s4.9-10.8,11.3-10.8c3.5,0,6.7,2,8.1,4.1V62.3z M157.4,36.8h9.6v37.6h-9.6V36.8z M300.8,35.8\n\tc-6.6,0-9.7,4-9.7,4V18.7h-9.6v55.7c0,0,7.4,0,8.1,0c0.8,0,1.4-0.7,1.4-1.4v-1.7l0,0c0,0,3.1,4.1,9.7,4.1c10.9,0,19.4-8.4,19.4-19.8\n\tC320.1,44.2,311.6,35.8,300.8,35.8z M299.2,66.3c-3.7,0-6.6-1.9-8.1-4.1V48.8c1.5-2,4.7-4.1,8.1-4.1c6.4,0,11.3,4,11.3,10.8\n\tS305.6,66.3,299.2,66.3z M276.5,52.1v22.4h-9.6V53.2c0-6.2-2-8.7-7.4-8.7c-2.9,0-5.9,1.5-7.8,3.7v26.2h-9.6V36.8h7.6\n\tc0.8,0,1.4,0.7,1.4,1.4v1.6c2.8-2.9,6.5-4,10.2-4c4.2,0,7.7,1.2,10.5,3.6C275.2,42.2,276.5,45.8,276.5,52.1z M218.8,35.8\n\tc-6.6,0-9.7,4-9.7,4V18.7h-9.6v55.7c0,0,7.4,0,8.1,0c0.8,0,1.4-0.7,1.4-1.4v-1.7l0,0c0,0,3.1,4.1,9.7,4.1c10.9,0,19.4-8.4,19.4-19.8\n\tC238.2,44.2,229.7,35.8,218.8,35.8z M217.2,66.3c-3.7,0-6.6-1.9-8.1-4.1V48.8c1.5-2,4.7-4.1,8.1-4.1c6.4,0,11.3,4,11.3,10.8\n\tS223.6,66.3,217.2,66.3z M191.2,35.8c2.9,0,4.4,0.5,4.4,0.5v8.9c0,0-8-2.7-13,3v26.3h-9.6V36.8c0,0,7.4,0,8.1,0\n\tc0.8,0,1.4,0.7,1.4,1.4v1.6C184.3,37.7,188.2,35.8,191.2,35.8z M91.5,71c-0.5-1.2-1-2.5-1.5-3.6c-0.8-1.8-1.6-3.5-2.3-5.1l-0.1-0.1\n\tc-6.9-15-14.3-30.2-22.1-45.2l-0.3-0.6c-0.8-1.5-1.6-3.1-2.4-4.7c-1-1.8-2-3.7-3.6-5.5C56,2.2,51.4,0,46.5,0c-5,0-9.5,2.2-12.8,6\n\tc-1.5,1.8-2.6,3.7-3.6,5.5c-0.8,1.6-1.6,3.2-2.4,4.7l-0.3,0.6C19.7,31.8,12.2,47,5.3,62l-0.1,0.2c-0.7,1.6-1.5,3.3-2.3,5.1\n\tc-0.5,1.1-1,2.3-1.5,3.6c-1.3,3.7-1.7,7.2-1.2,10.8c1.1,7.5,6.1,13.8,13,16.6c2.6,1.1,5.3,1.6,8.1,1.6c0.8,0,1.8-0.1,2.6-0.2\n\tc3.3-0.4,6.7-1.5,10-3.4c4.1-2.3,8-5.6,12.4-10.4c4.4,4.8,8.4,8.1,12.4,10.4c3.3,1.9,6.7,3,10,3.4c0.8,0.1,1.8,0.2,2.6,0.2\n\tc2.8,0,5.6-0.5,8.1-1.6c7-2.8,11.9-9.2,13-16.6C93.2,78.2,92.8,74.7,91.5,71z M46.4,76.2c-5.4-6.8-8.9-13.2-10.1-18.6\n\tc-0.5-2.3-0.6-4.3-0.3-6.1c0.2-1.6,0.8-3,1.6-4.2c1.9-2.7,5.1-4.4,8.8-4.4c3.7,0,7,1.6,8.8,4.4c0.8,1.2,1.4,2.6,1.6,4.2\n\tc0.3,1.8,0.2,3.9-0.3,6.1C55.3,62.9,51.8,69.3,46.4,76.2z M86.3,80.9c-0.7,5.2-4.2,9.7-9.1,11.7c-2.4,1-5,1.3-7.6,1\n\tc-2.5-0.3-5-1.1-7.6-2.6c-3.6-2-7.2-5.1-11.4-9.7c6.6-8.1,10.6-15.5,12.1-22.1c0.7-3.1,0.8-5.9,0.5-8.5c-0.4-2.5-1.3-4.8-2.7-6.8\n\tc-3.1-4.5-8.3-7.1-14.1-7.1s-11,2.7-14.1,7.1c-1.4,2-2.3,4.3-2.7,6.8c-0.4,2.6-0.3,5.5,0.5,8.5c1.5,6.6,5.6,14.1,12.1,22.2\n\tc-4.1,4.6-7.8,7.7-11.4,9.7c-2.6,1.5-5.1,2.3-7.6,2.6c-2.7,0.3-5.3-0.1-7.6-1c-4.9-2-8.4-6.5-9.1-11.7c-0.3-2.5-0.1-5,0.9-7.8\n\tc0.3-1,0.8-2,1.3-3.2c0.7-1.6,1.5-3.3,2.3-5l0.1-0.2c6.9-14.9,14.3-30.1,22-44.9l0.3-0.6c0.8-1.5,1.6-3.1,2.4-4.6\n\tc0.8-1.6,1.7-3.1,2.8-4.4c2.1-2.4,4.9-3.7,8-3.7c3.1,0,5.9,1.3,8,3.7c1.1,1.3,2,2.8,2.8,4.4c0.8,1.5,1.6,3.1,2.4,4.6l0.3,0.6\n\tC67.7,34.8,75.1,50,82,64.9L82,65c0.8,1.6,1.5,3.4,2.3,5c0.5,1.2,1,2.2,1.3,3.2C86.4,75.8,86.7,78.3,86.3,80.9z\"\n      />\n    </svg>\n  );\n});\n\nfunction clampRating(r: number) {\n  return Math.max(0, Math.min(5, r));\n}\n\nconst STAR_PATH = \"M12 2.5l2.9 6.3 6.9.7-5.2 4.7 1.5 6.8L12 17.7 5.9 21l1.5-6.8L2.2 9.5l6.9-.7L12 2.5z\";\n\nconst StarRow = React.memo(function StarRow({\n  rating,\n  size = 14,\n  filledColor = \"#f5b800\",\n  emptyColor = \"rgba(0,0,0,0.15)\",\n}: {\n  rating: number;\n  size?: number;\n  filledColor?: string;\n  emptyColor?: string;\n}) {\n  const uid = React.useId();\n\n  const clamped = clampRating(rating);\n  const fullStars = Math.floor(clamped);\n  const fraction = clamped - fullStars;\n\n  return (\n    <div role=\"img\" aria-label={`Rated ${clamped.toFixed(1)} out of 5 stars`} className=\"flex gap-0.5 leading-none\">\n      {Array.from({ length: 5 }).map((_, i) => {\n        let fill: string;\n        if (i < fullStars) fill = filledColor;\n        else if (i === fullStars && fraction > 0) fill = `url(#${uid}-${i})`;\n        else fill = emptyColor;\n        return (\n          <svg key={i} width={size} height={size} viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n            {i === fullStars && fraction > 0 && (\n              <defs>\n                <linearGradient id={`${uid}-${i}`}>\n                  <stop offset={`${fraction * 100}%`} stopColor={filledColor} />\n                  <stop offset={`${fraction * 100}%`} stopColor={emptyColor} />\n                </linearGradient>\n              </defs>\n            )}\n            <path d={STAR_PATH} fill={fill} />\n          </svg>\n        );\n      })}\n    </div>\n  );\n});\n\nfunction Avatar({ src, name, color, size = 44 }: { src?: string | null; name: string; color: string; size?: number }) {\n  if (src) {\n    return (\n      // eslint-disable-next-line @next/next/no-img-element\n      <img src={src} alt={name ? `${name}'s avatar` : \"\"} className=\"block shrink-0 rounded-full object-cover\" style={{ width: size, height: size }} />\n    );\n  }\n  const initial = (name || \"?\").trim().charAt(0).toUpperCase() || \"?\";\n  return (\n    <div\n      className=\"flex shrink-0 items-center justify-center rounded-full font-semibold text-white\"\n      style={{ width: size, height: size, background: color, fontSize: size * 0.4, fontFamily: TOKENS.uiFontFamily }}\n    >\n      {initial}\n    </div>\n  );\n}\n\nexport interface AirbnbReviewsProps extends Omit<React.ComponentPropsWithoutRef<\"section\">, \"children\"> {\n  themeMode?: AirbnbReviewsThemeMode;\n  accentColor?: string;\n  customBackground?: string;\n  customSurface?: string;\n  customBorder?: string;\n  customText?: string;\n  customTextMuted?: string;\n  badgeTitle?: string;\n  overallRating?: number;\n  reviewCount?: number;\n  showHeader?: boolean;\n  showCTA?: boolean;\n  ctaText?: string;\n  ctaLink?: string;\n  showArrows?: boolean;\n  logoSize?: number;\n  reviews?: AirbnbReviewItem[];\n  cardsDesktop?: number;\n  autoPlay?: boolean;\n  autoPlaySpeed?: number;\n  gap?: number;\n  sectionGap?: number;\n  cardRadius?: number;\n  paddingTop?: number;\n  paddingBottom?: number;\n  paddingHorizontal?: number;\n  titleFont?: AirbnbReviewsFontValue;\n  reviewTextFont?: AirbnbReviewsFontValue;\n  reviewerNameFont?: AirbnbReviewsFontValue;\n  metaFont?: AirbnbReviewsFontValue;\n  ctaFont?: AirbnbReviewsFontValue;\n}\n\nexport function AirbnbReviews({\n  themeMode = \"dark\",\n  accentColor = \"#FF385C\",\n  customBackground = \"#f6f5fb\",\n  customSurface = \"#ffffff\",\n  customBorder = \"rgba(30,27,75,0.08)\",\n  customText = \"#1e1b4b\",\n  customTextMuted = \"rgba(30,27,75,0.55)\",\n  badgeTitle = \"Airbnb Reviews\",\n  overallRating = 4.3,\n  reviewCount = 191,\n  showHeader = true,\n  showCTA = true,\n  ctaText = \"Share your feedback\",\n  ctaLink = \"\",\n  showArrows = true,\n  logoSize = 22,\n  reviews: reviewsProp = DEFAULT_REVIEWS,\n  cardsDesktop = 3,\n  autoPlay = true,\n  autoPlaySpeed = 5,\n  gap = TOKENS.gapDefault,\n  sectionGap = 16,\n  cardRadius = 20,\n  paddingTop = 56,\n  paddingBottom = 56,\n  paddingHorizontal = 24,\n  titleFont,\n  reviewTextFont,\n  reviewerNameFont,\n  metaFont,\n  ctaFont,\n  className,\n  style,\n  ...props\n}: AirbnbReviewsProps) {\n  const containerRef = React.useRef<HTMLDivElement>(null);\n  const containerWidth = useContainerWidth(containerRef);\n  const isMobile = containerWidth <= MOBILE_BREAKPOINT;\n  const isTablet = !isMobile && containerWidth <= TABLET_BREAKPOINT;\n\n  const cardsPerView = isMobile ? 1 : isTablet ? 2 : Math.max(2, Math.min(4, cardsDesktop));\n\n  const reviews: AirbnbReviewItem[] = React.useMemo(\n    () => (reviewsProp ?? []).map((r) => ({ avatar: r.avatar ?? null, name: r.name ?? \"\", date: r.date ?? \"\", rating: r.rating ?? 5, text: r.text ?? \"\" })),\n    [reviewsProp],\n  );\n\n  const totalPages = Math.max(1, Math.ceil(reviews.length / cardsPerView));\n  const [page, setPage] = React.useState(0);\n  React.useEffect(() => {\n    if (page > totalPages - 1) setPage(0);\n  }, [totalPages, page]);\n\n  const [isHovering, setIsHovering] = React.useState(false);\n  const [drag, setDrag] = React.useState<{ startX: number; deltaX: number } | null>(null);\n  const dragRef = React.useRef<{ startX: number; deltaX: number } | null>(null);\n\n  const isLight = themeMode === \"light\";\n  const isCustom = themeMode === \"custom\";\n  const useLightChrome = themeMode !== \"dark\";\n  const starEmptyColor = isCustom ? \"rgba(128,128,128,0.35)\" : isLight ? \"rgba(0,0,0,0.15)\" : \"rgba(255,255,255,0.25)\";\n\n  const bg = isCustom ? customBackground : isLight ? \"#f5f5f5\" : TOKENS.ink;\n  const headerBg = isCustom ? customSurface : isLight ? \"#ffffff\" : \"rgba(255,255,255,0.05)\";\n  const cardBg = isCustom ? customSurface : isLight ? \"#ffffff\" : \"rgba(255,255,255,0.05)\";\n  const cardBorder = isCustom ? customBorder : isLight ? \"rgba(30,27,75,0.06)\" : TOKENS.glassBorderSoft;\n  const fg = isCustom ? customText : isLight ? \"#1e1b4b\" : \"#ffffff\";\n  const fgSubtle = isCustom ? customTextMuted : isLight ? \"rgba(30,27,75,0.55)\" : \"rgba(255,255,255,0.55)\";\n  const navBg = isCustom ? customSurface : isLight ? \"#ffffff\" : \"rgba(255,255,255,0.08)\";\n  const navBorder = isCustom ? customBorder : isLight ? \"rgba(30,27,75,0.1)\" : TOKENS.glassBorderSoft;\n\n  const titleStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 700, letterSpacing: \"-0.01em\", color: fg, margin: 0, ...titleFont, fontSize: titleFont?.fontSize ?? (isMobile ? 20 : 24) }),\n    [titleFont, fg, isMobile],\n  );\n\n  const reviewTextStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 400, lineHeight: 1.6, color: fg, ...reviewTextFont, fontSize: reviewTextFont?.fontSize ?? 14.5 }),\n    [reviewTextFont, fg],\n  );\n\n  const reviewTextMinHeight = React.useMemo(() => {\n    const fontSize = parseFloat(String(reviewTextStyle.fontSize)) || 14.5;\n    const lineHeightRaw = reviewTextStyle.lineHeight;\n    const lineHeight = typeof lineHeightRaw === \"number\" ? lineHeightRaw : parseFloat(String(lineHeightRaw)) || 1.6;\n    return fontSize * lineHeight * 4;\n  }, [reviewTextStyle]);\n\n  const reviewerNameStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 600, color: fg, ...reviewerNameFont, fontSize: reviewerNameFont?.fontSize ?? 14, lineHeight: reviewerNameFont?.lineHeight ?? 1.4 }),\n    [reviewerNameFont, fg],\n  );\n\n  const metaStyle: React.CSSProperties = React.useMemo(\n    () => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 400, color: fgSubtle, ...metaFont, fontSize: metaFont?.fontSize ?? 13 }),\n    [metaFont, fgSubtle],\n  );\n\n  const ctaStyle: React.CSSProperties = React.useMemo(() => ({ fontFamily: TOKENS.uiFontFamily, fontWeight: 600, color: \"#ffffff\", ...ctaFont, fontSize: ctaFont?.fontSize ?? 14 }), [ctaFont]);\n\n  const goTo = React.useCallback((next: number) => setPage(((next % totalPages) + totalPages) % totalPages), [totalPages]);\n\n  // Autoplay — paused on hover/drag.\n  React.useEffect(() => {\n    if (!autoPlay || isHovering || drag || totalPages <= 1) return;\n    const id = setInterval(() => setPage((p) => (p + 1) % totalPages), Math.max(2, autoPlaySpeed) * 1000);\n    return () => clearInterval(id);\n  }, [autoPlay, isHovering, drag, totalPages, autoPlaySpeed]);\n\n  // Drag-to-swipe — uses Pointer Capture on the track itself so move/up\n  // events keep firing even outside its bounds, with no window listeners.\n  const handlePointerDown = (e: React.PointerEvent<HTMLDivElement>) => {\n    e.currentTarget.setPointerCapture(e.pointerId);\n    const next = { startX: e.clientX, deltaX: 0 };\n    dragRef.current = next;\n    setDrag(next);\n  };\n  const handlePointerMove = (e: React.PointerEvent<HTMLDivElement>) => {\n    const d = dragRef.current;\n    if (!d) return;\n    const next = { startX: d.startX, deltaX: e.clientX - d.startX };\n    dragRef.current = next;\n    setDrag(next);\n  };\n  const endDrag = (e: React.PointerEvent<HTMLDivElement>) => {\n    const d = dragRef.current;\n    if (d && containerWidth > 0) {\n      const threshold = containerWidth * 0.12;\n      if (d.deltaX < -threshold) goTo(page + 1);\n      else if (d.deltaX > threshold) goTo(page - 1);\n    }\n    dragRef.current = null;\n    setDrag(null);\n    if (e.currentTarget.hasPointerCapture(e.pointerId)) e.currentTarget.releasePointerCapture(e.pointerId);\n  };\n\n  const dragPercent = drag && containerWidth > 0 ? (drag.deltaX / containerWidth) * 100 : 0;\n  const translate = -(page * 100) + dragPercent;\n\n  // Pushes the arrows further out over the card edges when there's room in\n  // the side padding, but never far enough to overflow the section.\n  const arrowOffset = -Math.min(16, Math.max(paddingHorizontal - 4, 0));\n\n  return (\n    <section\n      ref={containerRef}\n      aria-label={badgeTitle || \"Customer reviews\"}\n      itemScope\n      itemType=\"https://schema.org/Organization\"\n      className={cn(\"relative box-border flex w-full flex-col\", className)}\n      style={{\n        background: bg,\n        paddingTop: isMobile ? Math.max(paddingTop - 16, 24) : paddingTop,\n        paddingBottom: isMobile ? Math.max(paddingBottom - 16, 24) : paddingBottom,\n        paddingLeft: isMobile ? 16 : paddingHorizontal,\n        paddingRight: isMobile ? 16 : paddingHorizontal,\n        fontFamily: TOKENS.uiFontFamily,\n        gap: isMobile ? Math.max(sectionGap - 8, 12) : sectionGap,\n        ...style,\n      }}\n      {...props}\n    >\n      {showHeader && (\n        <div\n          className=\"box-border flex flex-col items-start justify-between gap-4\"\n          style={{ flexDirection: isMobile ? \"column\" : \"row\", alignItems: isMobile ? \"flex-start\" : \"center\", background: headerBg, borderRadius: cardRadius, padding: isMobile ? \"20px 20px\" : \"24px 28px\" }}\n        >\n          <div>\n            <div className=\"mb-2.5 flex items-center gap-2.5\">\n              <AirbnbMark size={isMobile ? Math.min(logoSize, 20) : logoSize} />\n              <h2 style={titleStyle} itemProp=\"name\">\n                {badgeTitle}\n              </h2>\n            </div>\n            <div itemProp=\"aggregateRating\" itemScope itemType=\"https://schema.org/AggregateRating\" className=\"flex items-center gap-2.5\">\n              <span itemProp=\"ratingValue\" className=\"text-xl font-bold\" style={{ color: fg }}>\n                {overallRating.toFixed(1)}\n              </span>\n              <StarRow rating={overallRating} size={18} emptyColor={starEmptyColor} />\n              <span style={metaStyle}>{reviewCount.toLocaleString()} reviews</span>\n              <meta itemProp=\"reviewCount\" content={String(reviewCount)} />\n              <meta itemProp=\"bestRating\" content=\"5\" />\n            </div>\n          </div>\n\n          {showCTA &&\n            ctaText &&\n            (ctaLink ? (\n              <a\n                href={ctaLink}\n                className=\"box-border inline-flex cursor-pointer items-center justify-center rounded-full whitespace-nowrap no-underline\"\n                style={{ width: isMobile ? \"100%\" : \"auto\", padding: \"12px 24px\", background: accentColor, flexShrink: 0, ...ctaStyle }}\n              >\n                {ctaText}\n              </a>\n            ) : (\n              <button\n                type=\"button\"\n                className=\"box-border inline-flex cursor-pointer items-center justify-center rounded-full border-none whitespace-nowrap\"\n                style={{ width: isMobile ? \"100%\" : \"auto\", padding: \"12px 24px\", background: accentColor, flexShrink: 0, ...ctaStyle }}\n              >\n                {ctaText}\n              </button>\n            ))}\n        </div>\n      )}\n\n      <div className=\"relative\" onMouseEnter={() => setIsHovering(true)} onMouseLeave={() => setIsHovering(false)}>\n        <div className=\"overflow-hidden\">\n          <div\n            onPointerDown={handlePointerDown}\n            onPointerMove={handlePointerMove}\n            onPointerUp={endDrag}\n            onPointerCancel={endDrag}\n            className=\"flex touch-pan-y\"\n            style={{ width: `${totalPages * 100}%`, transform: `translateX(${translate / totalPages}%)`, transition: drag ? \"none\" : \"transform 0.45s cubic-bezier(0.22,1,0.36,1)\", cursor: drag ? \"grabbing\" : \"grab\" }}\n          >\n            {Array.from({ length: totalPages }).map((_, pageIndex) => (\n              <div key={pageIndex} className=\"box-border grid shrink-0 items-stretch\" style={{ width: `${100 / totalPages}%`, gridTemplateColumns: `repeat(${cardsPerView}, 1fr)`, gap }}>\n                {reviews.slice(pageIndex * cardsPerView, pageIndex * cardsPerView + cardsPerView).map((review, i) => {\n                  const idx = pageIndex * cardsPerView + i;\n                  return (\n                    <article\n                      key={idx}\n                      aria-label={`Review by ${review.name || \"Anonymous\"}`}\n                      itemProp=\"review\"\n                      itemScope\n                      itemType=\"https://schema.org/Review\"\n                      className=\"box-border flex h-full flex-col\"\n                      style={{ background: cardBg, border: `1px solid ${cardBorder}`, borderRadius: cardRadius, padding: isMobile ? 20 : 24, minHeight: 200 }}\n                    >\n                      <span itemProp=\"reviewRating\" itemScope itemType=\"https://schema.org/Rating\">\n                        <StarRow rating={review.rating} size={15} emptyColor={starEmptyColor} />\n                        <meta itemProp=\"ratingValue\" content={String(review.rating)} />\n                        <meta itemProp=\"bestRating\" content=\"5\" />\n                      </span>\n                      <p itemProp=\"reviewBody\" className=\"mb-0 line-clamp-4\" style={{ ...reviewTextStyle, marginTop: 14, minHeight: reviewTextMinHeight }}>\n                        {review.text}\n                      </p>\n                      <div className=\"flex items-center gap-3 border-t\" style={{ marginTop: 18, paddingTop: 16, borderColor: cardBorder }}>\n                        <Avatar src={review.avatar} name={review.name} color={AVATAR_PALETTE[idx % AVATAR_PALETTE.length]} />\n                        <div itemProp=\"author\" itemScope itemType=\"https://schema.org/Person\" className=\"min-w-0\">\n                          <div itemProp=\"name\" className=\"truncate\" style={reviewerNameStyle}>\n                            {review.name}\n                          </div>\n                          <div className=\"mt-1\" style={metaStyle}>\n                            {review.date}\n                          </div>\n                        </div>\n                      </div>\n                    </article>\n                  );\n                })}\n              </div>\n            ))}\n          </div>\n        </div>\n\n        {totalPages > 1 && showArrows && !isMobile && (\n          <>\n            <button\n              type=\"button\"\n              aria-label=\"Previous reviews\"\n              onClick={() => goTo(page - 1)}\n              className=\"absolute top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full\"\n              style={{ left: arrowOffset, background: navBg, border: `1px solid ${navBorder}`, boxShadow: useLightChrome ? \"0 2px 10px rgba(30,27,75,0.08)\" : \"none\" }}\n            >\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke={fg} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <path d=\"M15 18l-6-6 6-6\" />\n              </svg>\n            </button>\n            <button\n              type=\"button\"\n              aria-label=\"Next reviews\"\n              onClick={() => goTo(page + 1)}\n              className=\"absolute top-1/2 flex h-9 w-9 -translate-y-1/2 items-center justify-center rounded-full\"\n              style={{ right: arrowOffset, background: navBg, border: `1px solid ${navBorder}`, boxShadow: useLightChrome ? \"0 2px 10px rgba(30,27,75,0.08)\" : \"none\" }}\n            >\n              <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke={fg} strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                <path d=\"M9 18l6-6-6-6\" />\n              </svg>\n            </button>\n          </>\n        )}\n      </div>\n\n      {totalPages > 1 && (\n        <div className=\"flex justify-center gap-2\">\n          {Array.from({ length: totalPages }).map((_, i) => (\n            <button\n              key={i}\n              type=\"button\"\n              aria-label={`Go to page ${i + 1}`}\n              aria-current={i === page ? \"true\" : undefined}\n              onClick={() => goTo(i)}\n              className=\"block h-2 rounded-full border-none p-0 transition-all duration-300\"\n              style={{ width: i === page ? 20 : 8, background: i === page ? accentColor : cardBorder }}\n            />\n          ))}\n        </div>\n      )}\n\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}