.tour-cards {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.my-tours-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding-top: var(--section-inner-gap);
  column-gap: clamp(20px, 2.9vw, 42px);
}

.card {
  width: 100%;
  max-width: 460px;
  height: var(--tour-card-height);
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  display: inline-flex;
  border: 1px var(--text-red) solid;
}

.col-reverse {
  flex-direction: column-reverse;
}

.tour-top {
  width: 100%;
  height: auto;
  flex: 0 0 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.price-container {
  width: auto;
  height: 100%;
  flex: 1 1 0;
  min-width: 0;
  background: var(--text-red);
  border: 1px var(--text-red) solid;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.horizontal-separator {
  width: 1px;
  flex: 0 0 1px;
}

.duration-container {
  width: auto;
  height: 100%;
  flex: 1 1 0;
  min-width: 0;
  background: var(--button-red);
  border: 1px var(--button-red) solid;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}



.tour-top-content {
  color: var(--text-white);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 700;
  letter-spacing: 1.8px;
  word-wrap: break-word;
}

.card-header-container {
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;

  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  padding-top: clamp(24px, 2.5vw, 40px);
}

.card-header-container.has-top-badge .small-text {
  margin-left: clamp(48px, 5vw, 80px);
  margin-right: clamp(18px, 3vw, 60px);
}

.text-container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
}

.text-container-title {
  margin: 0 clamp(20px, 3.1vw, 60px);
  text-align: center;
  color: var(--text-red);
  font-size: clamp(26px, 2vw, 36px);
  font-style: normal;
  line-height: normal;
  font-weight: 700;
  letter-spacing: 1.8px;
  word-wrap: break-word;
}

.small-text {
  color: var(--text-black);
  text-align: center;
  font-size: clamp(18px, 1.25vw, 24px);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 1.2px;
  margin: 0 clamp(24px, 3.1vw, 60px);
}

.top-left-corner {
  border-radius: 19px 0px;
  background: var(--button-red);
  width: 62px;
  height: 62px;
  position: absolute;
  top: 0px;
  left: 0px;
}

.left-corner-label {
  left: 4.81px;
  top: 34.72px;
  position: absolute;
  transform: rotate(-45deg);
  transform-origin: 0 0;
  color: var(--text-white);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  word-wrap: break-word;
}

.card-image-container {
  position: relative;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  width: 100%;
  min-height: 0;
  height: auto;
  flex: 0 0 50%;
  overflow: hidden;
}

.tour-one-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.card-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  height: clamp(66px, 5vw, 95px);
  flex: 0 0 clamp(66px, 5vw, 95px);
}

.card-column {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.swiper-slide {
  justify-content: center;
  display: flex !important;
}

@media (max-width: 1440px) {
  .top-left-corner {
    width: 42px;
    height: 42px;
  }
  
  .left-corner-label {
    left: 2.4px;
    top: 26px;
    font-size: 14px;
  }

  .card {
    max-width: 380px;
  }

  .text-container-title {
    margin: 0 20px 0 20px;
    font-size: 28px;
  }
  
  .small-text {
    font-size: 18px;
    margin: 0 50px 0 50px;
  }

  .duration-container {
    height: 100%;
  }

  .price-container {
    height: 100%;
  }
}

@media (max-width: 670px) {
  .my-tours-content {
    position: relative;
    padding-top: 30px;
  }

  #tours-swiper {
  }

  #tours-prev {
    margin-top: 20px;
    margin-bottom: 40px;
    position: absolute;
    top: 100%;
    transform: translateX(-110%);
  }

  #tours-next {
    margin-top: 20px;
    margin-bottom: 40px;
    position: absolute;
    top: 100%;
    transform: translateX(110%);
  }

  .card {
    margin-left: auto;
    margin-right: auto;
    width: min(315px, calc(100% - 60px));
    height: var(--tour-card-height);
    max-width: 315px;
  }

  .text-container-title {
    margin: 0 0 20px 0;
  }
}

.duration,
.price {
  color: var(--text-white);
  font-size: clamp(19px, 1.45vw, 28px);
  font-weight: 700;
  letter-spacing: clamp(0.6px, 0.08vw, 1.4px);
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
  text-align: center;
}

/* Whole tour card is a link to its tour page */
a.card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease;
}

a.card .text-container-title {
  transition: color 160ms ease;
}

a.card:hover {
  border-color: var(--button-red-300);
}

a.card:hover .text-container-title {
  color: var(--button-red-300);
}
