/* Tabbed Destination Sliders - Custom Styles */
.tds-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.tds-container * {
  box-sizing: border-box;
}

/* Tabs */
.tds-tab-buttons {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    justify-content: center;
}

.tds-tab-buttons::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.tds-tab-button {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 2px solid #FFDE59;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 14px;
}

.tds-tab-button.active,
.tds-tab-button:hover {
  background-color: #FFDE59;
  color: #000;
}

/* Tab Content */
.tds-tab-content {
  display: none;
}

.tds-tab-content.active {
  display: block;
}

/* Swiper Container */
.tds-swiper {
  width: 100%;
  padding: 0 10px;
}

.tds-swiper .swiper-wrapper {
  align-items: stretch;
}

.tds-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
}

.tds-swiper .swiper-pagination {
  margin-top: 20px;
  text-align: center;
  position: relative;
}

/* Card Design - MAIN FIX */
.tds-card {
  background: #fff;
  border-radius: 12px;
  border: solid 1px #E5E5E5;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  min-height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 0 auto;
}

.tds-card-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  text-indent: -9999px;
  text-decoration: none;
}

.tds-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.tds-rating-badge {
  position: absolute;
  top: 190px;
  right: 15px;
  border: 0.5px solid #FCFCFC;
  background: rgba(230, 230, 230, 0.45);
  backdrop-filter: blur(12.5px);
  color: white;
  font-size: 14px;
  padding: 2px 8px;
  border-radius: 6px;
  z-index: 5;
}

.tds-tags {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.tds-tag {
  background: #ffffff !important;
  color: #333;
  border: solid;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
}

.tds-tag.red {
    border: solid;
    background: #ffffff !important;
    color: #333 !important;
}

.tds-title {
  font-size: 18px;
  font-weight: 600;
  padding: 0 16px;
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.3;
}

.tds-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 auto 0;
  padding: 0 16px 16px 16px;
  line-height: 1.4;
  flex-grow: 1;
}

.tds-price-box {
  background: #fff;
  margin: 16px;
  border-radius: 10px;
  text-align: center;
  padding: 16px;
  border: #FFDE59 solid 2px;
  margin-top: auto;
}

.tds-price-box .tds-days {
  font-size: 13px;
  color: #666;
  margin: 0 0 8px 0;
}

.tds-price-box .tds-price {
  font-size: 32px;
  color: #000;
  font-weight: 800;
  margin: 8px 0;
  line-height: 1;
}

.tds-price-box .tds-twin-share {
  font-size: 14px;
  color: #666;
  margin: 0 0 10px 0;
}

.tds-installments {
  padding: 8px 5px;
  font-size: 13px;
  background-color: #FFDE59;
  color: #000;
  border-radius: 0px 0px 8px 8px;
  margin: -16px -16px -16px -16px;
  margin-top: 12px;
}

/* Desktop Specific - MAIN RESPONSIVE FIX */
@media (min-width: 769px) {
  .tds-container {
    padding: 20px;
  }
  
  .tds-swiper .swiper-slide {
    width: calc(33.333% - 20px) !important;
    margin-right: 20px;
  }
  
  .tds-card {
    max-width: 100% !important;
    width: 100%;
  }
  
  .tds-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  .tds-card {
    max-width: 360px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .tds-swiper .swiper-slide {
    width: calc(50% - 15px) !important;
    margin-right: 15px;
  }
}

/* Mobile Specific Tweaks */
@media (max-width: 768px) {
    
    .tds-rating-badge{
            top: 165px !important;
    }
    
    
  .tds-tab-buttons {
       justify-content: center;
       padding: 0 10px;
       max-width: 100%;
    flex-wrap: wrap;
  }

  .tds-tab-button {
    width: auto;
      flex: 0 1 auto;  
    text-align: center;
    white-space: nowrap;
    padding: 8px 16px;
  }
  
  .tds-container {
    padding: 15px 10px;
  }
  
  .tds-swiper {
    padding: 0 5px;
  }
  
  .tds-swiper .swiper-slide {
    width: 100% !important;
    margin-right: 0;
  }
  
  .tds-card {
    max-width: 100%;
    margin: 0 10px;
  }
  
  .tds-price-box .tds-price {
    font-size: 28px;
  }
}

/* Loading state */
.tds-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Empty state */
.tds-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}