/* -- Index -- */

.image-box {
  width: 100%;
  height: 300px; /* Set desired consistent box height */
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}

.uniform-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills area and maintains aspect */
  display: block;
} 

/* New caption box under image */
.destination_caption_box {
  background: #ffffff;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 0 0 10px 10px;
  min-height: 100px;
}

.destination_caption_box h2 {
  font-size: 18px;
  margin: 0;
  color: #333;
  font-weight: 600;
}

.destination_caption_box h3 {
  font-size: 15px;
  margin-top: 5px;
  color: #666;
} 

.card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      max-width: 1100px;
      width: 100%;
    }

.flip-card-back .stars {
      font-size: 16px;
      margin-bottom: 8px;
      color: gold;
    } 

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 380px;
    perspective: 1000px;
    box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.flip-card-front {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flip-card-front img {
  width: 100%;
  height: 75%;
  object-fit: cover;
}

.flip-card-front .text {
  padding: 10px;
}

.flip-card-front h3 {
  font-size: 18px;
  color: #333;  
}

.flip-card-front p {
  font-size: 14px;
  color: #777;
}

.flip-card-back {
  background-color: #8e44ad;
  color: white;
  transform: rotateY(180deg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flip-card-back h3 {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

.flip-card-back p {
  font-size: 14px;
  margin-bottom: 12px;
  color: #f0f0f0;
}

.flip-card-back a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.flip-card-back a:hover {
  color: #ddd;
} 

.dest-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px -10px rgba(31,45,58,0.08);
  height: 100%; /* so slick/owl slide can stretch */
  position: relative;
}

.dest-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56%; /* 16:9 ratio; adjust to 50% or 60% if you want taller/shorter */
  overflow: hidden;
  flex-shrink: 0;
}
  .dest-card:hover{transform: translateY(-2px);}
  .dest-img{
    width:100%;    
    height: 180px;
    object-fit:cover;
    display:block;
  }
  .dest-info{
    padding:12px 14px;
    display:flex;
    flex-direction:column;
    gap:4px;
  }
  .small-tag{
    background: #f5efff;
    padding:4px 10px;
    border-radius:999px;
    font-size:10px;
    display:inline-block;
    font-weight:600;
    color: var(--main-color);
    width: fit-content;
    box-sizing: border-box;
  }
  .dest-title{margin:0;font-weight:700;font-size:1rem;color: var(--text);}
  .sub{margin:0;font-size:.75rem;color:#777;}
  .price{margin:4px 0 0;font-weight:700;font-size:.9rem;color: var(--main-color);}
  .stars-inline{
    font-size:12px;
    color: gold;
    margin-top:4px;
  } 

  .dest-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56%; /* 16:9 ratio; adjust to 50% or 60% if you want taller/shorter */
  overflow: hidden;
  flex-shrink: 0;
}

/* make carousel slides stretch so cards match height */
.destination-slider .slick-slide,
.Trending_tour_slider .owl-item {
  display: flex; /* so child .dest-card can stretch */
  align-items: stretch;
}

/* ensure each card fills the slide and is uniform */
.destination-slider .slick-slide > .dest-card,
.Trending_tour_slider .owl-item > .dest-card {
  flex: 1 1 auto;
}

/* baseline min height so small-content cards don’t shrink too much */
.dest-card {
  height: 380px; /* tweak this to desired uniform height */
}

/* image wrapper instead of inline sizes */
.dest-card > a {
  display: block;
}
.dest-card img {
  width: 100% !important;  
  object-fit: cover;
  display: block;
}

/* keep flex layout so price sticks to bottom */
.dest-info {
  display: flex;
  flex-direction: column;
}
.price {
  margin-top: auto;
}
