﻿/* === CSS Variables - Professional Blue Scheme === */
:root {
    --primary-color: #2463eb;
    --primary-dark: #1e40af;
    --secondary-color: #111827;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
}

.logo i {
    color: var(--primary-color);
    font-size: 32px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:not(.btn-primary):hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: var(--primary-dark);
}

.nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav a:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Search Box ===== */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-right: 2px solid var(--border-color);
}

.search-input-group:last-of-type {
    border-right: none;
}

.search-input-group i {
    color: var(--primary-color);
    font-size: 20px;
}

.search-input-group input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    color: var(--text-dark);
}

.search-input-group input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-search:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--primary-dark);
    transform: scale(1.05);
}

.popular-searches {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.popular-searches span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.popular-searches a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.popular-searches a:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Stats Section ===== */
.stats {
    background: var(--bg-white);
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== Sections ===== */
.categories-section,
.featured-section,
.how-it-works {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--secondary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: var(--primary-dark);
    gap: 12px;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--secondary-color);
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.category-count {
    color: var(--text-light);
    font-size: 16px;
}

/* ===== Business Cards ===== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.business-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.business-card:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.company-logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    flex-shrink: 0;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
    line-height: 1.2;
}

.company-tagline {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.company-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.company-description {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-dark);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.btn-visit {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--secondary-color);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    margin-top: auto;
}

.btn-visit:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: scale(1.02);
}

/* ===== How It Works ===== */
.how-it-works {
    background: var(--bg-white);
}

.how-it-works h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--secondary-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 40px 20px;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: var(--secondary-color);
}

.step h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.step p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: var(--primary-color);
}

.footer-col ul li i {
    color: var(--primary-color);
    margin-right: 8px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--primary-color);
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Filters & Listings Page ===== */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.listings-container {
    padding: 60px 0;
}

.listings-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.filters-sidebar {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 2px solid var(--border-color);
}

.filter-group {
    margin-bottom: 28px;
}

.filter-group h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}

.listings-content {
    min-width: 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.results-count {
    font-size: 18px;
    color: var(--text-light);
}

.sort-select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

/* ===== Loading & Empty States ===== */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    font-size: 16px;
}

/* ===== Business Detail Page ===== */
.detail-container {
    padding: 60px 0;
    background: var(--bg-light);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.detail-main {
    min-width: 0;
}

/* Business Header Card */
.business-header-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.business-header-top {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.business-logo-large {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: contain;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    flex-shrink: 0;
}

.business-header-info {
    flex: 1;
}

.business-header-info h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.business-tagline-large {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.business-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-badge-large {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}

.verified-badge {
    background: #10b981;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.business-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--border-color);
    transform: translateY(-2px);
}

/* Detail Sections */
.detail-section {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.detail-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-section h2 i {
    color: var(--primary-color);
}

.business-description-full {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.contact-detail-item:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-detail-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-detail-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail-item p {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-detail-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail-item a:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    text-decoration: underline;
}

/* Social Links Section */
.social-links-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.social-links-large {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links-large .social-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

/* Reviews Section */
.review-stats {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.review-average {
    text-align: center;
}

.rating-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 12px;
}

.rating-stars {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 8px;
}

.rating-count {
    font-size: 14px;
    color: var(--text-muted);
}

.review-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-bar-item>span:first-child {
    width: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.review-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.review-bar-item>span:last-child {
    width: 40px;
    text-align: right;
    font-size: 14px;
    color: var(--text-muted);
}

/* Review Form */
.review-form {
    background: var(--bg-light);
    padding: 28px;
    border-radius: 12px;
    margin: 24px 0;
    border: 2px solid var(--border-color);
}

.review-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 32px;
}

.star-rating-input i {
    color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating-input i:hover,
.star-rating-input i.active {
    color: var(--primary-color);
}

/* Reviews List */
.reviews-list {
    margin-top: 32px;
}

.review-item {
    padding: 24px;
    border-bottom: 2px solid var(--bg-light);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info strong {
    display: block;
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.review-rating {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 4px;
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Sidebar */
.detail-sidebar {
    min-width: 0;
}

.sidebar-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: var(--primary-color);
}

/* Advertisement Card */
.ad-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.ad-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.ad-content h4 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* Business Hours */
.business-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
}

.hours-item.closed {
    opacity: 0.6;
}

.hours-item span:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.hours-item span:last-child {
    color: var(--text-light);
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.share-btn {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.share-btn:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* ===== Refined Modern Business Detail Page ===== */
.detail-container {
    padding: 30px 0 80px;
    background: #f0f2f5;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    align-items: start;
}

/* Hide Theme Header/Title on Directory Pages */
.page-template-page-directory .entry-header,
.page-template-page-directory .page-header,
.page-template-page-directory .header-v3,
.page-template-page-directory .breadcrumb-area,
.page-template-page-directory .entry-title {
    display: none !important;
}

/* Ensure our layout starts at the top */
.page-template-page-directory .bizdir-page-layout {
    margin-top: 0 !important;
}

/* Remove Underlines Globally from Directory Elements */
.bizdir-page-layout a,
.bizdir-page-layout a:hover,
.sc-mini-card,
.sc-mini-card:hover,
.mini-info h4,
.tagline,
.view-text-btn,
.bizdir-pagination a,
.bizdir-pagination span {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Precise Business Card Hero */
.business-card-hero {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border: 1px solid #e1e4e8;
    position: relative;
}

.business-card-hero::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 0;
    width: 4px;
    height: calc(100% - 70px);
    background: #FFD700;
    /* Signature Yellow */
    border-radius: 0 4px 4px 0;
}

.hero-main-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.business-logo-premium {
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.business-logo-premium img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-content-flex {
    flex: 1;
}

.hero-content-flex h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-tagline-modern {
    font-size: 16px;
    color: #718096;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge-pill {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.badge-pill.category {
    background: #edf2f7;
    color: #4a5568;
}

.badge-pill.verified {
    background: #e6fffa;
    color: #319795;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

/* Integrated Contact & Social */
.hero-integrated-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #2d3748;
    font-weight: 600;
}

.contact-inline i {
    color: #3b82f6;
}

.social-mini-grid {
    display: flex;
    gap: 10px;
}

.social-mini-btn {
    width: 36px;
    height: 36px;
    background: #f1f3f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    transition: all 0.2s;
    font-size: 14px;
}

.social-mini-btn:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: #e2e8f0;
    color: #1a202c;
    transform: translateY(-2px);
}

/* Modern Card Modules */
.detail-card-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

.section-title-clean {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-clean i {
    color: #FFD700;
}

/* Contact Grid Enhancements */
.contact-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.contact-box {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #edf2f7;
    display: flex;
    gap: 15px;
}

.contact-box i {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a202c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.contact-box .label {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    margin-bottom: 3px;
}

.contact-box .value {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
}

/* Sticky Sidebar Refinement */
.detail-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card-clean {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid #e1e4e8;
}

/* Add Review Section */
.add-review-minimal {
    text-align: center;
    padding: 20px 0;
}

.review-form-clean {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: left;
    border: 1px solid #edf2f7;
}

/* Map enhancement */
.map-frame-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e4e8;
    height: 400px;
}

/* Related card modern */
.related-grid-clean {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-main-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .business-card-hero::before {
        display: none;
    }

    .hero-meta-row {
        justify-content: center;
    }

    .hero-actions-row {
        justify-content: center;
    }
}

/* Footer & Logo refinements */
.business-logo-premium img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: -1;
    }

    .review-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        order: 2;
    }

    .business-card-hero {
        padding: 30px;
    }

    .hero-main-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-actions-modern {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input-group {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding: 16px;
    }

    .search-input-group:last-of-type {
        border-bottom: none;
    }

    .nav {
        flex-direction: column;
        gap: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .business-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Add Business Form ===== */
.form-container {
    padding: 60px 0;
    background: var(--bg-light);
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

.form-main {
    min-width: 0;
}

.form-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.form-header h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color);
    background: #fff9e6;
}

.upload-area i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.preview-box {
    margin-top: 12px;
    position: relative;
    display: inline-block;
}

.preview-box img {
    max-width: 150px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Footer */
.form-footer {
    border-top: 2px solid var(--bg-light);
    padding-top: 30px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.terms-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.terms-group input {
    width: auto;
    margin-top: 4px;
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 18px;
}

/* Sidebar Info */
.benefit-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    border: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.benefit-list li i {
    color: #10b981;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-list li strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.benefit-list li p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.4s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 24px;
}

.modal h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 16px;
}

/* Responsive Form */
@media (max-width: 1024px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-sidebar {
        order: 1;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 24px;
    }
}

/* ===== Breadcrumbs ===== */
.breadcrumb-container {
    padding: 20px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: var(--primary-color);
}

.breadcrumbs li.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== POLISHED COMPANY CARD DESIGN ===== */
.company-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.company-card:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.c-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.c-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Verified Badge Concept */
.c-name::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #3b82f6;
    font-size: 16px;
}

.c-tagline {
    font-size: 14px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

.c-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
    margin: 25px 0;
}

.contact-section {
    margin-bottom: 25px;
}

.c-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.c-phone i {
    color: #3b82f6;
    font-size: 18px;
    transition: transform 0.3s;
}

.company-card:hover .c-phone i {
    transform: rotate(15deg) scale(1.2);
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #f1f3f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-5px) scale(1.1);
}

/* Brand-Specific Colors */
.social-icon.li:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.social-icon.fb:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon.x:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.in:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

/* Premium Visit Button with Micro-Animation */
.btn-visit {
    display: block;
    width: 100%;
    background: #0f172a;
    color: #ffffff !important;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-visit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-visit:hover::before {
    left: 100%;
}

.btn-visit:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: #1e293b;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
}

/* Page Layout Refinements */
.detail-main-modern {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.section-card-modern {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #edf2f7;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.section-modern-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-modern-title i {
    color: #FFD700;
}

/* Grid for 3 related items */
.related-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.related-grid-3 .company-card {
    padding: 20px;
    margin-bottom: 0;
}

.related-grid-3 .c-name {
    font-size: 18px;
}

.related-grid-3 .c-logo {
    width: 45px;
    height: 45px;
}

.related-grid-3 .c-desc {
    font-size: 14px;
    margin: 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .related-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== Professional Pagination ===== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #444;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    border-color: #000;
    background: #f8f8f8;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #000 !important;
    color: var(--primary-color) !important;
    border-color: #000 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination-btn i {
    font-size: 0.8rem;
}

.pagination-ellipsis {
    color: #999;
    padding: 0 5px;
    font-weight: bold;
}

/* ===== Professional Loading System ===== */
.loader-container {
    padding: 20px 0 40px;
    width: 100%;
}

.progress-wrapper {
    background: #f0f0f0;
    height: 8px;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ffea00);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 218, 0, 0.3);
}

.load-status-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

/* =========================================
   NO-IMAGE LOGO DESIGN (CSS AVATARS)
   ========================================= */
.logo-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    border-radius: 8px;
    flex-shrink: 0;
    user-select: none;
}

/* Main Big Card Logo Style */
.main-avatar {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border: 2px solid var(--primary-color);
    box-shadow: 2px 2px 0 #000;
}

/* Mini / List Card Logo Style */
.mini-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    border-radius: 4px;
}

.bg-1 {
    background: #e53935;
}

.bg-2 {
    background: #43a047;
}

.bg-3 {
    background: #fb8c00;
}

.bg-4 {
    background: #1e3c72;
}

.bg-5 {
    background: #7b1fa2;
}

.bg-6 {
    background: #00838f;
}

.business-card-logo-placeholder {
    display: none !important;
}

/* Skeleton Screens */
.skeleton-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.skeleton-logo {
    width: 120px;
    height: 120px;
    background: #f5f5f5;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-info {
    flex: 1;
}

.skeleton-line {
    height: 16px;
    background: #f5f5f5;
    margin-bottom: 12px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-line.title {
    height: 24px;
    width: 60%;
}

.skeleton-line.tagline {
    height: 14px;
    width: 30%;
}

.skeleton-line.short {
    width: 40%;
}

/* Shimmer Animation */
.skeleton-logo::after,
.skeleton-line::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #eee;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- GLOBAL SIGNATURE STYLE (Logo & Borders) --- */

/* Images/Logos get white background and padding */
.logo-style,
.biz-logo,
.listing-logo,
.card-pro-logo,
.sc-logo,
.mini-logo,
.company-logo {
    border: 4px solid var(--primary-color) !important;
    box-shadow: 3px 3px 0px #000 !important;
    border-radius: 10px !important;
    background: #fff !important;
    object-fit: contain !important;
    margin: 5px 10px 10px 0 !important;
    padding: 2px !important;
}

/* Avatars (Text Initials) - Maintain their own background colors */
.logo-avatar,
.sc-avatar,
.mini-avatar {
    border: 4px solid var(--primary-color) !important;
    box-shadow: 3px 3px 0px #000 !important;
    border-radius: 10px !important;
    /* Do NOT force background: #fff here */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-size: 1.5rem !important;
    margin: 5px 10px 10px 0 !important;
}

/* === CARD STYLES === */
.yp-card,
.business-card,
.business-card-pro,
.sc-card-pro,
.sidebar-card,
.ad-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    border-top: 5px solid var(--primary-color) !important;
}

.yp-card:hover,
.business-card:hover,
.business-card-pro:hover,
.sc-card-pro:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

/* Specific Card Layouts */
.business-card-pro {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.business-card-pro img,
.business-card-pro .card-pro-logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.card-pro-content {
    flex: 1;
}

.card-pro-title {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 700;
}

.card-pro-title a {
    color: #000;
    text-decoration: none;
}

.card-pro-tagline {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.card-pro-desc {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-pro-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #555;
    flex-wrap: wrap;
    align-items: center;
}

.card-pro-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.btn-pro-view {
    display: inline-block;
    margin-top: 15px;
    background: #000;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.2s;
}

.btn-pro-view:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: var(--primary-color);
    color: #000;
}

/* AVATAR Styling */
.logo-avatar,
.sc-avatar,
.mini-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.5rem;
}

/* === AVATAR BACKGROUND COLORS (Global) === */
.bg-1 {
    background: #3498db !important;
    color: #fff !important;
}

.bg-2 {
    background: #2ecc71 !important;
    color: #fff !important;
}

.bg-3 {
    background: #9b59b6 !important;
    color: #fff !important;
}

.bg-4 {
    background: #e67e22 !important;
    color: #fff !important;
}

.bg-5 {
    background: #e74c3c !important;
    color: #fff !important;
}

.bg-6 {
    background: #34495e !important;
    color: #fff !important;
}

/* === MINI CARD GLOBAL STYLE (Horizontal List) === */
.mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card-bg, #fff);
    border: 1px solid #e0e0e0;
    border-left: 6px solid var(--primary-color, #000);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    gap: 20px;
}

.mini-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color, #000);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mini-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    /* Prevents overflow in flex child */
}

.mini-logo,
.mini-avatar {
    width: 70px;
    height: 70px;
    border-radius: 12px !important;
    border: 3px solid var(--primary-color, #000) !important;
    box-shadow: 4px 4px 0px #000 !important;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
}

.mini-info {
    flex: 1;
    min-width: 0;
}

.mini-info h4 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--heading-color, #000);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-info .tagline {
    font-size: 0.9rem;
    color: #444;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
}

.mini-info .address {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mini-info .address i {
    color: var(--primary-color);
}

.listing-rating {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-rating.has-reviews i {
    color: var(--primary-color);
}

.view-text-btn {
    font-weight: 900;
    background: var(--btn-bg, #000);
    color: var(--btn-text, #fff);
    font-size: 0.8rem;
    padding: 14px 28px;
    border-radius: 10px;
    transition: 0.2s;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-block;
    border: none;
    box-shadow: 3px 3px 0px var(--primary-color, var(--primary-color));
}

.view-text-btn:hover {
    background: var(--btn-hover-bg, var(--primary-color));
    color: var(--btn-hover-text, #fff);
    box-shadow: 3px 3px 0px #000;
}

.mini-card:hover .view-text-btn {
    background: var(--btn-hover-bg, var(--primary-color));
    color: var(--btn-hover-text, #fff);
    box-shadow: 3px 3px 0px #000;
}

/* Mobile Responsiveness for Mini Card */
@media (max-width: 600px) {
    .mini-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .mini-content {
        width: 100%;
    }

    .view-text-btn {
        width: 100%;
        text-align: center;
    }

    .mini-info h4 {
        white-space: normal;
    }
}

.listing-rating.has-reviews i {
    color: var(--primary-color);
}

/* === ARCHIVE / CATEGORY PAGE LAYOUT === */
/* === ARCHIVE / CATEGORY PAGE LAYOUT === */
.bizdir-archive-container {
    padding: 0;
    background: transparent;
}

.listings-layout-pro {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .listings-layout-pro {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .listings-layout-pro {
        grid-template-columns: 1fr;
    }

    .sidebar-pro-left {
        margin-bottom: 30px;
    }

    /* Ensure sidebar is visible on mobile */
    .sidebar-pro-left,
    .sidebar-pro-right {
        display: block !important;
        width: 100%;
    }
}

.premium-hero {
    background: #000;
    color: #fff;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 5px solid var(--primary-color);
}

.premium-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.premium-hero p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.sidebar-pro-left,
.sidebar-pro-right {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    height: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Sidebar Header Alignment Fix - Removed duplicate block */

.results-header {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* === PREMIUM SEARCH BAR STYLE === */
.bizdir-search-wrap {
    background: #000;
    padding: 30px 0;
    border-bottom: 5px solid var(--primary-color);
    margin-bottom: 30px;
}

.bizdir-search-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-inputs {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    align-items: center;
}

.input-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.input-box:last-of-type {
    border-right: none;
}

.input-box i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.input-box input {
    border: none;
    padding: 15px 0;
    width: 100%;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
}

.biz-search-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    white-space: nowrap;
}

.biz-search-btn:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    background: #fdd000;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .search-inputs {
        flex-direction: column;
        padding: 15px;
    }

    .input-box {
        border-right: none;
        border-bottom: 1px solid #eee;
        width: 100%;
        padding: 10px 0;
    }

    .biz-search-btn {
        width: 100%;
    }
}

/* === SIDEBAR FILTER STYLE === */
.bizdir-sidebar-filter {
    width: 100%;
    /* Removed padding/border to avoid double-box inside sidebar-pro-left */
    box-sizing: border-box !important;
    overflow: hidden;
    /* Prevent spillover */
}

.bizdir-sidebar-filter form {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bizdir-sidebar-filter h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.bizdir-sidebar-filter h3 i {
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.filter-group input,
.filter-group select {
    width: 100%;
    max-width: 100% !important;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box !important;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 218, 0, 0.1);
}

.filter-submit-btn {
    display: block;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #FFD700;
    /* Signature Yellow */
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center;
}

.filter-submit-btn:hover {
    background: #e6c200;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-reset-link {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    padding: 5px;
}

.filter-reset-link:hover {
    background-color: var(--hover-color) !important;
    color: var(--secondary-color) !important;
    color: #d32f2f;
    text-decoration: none;
}

/* === PROFESSIONAL PAGINATION === */
.navigation.pagination {
    margin-top: 40px;
    width: 100%;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 2px 2px 0px #eee;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-color, #FFDA00);
    color: #000 !important;
    border-color: #000;
    box-shadow: 3px 3px 0px #000;
}


.results-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg, #fff);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

#proResultsCount {
    font-weight: 800;
    color: var(--heading-color, #2c2c2c);
    font-size: 1rem;
