/* ============================================================
   paket-list.css — Halaman List & Filter Paket Umroh
   Dream Tours and Travel
   Hanya selector BARU yang tidak ada di style.css
   ============================================================ */

/* ── PAGE HERO / BANNER ─────────────────────────────────────── */
.list-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  padding: 52px 0 56px;
  position: relative;
  overflow: hidden;
}
.list-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(200,149,42,.07); pointer-events: none;
}
.list-hero::after {
  content: ''; position: absolute; left: -40px; bottom: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(200,149,42,.05); pointer-events: none;
}
.list-hero-inner { position: relative; z-index: 2; }
.list-hero h1    { color: white; font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 10px; font-family: var(--ff-lato); font-weight: 700; }
.list-hero p     { color: rgba(255,255,255,.72); font-size: 15.5px; margin: 0; font-family: var(--ff-lato); }

/* breadcrumb variant for dark bg */
.bc-dark           { margin-bottom: 20px; }
.bc-dark .breadcrumb-item,
.bc-dark .breadcrumb-item a { color: rgba(255,255,255,.55); font-size: 13px; }
.bc-dark .breadcrumb-item a:hover { color: var(--gold-light); }
.bc-dark .breadcrumb-item.active { color: rgba(255,255,255,.9); font-weight: 600; }
.bc-dark .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* hero quick counts */
.list-hero-stats   { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; font-family: var(--ff-lato); }
.list-hero-stat    { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 13.5px; }
.list-hero-stat i  { color: var(--gold-light); font-size: 15px; }
.list-hero-stat strong { color: white; }

/* ── LAYOUT: SIDEBAR + GRID ─────────────────────────────────── */
.list-layout       { padding: 40px 0 72px; }
.list-sidebar      {
  position: sticky;
  top: 82px;
  align-self: flex-start;
  max-height: calc(100vh - 106px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.list-content      { /* right col */ }

/* ── FILTER SIDEBAR ─────────────────────────────────────────── */
.filter-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
}

/* filter header */
.filter-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-header h5  { color: white; font-size: 15px; font-weight: 700; margin: 0; font-family: var(--ff); display: flex; align-items: center; gap: 8px; }
.filter-header h5 i{ color: var(--gold-light); }
.filter-reset      { background: rgba(255,255,255,.15); border: none; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600; border-radius: 20px; padding: 4px 12px; cursor: pointer; font-family: var(--ff); transition: all .2s; text-decoration: none; }
.filter-reset:hover{ background: rgba(255,255,255,.25); color: white; }

/* active filter chips (above grid) */
.active-filters    { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.af-label          { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.af-chip           { display: inline-flex; align-items: center; gap: 6px; background: rgba(29,45,74,.08); border: 1px solid rgba(29,45,74,.15); color: var(--navy); font-size: 12px; font-weight: 600; padding: 4px 10px 4px 12px; border-radius: 20px; cursor: pointer; transition: all .2s; text-decoration: none; }
.af-chip.active    { background: var(--navy); border-color: var(--navy); color: white; }
.af-chip:hover     { background: rgba(200,149,42,.1); border-color: var(--gold); color: var(--gold); }
.af-chip i         { font-size: 10px; }
.af-clear-all      { background: none; border: none; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px; font-family: var(--ff); text-decoration: underline; transition: color .2s; }
.af-clear-all:hover{ color: #dc2626; }

/* filter group */
.filter-group      { border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }

.filter-group-head {
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background .2s;
}
.filter-group-head:hover { background: var(--off-white); }
.filter-group-title { font-size: 13px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 8px; font-family: var(--ff); }
.filter-group-title i { width: 22px; height: 22px; background: rgba(29,45,74,.08); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--navy); flex-shrink: 0; }
.filter-chevron    { color: var(--muted); font-size: 11px; transition: transform .25s; }
.filter-group.open .filter-chevron { transform: rotate(180deg); }

/* count badge next to group title */
.filter-count-badge { background: var(--navy); color: white; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; margin-left: auto; margin-right: 8px; }

.filter-group-body { padding: 4px 20px 14px; display: none; }
.filter-group.open .filter-group-body { display: block; }

/* individual filter option */
.filter-option     { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; cursor: pointer; text-decoration: none; }
.filter-option:hover .fo-label { color: var(--navy); }
.fo-left           { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.fo-check          { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s; background: white; }
.filter-option.checked .fo-check { background: var(--navy); border-color: var(--navy); }
.filter-option.checked .fo-check::after { content: ''; width: 9px; height: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translateY(-1px); display: block; }
.fo-label          { font-size: 13px; color: var(--text); transition: color .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-option.checked .fo-label { color: var(--navy); font-weight: 600; }
.fo-count          { font-size: 11px; color: var(--muted); background: var(--off-white); border: 1px solid var(--border); border-radius: 20px; padding: 1px 7px; flex-shrink: 0; }

/* radio-style option (single select) */
.filter-option.radio .fo-check { border-radius: 50%; }
.filter-option.radio.checked .fo-check::after { width: 8px; height: 8px; background: white; border-radius: 50%; border: none; transform: none; display: block; }

/* price range slider */
.price-range-wrap  { padding: 8px 0 4px; }
.price-range-track { position: relative; height: 4px; background: var(--border); border-radius: 2px; margin: 20px 0 10px; }
.price-range-fill  { position: absolute; height: 100%; background: var(--navy); border-radius: 2px; left: 0; right: 0; }
.price-range-input { width: 100%; -webkit-appearance: none; appearance: none; background: transparent; position: absolute; top: -8px; height: 20px; cursor: pointer; pointer-events: none; }
.price-range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--navy); border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 8px rgba(29,45,74,.3); pointer-events: all; }
.price-range-vals  { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--navy); }

/* search within filter */
.filter-search     { position: relative; margin-bottom: 10px; }
.filter-search input { width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 7px 10px 7px 30px; font-size: 12.5px; font-family: var(--ff); outline: none; color: var(--text); }
.filter-search input:focus { border-color: var(--navy); }
.filter-search i   { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; }

/* show more link */
.filter-show-more  { font-size: 12px; color: var(--navy); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; }
.filter-show-more:hover { color: var(--gold); }

/* Mobile filter trigger */
.filter-mobile-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--ff);
  transition: all .2s;
}
.filter-mobile-btn:hover { border-color: var(--navy); }
.filter-badge-count { background: var(--navy); color: white; font-size: 11px; font-weight: 700; border-radius: 20px; padding: 1px 8px; }

/* Mobile filter drawer overlay */
.filter-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1060;
  opacity: 0;
  transition: opacity .3s;
}
.filter-overlay.active { display: block; opacity: 1; }
.filter-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 1061;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.filter-drawer.active { transform: translateY(0); }
.filter-drawer-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: white; z-index: 1; }
.filter-drawer-header h5 { font-size: 16px; font-weight: 700; margin: 0; color: var(--navy); font-family: var(--ff); }
.filter-drawer-close { background: var(--off-white); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); font-size: 14px; }
.filter-apply-btn { display: none; width: 100%; padding: 14px; background: var(--navy); color: white; border: none; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--ff); border-radius: 30px; margin-top: 16px; }

/* ── TOOLBAR (sort + view toggle + count) ───────────────────── */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.toolbar-count     { font-size: 14px; color: var(--muted); margin-right: auto; }
.toolbar-count strong { color: var(--navy); font-weight: 700; }

/* sort select */
.sort-select-wrap  { position: relative; }
.sort-select       { border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 32px 8px 12px; font-size: 13px; font-family: var(--ff); color: var(--text); background: white; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
.sort-select:focus { border-color: var(--navy); }
.sort-select-wrap::after { content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 11px; pointer-events: none; }

/* view toggle */
.view-toggle       { display: flex; gap: 4px; background: var(--off-white); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.view-btn          { width: 32px; height: 32px; border: none; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all .2s; }
.view-btn.active   { background: white; color: var(--navy); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

/* ── PACKAGE GRID ───────────────────────────────────────────── */
.pkg-grid          { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; transition: all .3s; }
.pkg-grid.view-3   { grid-template-columns: repeat(3, 1fr); }
.pkg-grid.view-list { grid-template-columns: 1fr; }

/* all package thumbnails 1:1 (grid & list views) */
.pkg-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}
.pkg-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* LIST VIEW card variant */
.pkg-grid.view-list .pkg-card { flex-direction: row; height: auto; }
.pkg-grid.view-list .pkg-img  { width: 240px; height: 240px; flex-shrink: 0; border-radius: 0; }
.pkg-grid.view-list .pkg-body { padding: 20px 22px; justify-content: center; }
.pkg-grid.view-list .pkg-body h4 { font-size: 18px; }
.pkg-grid.view-list .pkg-footer { margin-top: 12px; }

/* card enhancements for list page: wishlist + compare */
.pkg-actions-top   { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; gap: 6px; }
.pkg-action-btn    { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 13px; color: var(--muted); transition: all .2s; }
.pkg-action-btn:hover { background: white; transform: scale(1.1); }
.pkg-action-btn.liked { color: #ef4444; }
.pkg-action-btn.compared { color: var(--navy); }

/* popularity badge variant */
.pkg-badge.hot   { background: #ef4444; color: white; border-color: transparent; }
.pkg-badge.new   { background: #16a34a; color: white; border-color: transparent; }
.pkg-badge.promo { background: var(--gold); color: white; border-color: transparent; }

/* Rating row on card */
.pkg-rating       { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pkg-rating-stars { color: #f59e0b; font-size: 11px; }
.pkg-rating-val   { font-size: 12px; font-weight: 700; color: var(--text); }
.pkg-rating-count { font-size: 11px; color: var(--muted); }

/* departure next batch pill */
.pkg-next-dep     { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--navy-mid); background: rgba(29,45,74,.06); border: 1px solid rgba(29,45,74,.1); padding: 3px 9px; border-radius: 20px; margin-bottom: 10px; }
.pkg-next-dep.soon { color: #ea580c; background: rgba(234,88,12,.07); border-color: rgba(234,88,12,.15); }
.pkg-next-dep i   { font-size: 10px; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state       { text-align: center; padding: 72px 24px; }
.empty-state-icon  { font-size: 56px; color: var(--border); margin-bottom: 20px; }
.empty-state h4    { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.empty-state p     { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ── PAGINATION ─────────────────────────────────────────────── */
.list-pagination   { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn          { width: 38px; height: 38px; border: 1.5px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .2s; background: white; font-family: var(--ff); }
.page-btn:hover    { border-color: var(--navy); color: var(--navy); }
.page-btn.active   { background: var(--navy); border-color: var(--navy); color: white; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }
.page-btn.disabled:hover { border-color: var(--border); color: var(--text); }
.page-dots         { color: var(--muted); font-size: 14px; padding: 0 4px; }

/* ── STICKY COMPARE BAR (bottom) ────────────────────────────── */
.compare-bar       { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); color: white; padding: 14px 0; z-index: 1040; transform: translateY(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: 0 -4px 24px rgba(29,45,74,.3); }
.compare-bar.visible { transform: translateY(0); }
.compare-bar-inner { display: flex; align-items: center; gap: 16px; }
.compare-items     { display: flex; gap: 10px; flex: 1; overflow: hidden; }
.compare-slot      { background: rgba(255,255,255,.1); border: 1.5px dashed rgba(255,255,255,.3); border-radius: 8px; padding: 6px 14px; font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; position: relative; }
.compare-slot.filled { background: rgba(255,255,255,.15); border-style: solid; border-color: rgba(255,255,255,.3); color: white; }
.compare-slot-remove { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.2); border: none; border-radius: 50%; width: 16px; height: 16px; color: white; cursor: pointer; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.compare-bar-label { font-size: 13px; color: rgba(255,255,255,.7); white-space: nowrap; }
.compare-btn       { background: var(--gold); color: white; border: none; border-radius: 20px; padding: 9px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: var(--ff); white-space: nowrap; transition: all .2s; }
.compare-btn:hover { background: var(--gold-light); }
.compare-clear     { background: rgba(255,255,255,.1); border: none; color: rgba(255,255,255,.7); font-size: 12px; cursor: pointer; font-family: var(--ff); border-radius: 20px; padding: 6px 14px; transition: all .2s; }
.compare-clear:hover { background: rgba(255,255,255,.2); color: white; }

/* ── SIDEBAR CTA BLOCK ──────────────────────────────────────── */
.sidebar-cta       { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--rl); padding: 24px 20px; text-align: center; margin-top: 16px; }
.sidebar-cta h5    { color: white; font-size: 15px; margin-bottom: 8px; font-family: var(--ff); font-weight: 700; }
.sidebar-cta p     { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 16px; line-height: 1.6; }
.sidebar-cta-btn   { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: white; border: none; border-radius: 22px; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; font-family: var(--ff); transition: all .2s; text-decoration: none; }
.sidebar-cta-btn:hover { background: #1ebe5d; color: white; transform: translateY(-1px); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .pkg-grid        { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid.view-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .list-sidebar    { display: none; }
  .filter-mobile-btn { display: flex; }
  .pkg-grid        { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid.view-3 { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid.view-list .pkg-card { flex-direction: column; }
  .pkg-grid.view-list .pkg-img  { width: 100%; aspect-ratio: 1 / 1; height: auto; }
}

@media (max-width: 640px) {
  .pkg-grid, .pkg-grid.view-3 { grid-template-columns: 1fr; }
  .list-hero h1    { font-size: 1.7rem; }
  .compare-items   { display: none; }
}
