// Real Google reviews from Olga's clients

const REVIEWS = [
  {
    name: "Brian Place",
    meta: "Local Guide · a year ago",
    body: "I found Olga through her very informative YouTube videos while considering a move to Las Vegas. We started talking in the summer of 2024, and by the end of December, I closed on my house.",
    featured: true,
    badge: "Found via YouTube",
  },
  {
    name: "James Cao",
    meta: "11 reviews · 3 months ago",
    body: "We had an incredible experience working with Olga for our move from Chicago to Las Vegas. She was extremely patient with us, explaining the nuances of the Vegas market. In the end, she helped us get our home while it was off-market and below listing!",
  },
  {
    name: "Brett Maverick",
    meta: "7 reviews · 4 months ago",
    body: "Olga was a great communicator, patient and very diligent. She spent multiple days in the sweltering heat looking at houses with us while PREGNANT. Don't hesitate to make Olga your agent.",
  },
  {
    name: "Julie Lutz",
    meta: "3 reviews · 3 months ago",
    body: "Olga was amazing — really on top of everything even with the holidays. We had our house on the market for only 3 weeks and received multiple offers for more than we were asking.",
  },
  {
    name: "JZ",
    meta: "3 reviews · 4 months ago",
    body: "Olga's attention to detail and follow-thru are what set her apart from the others. Trying to purchase a property & relocate while living in a different state is certainly not easy but Olga is knowledgeable, helpful and really listens.",
  },
  {
    name: "Eva P",
    meta: "Local Guide · a year ago",
    body: "Olga is a wealth of information on buying a home in the Southern Nevada area. She was patient, thorough, kind and super professional. She helped guide me to my dream home.",
  },
  {
    name: "Joseph Choi",
    meta: "6 reviews · 6 months ago",
    body: "Olga was very helpful in finding the right home for us. She was a calming influence on a sale that involved multiple trips, being outbid on the first house, and the offer process. We recommend her highly.",
  },
  {
    name: "Larry Lutz",
    meta: "9 reviews · 3 months ago",
    body: "Olga was very helpful and resourceful! Knew the market very well! And was able to sell our home for more than we asked for.",
  },
  {
    name: "Patrick Smith",
    meta: "2 reviews · 4 months ago",
    body: "We had a fantastic experience working with Olga. She was in contact with us during every step of the home buying process, making our transaction very smooth and stress free. Simply put — she is great!",
  },
  {
    name: "K R",
    meta: "15 reviews · 4 months ago",
    body: "Olga was very knowledgeable and friendly in giving us the information needed to make our selection on what part of Las Vegas suits us. She made everything stress free.",
  },
  {
    name: "Jim Anderschat",
    meta: "Local Guide · 7 months ago",
    body: "Olga played a crucial role in helping us find our dream home in Las Vegas. From the moment we started our cross-country move, she was exceptional.",
  },
  {
    name: "Jeffrey Snyder",
    meta: "Local Guide · a year ago",
    body: "Working with Olga on finding the perfect home for me was a great decision. She was patient with me through the many houses we saw. Communicative, thorough, and professional.",
  },
];

function initials(name) {
  return name.split(" ").map(w => w[0]).slice(0, 2).join("").toUpperCase();
}

function Testimonial({ r }) {
  return (
    <div className={"testimonial" + (r.featured ? " featured" : "")}>
      {r.badge && <span className="t-badge">★ {r.badge}</span>}
      <div className="t-head">
        <div className="t-avatar">{initials(r.name)}</div>
        <div style={{ flex: 1, minWidth: 0 }}>
          <div className="t-name">{r.name}</div>
          <div className="t-meta">{r.meta}</div>
        </div>
      </div>
      <div className="t-stars">★★★★★</div>
      <div className="t-body">"{r.body}"</div>
    </div>
  );
}

function Testimonials() {
  return (
    <section className="testimonials-wrap" id="reviews">
      <div className="testimonials-head">
        <div>
          <div className="eyebrow">Google Reviews · Verified</div>
          <h2>Same on camera. Same off.</h2>
        </div>
        <div>
          <div className="rating">
            <span className="stars">★★★★★</span>
            <span>5.0 / 5 · 40+ five-star Google reviews</span>
          </div>
          <p className="lede" style={{ marginTop: 16, fontSize: 17 }}>
            Buyers, sellers, and out-of-state relocators — here's what it's
            actually like to work with Olga in Las Vegas.
          </p>
        </div>
      </div>

      <div className="testimonials-grid">
        {REVIEWS.map((r, i) => <Testimonial key={i} r={r} />)}
      </div>
    </section>
  );
}

Object.assign(window, { Testimonials });
