/* Swiper Mode Specific Styles */
.mm-display-swiper {
  position: relative;
}

/* Week Header - Flex layout for title + arrows */
.mm-display-swiper .mm-week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mm-display-swiper .mm-week-header h3 {
  margin: 0;
}

/* Navigation Container - Right side of header */
.mm-swiper-navigation {
  display: flex;
  align-items: center;
  gap: 10px; /* Default gap, controlled by Elementor */
  flex-shrink: 0;
}

/* Arrow Buttons */
.mm-swiper-button-prev,
.mm-swiper-button-next {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #552f38;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #552f38;
  flex-shrink: 0;
}

.mm-swiper-button-prev:hover,
.mm-swiper-button-next:hover {
  background-color: #f5f5f5;
  color: #666;
  transform: scale(.96);
}

.mm-swiper-button-prev.swiper-button-disabled,
.mm-swiper-button-next.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.mm-swiper-button-prev svg,
.mm-swiper-button-next svg {
  width: 100%;
  height: 100%;
  max-width: 24px;
  max-height: 24px;
}

/* Swiper Container - CRITICAL for proper sliding */
.mm-weeks-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.mm-weeks-swiper .swiper-wrapper {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Swiper Slide - CRITICAL: must have explicit width */
.mm-weeks-swiper .swiper-slide {
  width: 100% !important;
  flex-shrink: 0;
  height: auto;
  box-sizing: border-box;
}

/* Make sure week slides take full width */
.mm-display-swiper .mm-week-slide {
  width: 100%;
}

/* Column Mode - Keep existing grid */
.mm-display-column .mm-weeks-container {
  display: grid;
  gap: 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .mm-swiper-button-prev,
  .mm-swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .mm-display-swiper .mm-week-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mm-display-swiper .mm-week-header h3 {
    flex: 1 1 100%;
    text-align: center;
  }

  .mm-swiper-navigation {
    margin: 0 auto;
  }
}

/* Add smooth transitions */
.mm-weeks-swiper .swiper-slide {
  transition: opacity 0.3s ease;
}

/* Ensure proper initialization state */
.mm-weeks-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}
