/* Sprint 4: Package Listing UI Architecture */

/* --- LAYOUT --- */
.pkg-page-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 24px;
}
.pkg-filter-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 24px; /* Sticky filter on desktop */
}
.pkg-content-area {
    flex: 1;
    min-width: 0;
}

/* --- ACTIVE FILTERS STRIP --- */
.active-filters-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    background: #F8FAFC;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}
.active-filter-badge {
    background: #E0F2FE;
    color: #0369A1;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #BAE6FD;
}
.active-filter-clear {
    color: #DC2626;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
}

/* --- EMPTY STATE --- */
.empty-state-box {
    background: #fff;
    border: 1px dashed #CBD5E1;
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
}
.empty-state-box h3 { color: #0F172A; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.empty-state-box p { color: #64748B; font-size: 15px; }
.btn-secondary { background: #F1F5F9; color: #334155; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 1px solid #E2E8F0; }
.btn-primary { background: #0D9488; color: #fff; padding: 10px 24px; border-radius: 8px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; }

/* --- PACKAGE CARD (FROZEN SPEC) --- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.pkg-card.frozen-spec {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #F1F5F9;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.pkg-card.frozen-spec:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.pkg-bar { height: 6px; width: 100%; }

/* --- MOBILE BOTTOM SHEET --- */
.mobile-filter-bar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #0F172A;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}
.mobile-filter-bar button {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-filter-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
}
.mobile-filter-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.mobile-filter-sheet.active { transform: translateY(0); }
.sheet-header { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #E2E8F0; }
.sheet-header h3 { font-size: 18px; font-weight: 800; margin: 0; }
.sheet-header button { background: none; border: none; font-size: 20px; color: #64748B; padding: 0; cursor: pointer; }
.sheet-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.sheet-footer { padding: 20px 24px; border-top: 1px solid #E2E8F0; }

@media (max-width: 1024px) {
    .pkg-filter-sidebar { display: none; } /* Hide sticky sidebar on mobile/tablet */
    .mobile-filter-bar { display: flex; }  /* Show floating filter button */
}
