/* =====================================================
   BizMela Listing Pages
===================================================== */

.biz-listing-container{
    width:90%;
    max-width:980px;
    margin:40px auto 60px;
}

/* ==========================================
   Header
========================================== */

.biz-listing-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.biz-listing-title h1{
    margin:0;
    font-size:32px;
    font-weight:700;
    color:#1f2937;
}

.biz-listing-title small{
    font-size:18px;
    font-weight:500;
    color:#6b7280;
}

.biz-listing-title p{
    margin:6px 0 0;
    color:#6b7280;
    font-size:15px;
}

/* ==========================================
   Add Button
========================================== */

.biz-add-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 22px;
    background:#2563eb !important;
    color:#fff !important;
    border:1px solid #2563eb !important;
    border-radius:8px;
    text-decoration:none !important;
    font-size:15px;
    font-weight:600;
    transition:.25s ease;
}

.biz-add-btn:hover{
    background:#1d4ed8 !important;
    border-color:#1d4ed8 !important;
    color:#fff !important;
}

/* ==========================================
   Table Card
========================================== */

.biz-list-card{
    background:#fff;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
    padding:0;
}

/* ==========================================
   Table
========================================== */

.biz-list-table{
    width:100%;
    margin:0;
    border-collapse:collapse;
    border-spacing:0;
}

.biz-list-table thead,
.biz-list-table tbody,
.biz-list-table tr{
    margin:0;
    padding:0;
}

.biz-list-table thead{
    background:#f8fafc;
}

.biz-list-table th{
    padding:14px 18px;
    text-align:left;
    font-size:14px;
    font-weight:700;
    color:#374151;
    border-bottom:1px solid #e5e7eb;
}

.biz-list-table td{
    padding:10px 18px;
    font-size:15px;
    vertical-align:middle;
    border-bottom:1px solid #edf2f7;
}

.biz-list-table td strong{
    font-size:15px;
    font-weight:600;
    color:#111827;
}

.biz-list-table tbody tr{
    transition:.2s;
}

.biz-list-table tbody tr:hover{
    background:#fafafa;
}

/* ==========================================
   Status
========================================== */

.biz-status{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:600;
    color:#16a34a;
}

.biz-status::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:#22c55e;
}

.biz-status-closed{
    color:#dc2626;
}

.biz-status-closed::before{
    background:#ef4444;
}

/* ==========================================
   Actions
========================================== */

.biz-actions{
    display:flex;
    gap:10px;
}

.biz-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:65px;
    height:36px;
    padding:0 12px;
    background:#fff;
    border:1px solid #dbe3ea;
    border-radius:6px;
    color:#374151;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.25s ease;
}

.biz-actions a:hover{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

/* ==========================================
   Empty State
========================================== */

.biz-empty{
    padding:45px 20px;
    text-align:center;
    color:#6b7280;
}

/* ==========================================
   Responsive
========================================== */

@media (max-width:768px){

    .biz-listing-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .biz-add-btn{
        width:100%;
    }

    .biz-list-card{
        overflow-x:auto;
    }

    .biz-list-table{
        min-width:700px;
    }

}

/* =====================================================
   Global Helpers
===================================================== */
.bm-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

/* =====================================================
   Premium Taxonomy Category Templates
===================================================== */
.bm-category-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.bm-category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.6;
}

.bm-category-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: pulseGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8) translate(5%, 5%); }
    100% { transform: scale(1.2) translate(-5%, -5%); }
}

.bm-category-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.bm-category-desc {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.bm-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

@media (max-width: 1400px) {
    .bm-listings-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1200px) {
    .bm-listings-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .bm-listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .bm-listings-grid { grid-template-columns: 1fr; }
}

.bm-premium-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.bm-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.bm-card-image-wrap {
    padding: 10px;
}

.bm-card-image {
    height: 110px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    background-color: #f1f5f9;
}

.bm-card-content {
    padding: 6px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bm-card-title {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
}

.bm-card-title a {
    color: #ef4444; /* Red title as in screenshot */
    text-decoration: none;
    transition: color 0.2s ease;
}

.bm-card-title a:hover {
    color: #dc2626;
}

.bm-card-cat-badge {
    display: inline-flex;
    background: #edf2ff;
    color: #4f46e5;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.bm-card-location {
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.bm-card-location svg {
    width: 14px;
    height: 14px;
}

.bm-card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bm-card-rating {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bm-card-rating .rating-count {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
}

.bm-btn-view {
    background: #f8fafc;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.bm-btn-view:hover {
    background: #fee2e2;
}

.bm-empty-state {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 24px;
    border: 2px dashed #cbd5e1;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.bm-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: #e0e7ff;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.2);
}

.bm-empty-icon svg {
    width: 44px;
    height: 44px;
    color: #4f46e5;
}

.bm-empty-state h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.bm-empty-state p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.bm-btn-primary {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.bm-btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(79, 70, 229, 0.5);
}

/* =====================================================
   Archive Page (All Businesses)
===================================================== */

.bm-archive-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin: 0 auto 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    gap: 20px;
    max-width: 800px;
}

.bm-archive-search-form {
    display: flex;
    flex-grow: 1;
    gap: 12px;
    width: 100%;
}

.bm-search-input-wrap {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.bm-search-input-wrap svg {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.bm-search-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.bm-search-input-wrap input:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bm-btn-search {
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 0 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bm-btn-search:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.bm-archive-filter {
    position: relative;
    min-width: 250px;
    display: flex;
    align-items: center;
}

.bm-archive-filter svg {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #6366f1;
    z-index: 1;
}

.bm-archive-filter select {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    appearance: none;
    cursor: pointer;
    background: #f8fafc url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><path d="M6 9l6 6 6-6"/></svg>') no-repeat right 16px center;
    background-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
}

.bm-archive-filter select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: #ffffff;
}

/* Pagination */
.bm-pagination {
    margin-top: 60px;
    text-align: center;
}

.bm-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.bm-pagination ul li a,
.bm-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bm-pagination ul li a:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #f8fafc;
}

.bm-pagination ul li span.current {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

@media (max-width: 768px) {
    .bm-archive-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bm-archive-filter {
        width: 100%;
    }
}