.search-bar-top { top: 100px; }
.sidebar { top: 100px; }
/* Packages page layout */

.packages-page {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 50px;
}
@media (max-width: 900px) {
  .packages-page { grid-template-columns: 1fr; }
}
header{
    background-color: #f3f4f6;
}

/* Top Search Bar */
.search-bar-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;

  /* ✅ Sticky for desktop/laptop */
  position: sticky;
  top: 100px;           /* header height offset */
  z-index: 5;
  background: var(--color-page, transparent);
  padding-block: 4px;
}
.search-bar-top input#searchInput {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--font-size-md);
}
.result-count {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* When inside header on mobile, remove sticky layout spacing */
@media (max-width: 900px) {
  .search-bar-top { position: static; margin: 8px 0 0 0; }
  .result-count { display: none; } /* space save on small screens */
}

/* Sidebar */
.sidebar {
  background: var(--color-surface);
  padding: 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-card-border);
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* ✅ Remove filters on phone (sidebar hidden) */
@media (max-width: 900px) {
  .sidebar { display: none; }
 .packages-page{
    margin-top: -60px;
 }
}

/* Grid Responsive Fix */
.packages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .packages__grid { grid-template-columns: 1fr; }
}

/* Tablet tweaks */
@media (min-width: 601px) and (max-width: 900px) {
  .packages__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop tweaks */
@media (min-width: 901px) {
  .packages__grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* ====== Card height adjustments ====== */
.package-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Image smaller */
.package-card__image {
  width: 100%;
  height: 160px;  /* default desktop */
  overflow: hidden;
}
.package-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile smaller image */
@media (max-width: 600px) {
  .package-card__image { height: 120px; }
}

/* Body compact */
.package-card__content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px; /* reduced gap */
}

.package-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.package-card__duration,
.package-card__price,
.package-card__original-price,
.package-card__reviews {
  font-size: 13px;
  line-height: 1.4;
}

.package-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;              /* ✅ gap reduced */
  margin-top: 4px;
}
.package-card__highlight-item {
  font-size: 12px;
  padding: 3px 6px;      /* ✅ smaller padding */
  border-radius: var(--radius-full);
  background: var(--color-muted-bg, #f3f4f6);
  color: var(--color-text-secondary);
  line-height: 1.2;
}

/* Helpers for the mobile mount spacing */
.mobile-search-mount { flex: 1 1 auto; max-width: 520px; margin: 0 12px; }
@media (min-width: 901px) {
  .mobile-search-mount { display: none; }
}
/* ===== keep your existing CSS above (unchanged) ===== */
*main .container { display:none; } /* (existing line retained) */

/* ... your existing packages page, search bar, sidebar, grid, cards etc ... */

/* ---------- Custom Tour (sidebar card) ---------- */
.custom-tour-card{
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.custom-tour__title{ margin:0 0 4px 0; }
.custom-tour__hint{ margin:0 0 10px 0; font-size:13px; color:var(--color-text-secondary); }
.custom-tour__form{ display:flex; flex-direction:column; gap:10px; }
.custom-tour__form .grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.custom-tour__form input,
.custom-tour__form select,
.custom-tour__form textarea{
  width:100%;
  padding:10px 12px;
  font-size:14px;
  border:1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.custom-tour__form textarea{ resize:vertical; }
.w-100{ width:100%; }
.form-mini-note{ font-size:12px; color:var(--color-text-secondary); text-align:center; }

/* Responsive form grid */
@media (max-width: 600px){
  .custom-tour__form .grid-2{ grid-template-columns:1fr; }
}

/* ---------- Mobile CTA button ---------- */
.custom-tour-cta{
  position: fixed;
  right: 16px;
  bottom: 90px; /* above footer / safe area */
  z-index: 40;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  display: none; /* only mobile */
}
@media (max-width: 900px){
  .custom-tour-cta{ display: inline-flex; align-items: center; gap:8px; }
}

/* ---------- Modal (mobile & tablet) ---------- */
.ct-modal{ position: fixed; inset: 0; z-index: 50; display:none; }
.ct-modal[aria-hidden="false"]{ display:block; }
.ct-modal__backdrop{
  position:absolute; inset:0; background: rgba(0,0,0,.45);
}
.ct-modal__dialog{
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: min(640px, 100%);
  background: var(--color-page, #fff);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  max-height: 85vh; overflow:auto;
}
.ct-modal__title{ margin: 4px 0 12px 0; }
.ct-modal__close{
  position:absolute; right: 10px; top: 10px;
  border:none; background: transparent; font-size: 18px; cursor:pointer;
}

/* Hide sidebar on mobile as before, but mobile CTA handles access */
@media (max-width: 900px){
  .sidebar{ display:none; }
  .packages-page{ margin-top: -60px; } /* (your existing tweak retained) */
}
