.tour-slider {
  position: relative;
}
.tour-slider.is-locked .tour-slider-arrow {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.tour-slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tour-slider__title {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
}

.tour-slider__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.tour-slider .swiper {
  overflow: hidden;
}

.tour-slider .swiper-slide {
  height: auto;
}

.tour-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.2s ease;
  position: relative;
}

.tour-card:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.tour-card__image img {
  width: 100%;
  height: var(--tour-slider-img-height, 160px);
  object-fit: cover;
  display: block;
}

.tour-card__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.tour-card__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.tour-card__title a {
  color: #111827;
  text-decoration: none;
}

.tour-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.tour-card__details {
  margin-top: auto;
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tour-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 20px;
}

.tour-card__label {
  min-width: 0;
  flex: 1 1 auto;
}

.tour-card__meta i,
.tour-card__label i {
  margin-right: 4px;
  color: #2563eb;
}

.tour-card__price-old {
  flex-shrink: 0;
  text-align: right;
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 12px;
}

.tour-card__price-main {
  flex-shrink: 0;
  text-align: right;
  color: #f97316;
  font-weight: 700;
  font-size: 14px;
}

.tour-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f97316;
  color: #fff;
  border-radius: 6px;
}

.tour-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.tour-slider-prev {
  left: 8px;
}

.tour-slider-next {
  right: 8px;
}

.tour-slider.nav-simple .tour-slider-arrow {
  border-radius: 8px;
  width: 32px;
  height: 32px;
  box-shadow: none;
}

@media (max-width: 849px) {
  .tour-slider-prev {
    left: 6px;
  }

  .tour-slider-next {
    right: 6px;
  }
}

/* UX Builder iframe: keep preview same as frontend (override builder wrapper styles) */
body.ux-builder-iframe .tour-slider {
  position: relative;
  min-width: 0;
}

body.ux-builder-iframe .tour-slider .swiper {
  overflow: hidden;
}

body.ux-builder-iframe .tour-slider .tour-card__image img {
  height: var(--tour-slider-img-height, 160px);
  object-fit: cover;
}
