:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #1f458a;
    --primary-700: #0369a1;
    --primary-900: #0c4a6e;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light-gray: #f8fafc;
}
/* Main Content */
.sidebar {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .sidebar {
        width: 20rem;
    }
}

.filters-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filters-card h3 {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.filters-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.filters-card select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.filters-card select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-500);
    border-color: var(--primary-500);
}

.filters-card input[type="checkbox"],
.filters-card input[type="radio"] {
    border: 1px solid #d1d5db;
    color: var(--primary-600);
}

.filters-card input[type="checkbox"]:focus,
.filters-card input[type="radio"]:focus {
    box-shadow: 0 0 0 2px var(--primary-500);
}

.toggle-categories-btn {
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s;
}

.toggle-categories-btn:hover {
    color: var(--primary-700);
}

.featured-card {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.featured-card h3 {
    font-weight: 700;
    color: var(--primary-900);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.featured-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-600);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.btn-upgrade {
    width: 100%;
    background-color: var(--primary-600);
    color: white;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s;
}

.btn-upgrade:hover {
    background-color: var(--primary-700);
}

/* Stats Bar */
.stats-bar {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .stats-bar {
        padding: 0.75rem;
    }
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* View Toggle Buttons */
.btn-view-toggle {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    background-color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view-toggle:hover {
    background-color: #f9fafb;
    color: #374151;
}

.btn-view-toggle.active {
    background-color: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

/* Company Cards */

@media (max-width: 991px) {
    .company-card {
        padding: 0.5rem;
    }
}

.company-card.premium {
    border-color: #fbbf24;
}

.company-card.multi-branch {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.company-card.multi-branch.green-border {
    border: 2px solid rgba(34, 197, 94, 0.2);
}

.company-card.multi-branch.orange-border {
    border: 2px solid rgba(249, 115, 22, 0.2);
}

.company-logo {
    width: 6rem;
    height: 6rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.company-logo.bg-black { background-color: #000; }
.company-logo.bg-red-50 { background-color: #fef2f2; }
.company-logo.bg-blue-50 { background-color: #eff6ff; }
.company-logo.bg-gray-100 { background-color: #f3f4f6; }
.company-logo.bg-gradient-emerald { background: linear-gradient(135deg, #d1fae5, #99f6e4); }
.company-logo.bg-gradient-orange { background: linear-gradient(135deg, #fed7aa, #fde68a); }

.company-logo.small-img img {
    width: 4rem;
    height: 4rem;
}

.company-logo .placeholder-text {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--primary-600);
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

.rating-stars.gray {
    color: #d1d5db;
}

.rating-value {
    font-weight: 700;
    color: var(--dark);
    margin-top: 0.25rem;
}

.rating-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.company-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.company-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.company-info-ml {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.company-info span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.company-info i {
    color: var(--primary-500);
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
    display: inline-block;
}

.tag.blue { background-color: #dbeafe; color: #1e40af; }
.tag.green { background-color: #dcfce7; color: #166534; }
.tag.amber { background-color: #fef3c7; color: #92400e; }
.tag.teal { background-color: #ccfbf1; color: #115e59; }
.tag.purple { background-color: #f3e8ff; color: #6b21a8; }
.tag.yellow { background-color: #fef9c3; color: #854d0e; }
.tag.pink { background-color: #fce7f3; color: #9f1239; }
.tag.red { background-color: #fee2e2; color: #991b1b; }
.tag.indigo { background-color: #e0e7ff; color: #3730a3; }
.tag.sky { background-color: #e0f2fe; color: #075985; }
.tag.cyan { background-color: #cffafe; color: #155e75; }
.tag.orange { background-color: #ffedd5; color: #9a3412; }

.company-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.company-stats p {
    color: #6b7280;
    margin: 0;
}

.company-stats span {
    font-weight: 700;
    color: var(--primary-600);
    margin-left: 0.25rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .action-buttons {
        flex-direction: column;
        margin-top: 12px;
    }
}

.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #e0f2fe;
    color: #0284c7;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background-color 0.3s;
}

@media (min-width: 992px) {
    .action-btn {
        width: 3rem;
        height: 3rem;
    }
}

.action-btn:hover {
    background-color: #bae6fd;
}

.action-btn-primary {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-600);
}

.action-btn-primary:hover {
    background-color: rgba(14, 165, 233, 0.2);
}

.multi-branch-badge {
    position: absolute;
    top: 0.25rem;
    right: 1rem;
}

.badge-custom {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50rem;
}

.badge-green {
    background-color: #22c55e;
    color: white;
}

.badge-orange {
    background-color: #f97316;
    color: white;
}

.branch-locations {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.branch-locations h4 {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.branch-item i {
    color: #22c55e;
}

.branch-item.orange i {
    color: #f97316;
}

.heart-share-btns {
    display: flex;
    gap: 0.5rem;
    margin-top: 12px;
}

.heart-share-btn {
    width: 3rem;
    height: 3rem;
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    border: none;
    transition: background-color 0.3s;
}

.heart-share-btn:hover {
    background-color: rgba(14, 165, 233, 0.2);
}

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #1f458a;
    --primary-700: #0369a1;
    --primary-900: #0c4a6e;
    --accent: #f59e0b;
    --dark: #1e293b;
    --light-gray: #f8fafc;
}
    /* Sidebar */
#filters-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

#filters-card h3 {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.form-select {
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

.form-check-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Featured Card */
#featured-card {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

#featured-card h3 {
    font-weight: 700;
    color: var(--primary-900);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.featured-icon-box {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-600);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-upgrade {
    background-color: var(--primary-600);
    color: white;
    padding: 0.625rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s;
}

.btn-upgrade:hover {
    background-color: var(--primary-700);
}

/* Stats Bar */
#stats-bar {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    #stats-bar {
        padding: 0.75rem;
    }
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
}

@media (min-width: 992px) {
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.875rem;
    }
}

/* View Toggle Buttons */
.view-toggle-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.view-toggle-btn.active {
    background-color: var(--primary-600);
    color: white;
}

.view-toggle-btn.inactive {
    border: 1px solid #E5E7EB;
    color: #6B7280;
    background-color: white;
}

.view-toggle-btn.inactive:hover {
    background-color: #F9FAFB;
}

/* Company Cards */
.company-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
    overflow: hidden;
    height: 100%;
}

.company-card-list {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.company-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.company-card.featured {
    border: 2px solid #FBBF24;
}

.company-card-link {
    text-decoration: none;
    color: inherit;
}

.card-image {
    height: 13rem;
    position: relative;
    overflow: hidden;
}

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

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

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.action-btn {
    width: 2.25rem;
    height: 2.25rem;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: white;
    color: #374151;
}

.activeLst {
    background-color: #f48435 !important;
}

.card-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.logo-container {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.logo-container img {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
}

.logo-placeholder {
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-600);
}

.badge-multi-branch {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #10B981;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 10;
}

/* Card Body */
.card-body-custom {
    padding: 1.5rem;
}

@media (max-width: 991px) {
    .card-body-custom {
        padding: 0.75rem;
    }
}

@media (min-width: 992px) {
    .card-body-custom {
        padding: 1.5rem;
    }
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    padding-left: 0 !important;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #FBBF24;
}

.rating-number {
    color: var(--dark);
    font-weight: 600;
}

.company-description {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.contact-info {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-icon {
    color: var(--primary-500);
    width: 1rem;
    text-align: center;
}

.location-more {
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.location-more:hover {
    text-decoration: underline;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 3.5rem;
}

.stats-footer {
    padding-top: 1rem;
    border-top: 1px solid #F3F4F6;
    font-size: 0.75rem;
    color: #6B7280;
}

.stat-item {
    display: inline;
}

.stat-value {
    font-weight: 700;
    color: var(--dark);
}

/* Branch Locations Box */
.branch-locations {
    background-color: #F9FAFB;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.branch-locations h4 {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.branch-icon {
    color: #10B981;
    width: 1rem;
    text-align: center;
}

/* Action Buttons in Footer */
.footer-actions .action-btn-square {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(14, 165, 233, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    border: none;
    transition: background-color 0.3s;
}

.footer-actions .action-btn-square:hover {
    background-color: rgba(14, 165, 233, 0.2);
}