.tg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 1024px) { .tg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .tg-grid { grid-template-columns: 1fr; } }

.tg-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}

.tg-stars { font-size: 18px; letter-spacing: 2px; margin-bottom: 10px; line-height: 1; }
.tg-star { color: #ddd; }
.tg-star.tg-on { color: #f5a623; }

.tg-text {
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 12px;
  white-space: pre-line;
}
/* Long reviews clamp to 8 lines until "Read more" is clicked */
.tg-text.tg-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-readmore {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 14px;
  color: #2563eb;
  cursor: pointer;
font-size: 13px !important;
cursor: pointer;
padding: 0 !important;
letter-spacing: normal !important;
text-transform: capitalize !important;
}
.tg-readmore:hover { text-decoration: underline; }

.tg-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.tg-name { font-weight: 600; font-size: 14px; color: #111; }
.tg-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #777; }
.tg-source { font-weight: 600; }
.tg-google { color: #4285f4; }
.tg-yelp   { color: #d32323; }
.tg-manual { color: #555; }

/* Featured layout: cards auto-fit into a single row (wrapping on small
   screens), full review text shown (no clamp), slightly more prominent. */
.tg-grid--featured {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tg-grid--featured .tg-card {
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}
.tg-grid--featured .tg-text {
  font-size: 15px;
}
/* Featured is a fixed showcase — hide the (empty) pager wrapper entirely. */
.tg-layout-featured .tg-pagination { display: none; }

.tg-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 28px;
}
.tg-pagination button {
  border: 1px solid #ccc;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.tg-pagination button.tg-active { background: #111; color: #fff; border-color: #111; }
.tg-pagination button:disabled { opacity: .4; cursor: default; }
.tg-ellipsis { padding: 8px 4px; color: #777; }