.main-container {
  max-width: 1300px;
  margin: 0 auto;
}

#tours-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 20px;
}

.tour-item {
  width: 370px;
  height: auto;
  border: 1px solid rgb(214, 214, 214);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tour-item .image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.tours-empty-message {
  margin-left: 24px;
  padding-left: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.tour-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tour-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.tour-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tour-item .marks {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #6ba000;
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tour-item .price-mark,
.tour-item .discount {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 60px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.tour-item .price-mark {
  bottom: 10px;
  left: 10px;
  background: #6ba000;
}

.tour-item .discount {
  background: #fd7e14;
  bottom: 10px;
  right: 10px;
}

.tour-item .price-mark .price-label,
.tour-item .discount .price-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
  opacity: 0.9;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.tour-item .price-mark .price-value,
.tour-item .discount .price-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trip-location {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.tour-item .content {
  padding: 10px 10px 0px 10px;
}
.tour-item .content-title h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
}
.tour-item .content-title a {
  color: #333;
  text-decoration: none;
}
.first-dates {
  border-top: 1px solid #eee;
  margin-top: 5px;
  padding-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.first-dates .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 15px;
  gap: 12px;
}

.first-dates .col-date {
  flex: 0 0 100px; /* fixed width for dates */
}

.first-dates .col-date a {
  color: #555;
  text-decoration: none;
}

.first-dates .col-date a:hover {
  text-decoration: underline;
}

.first-dates .col-date-details {
  text-align: center;
  align-items: center;
  gap: 2px;
  flex: 1;
  font-size: 12px;
}

.first-dates .col-date-details .free-places {
  color: #777777;
  min-width: 80px;
  text-align: center;
  font-size: 0.8571rem;
}

.first-dates .col-date-details .no-places {
  color: #e63946;
  min-width: 80px;
  text-align: left;
}

.first-dates .col-date-details .guaranteed {
  background: #fd7e14;
  color: #fff;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.first-dates .col-date-price {
  flex: 0 0 auto;
  min-width: 90px;
  white-space: nowrap;
  text-align: right;
  font-weight: 700;
  color: #78a321;
  font-size: 15px;
}

.first-dates .col-date-price .discount-percentage,
.first-dates .col-date-price .old-price {
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  font-size: 13px;
}

.first-dates .col-date-price .old-price {
  text-decoration: line-through;
}

.first-dates .col-date-price .new-price {
  color: #78a321;
  font-size: 15px;
}

.extra-dates {
  display: none;
}

.all-dates {
  text-align: center;
  padding: 5px 0;
  border-top: 1px solid #eee;
  cursor: pointer;
}
.all-dates span {
  color: #999;
  font-size: 13px;
}
.all-dates:hover span {
  color: #6ba000;
}

#section-title {
  max-width: 1200px;
  text-align: left;
  margin: 0 auto;
}

@media (max-width: 1280px) {
  #section-title {
    text-align: center;
  }
  #tours-wrapper {
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .tour-item {
    max-width: 100%;
  }
  .tour-item .image {
    width: 100%;
    max-height: 180px;
    overflow: hidden;
  }
  .tour-item .image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
  .first-dates .col-date-price .discount-percentage,
  .first-dates .col-date-price .old-price {
    font-size: 12px;
  }
  .first-dates .col-date-price .new-price {
    font-size: 14px;
  }
}
