/* ==========================================================================
   Google Business Profile Reviews - Modern Google Reviews Carousel
   ========================================================================== */

#google-reviews {
  position: relative;
  background-color: #f7f7f7; /* bg-alabaster tone */
  padding-top: 70px;
  padding-bottom: 70px;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
}

#google-reviews h3 {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 800;
  color: #2b2b2b;
}

.link-google-reviews {
  display: inline-block;
  color: #1a73e8 !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.link-google-reviews:hover {
  color: #1557b0 !important;
  text-decoration: underline;
}

/* Card Estilizado de Avaliação (Formato Moderno) */
.review-card {
  background: #ffffff;
  border-radius: 8px; /* Cantos levemente arredondados modernos */
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #dadce0; /* Borda cinza clara clássica */
  text-align: left;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 15px 0;
  position: relative;
  overflow: hidden;
}

.review-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #1a73e8; /* Borda azul ao passar o mouse */
}

/* Informações do Autor */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 25px; /* Espaço para o ícone do Google no topo direito */
}

.review-avatar-container {
  position: relative;
  margin-right: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f1f3f4;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.review-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #8c8273;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.review-meta {
  flex-grow: 1;
}

.review-author-name {
  font-size: 15px;
  font-weight: 800;
  color: #3c4043; /* Cor moderna de texto escuro do Google */
  margin: 0;
  line-height: 1.2;
}

.review-relative-time {
  font-size: 12px;
  color: #70757a; /* Cor cinza moderna do Google */
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

/* Ícone do Google no topo direito */
.review-google-icon-top {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 18px;
  height: 18px;
}

.review-google-icon-top svg {
  width: 18px;
  height: 18px;
}

/* Estrelas alinhadas abaixo do cabeçalho */
.review-stars {
  margin-bottom: 12px;
  color: #ffc107; /* Cor dourada clássica */
  font-size: 13px;
  text-align: left;
}

.review-stars i {
  margin-right: 2px;
}

/* Texto da Avaliação */
.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4d5156; /* Tom cinza escuro de leitura do Google */
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.btn-read-more {
  color: #1a73e8 !important;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  cursor: pointer;
}

.btn-read-more:hover {
  text-decoration: underline !important;
}

/* ==========================================================================
   Layout do Card de Resumo (Summary Card)
   ========================================================================== */
.summary-card {
  border-color: #dadce0;
  background-color: #ffffff;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-body {
  text-align: center;
  flex-grow: 1;
}

.summary-title {
  font-family: 'Alegreya Sans', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #202124;
  margin: 0 0 10px 0;
  text-align: center;
}

.summary-rating-number {
  font-size: 40px;
  font-weight: 800;
  color: #202124;
  line-height: 1.1;
  display: block;
  margin-bottom: 5px;
}

.summary-stars {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 6px;
  text-align: center;
}

.summary-stars i {
  margin: 0 2px;
}

.summary-reviews-count {
  font-size: 12px;
  color: #70757a;
  display: block;
  margin-bottom: 20px;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

/* Botões do Google */
.btn-leave-review, .btn-all-reviews {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  text-decoration: none !important;
  box-sizing: border-box;
}

.btn-leave-review {
  background-color: #1a73e8;
  color: #ffffff !important;
  border: 1px solid #1a73e8;
}

.btn-leave-review:hover {
  background-color: #1557b0;
  border-color: #1557b0;
}

.btn-all-reviews {
  background-color: #f1f3f4;
  color: #3c4043 !important;
  border: 1px solid #dadce0;
}

.btn-all-reviews:hover {
  background-color: #e8eaed;
}

.summary-footer {
  border-top: 1px solid #f1f3f4;
  padding-top: 12px;
  font-size: 11px;
  color: #70757a;
  text-align: center;
}

/* ==========================================================================
   Customizações e Setas do Carrossel (Owl Carousel Navigation)
   ========================================================================== */
.owl-carousel-reviews {
  position: relative;
  padding: 10px 0;
  overflow: visible !important; /* IMPORTANTE: Permite que as setas laterais fiquem visíveis */
}

/* Oculta setas originais e cria o design elegante */
.owl-carousel-reviews .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Deixa cliques passarem por cima das setas para o fundo se necessário */
  z-index: 10;
}

.owl-carousel-reviews .owl-nav button.owl-prev,
.owl-carousel-reviews .owl-nav button.owl-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  pointer-events: auto; /* Permite clicar no botão */
  outline: none;
  margin: 0;
  padding: 0 !important;
}

/* Posiciona as setas exatamente transbordando nas bordas */
.owl-carousel-reviews .owl-nav button.owl-prev {
  margin-left: -20px;
}

.owl-carousel-reviews .owl-nav button.owl-next {
  margin-right: -20px;
}

.owl-carousel-reviews .owl-nav button.owl-prev i,
.owl-carousel-reviews .owl-nav button.owl-next i {
  color: #3c4043;
  font-size: 14px;
}

.owl-carousel-reviews .owl-nav button.owl-prev:hover,
.owl-carousel-reviews .owl-nav button.owl-next:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.owl-carousel-reviews .owl-nav button.owl-prev:active,
.owl-carousel-reviews .owl-nav button.owl-next:active {
  transform: scale(0.95);
}

/* Paginação (Dots) */
.owl-carousel-reviews .owl-dots {
  margin-top: 30px !important;
  text-align: center;
}

.owl-carousel-reviews .owl-dot {
  display: inline-block;
}

.owl-carousel-reviews .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 5px 6px;
  background: #dadce0;
  display: block;
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  transition: background-color 200ms ease, transform 200ms ease;
  border-radius: 50%;
}

.owl-carousel-reviews .owl-dot.active span {
  background: #8c8273; /* Cor primária elegante do tema */
  transform: scale(1.2);
}
