/* jdi-reviews.css — styling for live Google-fed review cards.
   Scoped to [data-jdi-reviews-mount] / #jdi-reviews-mount so it never
   bleeds into source-site chrome. */

#jdi-reviews-mount,
[data-jdi-reviews-mount] {
  font-family: 'Wix Madefor Text', 'Inter', system-ui, -apple-system, sans-serif;
  color: #0a0a0a;
}

/* Marquee — continuously scrolls right-to-left, pauses on hover */
.jdir-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px clamp(16px, 5vw, 80px) 24px;
  /* Soft fade on the edges so cards don't abruptly clip */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
.jdir-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: jdir-marquee-scroll var(--jdir-duration, 60s) linear infinite;
  will-change: transform;
}
.jdir-marquee:hover .jdir-track,
.jdir-marquee:focus-within .jdir-track {
  animation-play-state: paused;
}
@keyframes jdir-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--jdir-cycle, 50%))); }
}
/* Respect prefers-reduced-motion — stop auto-scroll, let user scroll manually */
@media (prefers-reduced-motion: reduce) {
  .jdir-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .jdir-track { animation: none; }
}

/* Review card */
.jdir-card {
  flex: 0 0 320px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #ebe9e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.jdir-card:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .jdir-card { flex-basis: 360px; }
}

.jdir-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.jdir-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.jdir-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  background: #eef7ec;
  box-shadow: 0 0 0 2px rgba(80, 167, 71, 0.2);
}
.jdir-avatar-initials {
  color: #50a747;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jdir-id-text { min-width: 0; }
.jdir-name {
  font-weight: 600;
  color: #0a0a0a;
  font-size: 14px;
  text-decoration: none;
  display: block;
}
a.jdir-name:hover { color: #50a747; }
.jdir-meta {
  font-size: 12px;
  color: #737373;
  margin-top: 2px;
}
.jdir-city {
  font-weight: 600;
  color: #50a747;
}

.jdir-stars {
  color: #50a747;
  font-size: 15px;
  letter-spacing: 1px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 4px;
}

.jdir-quote {
  margin: 0;
  color: #333;
  font-size: 14.5px;
  line-height: 1.55;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 110px;
  flex: 1;
}

.jdir-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f5f3ee;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #737373;
}
.jdir-source {
  color: #737373;
  text-decoration: none;
}
.jdir-source:hover { color: #0a0a0a; text-decoration: underline; }

/* Tail "view all" card */
.jdir-tail {
  flex: 0 0 220px;
  background: #50a747;
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.15s ease;
}
.jdir-tail:hover { background: #43913a; }
.jdir-tail-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}
.jdir-tail-title {
  font-family: 'Wix Madefor Text', serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
.jdir-tail-cta {
  margin-top: 20px;
  font-weight: 700;
  font-size: 13px;
}

/* Loading + empty states */
.jdir-loading {
  padding: 48px 20px;
  text-align: center;
  color: #737373;
  font-size: 14px;
}
.jdir-empty {
  padding: 60px 20px;
  text-align: center;
  color: #737373;
  max-width: 480px;
  margin: 0 auto;
}
.jdir-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #f5f3ee;
  border-radius: 999px;
  margin-bottom: 14px;
}
.jdir-empty-icon svg { width: 24px; height: 24px; }
.jdir-empty-title {
  color: #0a0a0a;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.jdir-empty-sub {
  font-size: 14px;
  line-height: 1.5;
}
