/* ===============================
   CATEGORY RESULT PAGE – CLEAN UI
   Brand: ElevateXConnect Orange
================================ */

:root {
    --brand: #ff5a1f;
    --bg: #fff6ef;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
}

/* ================= PAGE BASE ================= */
body {
    background: var(--bg);
    color: var(--text);
}

.container1 {
    max-width: 1330px;
    margin: 20px auto;
    padding-left: 16px;
    padding-right: 16px;
}

.category-wrapper {
    max-width: 1330px;
    margin: auto;
    padding: 28px 16px 60px;
}

/* ================= BREADCRUMB ================= */
.breadcrumb {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* ================= TITLE ================= */
.category-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* ================= FILTER BAR ================= */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-bar select,
.filter-bar button {
    background: #fff;
    border: 1px solid var(--border);
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
}

.filter-bar button.active,
.filter-bar button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.filter-bar .primary {
    border: 1px solid #111;
    font-weight: 500;
}

.filter-bar .btn {
    border-radius: 8px;
    font-size: 14px;
    padding: 6px 14px;
}

.filter-bar .btn-outline-secondary:hover,
.filter-bar .btn-outline-secondary.active {
    border-color: #ff5a1f;
    color: #ff5a1f;
    background: #fff;
}

.filter-bar .btn-outline-dark {
    border: 1px solid #111;
}

/* ================= LAYOUT ================= */
.layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 22px;
}

/* ================= BUSINESS CARD ================= */
.jd-card {
    position: relative;
    display: flex;
    gap: 16px;
    background: var(--card);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);


}

.jd-img img {
    width: 140px;
    height: 170px;
    object-fit: cover;
    border-radius: 10px;
}

/* ================= CARD INFO ================= */
.jd-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* VERIFIED */
.badge-verified {
    background: #e6f7ff;
    color: #0077cc;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.jd-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 16px;
}


/* RATING */
.jd-rating {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    margin-bottom: 6px;
}

.jd-rating .rate {
    background: #16a34a;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-quick {
    background: #fff3cd;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
}

/* LOCATION */
.jd-loc {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* TAGS */
.jd-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.jd-tags span {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #f3f4f6;
}

/* ACTIONS */
.jd-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* space ONLY between buttons */
    margin-top: 10px;
}

.jd-actions a,
.jd-actions button {
    border-radius: 8px;


    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-call {
    background: #16a34a;
    color: #fff;
}

.btn-wa {
    background: #fa5921;
    color: #eee;
    border: 1px solid #e7eaee !important;
}

.btn-call:hover {
    background: #0e8a3c;
}

.btn-wa:hover {
    background: #f74a0c;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .jd-card {
        flex-direction: column;
    }

    .jd-img img {
        width: 100%;
        height: 200px;
    }
}


.lead-box,
.promo-box {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.lead-box input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-color: #bcbec2;
}

.lead-box button,
.promo-box button {
    width: 100%;
    padding: 10px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
}

@media(max-width:900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

/* ===== FILTER DRAWER ===== */
.filter-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.filter-drawer.open {
    right: 0;
}

.drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h4 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.drawer-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.drawer-section {
    margin-bottom: 24px;
}

.drawer-section h5 {
    font-size: 15px;
    margin-bottom: 12px;
}

.drawer-check,
.drawer-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.drawer-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
}

.btn-reset {
    flex: 1;
    background: #f3f4f6;
    border: none;
    padding: 12px;
    border-radius: 8px;
}

.btn-apply {
    flex: 1;
    background: #fa5921;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
}

/* Prevent body scroll when drawer open */
.no-scroll {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    .filter-drawer {
        width: 100%;
        right: -100%;
    }
}