/* כללים בסיסיים לכל כרטיס (slide) */
.show-date-entry {
  border-right: 1px solid #d3cbcb;
  padding: 20px;
  text-align: start;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "IBM plex sans hebrew", "Noto Sans Hebrew", sans-serif;
}
.show-date-entry .show-date-date {
  font-size: 2.4rem !important;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 5px;
  line-height: 1.2;
}
.show-date-entry .show-date-details {
  font-size: 1.5rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
}
.show-date-entry .carousel-bttn-wrapper {
  margin-top: 10px;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: stretch;
}
a.carousel-ticket-bttn {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: auto;
  font-size: 1.4rem;
  font-weight: 500;
  color: #000;
}
a.carousel-ticket-bttn:after {
  display: inline-flex;
  content: '';
  background-image: url(/wp-content/uploads/2025/07/אייקון-חץ-למטה-עיגול-אדום.svg);
  background-size: 26px 26px;
  height: 26px;
  width: 26px;
  margin: 0 0.37em;
  transition: all 0.3s ease;
}
.carousel-bttn-wrapper:hover a.carousel-ticket-bttn:after {
  transform: rotate(45deg) scale(1.1);
}
html[lang^="en"] a.carousel-ticket-bttn:after {
  transform: rotate(-90deg);
}
html[lang^="en"] .carousel-bttn-wrapper:hover a.carousel-ticket-bttn:after {
  transform: rotate(-135deg);
}

/* כללים כלליים לקונטיינר החיצוני של הסליידר והחיצים */
.swiper-container-outer {
  padding: 0 46px; /* ריווח לחיצים */
  position: relative;
  margin-bottom: 20px;
}
.show-dates-swiper {
  overflow: hidden; /* מבטיח שהכרטיסים לא יגלשו החוצה מהקונטיינר */
  position: static; /* חשוב עבור Swiper, מאפשר לחיצים להיות בתוך הקונטיינר החיצוני */
}
.show-dates-swiper .swiper-wrapper {
  display: flex !important; /* מבטיח התנהגות Flexbox */
  flex-direction: row !important;
  align-items: stretch;
  transition-timing-function: ease-in-out;
}
.show-dates-swiper .swiper-slide {
  flex-shrink: 0;
  width: auto; /* רוחב אוטומטי במצב קרוסלה */
  height: auto;
}

/* כפתורי ניווט (חיצים) */
.show-swiper-button-prev,
.show-swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: transparent;
  transition: opacity 0.3s ease, color 0.3s ease;
  color: black !important; /* צבע החצים */
}
.show-swiper-button-prev:hover,
.show-swiper-button-next:hover {
  transform: translateY(-50%) scale(1.1);
}
.show-swiper-button-prev {
  left: 10px;
}
.show-swiper-button-next {
  right: 10px;
}
.show-swiper-button-prev img,
.show-swiper-button-next img {
  transition: transform 0.3s ease;
}
.show-swiper-button-prev.swiper-button-disabled,
.show-swiper-button-next.swiper-button-disabled {
  opacity: 0.25;
  cursor: auto;
  pointer-events: none;
}

/* הודעה כאשר אין תאריכים זמינים */
.show-dates-container.no-dates-available p {
  text-align: center;
  padding: 20px;
  font-style: italic;
}
.ticket-notice {
  font-size: 1rem;
  color: #666;
  margin-top: 5px;
}


/* --- כללים לטיפול בתצוגה כאשר אין Swiper פעיל (כאשר קיים הקלאס `swiper-no-initialize`) --- */

.swiper.swiper-no-initialize .swiper-wrapper {
  justify-content: flex-start !important; /* מרכז את הכרטיסים במצב סטטי */
  flex-wrap: wrap; /* מאפשר לכרטיסים לעבור לשורה חדשה אם אין מקום */
  padding: 0 10px; /* ריווח פנימי מהצדדים למניעת הדבקות לקצוות */
}

.swiper.swiper-no-initialize .swiper-slide {
  border-right: none !important; /* מבטל את הקו האנכי בין כרטיסים במצב סטטי */
  padding: 20px 15px !important; /* ריווח פנימי לכרטיס */
  margin-right: 0 !important; /* מבטל רווחי Swiper שאינם רלוונטיים במצב סטטי */
  min-width: 300px !important; /* רוחב מינימלי של 300px לכרטיס בכל המצבים הסטטיים */
  flex-shrink: 1 !important; /* מאפשר כיווץ */
  /* רוחב ורווחים ספציפיים יוגדרו בנקודות שבירה */
}

/* כללים לדסקטופ מלא (1400px ומעלה) במצב סטטי - 4 כרטיסים בשורה עם רווח 64px */
@media (min-width: 1400px) {
  .swiper.swiper-no-initialize .swiper-wrapper {
    gap: 64px; /* רווח 64px בין הכרטיסים */
  }
  .swiper.swiper-no-initialize .swiper-slide {
    width: calc(25% - 48px) !important; /* רוחב עבור 4 כרטיסים עם רווח 64px */
    max-width: 350px;
  }
}

/* כללים לטווח "1024px" (1024px עד 1399px) במצב סטטי - 3 כרטיסים או פחות, עם רווח 40px */
@media (max-width: 1399px) and (min-width: 1024px) {
  .swiper.swiper-no-initialize .swiper-wrapper {
    gap: 40px; /* רווח 40px בין הכרטיסים */
  }
  .swiper.swiper-no-initialize .swiper-slide {
    width: calc(33.333% - 26.666px) !important; /* רוחב עבור 3 כרטיסים עם רווח 40px */
    max-width: 400px;
  }
}

/* כללים לטאבלטים (768px עד 1023px) במצב סטטי - 2 כרטיסים בשורה */
@media (max-width: 1023px) and (min-width: 768px) {
  .swiper.swiper-no-initialize .swiper-wrapper {
    gap: 30px; /* רווח 30px בין הכרטיסים */
  }
  .swiper.swiper-no-initialize .swiper-slide {
    width: calc(50% - 15px) !important; /* רוחב עבור 2 כרטיסים עם רווח 30px */
    max-width: 450px;
  }
}

/* כללים למובייל (עד 767px) במצב סטטי - כרטיס אחד בשורה */
@media (max-width: 767px) {
  .swiper.swiper-no-initialize .swiper-wrapper {
    padding: 0 10px;
    gap: 20px; /* רווח 20px בין כרטיסים במובייל */
  }
  .swiper.swiper-no-initialize .swiper-slide {
    width: 100% !important; /* כרטיס אחד בשורה במובייל */
    max-width: 95%; /* כדי לאפשר שוליים מהצדדים */
    /* min-width: 300px !important;  הועבר לכלל הכללי למעלה */
  }
}

/* הסתרת כפתורי ניווט והסרת ריווח חיצוני כאשר הקלאס hide-swiper-arrows קיים (מוסף ע"י JS) */
.swiper-container-outer.hide-swiper-arrows {
  padding: 0 !important; /* מסיר את הריווח לחיצים כשהם מוסתרים */
}
.swiper-container-outer.hide-swiper-arrows .swiper-button-prev,
.swiper-container-outer.hide-swiper-arrows .swiper-button-next {
  display: none !important; /* מוודא שהחיצים מוסתרים */
}
/*
 * עקיפה ליישור של Elementor במצב סטטי של הקרוסלה.
 * כאשר יש פחות מ-4 כרטיסים (או מה שהוגדר כ-slidesThreshold),
 * הווידג'ט כולו מיושר לימין (start) של הקונטיינר שלו.
 */
.elementor-element.static-tickets-start-align {
  margin-left: auto !important; /* דוחף את הווידג'ט לימין (ה"התחלה" ב-RTL) */
  margin-right: 0 !important; /* מבטל כל ריווח ימני אחר */
  width: auto !important; /* ודא שהרוחב אינו קבוע ומשפיע על היישור */
}