/* =========================================================
   Hajj & Umrah Filter Pro — v15.2 "Reference Match"
   Matches the 4-screen reference exactly. Overrides frontend.css.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.hufp2, .hufp2 *{ box-sizing:border-box; }
.hufp2{
  --p:        #0E5C3A;          /* deep dark green */
  --p-2:      #0A4A2E;          /* darker hover   */
  --p-soft:   #E8F1EC;          /* soft green tint */
  --gold:     #C9A24C;
  --ink:      #111827;
  --ink-2:    #374151;
  --muted:    #6B7280;
  --line:     #E5E7EB;
  --line-2:   #EEF0F2;
  --surface:  #FFFFFF;
  --bg:       #FAFAF7;
  --danger:   #E11D48;

  --radius-sm: 10px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.05);
  --shadow-2: 0 6px 16px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.05);
  --shadow-3: 0 18px 40px rgba(15,23,42,.10), 0 6px 14px rgba(15,23,42,.06);

  --ease: cubic-bezier(.2,.7,.2,1);

  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

.hufp2 button{ font-family: inherit; }

/* ================= HERO ================= */
.hufp2 .hufp2-hero{
  position: relative;
  padding: 44px 20px 28px;
  background: linear-gradient(180deg,#FBFAF6 0%,#FFFFFF 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 22px;
}
.hufp2 .hufp2-hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(600px 260px at 12% 30%, rgba(14,92,58,.06), transparent 70%),
    radial-gradient(600px 260px at 88% 30%, rgba(201,162,76,.07), transparent 70%);
  pointer-events:none;
}
.hufp2 .hufp2-hero__inner{ position:relative; text-align:center; max-width: 900px; margin:0 auto; }

.hufp2 .hufp2-hero__title{
  font-family:'Playfair Display', Georgia, serif !important;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.12;
  color: var(--ink);
  margin: 14px 0 10px !important;
  letter-spacing:-.01em;
}
.hufp2 .hufp2-hero__sub{
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px !important;
}

/* ---------- Hajj / Umrah segmented toggle (top of hero) ---------- */
.hufp2 .hufp2-mode{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 5px;
  background: #F3F4F6;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  margin: 0 auto 4px;
}
.hufp2 .hufp2-mode__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 6px;
  height: 38px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s var(--ease);
  min-width: 96px;
}
.hufp2 .hufp2-mode__btn svg,
.hufp2 .hufp2-mode__btn em{ display:none !important; }
.hufp2 .hufp2-mode__btn:hover{ color: var(--ink); }
.hufp2 .hufp2-mode__btn.active{
  background: var(--p);
  color: #fff;
  box-shadow: 0 4px 10px rgba(14,92,58,.25);
}

/* ---------- Trust bar ---------- */
.hufp2 .hufp2-trust-bar{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap: 10px; margin-top: 16px;
}
.hufp2 .hufp2-trust-bar span{
  display:inline-flex; align-items:center; gap:8px;
  background:#fff;
  border:1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.hufp2 .hufp2-trust-bar span svg{
  width:16px; height:16px; color: var(--p); flex-shrink:0;
}

/* ================= FILTER BAR ================= */
.hufp2 .hufp2-bar{
  position: sticky; top: 0; z-index: 60;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-2);
}
.hufp2 .hufp2-bar__inner{
  display:flex; flex-direction:column; gap: 12px;
}

/* pills row */
.hufp2 .hufp2-pills{
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 1024px){
  .hufp2 .hufp2-pills{ grid-template-columns: repeat(3, 1fr); }
  .hufp2 .hufp2-pill--more{ grid-column: span 3; }
}
@media (max-width: 640px){
  .hufp2 .hufp2-pills{ grid-template-columns: repeat(2, 1fr); }
  .hufp2 .hufp2-pill--more{ grid-column: span 2; }
}

.hufp2 .hufp2-pill{ position: relative; min-width: 0; }

.hufp2 .hufp2-pill__btn{
  width:100%;
  display:flex; align-items:center; gap: 10px;
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 58px;
  padding: 8px 14px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  cursor:pointer;
  transition: all .18s var(--ease);
  text-align:left;
}
.hufp2 .hufp2-pill__btn:hover{ border-color: #CBD2D8; box-shadow: var(--shadow-1); }
.hufp2 .hufp2-pill__btn[aria-expanded="true"]{
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(14,92,58,.10);
}

.hufp2 .hufp2-pill__btn > svg:first-child{
  width:18px; height:18px; color: var(--p); flex-shrink:0;
}
.hufp2 .hufp2-pill__label{
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  font-weight:600; color: var(--ink);
}
.hufp2 .hufp2-pill__chev{
  width:16px; height:16px; color: var(--muted); flex-shrink:0;
  transition: transform .2s var(--ease);
}
.hufp2 .hufp2-pill__btn[aria-expanded="true"] .hufp2-pill__chev{ transform: rotate(180deg); }

.hufp2 .hufp2-pill__count{
  min-width:20px; height:20px; padding:0 6px;
  display:inline-flex; align-items:center; justify-content:center;
  background: var(--p); color:#fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
}

/* More Filters pill — accented when active */
.hufp2 .hufp2-pill--more .hufp2-pill__btn{
  background: #fff;
  border-color: var(--line);
}
.hufp2 .hufp2-pill--more .hufp2-pill__btn[aria-expanded="true"]{
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.hufp2 .hufp2-pill--more .hufp2-pill__btn[aria-expanded="true"] .hufp2-pill__label,
.hufp2 .hufp2-pill--more .hufp2-pill__btn[aria-expanded="true"] > svg:first-child,
.hufp2 .hufp2-pill--more .hufp2-pill__btn[aria-expanded="true"] .hufp2-pill__chev{ color:#fff; }
.hufp2 .hufp2-pill--more .hufp2-pill__btn[aria-expanded="true"] .hufp2-pill__count{
  background:#fff; color: var(--p);
}

/* ---------- Panels ---------- */
.hufp2 .hufp2-panel{
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px; max-width: 380px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 14px;
  z-index: 1000;
  animation: hufp2-fade .16s var(--ease);
}
@keyframes hufp2-fade{
  from{ opacity:0; transform: translateY(-4px); }
  to  { opacity:1; transform: none; }
}
.hufp2 .hufp2-panel--more{
  left: auto; right: 0;
  width: min(920px, calc(100vw - 40px));
  max-width: 920px;
  min-width: 320px;
}

.hufp2 .hufp2-panel__foot{
  display:flex; justify-content:space-between; align-items:center;
  gap: 10px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.hufp2 .hufp2-panel__clear{
  background: none; border: 0; color: var(--muted);
  font-weight: 600; font-size: 13px; cursor:pointer; padding: 8px 10px; border-radius: 8px;
}
.hufp2 .hufp2-panel__clear:hover{ color: var(--danger); background: #FEF2F2; }
.hufp2 .hufp2-panel__apply{
  background: var(--p); color:#fff;
  border: 0; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 13px; cursor:pointer;
  transition: background .15s var(--ease);
}
.hufp2 .hufp2-panel__apply:hover{ background: var(--p-2); }

.hufp2 .hufp2-panel__foot--more .hufp2-panel__apply::after{ content:''; }

/* ---------- Bar right (sort + view) ---------- */
.hufp2 .hufp2-bar__right{
  display:flex; align-items:center; justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--line-2);
}
.hufp2 .hufp2-bar__clear{
  display:inline-flex; align-items:center; gap: 8px;
  background: none; border: 0; color: var(--danger);
  font-weight: 600; font-size: 13px; cursor:pointer;
  padding: 8px 12px; border-radius: 8px;
  align-self: flex-start;
  order: -1;
}
.hufp2 .hufp2-bar__clear:hover{ background: #FEF2F2; }
.hufp2 .hufp2-bar__clear svg{ width:14px; height:14px; }
.hufp2 .hufp2-bar__badge{
  background: var(--danger); color:#fff;
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight:700;
}

.hufp2 .hufp2-sort{
  appearance: none;
  background:#fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 34px 10px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  cursor:pointer;
  height: 40px;
}
.hufp2 .hufp2-sort:focus{ outline: none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(14,92,58,.12); }

.hufp2 .hufp2-view-toggle{
  display:inline-flex; background:#F3F4F6; border-radius: 10px; padding: 3px;
  border: 1px solid var(--line);
}
.hufp2 .hufp2-view-btn{
  display:inline-flex; align-items:center; justify-content:center;
  width: 34px; height: 34px; padding: 0;
  border: 0; background: transparent; border-radius: 8px;
  color: var(--muted); cursor:pointer;
  transition: all .15s var(--ease);
}
.hufp2 .hufp2-view-btn svg{ width:16px; height:16px; }
.hufp2 .hufp2-view-btn:hover{ color: var(--ink); }
.hufp2 .hufp2-view-btn.active{
  background:#fff; color: var(--p);
  box-shadow: var(--shadow-1);
}

/* ---------- Checklist inside panels ---------- */
.hufp2 .hufp2-checklist{ list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y:auto; }
.hufp2 .hufp2-checklist li{ padding: 2px 0; }
.hufp2 .hufp2-checklist label{
  display:flex; align-items:center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor:pointer;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.hufp2 .hufp2-checklist label:hover{ background: var(--p-soft); }
.hufp2 .hufp2-checklist input[type="checkbox"]{ display:none; }
.hufp2 .hufp2-check__box{
  width:18px; height:18px; border-radius: 5px;
  border: 1.5px solid #CBD2D8; background:#fff;
  display:inline-flex; align-items:center; justify-content:center;
  transition: all .12s var(--ease); flex-shrink:0;
}
.hufp2 .hufp2-checklist input:checked + .hufp2-check__box{
  background: var(--p); border-color: var(--p);
}
.hufp2 .hufp2-checklist input:checked + .hufp2-check__box::after{
  content:''; width: 9px; height: 5px; border-left:2px solid #fff; border-bottom:2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.hufp2 .hufp2-check__name{ flex:1; }
.hufp2 .hufp2-check__count{
  background:#F3F4F6; color: var(--muted);
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight:600;
}

.hufp2 .hufp2-panel__search{
  display:flex; align-items:center; gap:8px;
  background: #F9FAFB; border:1px solid var(--line);
  padding: 8px 12px; border-radius: 10px; margin-bottom: 10px;
}
.hufp2 .hufp2-panel__search svg{ width:14px; height:14px; color: var(--muted); }
.hufp2 .hufp2-search-input{
  flex:1; border: 0; background: transparent; outline: none;
  font-size: 14px; color: var(--ink);
}

/* ---------- More Filters grid ---------- */
.hufp2 .hufp2-panel__more-inner{
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 1024px){ .hufp2 .hufp2-panel__more-inner{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){  .hufp2 .hufp2-panel__more-inner{ grid-template-columns: repeat(2, 1fr); } }

.hufp2 .hufp2-mgroup{ display:contents; }
.hufp2 .hufp2-mgroup__title{ display:none; }
.hufp2 .hufp2-mgroup__body{ display: contents; }

.hufp2 .hufp2-mfield{ display:flex; flex-direction: column; gap: 6px; min-width: 0; }
.hufp2 .hufp2-mfield__label{
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  display: inline-flex; align-items:center; gap: 6px;
}
.hufp2 .hufp2-mfield__label svg{ width:14px; height:14px; color: var(--muted); }
.hufp2 .hufp2-select{
  appearance:none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--line);
  padding: 10px 32px 10px 12px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  width: 100%; height: 42px;
}
.hufp2 .hufp2-select:focus{ outline:none; border-color: var(--p); box-shadow: 0 0 0 3px rgba(14,92,58,.12); }

.hufp2 .hufp2-tag-grid{ display:flex; flex-wrap:wrap; gap: 6px; }
.hufp2 .hufp2-tag{ position: relative; }
.hufp2 .hufp2-tag input{ position:absolute; opacity:0; pointer-events:none; }
.hufp2 .hufp2-tag span{
  display:inline-block; padding: 6px 12px; border-radius: 999px;
  background:#F3F4F6; color: var(--ink-2);
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
  cursor:pointer;
}
.hufp2 .hufp2-tag input:checked + span{
  background: var(--p-soft); color: var(--p); border-color: var(--p);
}

/* ================= RESULTS ================= */
.hufp2 .hufp2-results-wrap{ margin-top: 20px; position: relative; z-index: 1; }
.hufp2 .hufp2-results-head{ margin-bottom: 14px; }
.hufp2 .hufp2-count{
  display:inline-flex; align-items:center; gap: 8px;
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.hufp2 .hufp2-count::before{
  content:''; width:8px; height:8px; border-radius:50%; background: var(--p);
  box-shadow: 0 0 0 3px rgba(14,92,58,.15);
}
.hufp2 .hufp2-count__num{ color: var(--p); font-weight:700; }

/* Grid */
.hufp2 .hufp2-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hufp2 .hufp2-grid--3{ grid-template-columns: repeat(3, 1fr); }
.hufp2 .hufp2-grid--2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px){ .hufp2 .hufp2-grid, .hufp2 .hufp2-grid--3, .hufp2 .hufp2-grid--4{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px){  .hufp2 .hufp2-grid, .hufp2 .hufp2-grid--3, .hufp2 .hufp2-grid--4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){  .hufp2 .hufp2-grid, .hufp2 .hufp2-grid--3, .hufp2 .hufp2-grid--4, .hufp2 .hufp2-grid--2{ grid-template-columns: 1fr; } }

/* ================= PACKAGE CARD (dark image style) ================= */
.hufp2 .hufp2-pkg{
  position: relative;
  background: #0F1720;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  display:flex; flex-direction: column;
  color: #E5E7EB;
  min-height: 320px;
}
.hufp2 .hufp2-pkg:hover{ transform: translateY(-3px); box-shadow: var(--shadow-3); }

.hufp2 .hufp2-pkg__media{
  position: absolute; inset: 0;
  overflow: hidden;
}
.hufp2 .hufp2-pkg__media::after{
  content:''; position:absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.85) 100%);
}
.hufp2 .hufp2-pkg__img,
.hufp2 .hufp2-pkg__media img{
  width:100%; height:100%; object-fit: cover; display:block;
  transition: transform .5s var(--ease);
}
.hufp2 .hufp2-pkg:hover .hufp2-pkg__img{ transform: scale(1.05); }

.hufp2 .hufp2-pkg__badge{
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
  background: #F2C94C; color: #1F1300;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.hufp2 .hufp2-pkg__badge--verified{ background: var(--p); color:#fff; }
.hufp2 .hufp2-pkg__badge--accent{ background: #F2C94C; color: #1F1300; }

.hufp2 .hufp2-pkg__heart{
  position:absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9);
  display:inline-flex; align-items:center; justify-content:center;
  font-size: 16px; color: #374151;
  cursor: pointer; transition: all .15s var(--ease);
}
.hufp2 .hufp2-pkg__heart:hover{ background:#fff; color: var(--danger); transform: scale(1.05); }

.hufp2 .hufp2-pkg__body{
  position: relative; z-index: 1;
  margin-top: auto;
  padding: 16px;
  display:flex; flex-direction: column; gap: 4px;
}
.hufp2 .hufp2-pkg__title{
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700; line-height: 1.2;
  margin: 0 0 4px !important;
  color: #F2C94C;
}
.hufp2 .hufp2-pkg__title a{ color: inherit; text-decoration:none; }
.hufp2 .hufp2-pkg__title a:hover{ color: #F5D677; }
.hufp2 .hufp2-pkg__meta{
  color: #D1D5DB; font-size: 12px; font-weight: 500; margin: 0 0 4px !important;
}
.hufp2 .hufp2-pkg__chips{ display:flex; flex-wrap:wrap; gap: 4px; margin: 2px 0 6px !important; padding:0; }
.hufp2 .hufp2-pkg__chips span{
  padding: 2px 8px; border-radius: 999px;
  background: rgba(255,255,255,.10); color: #E5E7EB;
  font-size: 11px; font-weight: 500;
}
.hufp2 .hufp2-pkg__rating{ color: #F2C94C; font-size: 12px; margin: 2px 0 !important; }

.hufp2 .hufp2-pkg__foot{
  display:flex; flex-direction: column; gap: 10px;
  padding-top: 8px;
  border: 0;
}
.hufp2 .hufp2-pkg__price{
  display:flex; flex-direction: column; gap: 0;
  color:#fff;
}
.hufp2 .hufp2-pkg__price span{
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #9CA3AF; font-weight:600;
}
.hufp2 .hufp2-pkg__price .amount,
.hufp2 .hufp2-pkg__price bdi{ color:#fff !important; font-size: 20px; font-weight: 800; }
.hufp2 .hufp2-pkg__price ins{ text-decoration:none; }

.hufp2 .hufp2-pkg__foot .hufp2-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  background: var(--p); color:#fff !important;
  border: 0; text-decoration:none !important;
  cursor:pointer;
  transition: background .15s var(--ease), transform .1s var(--ease);
  width:100%;
}
.hufp2 .hufp2-pkg__foot .hufp2-btn:hover{ background: var(--p-2); }

/* skeleton */
.hufp2 .hufp2-skel{
  background:#fff; border-radius: var(--radius-lg); border:1px solid var(--line);
  overflow:hidden; min-height: 320px;
}
.hufp2 .hufp2-skel__img{ height: 160px; background: linear-gradient(90deg,#EEF0F2,#F5F6F8,#EEF0F2); background-size: 200% 100%; animation: hufp2-shim 1.4s infinite; }
.hufp2 .hufp2-skel__body{ padding: 14px; }
.hufp2 .hufp2-skel__line{ height: 12px; border-radius: 6px; background:#EEF0F2; margin-bottom: 8px; }
.hufp2 .hufp2-skel__line--short{ width: 60%; }
.hufp2 .hufp2-skel__line--xshort{ width: 40%; }
@keyframes hufp2-shim{ 0%{background-position: 200% 0} 100%{background-position: -200% 0} }

/* ========== Chips bar ========== */
.hufp2 .hufp2-chips-bar{ margin: 10px 0 18px; }
.hufp2 .hufp2-chips-inner{ display:flex; flex-wrap:wrap; gap: 8px; }
.hufp2 .hufp2-chip{
  background:#fff; border:1px solid var(--line); color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor:pointer;
  transition: all .15s var(--ease);
}
.hufp2 .hufp2-chip:hover{ border-color: var(--p); color: var(--p); }
.hufp2 .hufp2-chip.active{ background: var(--p); color:#fff; border-color: var(--p); }

/* ========== Active tag pills ========== */
.hufp2 .hufp2-active-tags{ display:flex; flex-wrap:wrap; gap: 6px; }
.hufp2 .hufp2-active-tags:empty{ display:none; }

/* ========== Mobile sticky + drawer already styled; small tweaks ========== */
.hufp2 .hufp2-mobile-sticky{ display:none; }
@media (max-width: 640px){
  .hufp2 .hufp2-mobile-sticky{
    display:flex; align-items:center; justify-content:space-between;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    background: var(--p); color:#fff; padding: 10px 14px; border-radius: 999px;
    box-shadow: var(--shadow-3);
  }
  .hufp2 .hufp2-mobile-sticky__filter{
    background:transparent; border:0; color:#fff; font-weight:700; display:inline-flex; align-items:center; gap:8px;
  }
}

/* Range widget quick polish */
.hufp2 .hufp2-range-widget__values{ display:flex; align-items:flex-end; gap:10px; margin-bottom: 12px; }
.hufp2 .hufp2-range-widget__val{ flex:1; }
.hufp2 .hufp2-range-widget__val label{ font-size: 11px; text-transform:uppercase; letter-spacing:.06em; color: var(--muted); font-weight: 600; }
.hufp2 .hufp2-range-widget__box{
  margin-top: 4px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
  font-weight: 700; color: var(--ink); background:#F9FAFB;
}
.hufp2 .hufp2-range-widget__sep{ padding-bottom: 12px; color: var(--muted); }
.hufp2 .hufp2-range-widget__track{
  position:relative; height: 4px; background:#E5E7EB; border-radius: 999px; margin: 20px 8px;
}
.hufp2 .hufp2-range-widget__fill{ position:absolute; height:100%; background: var(--p); border-radius: 999px; }
.hufp2 .hufp2-range-widget__thumb{
  position:absolute; top:50%; width:18px; height:18px; border-radius:50%;
  background:#fff; border: 2px solid var(--p); transform: translate(-50%, -50%);
  cursor:pointer; box-shadow: var(--shadow-1);
}
.hufp2 .hufp2-range-widget__ticks{ display:flex; justify-content:space-between; font-size: 11px; color: var(--muted); margin-top: 8px; }

/* ==== Reference-match fixes ==== */
/* Respect hidden attribute for count badges */
.hufp2 [hidden]{ display:none !important; }

/* Default-active Hajj when nothing selected yet (matches reference screen 1) */
.hufp2 .hufp2-mode:not(:has(.active)) .hufp2-mode__btn[data-journey="hajj"]{
  background: var(--p);
  color: #fff;
  box-shadow: 0 4px 10px rgba(14,92,58,.25);
}

/* ====================================================================
   v15.4 FIXES (keep v15.2 UI, patch only)
   ==================================================================== */

/* --- 1) Z-INDEX: dropdowns float without resizing the layout --- */
.hufp2 .hufp2-bar{ overflow: visible !important; z-index: 100; }
.hufp2 .hufp2-bar__inner,
.hufp2 .hufp2-pills{ overflow: visible !important; }
.hufp2 .hufp2-pill{ position: relative; }
.hufp2 .hufp2-pill.is-open{ z-index: 500; }
.hufp2 .hufp2-panel{ z-index: 1000 !important; position: absolute; }
.hufp2 .hufp2-results-wrap,
.hufp2 .hufp2-results,
.hufp2 .hufp2-grid,
.hufp2 .hufp2-list{ position: relative; z-index: 1; isolation: auto !important; }

/* --- 2) Active Hajj/Umrah pill: force visible WHITE label --- */
.hufp2 .hufp2-mode__btn.active,
.hufp2 .hufp2-mode__btn.active *{
  color: #ffffff !important;
}
.hufp2 .hufp2-mode__btn.active span{
  display: inline-block !important;
  font-weight: 700;
  letter-spacing: .1px;
}
.hufp2 .hufp2-mode:not(:has(.active)) .hufp2-mode__btn[data-journey="hajj"],
.hufp2 .hufp2-mode:not(:has(.active)) .hufp2-mode__btn[data-journey="hajj"] *{
  color: #ffffff !important;
}

/* --- 3) When one mode is active, the OTHER pill is small + grayed sibling on the right --- */
.hufp2 .hufp2-mode{
  display: inline-flex; align-items: center; gap: 6px;
}
.hufp2 .hufp2-mode:has(.hufp2-mode__btn.active) .hufp2-mode__btn:not(.active),
.hufp2 .hufp2-mode:not(:has(.active)) .hufp2-mode__btn[data-journey="umrah"]{
  height: 30px;
  padding: 0 14px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  background: #F3F4F6 !important;
  color: #8A968F !important;
  box-shadow: none !important;
  opacity: .85;
  order: 2; /* keep it to the right of the active pill */
}
.hufp2 .hufp2-mode:has(.hufp2-mode__btn.active) .hufp2-mode__btn.active,
.hufp2 .hufp2-mode:not(:has(.active)) .hufp2-mode__btn[data-journey="hajj"]{
  order: 1;
}
.hufp2 .hufp2-mode:has(.hufp2-mode__btn.active) .hufp2-mode__btn:not(.active):hover,
.hufp2 .hufp2-mode:not(:has(.active)) .hufp2-mode__btn[data-journey="umrah"]:hover{
  background: #E5E7EB !important;
  color: #374151 !important;
  opacity: 1;
}

/* --- 4) "More filters" popup: wider, taller, easier to use (v15.5) --- */
.hufp2 .hufp2-panel--more{
  width: min(1240px, calc(100vw - 32px)) !important;
  max-width: 1240px !important;
  max-height: min(78vh, 760px) !important;
  padding: 24px 28px !important;
  right: 0; left: auto;
  display: flex; flex-direction: column;
}
.hufp2 .hufp2-panel--more .hufp2-panel__more-inner{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 26px;
  overflow-y: auto;
  padding-right: 6px;
  flex: 1 1 auto;
}
@media (max-width: 1080px){
  .hufp2 .hufp2-panel--more .hufp2-panel__more-inner{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .hufp2 .hufp2-panel--more{ width: calc(100vw - 20px) !important; padding: 18px !important; }
  .hufp2 .hufp2-panel--more .hufp2-panel__more-inner{ grid-template-columns: 1fr; }
}
.hufp2 .hufp2-panel--more .hufp2-mgroup{
  background: #FBFBF9;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 14px;
}
.hufp2 .hufp2-panel--more .hufp2-mgroup__title{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--p);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.hufp2 .hufp2-panel--more .hufp2-mgroup__body{
  display: flex; flex-direction: column; gap: 14px;
}
.hufp2 .hufp2-panel--more .hufp2-mfield__label{
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #1f2937;
  margin-bottom: 8px;
}
.hufp2 .hufp2-mfield__empty{
  font-size: 12.5px; color: #6b7280;
  background: #fff; border: 1px dashed var(--line);
  border-radius: 8px; padding: 10px 12px; line-height: 1.4;
}
.hufp2 .hufp2-panel--more .hufp2-panel__foot{
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}
