
/* New Premium Search Bar & Category Buttons */
.hp-d-filters-new {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 24px;
}
.hp-d-search-box-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}
.hp-d-search-box-wrap input {
    width: 100%;
    max-width: 400px;
    padding: 14px 18px 14px 44px;
    border-radius: 8px;
    border: 1.5px solid #0f172a;
    background: #fcfcfc;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    color: #0f172a;
}
.hp-d-search-box-wrap input:focus {
    background: #ffffff;
    border-color: #2b56f5;
    box-shadow: 0 0 0 3px rgba(43, 86, 245, 0.15);
}
.hp-d-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

/* Category Buttons Nav */
.hp-d-categories-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}
.hp-d-cat-row, .hp-d-subcat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.hp-d-cat-btn, .hp-d-subcat-btn {
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.hp-d-cat-btn:hover, .hp-d-subcat-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.hp-d-cat-btn.is-active, .hp-d-subcat-btn.is-active {
    background: #2b56f5;
    color: #ffffff;
    border-color: #2b56f5;
}
/* Subcategory specific styling */
.hp-d-subcat-row {
    padding: 12px;
    background: #f8fafc;
    border-left: 4px solid #2b56f5;
    border-radius: 6px;
    margin-top: 4px;
    animation: hpFadeIn 0.2s ease-out;
}
@keyframes hpFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.hp-d-wrap {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    color: #0f172a;
    background-color: #ffffff;
}
.hp-d-wrap * {
    box-sizing: border-box;
}
.hp-d-wrap h1, .hp-d-wrap h2, .hp-d-wrap h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Hero Section */
.hp-d-hero {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
    color: #fff;
    padding: 60px 24px;
    text-align: center;
    border-radius: 0px;
}
.hp-d-hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.hp-d-hero p {
    margin: 0;
    opacity: 0.8;
    font-size: 16px;
    color: #94a3b8;
}

/* Filters Section */
.hp-d-filters {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 24px;
}
.hp-d-filters-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.hp-d-search {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}
.hp-d-search input {
    flex: 1;
    padding: 14px 18px 14px 44px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}
.hp-d-search input:focus {
    border-color: #F5C400;
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.15);
}
.hp-d-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}
.hp-d-toggle-filters {
    background: #0f172a;
    color: #ffffff;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}
.hp-d-toggle-filters:hover {
    background: #1e293b;
}

/* Advanced Filters Grid */
.hp-d-adv-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease-in-out;
}
.hp-d-filter-group {
    display: flex;
    flex-col: column;
    flex-direction: column;
    gap: 6px;
}
.hp-d-filter-group label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hp-d-filter-group select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    outline: none;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}
.hp-d-filter-group select:focus {
    border-color: #F5C400;
}

/* Checkbox/Features list */
.hp-d-features-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}
.hp-d-feature-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.hp-d-feature-label input {
    width: 16px;
    height: 16px;
    accent-color: #F5C400;
    cursor: pointer;
}

/* Grid & Cards */
.hp-d-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    min-height: 300px;
}
.hp-d-main.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.hp-d-count {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
    font-weight: 600;
}
.hp-d-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
}
@media(min-width: 640px) { .hp-d-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(min-width: 1024px) { .hp-d-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hp-d-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.hp-d-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.08);
}
.hp-d-verified {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.hp-d-unclaimed {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.hp-d-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    padding-right: 90px;
    height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.hp-d-sub {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #2b56f5;
    min-height: 20px;
    line-height: 20px;
}
.hp-d-desc {
    margin: 14px 0 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    height: 68px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-d-hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: auto 0 20px 0;
}
.hp-d-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.hp-d-rating {
    color: #facc15;
    font-size: 14px;
    letter-spacing: 1px;
}
.hp-d-rating span {
    color: #64748b;
    font-size: 13px;
    letter-spacing: 0;
    font-weight: 600;
}
.hp-d-btn {
    flex-shrink: 0;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}
.hp-d-btn:hover {
    background: #F5C400;
    color: #0f172a;
}
.hp-d-empty {
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 60px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    background: #f8fafc;
}
.hp-d-spinner {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border: 4px solid #f1f5f9;
    border-top-color: #F5C400;
    border-radius: 50%;
    animation: hp-spin .8s linear infinite;
    display: none;
    z-index: 5;
}
.hp-d-main.is-loading .hp-d-spinner {
    display: block;
}
@keyframes hp-spin { to { transform: translate(-50%,0) rotate(360deg); } }
