/* Calendar Selected Event Styles */
.selected-event-container {
  background: linear-gradient(
    135deg,
    var(--at-primary) 40%,
    var(--at-secondary) 95%
  );
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  height: 100%;
}

.selected-event-inner {
  color: var(--at-white);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.7fr 2.3fr;
  gap: var(--at-space--s);
  padding: var(--at-space--s);
}

.selected-event-image {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.selected-event-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.selected-event-content {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
}

.selected-event-date {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
  font-size: var(--at-text--xs);
  opacity: 0.95;
}

.event-date-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: var(--at-text--xs);
}

.event-date-value {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 700;
  font-size: var(--at-text--s);
}

.selected-event-title {
  font-size: var(--at-text--xl);
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: var(--at-white);
}

.selected-event-price {
  display: flex;
  flex-direction: initial;
  gap: 8px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.price-label {
  font-size: var(--at-text--m);
  font-weight: 700;
}

.price-info {
  font-size: var(--at-text--s);
  opacity: 0.9;
  font-style: italic;
}

.selected-event-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.selected-event-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--at-text--xs);
  border: none;
  cursor: pointer;
}

.btn-details {
  background: var(--at-white);
  color: var(--at-secondary);
}

.btn-details:hover {
  background: var(--at-btn-dark-color--hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-purchase {
  background: var(--at-primary);
  color: var(--at-white);
}

.btn-purchase:hover {
  background: var(--at-btn-background);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.btn-icon {
  font-size: var(--at-text--s);
  display: inline-block;
}

.close-selected-event {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: var(--at-white);
  font-size: var(--at-text--2xl);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.close-selected-event:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .jet-calendar-week__day-date {
    width: var(--at-space--l);
  }
  .jet-calendar-week__day-mobile-event {
    margin-bottom: var(--at-space--m);
  }
  .selected-event-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .selected-event-image {
    height: 100%;
  }

  .selected-event-title {
    font-size: var(--at-text--l);
  }

  .selected-event-actions {
    flex-direction: column;
  }

  .selected-event-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Estilo para los contenedores locales del modal en listados */
.selected-event-container-local {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* Estilo para fecha de occurrences en listados */
.occurrence-date,
.occurrence-date-js {
  display: inline-block;
  font-weight: 600;
  color: var(--at-primary, #333);
  margin-bottom: 10px;
  min-width: 100px; /* Evitar saltos mientras carga */
}

/* Estilo para los eventos en el calendario */
.jet-calendar-week__day-event {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jet-calendar-week__day-event:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   MONTHLY NAVIGATION SLIDER
   ============================================ */

.living-monthly-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-sizing: border-box;
}

.living-monthly-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  flex: 1;
  min-width: 0;
  padding: 5px 0;
}

.living-monthly-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.living-month-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  box-sizing: border-box;
  padding: 15px 20px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: default;
}

.living-monthly-slider-wrapper[data-provider] .living-month-item {
  cursor: pointer;
}

.living-month-item:hover {
  background: var(--at-primary, #0066cc);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.living-month-item.is-current {
  background: var(--at-primary, #0066cc);
  color: #fff;
  border-color: var(--at-secondary, #ff6b00);
}

.living-month-item.no-events {
  opacity: 0.4;
  pointer-events: none;
}

.living-month-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: center;
}

.living-month-count {
  font-size: 13px;
  opacity: 0.8;
  text-align: center;
}

.living-month-nav {
  background: var(--at-primary, #0066cc);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.living-month-nav:hover {
  background: var(--at-secondary, #ff6b00);
  transform: scale(1.1);
}

.living-month-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .living-monthly-slider-wrapper {
    padding: 15px;
    gap: 10px;
    max-width: 400px;
    margin: 20px auto;
  }

  .living-month-item {
    min-width: 100px;
    padding: 12px 15px;
  }

  .living-month-name {
    font-size: 14px;
  }

  .living-month-count {
    font-size: 12px;
  }
}
/**
 * MODAL SUPERPUESTO para detalles de eventos
 * Se muestra como popup centrado sobre la página
 */
.event-detail-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  overflow-y: auto;
  padding: 20px;
}

.event-detail-modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-detail-modal {
  background: linear-gradient(
    135deg,
    var(--at-primary, #ff6b35) 40%,
    var(--at-secondary, #f7931e) 95%
  );
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.event-detail-modal .selected-event-inner {
  grid-template-columns: 280px 1fr;
  gap: 25px;
  padding: 30px;
}

.event-detail-modal .selected-event-image {
  height: 350px;
  border-radius: 12px;
}

.event-detail-modal .selected-event-image img {
  height: 100%;
}

.event-detail-modal .selected-event-title {
  font-size: var(--at-text--xxl, 32px);
  margin-bottom: 20px;
}

.event-detail-modal .close-selected-event {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 28px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  z-index: 10001;
}

.event-detail-modal .close-selected-event:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .event-detail-modal {
    max-width: 95vw;
    max-height: 95vh;
  }

  .event-detail-modal .selected-event-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .event-detail-modal .selected-event-image {
    height: 250px;
  }

  .event-detail-modal .selected-event-title {
    font-size: var(--at-text--xl, 24px);
  }

  .event-detail-modal .selected-event-actions {
    flex-direction: column;
    gap: 12px;
  }

  .event-detail-modal .btn {
    width: 100%;
    text-align: center;
  }
}
/**
 * SEPARADORES MENSUALES EN LISTADOS
 * Encabezados de mes entre grupos de eventos
 */
.living-month-separator {
  scroll-margin-top: 20px; /* Espaciado para scroll suave */
  margin: 30px 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--at-primary, #ff6b35);
}

.living-month-separator h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--at-primary, #ff6b35);
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .living-month-separator {
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
  }

  .living-month-separator h3 {
    font-size: 1.2rem;
  }
}
