/* ===========================================
   LAKE CHARLES BIZ HIVE - DIRECTORY PAGE STYLES
   Extends home.css with directory-specific styles
   =========================================== */

/* --- PAGE HEADER --- */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 120px 0 50px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--white);
    opacity: 0.8;
}

.breadcrumbs a:hover {
    opacity: 1;
}

.breadcrumbs .separator {
    margin: 0 10px;
    opacity: 0.6;
    font-size: 0.75rem;
}

.breadcrumbs .current {
    opacity: 1;
}

/* --- DIRECTORY MAIN --- */
.directory-main {
    padding: 40px 0 60px;
    background: var(--bg-light);
    min-height: 50vh;
}

/* --- FILTER SECTION --- */
.directory-filters {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.filter-form .filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.filter-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.filter-group input,
.filter-group select {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.filter-submit {
    justify-content: flex-end;
}

.filter-submit .btn {
    margin-top: auto;
    padding: 12px 24px;
}

/* --- ACTIVE FILTERS --- */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.active-filters-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.filter-tag:hover {
    background: #e0e0e0;
}

.filter-tag i {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.clear-all {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-left: auto;
}

.clear-all:hover {
    color: var(--accent-hover);
}

/* --- RESULTS INFO --- */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- BUSINESS GRID --- */
.business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* --- BUSINESS CARD --- */
.business-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.business-card.premium {
    border: 2px solid var(--accent);
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.premium-badge i {
    margin-right: 4px;
}

.business-image {
    height: 180px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.business-content {
    padding: 20px;
}

.business-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.business-name {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.business-name a {
    color: var(--text-dark);
}

.business-name a:hover {
    color: var(--primary);
}

.business-address,
.business-phone {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.business-address i,
.business-phone i {
    width: 18px;
    color: var(--primary);
    margin-right: 8px;
}

.business-content .btn {
    margin-top: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.page-link.prev,
.page-link.next {
    padding: 0 15px;
}

.page-link.prev i,
.page-link.next i {
    font-size: 0.75rem;
}

.page-link.prev i {
    margin-right: 5px;
}

.page-link.next i {
    margin-left: 5px;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: var(--text-muted);
}

/* --- NO RESULTS --- */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.no-results i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ===========================================
   RESPONSIVE BREAKPOINTS
   =========================================== */

/* Tablet - 768px and up */
@media (min-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }

    .page-header h1 {
        font-size: 2.8rem;
    }

    .filter-form .filter-row {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        align-items: end;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 992px and up */
@media (min-width: 992px) {
    .business-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
    .business-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
    }

    .page-numbers {
        order: 1;
    }

    .page-link.prev {
        order: 0;
    }

    .page-link.next {
        order: 2;
    }

    .active-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .clear-all {
        margin-left: 0;
        margin-top: 10px;
    }
}
