  /* Section Base */
.tour-section {
  background-color: #ffffff !important;
  width: 100%;
}

/* Card Box */
.tour-listing.box-sd {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensures all 4 boxes have equal height in row */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tour-listing.box-sd:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper */
.tour-listing-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f7f7f7;
}

.tour-listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.tour-listing:hover .tour-listing-image img {
  transform: scale(1.05);
}

/* Badge */
.badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.badge-top .feature {
  background-color: rgba(24, 64, 69, 0.85);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
}

/* Content Layout */
.tour-listing-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1; /* Pushes price to the bottom across varying title lengths */
}

.card-top-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Location Tag */
.tour-listing-content .map {
  font-size: 13px;
  color: #128282;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* Title Anchor Link */
.title-tour-list {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  /* Multi-line clamp to maintain uniform height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.title-tour-list a {
  text-decoration: none;
  color: #1a1e21;
  transition: color 0.2s ease;
}

.title-tour-list a:hover {
  color: #128282;
}

/* Ratings */
.review {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #f59e0b;
}

.review span {
  color: #6c757d;
  font-size: 12px;
  margin-left: 4px;
}

/* Meta / Icons */
.icon-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

.icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icons svg,
.icons i {
  color: #6c757d;
  stroke: #6c757d;
}

/* Price Box */
.price-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-sale {
  color: #128282;
  font-size: 18px;
  font-weight: 700;
}

.price strike {
  color: #6c757d;
  font-size: 13px;
}

/* Flex Helper Classes */
.flex-two {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-three {
  display: flex;
  align-items: center;
}

/* Mobile Alignment Tweaks */
@media (max-width: 575.98px) {
  .title-tour-list {
    min-height: auto;
  }
}