/* Hajj & Umrah search results — emerald / kaaba theme (package-tour style) */
.hus-wrap { --hus-primary: #059669; --hus-primary-dark: #047857; --hus-accent: #0d9488; }

.hus-results-page .hus-hero {
    background: linear-gradient(135deg, #047857 0%, #0d9488 50%, #0369a1 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.hus-results-page .hus-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.14), transparent 42%);
    pointer-events: none;
}
.hus-hero-title { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; margin: 0 0 0.35rem; line-height: 1.2; position: relative; z-index: 1; }
.hus-hero-sub { opacity: 0.92; font-size: 0.95rem; margin: 0; position: relative; z-index: 1; }
.hus-hero-stats { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem; font-size: 0.8125rem; font-weight: 600; position: relative; z-index: 1; }
.hus-hero-stats span { display: inline-flex; align-items: center; gap: 0.35rem; background: rgba(255,255,255,.14); padding: 0.3rem 0.7rem; border-radius: 999px; }

.hus-results-page .hus-search-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 20px 40px -14px rgba(5, 150, 105, 0.22);
    margin-top: -2.75rem;
    position: relative;
    z-index: 2;
}
.hus-search-card--flat { box-shadow: none; margin-top: 0; }

.hus-field label { display: block; font-size: 0.75rem; font-weight: 700; color: #374151; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.03em; }
.hus-field input, .hus-field select { width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; font-size: 0.9375rem; }
.hus-field input:focus, .hus-field select:focus { outline: none; border-color: var(--hus-primary); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18); }
.hus-btn-search { background: linear-gradient(135deg, var(--hus-primary) 0%, var(--hus-accent) 100%); color: #fff; font-weight: 700; border: none; border-radius: 0.5rem; padding: 0.75rem 1.25rem; cursor: pointer; width: 100%; transition: transform .15s, box-shadow .15s; }
.hus-btn-search:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28); }

.hus-search-context { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.hus-context-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; font-size: 0.8125rem; font-weight: 600; padding: 0.4rem 0.85rem; border-radius: 999px; }

.hus-price-insight { margin-top: 0.75rem; padding: 0.65rem 1rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.65rem; font-size: 0.875rem; color: #166534; }
.hus-price-insight.hidden { display: none; }

.hus-aside-inner { max-height: calc(100vh - 6rem); overflow-y: auto; }
.hus-results-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.hus-toolbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.hus-view-toggle { display: inline-flex; border: 1px solid #d1d5db; border-radius: 0.5rem; overflow: hidden; }
.hus-view-btn { border: none; background: #fff; color: #6b7280; padding: 0.45rem 0.7rem; cursor: pointer; font-size: 0.875rem; }
.hus-view-btn.is-active { background: #ecfdf5; color: #047857; }
.hus-mobile-filter-btn { display: none; }

@media (max-width: 1023px) {
    .hus-aside-panel { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); padding: 1rem; align-items: flex-start; justify-content: center; overflow-y: auto; }
    .hus-aside-panel.open { display: flex; }
    .hus-aside-panel .hus-aside-inner { width: 100%; max-width: 24rem; position: relative; max-height: 90vh; }
    .hus-mobile-filter-btn { display: inline-flex; }
}

.hus-filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.hus-filter-chip { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 0.35rem 0.85rem; font-size: 0.8125rem; font-weight: 600; color: #374151; cursor: pointer; transition: all .15s; }
.hus-filter-chip:hover { border-color: #059669; color: #047857; }
.hus-filter-chip.active { background: #ecfdf5; border-color: #059669; color: #047857; }

.hus-active-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; align-items: center; }
.hus-active-filters.hidden { display: none; }
.hus-active-filter { border: 1px solid #d1d5db; background: #f9fafb; border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 600; color: #374151; cursor: pointer; }
.hus-active-filter--clear { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.hus-results-container { min-height: 12rem; }
.hus-results-list { display: flex; flex-direction: column; gap: 1rem; }
.hus-view-grid.hus-results-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
    .hus-view-grid.hus-results-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Result card — package tour horizontal layout */
.hus-result-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.hus-result-card:hover { box-shadow: 0 16px 40px rgba(5, 150, 105, 0.12); border-color: #6ee7b7; }
.hus-result-card.is-featured { border-color: #34d399; background: linear-gradient(180deg, #ecfdf5 0%, #fff 35%); }
.hus-result-card.is-best { box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35); }

@media (min-width: 768px) {
    .hus-view-list .hus-result-card { flex-direction: row; align-items: stretch; }
    .hus-view-grid .hus-result-card { flex-direction: column; }
}

.hus-result-media { position: relative; width: 100%; min-height: 200px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); flex-shrink: 0; }
.hus-view-list .hus-result-media { width: 280px; min-height: 220px; }
.hus-view-grid .hus-result-media { min-height: 180px; }
.hus-result-media img { width: 100%; height: 100%; object-fit: cover; min-height: inherit; display: block; }
.hus-result-media-fallback { display: flex; align-items: center; justify-content: center; min-height: inherit; color: #6ee7b7; font-size: 3.5rem; }

.hus-ribbon { position: absolute; z-index: 2; font-size: 0.625rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.25rem 0.55rem; border-radius: 0.35rem; }
.hus-ribbon--featured { top: 0.65rem; left: 0.65rem; background: #f59e0b; color: #fff; }
.hus-ribbon--best { top: 0.65rem; right: 0.65rem; background: #059669; color: #fff; }
.hus-ribbon--type { bottom: 0.65rem; left: 0.65rem; background: rgba(255,255,255,.92); color: #047857; border: 1px solid #a7f3d0; }

.hus-result-main { flex: 1; padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.65rem; min-width: 0; }
.hus-result-head { min-width: 0; }
.hus-result-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.45rem; }
.hus-result-title { font-size: 1.125rem; font-weight: 800; margin: 0; line-height: 1.3; }
.hus-result-title a { color: #111827; text-decoration: none; }
.hus-result-title a:hover { color: #047857; text-decoration: underline; }
.hus-result-code { font-size: 0.6875rem; color: #9ca3af; margin: 0.15rem 0 0; }
.hus-result-desc { font-size: 0.8125rem; color: #6b7280; margin: 0.35rem 0 0; line-height: 1.45; }

.hus-result-hotels { display: flex; flex-direction: column; gap: 0.35rem; }
.hus-hotel-row { display: flex; gap: 0.5rem; font-size: 0.8125rem; color: #4b5563; align-items: flex-start; }
.hus-hotel-row > i { color: #059669; margin-top: 0.15rem; width: 1rem; text-align: center; }
.hus-hotel-stars { display: inline-flex; gap: 1px; margin-left: 0.25rem; }
.hus-star { font-size: 0.55rem; color: #d1d5db; }
.hus-star.is-on { color: #f59e0b; }
.hus-near-haram { display: inline-block; margin-left: 0.35rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; background: #dbeafe; color: #1d4ed8; padding: 0.1rem 0.35rem; border-radius: 0.25rem; }

.hus-result-inclusions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hus-result-dates { font-size: 0.8125rem; color: #047857; font-weight: 600; margin-top: auto; padding-top: 0.35rem; }

.hus-result-aside {
    flex-shrink: 0;
    padding: 1.15rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    background: #fafafa;
}
@media (min-width: 768px) {
    .hus-view-list .hus-result-aside { width: 200px; border-top: none; border-left: 1px solid #f3f4f6; text-align: right; }
    .hus-view-grid .hus-result-aside { text-align: left; }
}
.hus-result-price-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin: 0; }
.hus-result-price { font-size: 1.5rem; font-weight: 800; color: #047857; margin: 0; line-height: 1.1; }
.hus-result-price-unit { font-size: 0.75rem; color: #6b7280; margin: 0 0 0.5rem; }

.hus-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; }
.hus-badge--hajj { background: #dbeafe; color: #1d4ed8; }
.hus-badge--umrah { background: #ccfbf1; color: #0f766e; }
.hus-badge--both { background: #ede9fe; color: #6d28d9; }
.hus-badge--cat { background: #f3e8ff; color: #7e22ce; }
.hus-badge--dur { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }
.hus-badge--trip { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hus-inc-badge { font-size: 0.6875rem; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; padding: 0.2rem 0.5rem; border-radius: 0.35rem; font-weight: 600; }

.hus-btn { padding: 0.55rem 1rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.875rem; cursor: pointer; border: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; transition: all .15s; }
.hus-btn-block { width: 100%; }
.hus-btn-primary { background: var(--hus-primary); color: #fff; }
.hus-btn-primary:hover { background: var(--hus-primary-dark); color: #fff; }
.hus-btn-outline { background: #fff; border: 1px solid #d1d5db; color: #374151; }
.hus-btn-outline:hover { border-color: #059669; color: #047857; }

/* Skeleton loading */
.hus-loading-state { padding: 0.5rem 0; }
.hus-skeleton-card { height: 140px; border-radius: 1rem; background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: hus-shimmer 1.2s infinite; margin-bottom: 0.75rem; }
@keyframes hus-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Legacy card + detail tabs */
.hus-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; overflow: hidden; }
.hus-card-media { width: 100%; min-height: 180px; background: #f3f4f6; position: relative; flex-shrink: 0; }
@media (min-width: 768px) { .hus-card { flex-direction: row; } .hus-card-media { width: 280px; min-height: 220px; } }
.hus-card-media img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.hus-card-body { flex: 1; padding: 1.25rem; display: flex; flex-direction: column; }
.hus-price { font-size: 1.5rem; font-weight: 800; color: #047857; }
.hus-price-sub { font-size: 0.75rem; color: #6b7280; }
.hus-card-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.hus-hotel-line { font-size: 0.8125rem; color: #4b5563; margin-top: 0.35rem; }
.hus-tabs-wrap { border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.hus-tabs { display: flex; gap: 0.25rem; min-width: max-content; }
.hus-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 0.65rem 1rem; font-size: 0.875rem; font-weight: 600; color: #6b7280; cursor: pointer; white-space: nowrap; }
.hus-tab.is-active { color: #047857; border-bottom-color: #059669; }
.hus-panel { display: none; padding-top: 1.25rem; }
.hus-panel.is-active { display: block; }
