/* Booking Styles */

/* Custom Navigation Arrows for Calendar */
.custom-nav-arrow {
  width: 32px;
  height: 32px;
  background: #612c38;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.2s;
  user-select: none;
  opacity: 1;
}
.custom-nav-arrow:hover {
  background: #4a222b; /* Slightly darker for hover */
  color: white;
}
.custom-nav-arrow.swiper-button-disabled {
  opacity: 0.5;
  background: #612c38;
  cursor: default !important;
}

.mm-booking-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.mm-form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
}

.mm-form-col {
  flex: 1;
}

.mm-form-group {
  margin-bottom: 5px;
}

.mm-form-control {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px; /* Default */
  font-size: 14px;
}

.mm-submit-btn {
  width: 100%;
  padding: 12px;
  background-color: #552f38;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mm-submit-btn:hover {
  opacity: 0.9;
}

.mm-submit-btn::after {
  content: "↗"; /* Simple arrow */
  font-size: 18px;
}

/* Calendar Styles */
.mm-calendar-wrapper {
  width: 100%;
  overflow: hidden;
}

.mm-calendar-swiper {
  width: 100%;
}

.mm-week-slide {
  padding: 20px 0;
  min-height: 400px;
  width: 100% !important; /* Override Swiper inline width */
}

.mm-week-header {
  text-align: center;
  margin-bottom: 20px;
}

.mm-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  width: 100%;
}

.mm-day-column {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 10px;
  min-height: 200px;
}

.mm-day-column.today {
  border: 1px solid #552f38;
  background: #fff8f0;
}

.mm-day-header {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: capitalize;
  color: #333;
}

.mm-seance-card {
  display: block;
  background: white;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.mm-seance-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mm-seance-card.full {
  opacity: 0.6;
  pointer-events: none;
  background: #f0f0f0;
}

.mm-seance-card.past,
.mm-seance-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  background: #e8e8e8;
  cursor: not-allowed;
  filter: grayscale(50%);
}
.mm-seance-card.past:hover,
.mm-seance-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.mm-time {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
}

.mm-title {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.95em;
}

.mm-price {
  font-size: 0.9em;
  font-weight: bold;
  color: #552f38;
}

.mm-status-badge {
  font-size: 0.8em;
  color: red;
  text-align: right;
  min-height: 1em;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .mm-week-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px; /* Space for scrollbar and touch clearance */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    transform: rotateX(180deg); /* Move scrollbar to top */
  }

  /* Force scrollbar visibility */
  .mm-week-grid::-webkit-scrollbar {
    height: 6px; /* Slightly thicker to be more visible */
    display: block; /* Force display */
  }
  .mm-week-grid::-webkit-scrollbar-track {
    background: #f1f1f1; /* Visible track */
    border-radius: 4px;
  }
  .mm-week-grid::-webkit-scrollbar-thumb {
    background-color: #552f38; /* Brand color for visibility */
    border-radius: 4px;
  }

  .mm-day-column {
    flex: 0 0 60%; /* Each day takes 60% of width */
    width: 60%;
    min-width: 60%;
    scroll-snap-align: start;
    margin-right: 0; /* Gap handles spacing */
    transform: rotateX(180deg); /* Flip content back up */
  }
}

/* Offres Widget Styles */
.offres-grid {
  display: grid;
  gap: 20px;
}
.offres-grid--cols-1 {
  grid-template-columns: 1fr;
}
.offres-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.offres-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.offres-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.offre-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.offre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.offre-card--featured {
  background: #2e1d0b;
}

.offre-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #2e1d0b;
}
.offre-card--featured .offre-title {
  color: #ffffff;
}

.offre-price {
  font-size: 2em;
  font-weight: bold;
  color: #c18f51;
  margin-bottom: 15px;
}
.offre-price-suffix {
  font-size: 0.5em;
  font-weight: normal;
}

.offre-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.95em;
}
.offre-card--featured .offre-description {
  color: #cccccc;
}

.offre-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex-grow: 1;
}
.offre-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offre-features li i {
  color: #c18f51;
}
.offre-card--featured .offre-features li {
  color: #ffffff;
}

.offre-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  background: #c18f51;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s;
}
.offre-button:hover {
  background: #a67a45;
}
.offre-card--featured .offre-button {
  background: #ffffff;
  color: #2e1d0b;
}
.offre-arrow {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .offres-grid--cols-2,
  .offres-grid--cols-3,
  .offres-grid--cols-4 {
    grid-template-columns: 1fr;
  }
}
