/* ============================================
   Plugin CNT Play - Carrossel de Praças
   CSS Completo e Otimizado
   ============================================ */

/* Reset básico para componentes do plugin */
.elementor-widget-container-carousel,
.elementor-element-carousel-pracas-child,
.e-con-inner,
.elementor-widget-container,
.elementor-widget-image {
  box-sizing: border-box;
}

/* Container principal do carrossel */
.carousel-box {
  position: relative;
  padding: 0 0 0 30px;
}

.elementor-widget-container-carousel {
  width: 100%;
  position: relative;
}

/* Swiper/Carrossel */
.pracas-swiper {
  width: 100%;
  position: relative;
}

.pracas-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.pracas-swiper .swiper-slide {
  width: 256px;
  height: auto;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Containers internos */
.pracas-swiper .elementor-element-carousel-pracas-child {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pracas-swiper .e-con-inner {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

/* Widget de imagem */
.elementor-widget-image {
  text-align: center;
  width: 100%;
}

.elementor-widget-image a {
  display: block;
  width: 100%;
}

.pracas-swiper .elementor-widget-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transform: scale(0.95);
  transition: all ease 0.2s;
  opacity: 1;
  vertical-align: middle;
}

.pracas-swiper .elementor-widget-image img:hover {
  opacity: 0.7;
}

.elementor-widget-container {
  width: 100%;
  position: relative;
}

/* Badge "AO VIVO" */
.badge-live {
  position: absolute;
  bottom: 47px;
  right: 6.2px;
  background-color: #00a000;
  color: white;
  font-size: 8px;
  font-weight: bold;
  padding: 3px 8px;
  text-transform: uppercase;
  z-index: 10;
  border-top-left-radius: 6px;
  border-bottom-right-radius: 6px;
  line-height: 1;
  margin: 0;
}

/* Footer Cidade */
.city-card {
  position: relative;
  padding: 8px 10px;
  background: transparent;
  margin-top: auto;
}

.city-link {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.2s ease;
}

.city-link:hover {
  color: #00a000;
}

.city-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.city-icon svg {
  width: 20px;
  height: 20px;
  fill: #e30613;
  display: block;
}

.city-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-weight: 500;
}
.city-label strong {
  font-weight: 800;
}

/* Botões de navegação Swiper */
.elementor-swiper-button {
  color: hsl(0 0% 93% / 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.25s ease;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.elementor-swiper-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: hsl(0 0% 93% / 1);
}

.elementor-swiper-button svg {
  fill: hsl(0 0% 93% / 0.9);
  height: 1em;
  width: 1em;
  transition: fill 0.25s ease;
}

.elementor-swiper-button:hover svg {
  fill: hsl(0 0% 93% / 1);
}

.elementor-swiper-button-prev {
  left: 0;
  margin-right: -30px;
}

.elementor-swiper-button-next {
  right: 0;
  margin-right: -30px;
}

.elementor-swiper-button.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Regras específicas para o carrossel do plugin */
.elementor-widget-n-carousel .e-n-carousel > .swiper-wrapper > .swiper-slide {
  flex-shrink: 0;
  height: auto;
}

.elementor-widget-n-carousel.elementor-element
  :is(.swiper, .swiper-container)
  ~ .elementor-swiper-button {
  position: absolute;
}

/* Garantir que widgets não quebrem o layout */
.e-con-inner > .elementor-widget,
.elementor-widget {
  position: relative;
  margin-block-end: 0;
  min-width: 0;
}

.e-con.e-con > .e-con-inner > .elementor-widget,
.elementor.elementor .e-con > .elementor-widget {
  max-width: 100%;
}

.e-con > .e-con-inner > .elementor-widget > .elementor-widget-container,
.e-con > .elementor-widget > .elementor-widget-container {
  height: 100%;
}

.swiper-slide a {
  display: flex !important;
}

.link-popup {
cursor: pointer;
}

/* Responsividade */
@media (max-width: 1024px) {
  .carousel-box {
    padding: 0 0 0 25px;
  }

  .elementor-swiper-button {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .elementor-swiper-button-next {
    margin-right: -25px;
  }
}

@media (max-width: 768px) {
  .carousel-box {
    padding: 0 0 0 15px;
  }

  .elementor-swiper-button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .pracas-swiper .swiper-slide {
    width: 200px;
  }
  .elementor-swiper-button-next {
    margin-right: -15px;
  }
}

@media (max-width: 480px) {
  .carousel-box {
    padding: 0 0 0 10px;
  }

  .elementor-swiper-button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .pracas-swiper .swiper-slide {
    width: 180px;
  }

  .city-link {
    font-size: 16px;
  }

  .city-icon svg {
    width: 18px;
    height: 18px;
  }
  .elementor-swiper-button-next {
    margin-right: -20px;
  }
}
