/* ============================================================
   UMRAH PACKAGES — PREMIUM BLUE UI (v3)
   packages-reference.css
   ============================================================ */

/* ─── HERO ─────────────────────────────────────────────────── */
.packages-reference-hero {
  position: relative;
  min-height: 440px;
  background:
    url('https://images.unsplash.com/photo-1565552645632-d725f8bfc19a?auto=format&fit=crop&w=2000&q=88')
    center 40% / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 0 5.5rem;
  overflow: hidden;
}

.package-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11,34,80,.96) 0%, rgba(11,34,80,.80) 38%, rgba(11,34,80,.35) 70%, transparent 100%),
    linear-gradient(0deg, rgba(6,18,50,.65) 0%, transparent 60%);
}

/* ─── HERO INNER LAYOUT ────────────────────────────────────── */
.hero-inner {
  position: relative; z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.package-hero-title {
  flex: 0 0 auto;
  max-width: 440px;
  padding-top: .5rem;
}

.package-hero-title .eyebrow {
  font-family: var(--pkg-font);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-mid);
  display: inline-flex; align-items: center; gap: .4rem;
  margin-bottom: .55rem;
}

.package-hero-title h1 {
  font-family: var(--pkg-font);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  margin: .3rem 0 .75rem; color: #fff;
}

.package-hero-title p {
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.65;
}

/* ─── HERO SEARCH BAR ──────────────────────────────────────── */
.package-hero-search {
  flex: 1 1 auto; max-width: 660px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px; padding: .55rem;
  box-shadow: 0 24px 60px rgba(6,18,50,.32), 0 2px 8px rgba(0,0,0,.08);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1fr auto;
  color: var(--ink);
  align-self: center;
}

.package-hero-search > div {
  position: relative;
  padding: .3rem .55rem .3rem 2.1rem;
  border-right: 1px solid #d6e0ee;
  min-width: 0;
}

.package-hero-search > div > i {
  position: absolute; left: .55rem; top: 50%;
  transform: translateY(-50%);
  color: var(--primary); font-size: .88rem;
}

.package-hero-search label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .55rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7a8fa8; margin-bottom: .12rem;
}

.package-hero-search select,
.package-hero-search input[type="month"] {
  border: 0; background: transparent; width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: .74rem; font-weight: 600;
  color: var(--ink); outline: 0; min-height: 24px; cursor: pointer;
}

.package-hero-search .btn-hero-search {
  background: var(--primary); color: #fff; border: 0;
  border-radius: 12px; padding: 0 1.2rem;
  font-family: var(--pkg-font); font-size: .78rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  transition: var(--pkg-transition); cursor: pointer; white-space: nowrap;
}

.package-hero-search .btn-hero-search:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31,75,143,.32);
}

/* ─── ASSURANCE BADGES ─────────────────────────────────────── */
.package-assurances {
  position: relative; z-index: 2; margin-top: 1.8rem;
  align-self: flex-start;
  background: rgba(255,255,255,.97); border-radius: 14px;
  box-shadow: 0 12px 36px rgba(6,18,50,.18);
  display: inline-flex; align-items: center;
  padding: .8rem 1.1rem; gap: 1.4rem;
}

.package-assurances span {
  font-family: 'Inter', sans-serif; font-size: .65rem; font-weight: 700;
  color: var(--ink); white-space: nowrap;
  display: flex; align-items: center; gap: .38rem;
}

.package-assurances i { color: var(--gold); font-size: .88rem }

/* ─── PACKAGES SECTION WRAPPER ─────────────────────────────── */
.package-reference-list {
  background: #edf1f9;
  padding: 2.5rem 0 5rem;
}

/* ─── MOBILE FILTER BAR ─────────────────────────────────────── */
.mobile-filter-bar {
  display: none; align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem; padding: .5rem 0;
}

.mobile-filter-bar .btn-outline-premium {
  border: 1.5px solid var(--primary); color: var(--primary);
  padding: .5rem .9rem; border-radius: 10px; font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
}

#resultCount {
  font-size: .78rem; color: var(--muted); font-weight: 600;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
.package-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ─── FILTER SIDEBAR ────────────────────────────────────────── */
.pkg-sidebar-desktop {
  position: sticky; top: 95px;
}

.reference-filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.3rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.filter-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: .75rem;
}

.filter-top h4 { font-size: 1.1rem; font-weight: 700; margin: 0 }

.filter-top button {
  background: none; border: none; font-size: .73rem;
  color: var(--primary); font-weight: 600; cursor: pointer;
}

.reference-filters .filter-group {
  padding: .8rem 0; border-bottom: 1px solid var(--border);
}

.reference-filters .filter-group:last-child { border: 0 }

.reference-filters .filter-group > label {
  font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; gap: .35rem;
  color: var(--ink); margin-bottom: .5rem;
}

.reference-filters .filter-group > label i { color: var(--primary) }

.reference-filters .form-select,
.reference-filters .form-control {
  font-size: .8rem; border-color: var(--border);
}

.price-filter label { display: flex; justify-content: space-between }
#priceLabel { color: var(--primary); font-weight: 700 }

.price-range-track {
  display: flex; justify-content: space-between;
  font-size: .62rem; color: var(--muted); margin-top: .35rem;
}

.apply-filter-btn {
  width: 100%; margin-top: .75rem;
  background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: .7rem; font-size: .82rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: var(--pkg-transition);
}

.apply-filter-btn:hover { background: var(--primary-dark); transform: translateY(-1px) }

/* ─── RESULTS COLUMN ────────────────────────────────────────── */
.package-results-column { min-width: 0 }

.results-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
  padding: .75rem 1rem;
}

.results-toolbar > div { display: flex; flex-direction: column }
.results-toolbar > div span { font-weight: 700; font-size: .9rem }
.results-toolbar small { color: var(--muted); font-size: .72rem }

.results-toolbar label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; color: var(--muted);
}

.results-toolbar .form-select {
  width: 170px; font-size: .78rem; border-color: var(--border);
}

/* ─── PACKAGE ROW CARDS ─────────────────────────────────────── */
/* Styles now in app.css .package-row-card etc */

/* ─── SKELETON ──────────────────────────────────────────────── */
.skeleton-row {
  height: 160px; border-radius: 18px; margin-bottom: 1rem;
  background: linear-gradient(90deg, #dde5f5 25%, #eef2fb 50%, #dde5f5 75%);
  background-size: 200% 100%; animation: pkgShimmer 1.4s infinite;
}

@keyframes pkgShimmer { to { background-position: -200% 0 } }

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.pkg-empty {
  text-align: center; padding: 5rem 2rem; color: var(--muted);
  background: #fff; border-radius: 18px; border: 1px solid var(--border);
}

.pkg-empty i { font-size: 3rem; color: var(--border); display: block; margin-bottom: 1rem }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .package-layout { grid-template-columns: 240px 1fr }
}

@media (max-width: 900px) {
  .package-layout { grid-template-columns: 1fr }
  .pkg-sidebar-desktop { display: none !important }
  .mobile-filter-bar { display: flex !important }

  .hero-inner { flex-direction: column }
  .package-hero-search {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  .package-hero-search .btn-hero-search {
    grid-column: 1 / -1; padding: .65rem; justify-content: center;
  }
}

@media (max-width: 640px) {
  .packages-reference-hero { padding: 2.5rem 0 4.5rem }
  .package-hero-search { grid-template-columns: 1fr }
  .package-hero-search > div { border-right: none; border-bottom: 1px solid var(--border) }
  .package-assurances { flex-wrap: wrap; gap: .8rem }
}
