
/* Custom Post Turismo - Frontend styles */

/* ===== Icon lists (Incluye / No incluye) ===== */
.cptur-list { list-style: none; padding: 0; margin: 0; }
.cptur-list__item { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px 0; }
.cptur-list__icon { line-height: 1; margin-top: 2px; flex: 0 0 auto; }
.cptur-list__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #141414;
  line-height: 1.35;
}

/* ===== Itinerary ===== */
.cptur-itinerary__content { display: flex; flex-direction: column; gap: 4px; }
.cptur-itinerary__title { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; color: #141414; line-height: 1.35; }
.cptur-itinerary__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #626262;
  line-height: 1.35;
  margin-top: 2px;
}

/* ===== Gallery Slider (Swiper) ===== */
.cptur-slider {
  width: 100%;
  position: relative;
}

.cptur-slider--tiles .swiper-slide {
  border-radius: 18px;
  overflow: hidden;
}

.cptur-slider--tiles img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

/* Subtle zoom on active slide */
.cptur-slider--tiles .swiper-slide-active img {
  transform: scale(1.015);
}

@media (max-width: 1024px) { .cptur-slider--tiles img { height: 300px; } }
@media (max-width: 768px)  { .cptur-slider--tiles img { height: 240px; } }
@media (max-width: 480px)  {
  .cptur-slider--tiles img { height: 220px; }
  .cptur-slider--tiles .swiper-slide { border-radius: 14px; }
}

/* ===== Slider wrapper & stage ===== */
.cptur-slider-wrap {
  --cptur-nav-size: 40px;
  --cptur-nav-offset: 14px;
  --cptur-nav-color: rgba(17, 17, 17, 0.78);
  --cptur-nav-color-hover: #111;
  --cptur-nav-border: rgba(255, 255, 255, 0.48);
  --cptur-nav-border-hover: rgba(255, 255, 255, 0.72);
  --cptur-nav-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
  --cptur-dot-color: rgba(17, 17, 17, 0.12);
  --cptur-dot-active: rgba(17, 17, 17, 0.34);
  width: 100%;
}

/*
 * Stage: el padding lateral crea el espacio físico donde viven las flechas.
 * Las flechas están en position:absolute dentro del stage, FUERA del .swiper.
 * Así no sufren el overflow:hidden del carrusel.
 */
.cptur-slider__stage {
  position: relative;
}

@media (max-width: 600px) {
  .cptur-slider-wrap {
    --cptur-nav-size: 36px;
    --cptur-nav-offset: 10px;
  }
}

/* ===== Nav buttons (flechas) ===== */
.cptur-slider-wrap .swiper-button-prev,
.cptur-slider-wrap .swiper-button-next,
.cptur-nav__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cptur-nav-size);
  height: var(--cptur-nav-size);
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.12);
  color: rgba(17, 17, 17, 0.66);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
  opacity: 0.9;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.cptur-slider-wrap .swiper-button-prev::after,
.cptur-slider-wrap .swiper-button-next::after {
  display: none;
}

.cptur-nav__btn--prev,
.cptur-slider-wrap .swiper-button-prev {
  left: var(--cptur-nav-offset);
}

.cptur-nav__btn--next,
.cptur-slider-wrap .swiper-button-next {
  right: var(--cptur-nav-offset);
}

.cptur-slider-wrap .swiper-button-prev:hover,
.cptur-slider-wrap .swiper-button-next:hover,
.cptur-nav__btn:hover {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.10);
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.18);
  color: #111;
  opacity: 1;
  transform: translateY(-50%) scale(1.07);
}

.cptur-slider-wrap .swiper-button-prev:active,
.cptur-slider-wrap .swiper-button-next:active,
.cptur-nav__btn:active {
  transform: translateY(-50%) scale(0.97);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.cptur-slider-wrap .swiper-button-prev.swiper-button-disabled,
.cptur-slider-wrap .swiper-button-next.swiper-button-disabled,
.cptur-nav__btn.swiper-button-disabled {
  opacity: 0.28;
  pointer-events: none;
}

.cptur-slider-wrap .swiper-button-prev svg,
.cptur-slider-wrap .swiper-button-next svg,
.cptur-nav__btn svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* ===== Dots bar (below the slider) ===== */
.cptur-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22px;
  margin-top: 16px;
}

.cptur-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: static !important;
  width: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

.cptur-slider__dots .swiper-pagination-bullet {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cptur-dot-color);
  opacity: 1;
  margin: 0 !important;
  transition: width 0.24s ease, transform 0.24s ease, background-color 0.24s ease, opacity 0.24s ease;
  flex-shrink: 0;
}

.cptur-slider__dots .swiper-pagination-bullet:hover {
  transform: scale(1.08);
  background: rgba(17, 17, 17, 0.18);
}

.cptur-slider__dots .swiper-pagination-bullet-active {
  width: 22px;
  transform: none;
  background: var(--cptur-dot-active);
}

@media (max-width: 768px) {
  .cptur-slider__controls {
    margin-top: 14px;
  }

  .cptur-slider__dots {
    gap: 6px;
  }
}

/* ===== "Ver todas las fotos" button (slider) ===== */
.cptur-slider__lg { display: none; }
.cptur-slider--tiles .cptur-slider__img { cursor: zoom-in; }

.cptur-slider__allbtnwrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.cptur-slider__allbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  padding: 11px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: #141414;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cptur-slider__allbtn:hover {
  transform: translateY(-1px);
  background: #fafafa;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

/* ===== Tour Category Background (Elementor) ===== */
.cptur-bg-cat {
  background-image: var(--cptur-cat-bg) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
