/*
 * travlia RTL overrides — marasemalmaseiah.com
 * Created 2026-07-14 (file was missing/404 while enqueued for RTL locales).
 */

/* ============================================================
   جاليري صفحات الفنادق: scroll-snap أصلي (بديل Splide المكسور)
   ============================================================ */
.mrsm-gal {
  position: relative;
  height: min(62vh, 600px);
  background: #0e3d55;
  overflow: hidden;
}
.mrsm-gal-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mrsm-gal-track::-webkit-scrollbar { display: none; }
.mrsm-gal-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  overflow: hidden;
}
.mrsm-gal-bg {
  position: absolute;
  inset: -34px;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.6);
  transform: scale(1.15);
}
.mrsm-gal-slide > img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mrsm-gal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(253, 252, 250, .94);
  color: #14506e;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(9, 40, 56, .3);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mrsm-gal-btn:hover { background: #ed9938; color: #fffdf8; transform: translateY(-50%) scale(1.07); }
.mrsm-gal-next { inset-inline-start: 16px; }
.mrsm-gal-prev { inset-inline-end: 16px; }
.mrsm-gal-count {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 16px;
  z-index: 5;
  background: rgba(9, 40, 56, .72);
  color: #fdfcfa;
  font-family: 'Cairo', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 30px;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
@media (max-width: 767px) {
  .mrsm-gal { height: 44vh; }
  .mrsm-gal-btn { width: 42px; height: 42px; font-size: 15px; }
}

/* لو JS اتأخر: القديم مخفي لتجنب الفلاش المكسور */
.single-trip .wpte-gallery-wrapper { opacity: 0; }
.single-trip .mrsm-gal { opacity: 1; }
