/* Card and Image Styles */
.card-img-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-img-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.image-attribution {
  background: #f8f9fa;
  padding: 8px;
  color: #6c757d;
  font-size: .8rem;
  text-align: center;
  border-bottom-left-radius: .25rem;
  border-bottom-right-radius: .25rem;
  border-top: 1px solid rgb(0 0 0 / 0.125);
}
.image-attribution p {
  margin: 0;
}
.image-attribution a {
  color: #6c757d;
  text-decoration: underline;
}

/* CTA Styles */
.cta-wrapper {
  width: 100%;
}
.cta-wrapper .btn {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  white-space: normal;
  text-align: center;
  padding: 10px 20px;
}
.cta-wrapper .btn:hover {
  background-color: #9e1a96;
  border-color: #9e1a96;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgb(158 26 150 / 0.2);
}
.cta-wrapper .btn:active {
  background-color: #6a1166;
  border-color: #6a1166;
  transform: translateY(0);
}

/* Modern Countdown Container with Glassmorphism - Travel Sale Palette */
.countdown-container {
  position: relative;
  /* Gradiente con los tonos característicos de Travel Sale (Violeta profundo a Magenta) */
  background: linear-gradient(135deg, #1d0333 0%, #4a0066 50%, #d8006f 100%);
  border-radius: 20px;
  padding: 20px;
  margin: 20px auto;
  color: #ffffff;
  text-align: center;
  /* Sombra ajustada con brillo magenta/violeta alineado a la marca */
  box-shadow: 0 8px 32px rgba(216, 0, 111, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: block;
  width: 90%;
  min-width: 300px;
  max-width: 600px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animated gradient overlay for depth */
.countdown-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Modern typography with better hierarchy */
.countdown-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.3);
  position: relative;
  z-index: 1;
}

.countdown-subtitle {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: rgb(255 255 255 / 0.95);
  font-weight: 400;
  position: relative;
  z-index: 1;
}

/* Modern countdown timer with glassmorphism cards */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Glassmorphism effect on countdown units */
.countdown-unit {
  background: linear-gradient(135deg, rgb(255 255 255 / 0.25), rgb(255 255 255 / 0.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px;
  border-radius: 12px;
  min-width: 80px;
  flex: 0 1 auto;
  border: 1px solid rgb(255 255 255 / 0.25);
  box-shadow: 0 4px 16px rgb(81 11 217 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect for interactivity */
.countdown-unit:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.12));
  box-shadow: 0 6px 20px rgb(81 11 217 / 0.3), 0 0 20px rgb(98 54 213 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.4);
  border-color: rgb(255 255 255 / 0.35);
}

/* Subtle pulse animation for urgency */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

.countdown-unit {
  animation: pulse 2s ease-in-out infinite;
}

/* Modern number styling with better readability */
.countdown-number {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 5px;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.4), 0 0 10px rgb(81 11 217 / 0.3);
  letter-spacing: -1px;
  line-height: 1;
}

/* Refined label styling */
.countdown-label {
  font-size: .9em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 767px) {
  .cta-wrapper .btn {
    max-width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .cta-wrapper {
    padding: 0 15px;
  }

  /* Responsive countdown adjustments */
  .countdown-container {
    min-width: 280px;
    width: 95%;
    padding: 15px;
    border-radius: 16px;
  }
  .countdown-timer {
    gap: 10px;
  }
  .countdown-unit {
    min-width: 60px;
    padding: 8px;
  }
  .countdown-number {
    font-size: 1.5em;
  }
  .countdown-label {
    font-size: .8em;
  }
}

@media (max-width: 575px) {
  .cta-wrapper .btn {
    padding: 10px 15px;
    font-size: .9rem;
  }
}
