
.ts-grid-wrapper {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 50px 20px;
  box-sizing: border-box;
  overflow: hidden; /* Prevents breaking */
}


@media (max-width: 768px) {
  .ts-grid-wrapper {
    padding: 30px 15px;
  }

  .ts-grid-title {
    font-size: 22px;
    padding: 10px;

  }
}

.ts-grid-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #fff;
    background: linear-gradient(to right, #000000, #950000);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto; /* 🔥 Center horizontally */
}



.ts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 2fr));
  gap: 25px;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}


.ts-trip-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: translateY(0);
}

.ts-trip-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}


.ts-trip-card-image {
  background-size: cover;
  background-position: center;
  height: 200px;
  transition: scale 0.4s ease;
}

.ts-trip-card-info {
  padding: 20px;
  text-align: right;
  direction: rtl;
}


.ts-trip-card-info h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: bold;
  color: #111;
}

.ts-trip-card-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.animated-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
.ts-trip-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.ts-hover-overlay h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px;
}

.ts-hover-overlay {
    position: absolute;
    bottom: -100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    padding: 15px;
    box-sizing: border-box;
    transition: all 0.0s ease-in-out;
    
    text-align: right;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.ts-hover-overlay p {
    font-size: 14px;
    margin: 0;
    color: #444;
}
.ts-trip-card:hover .ts-hover-overlay {
    bottom: 0;
}
.ts-card-image {
    background-size: cover;
    background-position: center;
    height: 260px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.ts-trip-ribbon {
    background: linear-gradient(to right, #000000, #950000);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    width: 100%;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: absolute;
    top: 0;
    right: 0;
}






.ts-single-trip {
    direction: rtl;
    padding: 40px;
    text-align: center;
}

.ts-single-image img {
    border-radius: 16px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.ts-single-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 700px;
    margin: 0 auto;
    text-align: right;
}



.ts-gallery-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-top: 30px;
}

.ts-gallery-slide img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.ts-short-description {
    font-size: 18px;
    color: #444;
    margin-bottom: 30px;
    text-align: right;
    direction: rtl;
}


.swiper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}


.ts-trip-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 20px;
    direction: rtl;
    justify-content: center;
}

.ts-trip-gallery {
    max-width: 480px;
    flex: 1 1 400px;
}

.ts-trip-content {
    flex: 1 1 500px;
    max-width: 600px;
    text-align: right;
}

.ts-trip-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
}

.ts-trip-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #444;
}

.ts-trip-main {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

/* Swiper styles */
.mySwiper2 {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.mySwiperThumbs {
    margin-top: 10px;
    height: 80px;
    overflow: hidden;
}

.mySwiperThumbs .swiper-slide {
    width: 80px;
    height: 80px;
    opacity: 0.4;
    border-radius: 8px;
    overflow: hidden;
}

.mySwiperThumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.mySwiperThumbs img,
.mySwiper2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.animated-card:nth-child(2) { animation-delay: 0.05s; }
.animated-card:nth-child(3) { animation-delay: 0.1s; }
.animated-card:nth-child(4) { animation-delay: 0.15s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.animated-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpCard 0.6s ease forwards;
}

.animated-card:nth-child(2) { animation-delay: 0.05s; }
.animated-card:nth-child(3) { animation-delay: 0.1s; }

@keyframes fadeUpCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 💥 Prevent horizontal overflow on small screens */
body {
  overflow-x: hidden;
}

/* 🔧 Container fix */
.ts-trip-layout-wrapper,
.ts-trip-layout,
.ts-trip-content,
.ts-trip-gallery {
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}



/* ✅ Mobile Fixes for Single Trip Layout */

@media (max-width: 768px) {
  .ts-trip-layout {
    flex-direction: column-reverse;
    align-items: center;
    padding: 20px 15px;
    gap: 20px;
  }

  .ts-trip-gallery,
  .ts-trip-content {
    max-width: 100% !important;
    width: 100%;
    flex: unset;
  }

  .ts-trip-content h1 {
    font-size: 24px;
    text-align: center;
  }

  .ts-trip-subtitle,
  .ts-trip-main {
    text-align: center;
    font-size: 15px;
  }

  .mySwiper2,
  .mySwiperThumbs {
    width: 100% !important;
  }

  .mySwiperThumbs .swiper-slide {
    width: 60px;
    height: 60px;
  }
}



html, body {
  overflow-x: hidden;
  width: 100%;
}

.ts-trip-layout-wrapper {
  overflow-x: hidden;
  width: 100%;
}



body.elementor-page {
  overflow-x: hidden !important;
}

.ts-trip-content {
  position: relative;
  z-index: 1;
}


.swiper-slide img {
  display: block;
  max-width: 100%;
  height: auto;
}





/* 🛠️ Swiper slides responsive */

