
/* ===============================
   FONT
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===============================
   ROOT THEME
================================ */
:root {
  --dark-blue: #0b2545;
  --green: #6cc24a;
  --white: #ffffff;
  --border: #e5e7eb;
  --text-dark: #111827;
  --text-muted: #6b7280;
}




/* ===============================
   GRID – DESKTOP (CARD GRID)
================================ */
.tour-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* ===============================
   CARD – BASE
================================ */
.tour-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, .08);
}

.tour-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ===============================
   IMAGE
================================ */
.tour-image {
  position: relative;
  aspect-ratio: 5 / 3;   /* 🔑 FIXES BLUR */
  overflow: hidden;
}

.tour-image img {
   width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* 🔑 SHARPNESS FIX */
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ===============================
   CATEGORY BADGE
================================ */
.tour-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;

  background: rgba(255,255,255,0.95);
  border: 1px solid #e5e7eb;
  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
  color: #111827;

  backdrop-filter: blur(6px);
}

/* ===============================
   CONTENT
================================ */
.tour-info {
  padding: 14px 16px 16px;
}

.tour-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  margin-top: 0px;
  color: #0f172a;
}

.tour-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 6px;
}

/* ===============================
   RATING
================================ */
.tour-rating {
  font-size: 14px;
  margin-bottom: 10px;
}

.stars {
  color: #f59e0b;
  font-weight: 700;
}

.reviews {
  font-size: 13px;
  color: #6b7280;
  margin-left: 4px;
}

/* ===============================
   PRICE
================================ */
.tour-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tour-price .old {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.tour-price .new {
  font-size: 19px;
  font-weight: 800;
  color: #dc2626;
}

.tour-price .per {
  font-size: 12px;
  color: #6b7280;
}

/* Hide mobile category by default (desktop & tablet) */
.tour-category-mobile {
  display: none;
}



/* ===============================
   TOUR BADGE (BASE)
================================ */
.tour-ribbon {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: #ffffff;
}

/* Variants */
.tour-ribbon-highlight { background: #2563eb; } /* Best Seller */
.tour-ribbon-ranked   { background: #0f766e; } /* Top Ranked */


.desktop-only { display: inline-block; }
.mobile-only  { display: none; }

.tour-image {
  position: relative;
}

.tour-image .tour-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}









/* ==================================================
   MOBILE – GETYOURGUIDE LIST LAYOUT (FINAL & SAFE)
================================================== */
@media (max-width: 768px) {

  /* ---------------- CARD ---------------- */
  .tour-card {
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden; /* 🔑 prevents screen overflow */
  }

  .tour-card > .tour-link {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
    max-width: 100%;
  }

  /* ---------------- IMAGE ---------------- */
  .tour-image {
    width: 30% !important;     /* ✅ GYG ratio */
    height: 125px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

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

  /* ❌ REMOVE IMAGE BADGE ON MOBILE */
  .tour-badge {
    display: none !important;
  }

  /* ---------------- CONTENT ---------------- */
  .tour-info {
    width: 62% !important;     /* ✅ balanced */
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
  }

  .tour-title {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
    font-weight: 700;
    color: #0f172a;
  }

 /* ---------------- META ROW ---------------- */
.tour-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.3;

  width: 100%;
  overflow: hidden;

  flex-wrap: nowrap;          /* 🔑 FIX: DO NOT WRAP */
}

/* Duration */
.tour-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;             /* 🔑 duration never collapses */
}

/* Category */
.tour-category-mobile {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  flex: 1 1 auto;             /* 🔑 take remaining space */
}


  /* ---------------- RATING ---------------- */
  .tour-rating {
    font-size: 13px;
    margin: 6px 0;
  }

  /* ---------------- PRICE ---------------- */
  .tour-price {
    margin-top: auto; /* stick to bottom like GYG */
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .tour-price .old {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
  }

  .tour-price .new {
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
  }

  .tour-price .per {
    font-size: 11.5px;
    color: #6b7280;
  }
  
  
}

/* ==========================================
   MOBILE – FORCE META VISIBILITY (FINAL FIX)
========================================== */
@media (max-width: 768px) {

  .tour-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;

    width: 100% !important;
    max-width: 100% !important;

    overflow: hidden !important;
    white-space: nowrap !important;

    flex-wrap: nowrap !important;
  }

  .tour-duration {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  .tour-category-mobile {
    flex: 1 1 auto !important;      /* 🔑 CRITICAL */
    min-width: 0 !important;        /* 🔑 CRITICAL */
    
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;

    font-size: 12px !important;
    font-weight: 500 !important;
    color: #475569 !important;
  }
}



@media (max-width: 768px) {

  .desktop-only { display: none !important; }
  .mobile-only  { display: inline-block !important; }

  .tour-info {
    position: relative;
  }

  .tour-info .tour-ribbon {
    position: absolute;
    top: 0;
    right: 0;

    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    z-index: 6;
  }

  /* Push title down so badge never overlaps */
  .tour-title {
    margin-top: 22px;
  }
}

.price-request {
  font-size: 15px;
  font-weight: 700;
  color: #0f766e;
  background: #ecfeff;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}



