/* =========================
       Tour Search Page
=========================*/
.common_banner .overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    inset: 0;
}

.cruise_search_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    /* Slightly increased height */
    padding: 25px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    width: 95%;
    /* Makes each box wider */
}

.wider-listing {
    max-width: 500px;
    /* Set a max width */
    margin: auto;
    /* Center align */
}

.cruise_item_img img {
    width: 100%;
    height: 320px;
    /* Increased image height */
    object-fit: cover;
    border-radius: 10px;
}

.cruise_item_inner_content {
    flex-grow: 1;
    width: 100%;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cruise_content_middel_wrapper {
    margin: 15px 0;
    text-align: center;
}

.cruise_content_bottom_wrapper ul {
    display: flex;
    flex-wrap: wrap;
    /* Allows items to move to the next row when needed */
    gap: 6px;
    /* Adds spacing between items */
    padding: 0;
    padding-bottom: 6px;
    list-style: none;
    justify-content: center;
    /* Centers items for better alignment */
}

.cruise_content_bottom_wrapper ul li {
    background: #f8f9fa;
    padding: 4px 6px;
    border-radius: 5px;
    align-items: center;
    white-space: nowrap;
    /* Ensures text doesn’t break */
}

:root {
    --main-color: #6f42c1;
    --text: #1f2d3a;
    --muted: #6e6e7a;
    --radius: 12px;
    --shadow: 0 20px 50px -10px rgba(31, 45, 58, 0.08);
    --bg: #f5f7fc;
    --price-accent: #6f42c1;
    --transition: .25s cubic-bezier(.4, .2, .2, 1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    padding: 30px;
    color: var(--text);
}

.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.tour-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: none;
    /* override the 500px limit */
    margin: 0 -6px;
}

.tour-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 380px;
    transition: transform var(--transition), box-shadow var(--transition);
    margin: 0 6px;
    min-width: 260px;
}

.tour-slider .tour-card {
    flex: 0 0 calc(50% - 12px);
    margin: 6px;
    /* same gutter all around */
}

.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 70px -10px rgba(31, 45, 58, 0.15);
}

.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 52%;
    overflow: hidden;
    flex: 0 0 auto;
}

.image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 320px;
    ;
    object-fit: cover;
    display: block;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--main-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
}

.tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    color: var(--main-color);
    box-shadow: 0 8px 25px -5px rgba(31, 45, 58, 0.06);
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.card-body {
    padding: 12px 14px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    font-size: 13px;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.tour-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    flex: 1 1 auto;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* constrain all SVG icons used in meta, rating, duration */
.rating svg,
.meta svg,
.duration svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
    font-size: 0.85rem;
}

.stars {
    display: inline-block;
    color: #f1c40f;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1;
    letter-spacing: 1px;
    margin-right: 4px;
}

.meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 4px;
}

.features {
    margin: 6px 0 4px;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    padding-left: 12px;
}

.features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 5px;
    background: var(--main-color);
    border-radius: 50%;
}

.duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: auto;
}

.price-block {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.original-price {
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: line-through;
}

.new-price-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.new-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--price-accent);
    margin: 0;
    line-height: 1;
}

.per-person {
    font-size: 0.80rem;
    color: #666;
    margin-left: 2px;
}

.buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid transparent;
    min-width: 90px;
}

.btn-details {
    background: #fff;
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn-details:hover {
    background: var(--main-color);
    color: #fff;
}

.btn-book {
    background: var(--main-color);
    color: #fff;
    border: none;
    box-shadow: 0 15px 45px -10px rgba(111, 66, 193, 0.35);
}

.btn-book:hover {
    filter: brightness(1.07);
}

.slick-arrow {
    background: #fff;
    border-radius: 50%;
    border: 1px solid rgba(31, 45, 58, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px -5px rgba(31, 45, 58, 0.1);
    transition: .2s;
}

.slick-arrow:hover {
    transform: scale(1.05);
}

.slick-prev:before,
.slick-next:before {
    content: none;
}

.slick-dots {
    display: none;
}

@media (max-width:1024px) {
    .tour-card {
        min-width: 220px;
    }
}

@media (max-width:800px) {
    .tour-card {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .tour-slider .tour-card {
        flex: 0 0 100%;
    }
} 

/* ──────────────────────────────────────────────── 
   1) Make the slider a wrapping flex-grid 
──────────────────────────────────────────────── */
.tour-slider {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;             /* neutralize child padding/gutter */
}
.tour-slider .col-lg-6 {
  flex: 0 0 50%;              /* two cards per row */
  max-width: 50%;
  padding: 0 12px;            /* gutter */
  box-sizing: border-box;
  margin-bottom: 24px;        /* vertical spacing */
}

/* ──────────────────────────────────────────────── 
   2) Equal-height cards inside each column 
──────────────────────────────────────────────── */
.tour-card {
  display: flex;
  flex-direction: column;
  height: 100%;               /* fill its column */
}

/* Optional: fix your image height so all cards match  */
/* (adjust 180px to whatever consistent height you like) */
.image-wrapper img,
.image-wrapper .no-image-placeholder {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* ──────────────────────────────────────────────── 
   3) Keep stars + rating number on one line 
──────────────────────────────────────────────── */
.rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;        /* no wrapping */
}
.rating-row .stars {
  font-size: 0.9rem;          /* adjust as needed */
  line-height: 1;
}
.rating-row > div:last-child {
  font-size: 0.8rem;
  color: #555;
}

/* in custom_tour_search.css */

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;        /* prevent any child from wrapping */
}

/* if your package names can be long, ellipsize them so they don’t force-wrap the rating */
.tour-title {
  flex: 1 1 auto;           /* allow it to shrink */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* make sure your rating never shrinks */
.rating {
  flex-shrink: 0;
  white-space: nowrap;      /* just in case */
}
