body {
    background: #f5f6f8;
}

/* Main Container */
.container-main-search {
    display: flex;
    gap: 30px;
}

/* Hero Primary Filter Tabs */
.hero-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    position: absolute;
    left: 0;
    transform: translate(-190px, -77px);
    top: 0;
    right: 0;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
}

    .hero-tabs .active-listing-type {
        background: var(--selectedTabBackgroundColor);
    }

.hero-tab {
    padding: 16px 32px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    color: #fff;
    flex-shrink: 0;
    white-space: nowrap;
}

    .hero-tab::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: white;
        transform: scaleX(0);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-tab:first-child {
        border-radius: 8px 0 0 0;
    }

    .hero-tab:last-child {
        border-radius: 0 8px 0 0;
    }

    .hero-tab:hover:not(.active) {
        background: var(--selectedTabBackgroundColor);
        color: #fff;
    }

    /* .hero-tab.active {
        background: white;
        color: #667eea;
    }*/

    .hero-tab.active::before {
        transform: scaleX(1);
        background: var(--selectedTabBackgroundColor);
    }

    .hero-tab i {
        font-size: 18px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-tab:hover i {
        transform: scale(1.15);
    }

    .hero-tab.active i {
        animation: heroIconPop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

@keyframes heroIconPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.hero-tab .tab-count {
    background: #fff;
    color: var(--selectedTabBackgroundColor);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tab:not(.active) .tab-count {
    background: rgba(255,255,255,0.2);
    color: white;
}


/* Sidebar */
.sidebar {
    width: 350px;
    background: white;
    padding: 0 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: fit-content;
    margin: 0 auto;
    padding: 0 15px;
}

.filter-section {
    border-bottom: 1px solid #e1e4e8 !important;
    padding: 12px 5px;
    overflow: hidden;
}

    .filter-section:last-child {
        border-bottom: none;
    }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-title {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

    .filter-title .section-header-info-icon {
        color: #9ca3af;
        font-size: 14px;
        margin-left: 4px;
        cursor: pointer;
        transition: color 0.2s ease;
        flex-shrink: 0;
    }

        .filter-title .section-header-info-icon:hover {
            color: #667eea;
        }

.expand-icon {
    transition: transform 0.3s;
    color: #666;
}

.filter-header.collapsed .expand-icon {
    transform: rotate(-90deg);
}

.filter-content {
    max-height: 100%;
    transition: max-height 0.3s ease;
}

    .filter-content.collapsed {
        max-height: 0;
    }

    /* Category Filter Content Styling - Single Scrollbar Only */
    .filter-content div[id^="categoryFilterContent_"] {
        padding-top: 0;
        max-height: none;
    }

    /* Only the innermost category filter container should have scroll */
    .filter-content div[id^="categoryFilter_"] {
        width: 100%;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        word-wrap: break-word;
    }

        /* Ensure category filter content is properly styled */
        .filter-content div[id^="categoryFilter_"] .category-group,
        .filter-content div[id^="categoryFilter_"] .main-category,
        .filter-content div[id^="categoryFilter_"] .subcategory {
            width: 100%;
        }

        /* Style the search container in category filter */
        .filter-content div[id^="categoryFilter_"] .search-container {
            margin-bottom: 12px;
        }

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

    .filter-option input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: var(--selectedSideTabBackgroundColor) !important;
    }

    .filter-option label {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 1;
        font-size: 13px;
    }

.count {
    color: #999;
    font-size: 12px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Average Ratings Filter */
.avg-ratings-container {
    margin-bottom: 12px;
}

.avg-ratings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.avg-ratings-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ratings-gear-button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    color: #999;
}

    .ratings-gear-button:hover {
        background: #f5f5f5;
        color: #666;
    }

    .ratings-gear-button.active {
        background: #e8f4f0;
        color: #2a9d8f;
    }

.ratings-gear-icon {
    width: 14px;
    height: 14px;
}

.ratings-settings-panel {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    display: none;
}

    .ratings-settings-panel.open {
        display: block;
        animation: slideDown 0.2s ease;
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ratings-settings-title {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ratings-settings-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
}

.ratings-settings-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.ratings-settings-option.selected .ratings-settings-checkbox {
    background: #2a9d8f;
    border-color: #2a9d8f;
}

.ratings-settings-checkbox::after {
    content: '✓';
    color: white;
    font-size: 9px;
    opacity: 0;
}

.ratings-settings-option.selected .ratings-settings-checkbox::after {
    opacity: 1;
}

.ratings-settings-label {
    font-size: 12px;
    color: #555;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

    .rating-row:hover {
        background: #f8f8f8;
    }

    .rating-row.selected {
        background: #e8f4f0;
    }

.rating-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.rating-row.selected .rating-checkbox {
    background: #2a9d8f;
    border-color: #2a9d8f;
}

.rating-checkbox::after {
    content: '✓';
    color: white;
    font-size: 9px;
    opacity: 0;
}

.rating-row.selected .rating-checkbox::after {
    opacity: 1;
}

.rating-star-label {
    width: 45px;
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
}

.rating-bar-container {
    flex: 1;
    height: 14px;
    background: #eee;
    border-radius: 7px;
    overflow: hidden;
}

.rating-bar {
    height: 100%;
    background: linear-gradient(90deg, #f4a261, #e9c46a);
    border-radius: 7px;
    transition: width 0.3s ease;
}

.rating-count {
    width: 28px;
    text-align: right;
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.unrated-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s;
}

    .unrated-section:hover {
        border-color: #bbb;
        background: #f5f5f5;
    }

    .unrated-section.selected {
        background: #f0f0f0;
        border: 1px solid #999;
    }

.unrated-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.unrated-section.selected .unrated-checkbox {
    background: #666;
    border-color: #666;
}

    .unrated-section.selected .unrated-checkbox::after {
        content: '✓';
        color: white;
        font-size: 9px;
    }

.unrated-text {
    font-size: 12px;
    color: #555;
    flex: 1;
}

.unrated-count {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

/* Compact NPS Histogram Filter */
.nps-filter-widget {
    margin-bottom: 15px;
}

.nps-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nps-widget-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .nps-widget-title h4 {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

.nps-info-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #6b7280;
    cursor: help;
    position: relative;
}

    .nps-info-icon:hover::after {
        content: 'Net Promoter Score: -100 to 100';
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #1f2937;
        color: white;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 10px;
        white-space: nowrap;
        z-index: 100;
    }

.nps-widget-stats {
    font-size: 11px;
    color: #6b7280;
}

    .nps-widget-stats strong {
        color: #1f2937;
    }

.nps-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nps-settings-container {
    position: relative;
}

.nps-gear-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    font-size: 12px;
}

    .nps-gear-icon:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .nps-gear-icon.active {
        background: #f3f4f6;
        border-color: #9ca3af;
    }

.nps-settings-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 160px;
    display: none;
}

    .nps-settings-dropdown.show {
        display: block;
    }

.nps-dropdown-title {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f3f4f6;
}

.nps-filter-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

    .nps-filter-option:hover {
        background: #f9fafb;
    }

.nps-filter-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: white;
    position: relative;
    transition: all 0.2s;
}

    .nps-filter-checkbox.checked {
        background: #667eea;
        border-color: #667eea;
    }

        .nps-filter-checkbox.checked::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 9px;
            font-weight: bold;
        }

.nps-filter-label {
    font-size: 12px;
    color: #4b5563;
}

.nps-active-indicator {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
}

    .nps-active-indicator.show {
        display: block;
    }

/* NPS Histogram */
.nps-histogram-wrapper {
    background: #fafbfc;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.nps-histogram-container {
    position: relative;
    height: 90px;
}

.nps-histogram-bars {
    display: flex;
    align-items: flex-end;
    height: 70px;
    gap: 1px;
    position: relative;
}

.nps-hist-bar {
    flex: 1;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 1px 1px 0 0;
    min-width: 2px;
}

    .nps-hist-bar.detractor {
        background: #ef4444;
    }

    .nps-hist-bar.passive {
        background: #f59e0b;
    }

    .nps-hist-bar.promoter {
        background: #10b981;
    }

    .nps-hist-bar.selected.detractor {
        background: #ef4444;
    }

    .nps-hist-bar.selected.passive {
        background: #f59e0b;
    }

    .nps-hist-bar.selected.promoter {
        background: #10b981;
    }

    .nps-hist-bar:not(.selected) {
        background: #e5e7eb;
        opacity: 0.4;
    }

    .nps-hist-bar:hover {
        opacity: 0.8;
    }

.nps-hist-tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.nps-hist-bar:hover .nps-hist-tooltip {
    opacity: 1;
}

/* NPS Brush selector */
.nps-brush-selector {
    position: absolute;
    top: 0;
    height: 70px;
    background: rgba(102, 126, 234, 0.08);
    border: 2px solid #667eea;
    border-radius: 3px;
    cursor: move;
    transition: background 0.2s;
}

    .nps-brush-selector:hover {
        background: rgba(102, 126, 234, 0.12);
    }

.nps-brush-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    background: #667eea;
    cursor: ew-resize;
    transition: background 0.2s;
}

    .nps-brush-handle:hover {
        background: #5b63d8;
    }

    .nps-brush-handle.left {
        left: -2px;
        border-radius: 3px 0 0 3px;
    }

    .nps-brush-handle.right {
        right: -2px;
        border-radius: 0 3px 3px 0;
    }

.nps-x-axis {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 9px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
}

/* NPS Summary mini cards */
.nps-summary-mini {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.nps-summary-mini-card {
    flex: 1;
    background: #f9fafb;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.nps-summary-mini-label {
    font-size: 9px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.nps-summary-mini-value {
    font-size: 14px;
    font-weight: 600;
}

.nps-summary-mini-card.detractor .nps-summary-mini-value {
    color: #ef4444;
}

.nps-summary-mini-card.passive .nps-summary-mini-value {
    color: #f59e0b;
}

.nps-summary-mini-card.promoter .nps-summary-mini-value {
    color: #10b981;
}

.nps-selected-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.nps-range-text {
    color: #667eea;
    font-weight: 600;
    background: #ede9fe;
    padding: 4px 8px;
    border-radius: 4px;
}

.nps-reset-btn {
    padding: 4px 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 10px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

    .nps-reset-btn:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

.info-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e1e4e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    cursor: pointer;
}

/* Range Slider */
.range-slider {
    margin: 15px 0;
}

.slider-track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    position: relative;
    margin: 10px 0 15px;
}

.slider-fill {
    position: absolute;
    height: 100%;
    background: #e74c3c;
    border-radius: 3px;
    left: 0;
    right: 0;
}

.slider-handle {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Toggle Switch */
.toggle-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    position: relative;
    overflow: visible;
}

.toggle-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.toggle-switch {
    width: 44px;
    height: 24px;
    background: #e1e4e8;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

    .toggle-switch input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 1;
    }

    .toggle-switch.active {
        background: #667eea;
    }

    .toggle-switch::after {
        content: '';
        width: 20px;
        height: 20px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 2px;
        left: 2px;
        transition: transform 0.3s;
        pointer-events: none;
        z-index: 0;
    }

    .toggle-switch.active::after {
        transform: translateX(20px);
    }

/* Ensure tooltips work in toggle options */
.toggle-option {
    overflow: visible;
}

    .toggle-option .filter-tooltip-container {
        position: relative;
        z-index: 1;
    }

/* Location Search */
.location-search {
    position: relative;
    margin-bottom: 15px;
}

.location-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.location-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
}

.location-pin-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.location-clear-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

    .location-clear-icon:hover {
        background: #f0f0f0;
        color: #333;
    }

    .location-clear-icon:hover {
        background: #f0f0f0;
        color: #333;
    }

/* Categories Search */
.category-search {
    margin-bottom: 15px;
}

.category-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 18px;
}

/* Category Search */
.category-search {
    margin-bottom: 12px;
}

    .category-search .search-container {
        position: relative;
        width: 100%;
    }

    .category-search .search-input,
    .category-search-input {
        width: 100%;
        padding: 10px 14px 10px 40px;
        border: 1px solid #e1e4e8;
        border-radius: 6px;
        font-size: 13px;
        color: #333;
        background: white;
        transition: all 0.2s ease;
    }

        .category-search .search-input:focus,
        .category-search-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .category-search .search-input::placeholder,
        .category-search-input::placeholder {
            color: #9ca3af;
        }

    .category-search .search-icon {
        position: absolute;
        left: 5px;
        top: 11px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2;
        right: unset;
    }

    .category-search .close-icon {
        position: absolute;
        right: 8px;
        top: 20px;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2;
        color: #999;
    }

    .category-search .floating-icons-block .search-icon i {
        font-size: 16px;
    }

    .category-search .close-icon:hover {
        color: #333;
    }

/* Category Tree with Three Levels */
.category-tree {
    display: block;
    max-height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100%;
}

    .category-tree > div {
        display: block;
    }

    /* Ensure category containers are visible */
    .category-tree #mainCategoryContainer,
    .category-tree [id^="mainCategoryContainer"] {
        display: block;
        width: 100%;
    }

    .category-tree [id^="mainCategoryContainer"] + [id^="mainCategoryContainer"] {
        border-top: 1px solid #e0e0e0;
        margin-top: 16px;
        padding-top: 8px;
    }

    /* Style existing category structure within category-tree */
    .category-tree .category-group {
        margin-bottom: 8px;
        display: block;
    }

    .category-tree .main-category {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0 0;
        cursor: pointer;
        border-bottom: none;
    }

        .category-tree .main-category:hover {
            background-color: #f8f9fa;
        }

    .category-tree .main-category-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        margin-bottom: 4px;
    }

    .category-tree .main-category-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .category-tree .category-text {
        font-size: 14px;
        color: #333;
        font-weight: 500;
    }

    .category-tree .subcategory {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0 6px 22px;
        cursor: pointer;
    }

        .category-tree .subcategory:hover {
            background-color: #f8f9fa;
        }

    .category-tree .subcategory-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }

    .category-tree .subcategory-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .category-tree .subcategory-text {
        font-size: 13px;
        color: #555;
    }

    .category-tree .filter-heading-secondary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 0 0;
        margin-bottom: 8px;
        border-bottom: none;
    }

    .category-tree .filter-heading-text {
        font-size: 14px;
        font-weight: 600;
        color: #333;
    }

    .category-tree .badge {
        background: #f5f5f5;
        color: #666;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;
    }

    .category-tree .checkbox {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: var(--selectedSideTabBackgroundColor);
    }

.category-item {
    margin-bottom: 4px;
}

.show-more {
    margin-left: 25px;
}

.filter-clear-flex {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.category-parent {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
}

.category-expand {
    width: 16px;
    display: flex;
    justify-content: center;
    color: #666;
    transition: transform 0.2s;
    font-size: 12px;
}

    .category-expand.expanded {
        transform: rotate(90deg);
    }

/* First level subcategories */
.category-children {
    margin-left: 16px;
    margin-top: 4px;
    display: none;
}

    .category-children.expanded {
        display: block;
    }

.category-child {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
}

.subcategory-parent {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 5px 0;
    width: 100%;
}

.subcategory-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subcategory-name {
    color: #333;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Second level subcategories (third level) */
.subcategory-children {
    margin-left: 20px;
    margin-top: 2px;
    display: none;
}

    .subcategory-children.expanded {
        display: block;
    }

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
}

    .subcategory-item label {
        flex: 1;
        display: flex;
        justify-content: space-between;
        color: #555;
        cursor: pointer;
    }

    .subcategory-item .count {
        font-size: 11px;
    }

/* Location Types */
.location-types {
    margin-top: 15px;
}

.location-type-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.location-type-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

    .location-type-option input[type="checkbox"] {
        margin-top: 2px;
    }

.location-type-text {
    flex: 1;
}

.location-type-name {
    font-size: 14px;
    color: #333;
    display: block;
}

.location-type-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Distance Range */
.distance-range {
    margin-top: 20px;
}

.distance-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.distance-slider-container {
    position: relative;
    height: 40px;
    width: 95%;
}

.distance-slider-input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}

    .distance-slider-input::-webkit-slider-thumb {
        appearance: none;
        width: 24px;
        height: 24px;
        cursor: pointer;
    }

    .distance-slider-input::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border: none;
        cursor: pointer;
    }

.distance-track {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: 0;
}

.distance-fill {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 0%;
    transition: width 0.2s ease;
    z-index: 1;
}

.distance-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    left: 0%;
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: left 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

    .distance-thumb:active {
        cursor: grabbing;
    }

.distance-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-size: 12px;
    color: #666;
    width: 97%;
}

.collapse-btn {
    margin-top: 10px;
    padding: 6px 0;
    background: none;
    border: none;
    color: #667eea;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Search Bar */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    clear: both;
    display: inline-block;
    width: 100%;
}

.company-listing-cards {
    clear: both;
}

.auto-complete-category-text-search-box {
    border: 1px solid #eee !important;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 15px;
    border: none;
}

.filter-location-advance-style.top-bar-style input#searchFreeTextSearch:focus {
    box-shadow: none !important;
}

span.badge p {
    margin-bottom: 0;
}

.close-button-for-search {
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn.featured-filter-button {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    width: 100% !important;
    gap: 10px;
    padding: 6px 14px;
}

.featured-filter-button02 {
    line-height: 1.8;
}

.featured-filter-button01 {
    gap: 10px;
}
/* Active Filters Bar */
.active-filters-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
}

.active-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.active-filters-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #667eea;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f0f4ff;
    border: 1px solid #d0d9ff;
    border-radius: 20px;
    font-size: 13px;
    color: #4a5568;
    transition: all 0.2s;
}

    .filter-chip:hover {
        background: #e0e7ff;
        border-color: #667eea;
    }

.filter-chip-category {
    font-weight: 600;
    color: #667eea;
}

.filter-chip-value {
    color: #333;
}

.filter-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

    .filter-chip-remove:hover {
        background: #5a67d8;
    }

.reset-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .reset-all-filters:hover {
        background: #f1f5f9;
        color: #64748b;
    }

    .reset-all-filters svg {
        width: 12px;
        height: 12px;
    }

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e4e8;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

    .search-input:focus {
        outline: none;
        border-color: #667eea;
    }

.search-button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .search-button:hover {
        background: #5a67d8;
    }

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 5px;
    width: 100%;
}

.searchResultMessageSection {
    float: left;
}

.results-count {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.view-options {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    float: right;
    clear: both;
    flex: 1;
}

.view-toggle-group {
    display: flex;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    overflow: hidden;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

    .view-toggle-btn i {
        font-size: 16px;
        font-weight: 400;
    }

    .view-toggle-btn:not(:last-child) {
        border-right: 1px solid #e1e4e8;
    }

    .view-toggle-btn:hover {
        background: #f5f5f5;
        color: #667eea;
    }

    .view-toggle-btn.active {
        background: #667eea;
        color: white;
    }

    .view-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

.map-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

    .map-toggle-btn:hover {
        border-color: #667eea;
        color: #667eea;
    }

    .map-toggle-btn.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

    .map-toggle-btn svg {
        width: 16px;
        height: 16px;
    }

.sort-dropdown {
    padding: 8px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

/* Results Grid - Card View (default) */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

    /* Results Grid - List View */
    .results-grid.list-view {
        grid-template-columns: 1fr;
        gap: 16px;
    }

        /* List view - same as card view, just single column */
        .results-grid.list-view .card {
            /* Keep default card styling - no grid override */
        }

        .results-grid.list-view .card-action-menu {
            /* Keep same position as card view */
        }

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.card-footer {
    margin-top: auto;
    padding: 15px 0 0 0 !important;
}

/* Product Card Specific */
.card.product-card {
    border-color: var(--ProductCardBorderColor);
    background: linear-gradient(to bottom, var(--ProductCardBackgroundColor) 0%, white 30%);
}

    .card.product-card::before {
        /* content: 'PRODUCT';*/
        content: var(--before-content);
        position: absolute;
        top: -1px;
        right: 20px;
        background: var(--ProductCardBorderColor);
        color: white;
        padding: 4px 12px;
        border-radius: 0 0 8px 8px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

/* Company Card Specific */
.card.company-card {
    border-color: var(--CompanyCardBorderColor);
    background: linear-gradient(to bottom, var(--CompanyCardBackgroundColor) 0%, white 30%);
}

    .card.company-card::before {
        /* content: 'COMPANY';*/
        content: var(--before-content);
        position: absolute;
        top: -1px;
        right: 20px;
        background: var(--before-bg, var(--CompanyCardBorderColor));
        color: var(--before-color, white);
        padding: 4px 12px;
        border-radius: 0 0 8px 8px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

/* Project Card Specific */
.card.project-card {
    border-color: var(--ProjectCardBorderColor);
    background: linear-gradient(to bottom, var(--ProjectCardBackgroundColor) 0%, white 30%);
}

    .card.project-card::before {
        /*content: 'PROJECT';*/
        content: var(--before-content);
        position: absolute;
        top: -1px;
        right: 20px;
        background: var(--ProjectCardBorderColor);
        color: white;
        padding: 4px 12px;
        border-radius: 0 0 8px 8px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

/* Resource Card Specific */
.card.resource-card {
    border-color: var(--ResourceCardBorderColor);
    background: linear-gradient(to bottom, var(--ResourceCardBackgroundColor) 0%, white 30%);
}

    .card.resource-card::before {
        /* content: 'RESOURCE';*/
        content: var(--before-content);
        position: absolute;
        top: -1px;
        right: 20px;
        background: var(--ResourceCardBorderColor);
        color: white;
        padding: 4px 12px;
        border-radius: 0 0 8px 8px;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    padding-right: 40px; /* Make room for action menu */
    background-color: unset !important;
    padding-left: 0 !important;
    border-bottom: 0 !important;
    position: relative;
}

/* Logo column - contains logo, logo badge, and icon badges */
.card-logo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 100px; /* Fixed width to match logo */
}

.card-logo {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

    .card-logo:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* Logo with image */
    .card-logo.has-image {
        background: white;
        border: 1px solid #e2e8f0;
        padding: 4px;
    }

        .card-logo.has-image img,
        .card-logo.has-image svg {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 6px;
        }

.product-card .card-logo {
    background: linear-gradient(135deg, var(--ProductCardBorderColor), var(--ProductCardButtonColor));
}

    .product-card .card-logo.has-image {
        background: white;
    }

.company-card .card-logo {
    background: linear-gradient(135deg, var(--CompanyCardBorderColor), var(--CompanyCardButtonColor));
}

    .company-card .card-logo.has-image {
        background: white;
    }

.card-title-section {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

    .card-title:hover {
        color: #667eea;
    }

.card-subtitle {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    row-gap: 4px;
    word-break: break-word;
}

.company-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

    .company-link:hover {
        text-decoration: underline;
    }

/* Badges row - positioned under logo, horizontal */
.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    justify-content: flex-start;
    align-items: center;
}

    .badges-row .badge {
        font-size: 9px;
        padding: 4px 8px;
        line-height: 10px;
    }

.card-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

    .card-description:hover {
        color: #333;
    }

/* Enhanced Tags Section - Single Line Only */
.card-tags {
    margin-bottom: 15px;
    position: relative;
    height: 30px;
    overflow: hidden;
}

    /* Expanded tags when no products section */
    .card.no-products .card-tags,
    .card-tags.expanded {
        height: auto;
        overflow: visible;
    }

        .card.no-products .tags-container,
        .card-tags.expanded .tags-container {
            flex-wrap: wrap;
            white-space: normal;
        }

        .card.no-products .more-tags-inline,
        .card-tags.expanded .more-tags-inline {
            display: none;
        }

/* Show all tags in expanded view */
.tags-hidden {
    display: none;
}

.card.no-products .tags-hidden,
.card-tags.expanded .tags-hidden {
    display: inline-block;
}

.tags-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.tag {
    padding: 4px 10px;
    background: #f1f3f5;
    border-radius: 20px;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    line-height: 1.2;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 115px;
}

    .tag.primary {
        background: var(--CompanyCategoryBadgeBackgroundColor);
        color: var(--CompanyCategoryBadgeTextColor);
        border: 1px solid var(--CompanyCategoryBadgeBorderColor);
        font-weight: 500;
    }

        .tag.primary:hover {
            background: var(--CompanyCategoryBadgeHoverBackgroundColor);
            color: var(--CompanyCategoryBadgeHoverTextColor);
        }

.more-tags-inline {
    padding: 4px 12px;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}



/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

    .badge:hover {
        cursor: pointer;
    }

.badge-certified {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-award {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

span.badge.badge-award.logo-badge {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 11em;
}

/*.badge-booth {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}*/

.badge-featured {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

.badge-verified {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.badge svg {
    width: 12px;
    height: 12px;
}

/* Logo badge overlay */
.card-logo-container {
    position: relative;
    flex-shrink: 0;
}

.logo-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    font-size: 9px;
    padding: 3px 8px;
    min-width: 93px;
}

/* Certification badges section */
.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

/* Awards section */
.awards-section {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.award-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 10px;
    font-size: 12px;
    color: #555;
    border: 1px solid #e1e4e8;
    transition: all 0.2s;
}

.award-item-name img.current-badge {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.award-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
    cursor: pointer;
}

.award-item svg {
    width: 14px;
    height: 14px;
    color: #eab308;
    flex-shrink: 0;
}

.award-item-name {
    font-weight: 500;
}

/* Icon Badges (Font Awesome) */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

    .icon-badge:hover {
        transform: scale(1.15);
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
        cursor: pointer;
    }

    /* Integration badges - brand colors */
    .icon-badge.salesforce {
        background: #00A1E0;
        color: white;
    }

    .icon-badge.hubspot {
        background: #FF7A59;
        color: white;
    }

    .icon-badge.slack {
        background: #4A154B;
        color: white;
    }

    .icon-badge.zapier {
        background: #FF4A00;
        color: white;
    }

    .icon-badge.microsoft {
        background: linear-gradient(135deg, #00A4EF, #7FBA00);
        color: white;
    }

    .icon-badge.google {
        background: #4285F4;
        color: white;
    }

    /* Feature badges */
    .icon-badge.api {
        background: #1e293b;
        color: #22d3ee;
    }

    .icon-badge.mobile {
        background: linear-gradient(135deg, #a855f7, #6366f1);
        color: white;
    }

    .icon-badge.cloud {
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
        color: white;
    }

    .icon-badge.security {
        background: linear-gradient(135deg, #dc2626, #991b1b);
        color: white;
    }

    .icon-badge.support {
        background: linear-gradient(135deg, #16a34a, #15803d);
        color: white;
    }

    .icon-badge.accessibility {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
    }

    .icon-badge.gdpr {
        background: linear-gradient(135deg, #7c3aed, #5b21b6);
        color: white;
    }

    .icon-badge.sso {
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }

    .icon-badge.analytics {
        background: linear-gradient(135deg, #ec4899, #be185d);
        color: white;
    }

    .icon-badge.ai {
        background: linear-gradient(135deg, #8b5cf6, #6d28d9);
        color: white;
    }

.icon-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

/* Icon badges positioned directly under logo */
.icon-badges-under-logo {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 4px; /* Small gap after logo/badge */
}

/* Icon badges inside card-logo-column */
.card-logo-column .icon-badges-under-logo {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* 3-dot Action Menu */
.card-action-menu {
    position: absolute;
    top: 35px;
    right: 12px;
    z-index: 12;
}

.action-menu-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

    .action-menu-btn:hover {
        background: #f5f5f5;
        color: #333;
    }

    .action-menu-btn svg {
        width: 18px;
        height: 18px;
    }

.action-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

/* Only .open controls visibility so click-to-toggle works (hover would keep dropdown visible after close) */
.card-action-menu.open .action-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
    cursor: pointer;
}

    .action-menu-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .action-menu-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .action-menu-item:hover {
        background: #f5f7fa;
        color: #333;
    }

    .action-menu-item i {
        width: 16px;
        height: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 15px;
        font-weight: 500;
        color: #666;
    }

a.action-menu-item.contact-not-available, a.action-menu-item.email-not-available, a.action-menu-item.location-not-available {
    cursor: not-allowed;
}


.action-menu-divider {
    height: 1px;
    background: #e1e4e8;
    margin: 4px 0;
}

/* Category "more" dropdown - same pattern as card-action-menu, contained in card */
/* transform: translateZ(0) forces this element to be the containing block so absolute menu positions relative to the trigger, not an ancestor */
.category-more-dropdown {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transform: translateZ(0);
}

    .category-more-dropdown .category-more-trigger {
        cursor: pointer;
    }

.category-more-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 240px;
    width: 240px;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 110;
}

.category-more-dropdown.open .category-more-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.category-more-dropdown-item {
    display: block;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    width: 100%;
    min-width: 0;
    text-align: left;
    background: transparent;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .category-more-dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .category-more-dropdown-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    .category-more-dropdown-item:hover {
        background: #f5f7fa;
        color: #333;
    }

/* When category dropdown is open: allow overflow so menu is not clipped, and stack card above neighbors so dropdown does not sit under adjacent card */
.card.category-dropdown-open,
.sponsored-card.category-dropdown-open {
    position: relative;
    z-index: 20;
}

    /* Stack categories section above footer so dropdown draws on top of "View Company" and other footer content */
    .card.category-dropdown-open .company-categories-products,
    .card.category-dropdown-open .card-tags,
    .sponsored-card.category-dropdown-open .company-categories-products,
    .sponsored-card.category-dropdown-open .card-tags {
        position: relative;
        z-index: 15;
    }

    .card.category-dropdown-open .card-tags,
    .sponsored-card.category-dropdown-open .card-tags {
        height: auto;
        overflow: visible;
    }

    .card.category-dropdown-open .cp-row,
    .card.category-dropdown-open .cp-items,
    .card.category-dropdown-open .tags-container,
    .sponsored-card.category-dropdown-open .cp-row,
    .sponsored-card.category-dropdown-open .cp-items,
    .sponsored-card.category-dropdown-open .tags-container {
        overflow: visible;
    }

/* Testimonial */
.card-testimonial {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border-left: 3px solid #667eea;
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 15px;
    position: relative;
}

    .card-testimonial::before {
        content: '"';
        position: absolute;
        top: 6px;
        left: 10px;
        font-size: 28px;
        color: #667eea;
        opacity: 0.3;
        font-family: Georgia, serif;
        line-height: 1;
    }

.testimonial-text {
    font-size: 13px;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 18px;
}

.testimonial-author {
    font-size: 12px;
    color: #777;
    padding-left: 18px;
}

    .testimonial-author strong {
        color: #444;
        font-weight: 600;
    }

/* Company Products Section */
.company-products {
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--CompanyProductProjectBoxBackgroundColor) 0%, var(--CompanyProductProjectBoxBackgroundColor) 100%);
    border: 1px solid var(--CompanyProductProjectBoxBorderColor);
    border-radius: 8px;
    padding: 12px 8px;
}

.products-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.products-icon {
    width: 20px;
    height: 20px;
    background: var(--CompanyProductProjectBoxBadgeHoverBackgroundColor);
    color: var(--CompanyProductProjectBoxBadgeHoverTextColor) !important;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.products-label {
    color: var(--CompanyProductProjectBoxBadgeTextColor);
    font-weight: 600;
    font-size: 13px;
}

.products-count {
    background: var(--CompanyProductProjectBoxBadgeHoverBackgroundColor);
    color: var(--CompanyProductProjectBoxBadgeHoverTextColor);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    text-decoration: none;
}


.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-link {
    background: var(--CompanyProductProjectBoxBadgeBackgroundColor);
    color: var(--CompanyProductProjectBoxBadgeTextColor);
    border: 1px solid var(--CompanyProductProjectBoxBorderColor);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

    .product-link:hover {
        background: var(--CompanyProductProjectBoxBadgeHoverBackgroundColor);
        color: var(--CompanyProductProjectBoxBadgeHoverTextColor);
        border-color: var(--CompanyProductProjectBoxBorderColor);
    }

.products-more {
    background: var(--CompanyProductProjectBoxBadgeBackgroundColor);
    color: var(--CompanyProductProjectBoxBadgeTextColor);
    border: 1px dashed var(--CompanyProductProjectBoxBorderColor);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
    text-decoration: none;
}

    .products-more:hover {
        background: var(--CompanyProductProjectBoxBadgeHoverBackgroundColor);
        color: var(--CompanyProductProjectBoxBadgeHoverTextColor);
        border-style: solid;
    }

/* Quick Actions Icons */
/* Contact Icons in Footer - Minimal */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
    gap: 12px;
    background-color: unset !important;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.followers-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.card-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #667eea;
    color: white;
}

    .btn-primary:hover {
        background: #5a67d8;
    }

/* Product card - green buttons */
.product-card .btn-primary {
    background: var(--ProductCardBorderColor);
}

    .product-card .btn-primary:hover {
        background: var(--ProductCardButtonColor);
        border-color: var(--ProductCardButtonColor);
    }

.product-card .btn-secondary {
    color: var(--ProductCardBorderColor);
    border-color: var(--ProductCardBorderColor);
}

    .product-card .btn-secondary:hover {
        background: var(--ProductCardBackgroundColor);
    }


.product-card .btn-new-window {
    color: var(--ProductCardBorderColor);
    border-color: var(--ProductCardBorderColor);
}

    .product-card .btn-new-window:hover {
        background: var(--ProductCardButtonColor);
        border-color: var(--ProductCardButtonColor);
        color: white;
    }

/* Company card - blue buttons */
.company-card .btn-primary {
    background: var(--CompanyCardBorderColor);
}

    .company-card .btn-primary:hover {
        background: var(--CompanyCardButtonColor);
        border-color: var(--CompanyCardButtonColor);
    }

.company-card .btn-secondary {
    color: var(--CompanyCardBorderColor);
    border-color: var(--CompanyCardBorderColor);
}

    .company-card .btn-secondary:hover {
        background: var(--CompanyCardBackgroundColor);
    }

.company-card .btn-new-window {
    color: var(--CompanyCardBorderColor);
    border-color: var(--CompanyCardBorderColor);
}

    .company-card .btn-new-window:hover {
        background: var(--CompanyCardButtonColor);
        border-color: var(--CompanyCardButtonColor);
        color: white;
    }

.btn-secondary {
    background: white;
    color: #667eea;
    border: 1px solid #667eea;
}

    .btn-secondary:hover {
        background: #f7fafc;
    }

.company-followed-icon {
    background: var(--CompanyCardBorderColor) !important;
    color: #fff !important;
    border: 1px solid var(--CompanyCardBorderColor) !important;
}

.company-follow-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .company-follow-icon:hover {
        color: var(--CompanyCardBorderColor);
        border-color: var(--CompanyCardBorderColor);
        background: var(--CompanyCardBackgroundColor);
    }

.company-liked-icon {
    background: var(--CompanyCardBorderColor) !important;
    color: #fff !important;
    border: 1px solid var(--CompanyCardBorderColor) !important;
}

.company-like-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .company-like-icon:hover {
        color: var(--CompanyCardBorderColor) !important;
        border-color: var(--CompanyCardBorderColor) !important;
        background: var(--CompanyCardBackgroundColor) !important;
    }


.product-followed-icon {
    color: #fff;
    background: var(--ProductCardBorderColor) !important;
    border-color: var(--ProductCardBorderColor);
    border: 1px solid var(--ProductCardBorderColor) !important;
}

.product-follow-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .product-follow-icon:hover {
        color: var(--ProductCardBorderColor);
        border-color: var(--ProductCardBorderColor) !important;
        background: var(--ProductCardBackgroundColor) !important;
    }

.product-liked-icon {
    color: #fff;
    background: var(--ProductCardBorderColor) !important;
    border-color: var(--ProductCardBorderColor);
    border: 1px solid var(--ProductCardBorderColor) !important;
}

.product-like-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .product-like-icon:hover {
        color: var(--ProductCardBorderColor);
        border-color: var(--ProductCardBorderColor);
        background: var(--ProductCardBackgroundColor);
    }
/* New Window Button - opens profile in new tab */
.btn-new-window {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #667eea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #667eea;
}

    .btn-new-window:hover {
        background: #667eea;
        color: white;
    }

    .btn-new-window svg {
        width: 16px;
        height: 16px;
    }

/* Partner Badge */
.partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #fef5e7;
    color: #f39c12;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 0px;
    line-height: 14px;
}

    .partner-badge:hover {
        cursor: pointer;
    }
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

    .page-btn.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

    .page-btn:hover:not(.active) {
        background: #f7fafc;
    }

/* Tooltip */
.tooltip {
    position: relative;
}

    .tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    .tooltip:hover::after {
        opacity: 1;
    }

.featured-filter-button02 {
    width: 4%;
}
/* ============================================
           RESPONSIVE STYLES
           ============================================ */
/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
        stroke: #333;
    }

/* Mobile filter toggle button */
.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    align-items: center;
    gap: 8px;
}

    .mobile-filter-toggle svg {
        width: 18px;
        height: 18px;
    }

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* Sidebar mobile header */
.sidebar-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    margin: 0 -10px 12px -10px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

    .sidebar-header-title svg {
        width: 20px;
        height: 20px;
    }

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 5px 10px;
    line-height: 1;
}

    .sidebar-close:hover {
        opacity: 0.8;
    }

/* Search filter button (next to search input) */
.search-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    cursor: pointer;
    color: #667eea;
    transition: all 0.2s;
}

    .search-filter-btn i {
        font-size: 20px;
    }

    .search-filter-btn:hover {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

    .search-filter-btn svg {
        width: 20px;
        height: 20px;
    }

.btn.featured-filter-button:focus {
    box-shadow: none !important;
    border: 1px solid #eee;
}

.btn.featured-filter-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.popup-modal-dialog {
    position: fixed;
    margin: auto;
    height: 100%;
    right: 0px;
}

.main-content {
    flex: 1;
    padding: 0;
}

.card-testimonial {
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 15px;
    position: relative;
    background: linear-gradient(135deg, var(--CompanyTestimonialCardBackgroundColor) 0%, var(--CompanyTestimonialCardBackgroundColor) 100%);
    border-left: 3px solid var(--CompanyTestimonialCardLeftBorderColor);
}

    .card-testimonial::before {
        content: '"';
        position: absolute;
        top: 6px;
        left: 10px;
        font-size: 28px;
        color: #667eea;
        opacity: 0.3;
        font-family: Georgia, serif;
        line-height: 1;
    }

.testimonial-text {
    font-size: 13px;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 8px;
    padding-left: 18px;
}

.testimonial-author {
    font-size: 12px;
    color: #777;
    padding-left: 18px;
}

.company-categories-products {
    background: var(--CompanyCategoriesProductsCombinedBoxBackgroundColor);
    border: 1px solid var(--CompanyCategoriesProductsCombinedBoxBorderColor);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
}

.cp-row:first-child {
    margin-bottom: 8px;
}

.cp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.cp-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--CompanyCategoryBadgeTextColor);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 65px;
    flex-shrink: 0;
}

.cp-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: hidden;
}

.tag.product-tag {
    background: var(--CompanyProductProjectBadgeBackgroundColor);
    color: var(--CompanyProductProjectBadgeTextColor);
    border: 1px solid var(--CompanyProductProjectBadgeBorderColor);
    font-size: 11px;
    padding: 3px 10px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .count-badge.green {
        background: var(--CompanyProductProjectBadgeBackgroundColor);
        color: var(--CompanyProductProjectBadgeTextColor);
        border: 1px solid var(--CompanyProductProjectBadgeBorderColor);
        text-decoration: none;
    }

        .count-badge.green:hover {
            background: var(--CompanyProductProjectBadgeHoverBackgroundColor);
            color: var(--CompanyProductProjectBadgeHoverTextColor);
            border-color: var(--CompanyProductProjectBadgeHoverBackgroundColor);
        }

.tag.product-tag:hover {
    background: var(--CompanyProductProjectBadgeHoverBackgroundColor);
    color: var(--CompanyProductProjectBadgeHoverTextColor);
    border-color: var(--CompanyProductProjectBadgeHoverBackgroundColor);
}

.cp-label.green {
    color: var(--CompanyProductProjectBadgeTextColor);
}

.count-badge.blue {
    background: var(--CompanyCategoryBadgeBackgroundColor);
    color: var(--CompanyCategoryBadgeTextColor);
    border: 1px solid var(--CompanyCategoryBadgeBorderColor);
}

    .count-badge.blue:hover {
        background: var(--CompanyCategoryBadgeHoverBackgroundColor);
        color: var(--CompanyCategoryBadgeHoverTextColor);
        cursor: pointer;
    }

.company-card .tag.primary, .company-card .more-tags-inline {
    background: var(--CompanyCategoryBadgeBackgroundColor);
    color: var(--CompanyCategoryBadgeTextColor);
    border: 1px solid var(--CompanyCategoryBadgeBorderColor);
}

    .company-card .tag.primary:hover, .company-card .more-tags-inline:hover {
        background: var(--CompanyCategoryBadgeHoverBackgroundColor);
        color: var(--CompanyCategoryBadgeHoverTextColor);
    }

.product-card .tag.primary, .product-card .more-tags-inline {
    background: var(--ProductCategoryBadgeBackgroundColor);
    color: var(--ProductCategoryBadgeTextColor);
    border: 1px solid var(--ProductCategoryBadgeBorderColor);
}

    .product-card .tag.primary:hover, .product-card .more-tags-inline:hover {
        background: var(--ProductCategoryBadgeHoverBackgroundColor);
        color: var(--ProductCategoryBadgeHoverTextColor);
    }

.project-card .tag.primary, .project-card .more-tags-inline {
    background: var(--ProjectCategoryBadgeBackgroundColor);
    color: var(--ProjectCategoryBadgeTextColor);
    border: 1px solid var(--ProjectCategoryBadgeBorderColor);
}

    .project-card .tag.primary:hover, .project-card .more-tags-inline:hover {
        background: var(--ProjectCategoryBadgeHoverBackgroundColor);
        color: var(--ProjectCategoryBadgeHoverTextColor);
    }

.resource-card .tag.primary, .resource-card .more-tags-inline {
    background: var(--ResourceCategoryBadgeBackgroundColor);
    color: var(--ResourceCategoryBadgeTextColor);
    border: 1px solid var(--ResourceCategoryBadgeBorderColor);
}

    .resource-card .tag.primary:hover, .resource-card .more-tags-inline:hover {
        background: var(--ResourceCategoryBadgeHoverBackgroundColor);
        color: var(--ResourceCategoryBadgeHoverTextColor);
    }

@media (min-width: 1440px) {
    .advanced-filter-showcase {
        max-width: 1250px;
        width: 100%;
    }
}
/* Tablet styles (768px - 1024px) */



/* Container */
.map-toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    /* Hide default checkbox */
    .map-toggle-switch .form-check-input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* Button-style label */
    .map-toggle-switch .form-check-label {
        position: relative;
        padding: 8px 14px;
        border-radius: 6px;
        border: 1px solid #e1e4e8;
        background-color: #ffffff;
        color: #555;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
        transition: all 0.25s ease;
    }

    /* Active (checked) button style */
    .map-toggle-switch .form-check-input:checked + .form-check-label {
        background-color: #0d6efd;
        color: #ffffff;
        border-color: #0d6efd;
    }

    /* Hover effect */
    .map-toggle-switch .form-check-label:hover {
        background-color: transparent;
        color: #667eea;
        border-color: #667eea;
    }



.sponsored-ads-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--AdsCardBackgroundColor) 0%, var(--AdsCardBackgroundColor) 100%);
    border: 2px var(--AdsCardBorderType) var(--AdsCardBorderColor);
    border-radius: 12px;
    margin: 10px 0;
    position: relative;
}

    .sponsored-ads-row::before {
        content: var(--before-content);
        position: absolute;
        top: -12px;
        left: 20px;
        background: linear-gradient(135deg, var(--AdsBadgeBoxBackgroundColor) 0%, var(--AdsBadgeBoxBackgroundColor) 100%);
        color: var(--AdsBadgeBoxTextColorColor);
        padding: 4px 14px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

.sponsored-card {
    flex: 1 1 280px;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .sponsored-card .card-header {
        margin-bottom: 8px;
    }

    .sponsored-card .card-logo {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .sponsored-card .card-title {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .sponsored-card .card-subtitle {
        font-size: 11px;
    }

    .sponsored-card .partner-badge {
        font-size: 8px;
        padding: 1px 5px;
    }

    .sponsored-card .badges-row {
        margin-top: 4px;
        gap: 3px;
    }

        .sponsored-card .badges-row .badge {
            font-size: 8px;
            padding: 2px 6px;
        }

    .sponsored-card .card-description {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 10px;
        min-height: auto;
        flex: 1;
    }

    .sponsored-card .card-tags {
        margin-bottom: 10px;
    }

    .sponsored-card .tag {
        font-size: 10px;
        padding: 2px 8px;
    }

    .sponsored-card .card-footer {
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .sponsored-card .card-stats {
        font-size: 11px;
    }

    .sponsored-card .stat,
    .sponsored-card .followers-count {
        font-size: 11px;
    }

    .sponsored-card .icon-btn {
        width: 28px;
        height: 28px;
    }

        .sponsored-card .icon-btn svg {
            width: 14px;
            height: 14px;
        }

    .sponsored-card .action-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .sponsored-card .btn-new-window {
        width: 28px;
        height: 28px;
    }

        .sponsored-card .btn-new-window svg {
            width: 12px;
            height: 12px;
        }

    .sponsored-card .icon-badges-under-logo {
        margin-top: 4px;
    }

        .sponsored-card .icon-badges-under-logo .icon-badge {
            width: 18px;
            height: 18px;
            font-size: 9px;
        }

    .sponsored-card .company-products {
        padding: 8px;
        margin-bottom: 10px;
    }

    .sponsored-card .products-header {
        margin-bottom: 4px;
    }

    .sponsored-card .products-label,
    .sponsored-card .product-link {
        font-size: 10px;
    }

    .sponsored-card .products-count {
        font-size: 9px;
        padding: 1px 5px;
    }

    .sponsored-card .products-more {
        font-size: 10px;
    }

    /* Sponsored card testimonial */
    .sponsored-card .card-testimonial {
        padding: 8px 10px;
        margin-bottom: 10px;
        font-size: 11px;
    }

    .sponsored-card .testimonial-text {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    .sponsored-card .testimonial-author {
        font-size: 10px;
    }

/* When screen is narrower, sponsored cards stack within the yellow container */
@media (max-width: 900px) {
    .sponsored-ads-row {
        flex-direction: column;
        gap: 15px;
    }

    .sponsored-card {
        flex: 0 0 auto;
        min-width: auto;
    }

        .sponsored-card .card-description {
            flex: none;
        }
}

/* Icon buttons for Like and Follow */
.icon-btn {
    background: #ffffff;
    line-height: 1.8;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-btn:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

/* Product card icon buttons - Green theme for both like and follow */
.product-card .icon-btn.btn-like:hover,
.product-card .icon-btn.btn-following:hover {
    color: var(--ProductCardBorderColor);
    border-color: var(--ProductCardBorderColor);
    background: var(--ProductCardBackgroundColor);
}

.product-card .icon-btn.btn-like.liked,
.product-card .icon-btn.btn-following.followed {
    color: white;
    background: var(--ProductCardBorderColor);
    border-color: var(--ProductCardBorderColor);
}

.product-card .icon-btn.btn-like.product-liked-icon:hover,
.product-card .icon-btn.btn-following.product-followed-icon:hover {
    color: white;
    background: var(--ProductCardButtonColor) !important;
    border-color: var(--ProductCardButtonColor) !important;
    border: 1px solid var(--ProductCardButtonColor) !important;
}

/* Company card icon buttons - Blue theme for both like and follow */
.company-card .icon-btn.btn-like:hover,
.company-card .icon-btn.btn-following:hover {
    color: var(--CompanyCardBorderColor);
    border-color: var(--CompanyCardBorderColor);
    background: var(--CompanyCardBackgroundColor);
}

.company-card .icon-btn.btn-like.liked,
.company-card .icon-btn.btn-following.followed {
    color: white;
    background: var(--CompanyCardBorderColor);
    border-color: var(--CompanyCardBorderColor);
}

.company-card .icon-btn.btn-like.company-liked-icon:hover,
.company-card .icon-btn.btn-following.company-followed-icon:hover {
    color: white;
    background: var(--CompanyCardButtonColor) !important;
    border-color: var(--CompanyCardButtonColor) !important;
    border: 1px solid var(--CompanyCardButtonColor) !important;
}



/* Project card icon buttons - Pink theme for both like and follow */
.project-card .icon-btn.btn-like:hover,
.project-card .icon-btn.btn-following:hover {
    color: var(--ProjectCardBorderColor);
    border-color: var(--ProjectCardBorderColor);
    background: var(--ProjectCardBackgroundColor);
}

.project-card .icon-btn.btn-like.liked,
.project-card .icon-btn.btn-following.followed {
    color: white;
    background: var(--ProjectCardBorderColor);
    border-color: var(--ProjectCardBorderColor);
}

.project-card .icon-btn.btn-like.project-liked-icon:hover,
.project-card .icon-btn.btn-following.project-followed-icon:hover {
    color: white;
    background: var(--ProjectCardButtonColor) !important;
    border-color: var(--ProjectCardButtonColor) !important;
    border: 1px solid var(--ProjectCardButtonColor) !important;
}


/* Resource card icon buttons - Pink theme for both like and follow */
.resource-card .icon-btn.btn-like:hover,
.resource-card .icon-btn.btn-following:hover {
    color: var(--ResourceCardBorderColor);
    border-color: var(--ResourceCardBorderColor);
    background: var(--ResourceCardBackgroundColor);
}

.resource-card .icon-btn.btn-like.liked,
.resource-card .icon-btn.btn-following.followed {
    color: white;
    background: var(--ResourceCardBorderColor);
    border-color: var(--ResourceCardBorderColor);
}

.resource-card .icon-btn.btn-like.resource-liked-icon:hover,
.resource-card .icon-btn.btn-following.resource-followed-icon:hover {
    color: white;
    background: var(--ResourceCardButtonColor) !important;
    border-color: var(--ResourceCardButtonColor) !important;
    border: 1px solid var(--ResourceCardButtonColor) !important;
}

.resource-card .btn-new-window {
    color: var(--ResourceCardBorderColor);
    border-color: var(--ResourceCardBorderColor);
}

    .resource-card .btn-new-window:hover {
        background: var(--ResourceCardButtonColor);
        border-color: var(--ResourceCardButtonColor);
        color: white;
    }

.resource-card .btn-primary {
    background: var(--ResourceCardBorderColor);
}

    .resource-card .btn-primary:hover {
        background: var(--ResourceCardButtonColor);
        border-color: var(--ResourceCardButtonColor);
    }

.resource-followed-icon {
    background: var(--ResourceCardBorderColor);
    color: #fff;
    border: 1px solid var(--ResourceCardBorderColor) !important;
}

.resource-follow-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .resource-follow-icon:hover {
        color: var(--ResourceCardBorderColor);
        border-color: var(--ResourceCardBorderColor);
        background: var(--ResourceCardBackgroundColor);
    }

.resource-liked-icon {
    background: var(--ResourceCardBorderColor);
    color: #fff;
    border: 1px solid var(--ResourceCardBorderColor) !important;
}

.resource-like-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .resource-like-icon:hover {
        color: var(--ResourceCardBorderColor);
        border-color: var(--ResourceCardBorderColor);
        background: var(--ResourceCardBackgroundColor);
    }


.project-card .btn-new-window {
    color: var(--ProjectCardBorderColor);
    border-color: var(--ProjectCardBorderColor);
}

    .project-card .btn-new-window:hover {
        background: var(--ProjectCardButtonColor);
        border-color: var(--ProjectCardButtonColor);
        color: white;
    }

.project-card .btn-primary {
    background: var(--ProjectCardBorderColor);
}

    .project-card .btn-primary:hover {
        background: var(--ProjectCardButtonColor);
        border-color: var(--ProjectCardButtonColor);
    }



.project-followed-icon {
    background: var(--ProjectCardBorderColor);
    color: #fff;
    border: 1px solid var(--ProjectCardBorderColor) !important;
}

.project-follow-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .project-follow-icon:hover {
        color: var(--ProjectCardBorderColor);
        border-color: var(--ProjectCardBorderColor);
        background: var(--ProjectCardBackgroundColor);
    }

.project-liked-icon {
    background: var(--ProjectCardBorderColor);
    color: #fff;
    border: 1px solid var(--ProjectCardBorderColor) !important;
}

.project-like-icon {
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    background-color: white;
}

    .project-like-icon:hover {
        color: var(--ProjectCardBorderColor);
        border-color: var(--ProjectCardBorderColor);
        background: var(--ProjectCardBackgroundColor);
    }


.ResourceFilter .filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 10px;
}

.ResourceFilter .filter-item-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.resource-filter-container span.filter-text {
    font-weight: 500;
}

.ResourceFilter .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: black;
    font-size: 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #f6f6f6;
    min-width: 40px;
    justify-content: center;
}



.search-container.input-icons i {
    top: 4px;
    left: 0;
}

.filter-heading-secondary {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 10px;
}

.main-category-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subcategory.single-filter-catgy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.subcategory-right .badge {
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    min-width: 35px;
    justify-content: center;
}

.main-category-right .badge {
    color: rgb(102, 102, 102);
    font-size: 12px;
    font-weight: 500;
    background: rgb(245, 245, 245);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 35px;
    justify-content: center;
}

.main-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.subcategory-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.main-category-left i {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-subcategories-outbox-subfield {
    padding: 0px 0px 0px 25px;
}

.filter-content p {
    padding-top: 10px;
    margin-bottom: 10px;
}

.filter-heading-secondary span.filter-heading-text {
    font-weight: 600;
    font-size: 1.105rem;
}

.category-tree .category-text, .category-text {
    font-size: .995rem;
}

.filter-title {
    font-size: 1.115rem;
}

.searchfilter-above-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-top: 7px;
}

.searchfilter-below-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.filter-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.filter-tooltip-container label.filter-text {
    font-size: .995rem;
}

.filter-item.FilterPlans {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.filter-item-left input[type="checkbox"] {
    margin-bottom: -1px;
    margin-right: 0;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.filter-tooltip-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 16px;
    z-index: 1;
    top: 11px;
}

.location-actions {
    position: absolute;
    right: 8px;
    display: flex;
    gap: 4px;
    top: 7px;
}

.location-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s ease;
}

    .location-btn:hover {
        background: #e5e7eb;
    }

.chosen-container .chosen-drop {
    left: 0;
}

.searchByLocationSection {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 15px;
}

#searchByLocationDiv .form-control:focus {
    box-shadow: none !important;
}

/* ========================================
   Fix for badge names containing HTML from WYSIWYG editor
   Ensures icon and text display together properly
   ======================================== */

/* Hide any <title> tags that accidentally got included from WYSIWYG */
.above-logo-left title,
.above-logo-full-width title,
.above-logo-fullcard-width title,
.icon-badge title,
.partner-badge title,
.badge-booth title,
.badge-award title,
.award-item-name title,
.floating-badge-tags title,
.right-end-badge-block title,
.img-over-badge title,
.logo-badge title,
[class*="badge"] title {
    display: none !important;
}

/* Make <p> tags display inline inside badges */
.above-logo-left p,
.above-logo-full-width p,
.above-logo-fullcard-width p,
.icon-badge p,
.partner-badge p,
.badge-booth p,
.badge-award p,
.award-item-name p,
.floating-badge-tags p,
.right-end-badge-block p,
.img-over-badge p,
.logo-badge p,
[class*="badge"] p {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make <div> tags display inline inside badges */
.above-logo-left > div,
.above-logo-full-width > div,
.above-logo-fullcard-width > div,
.icon-badge > div,
.partner-badge > div,
.badge-booth > div,
.badge-award > div,
.award-item-name > div,
.floating-badge-tags > div,
.logo-badge > div {
    display: inline !important;
}

/* Ensure icon and text are aligned properly */
.above-logo-left,
.above-logo-full-width,
.above-logo-fullcard-width,
.icon-badge,
.partner-badge,
.badge-booth,
.badge-award,
.floating-badge-tags,
.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

    /* Style the icon inside badges - ensure it doesn't shrink */
    .above-logo-left > i,
    .above-logo-full-width > i,
    .above-logo-fullcard-width > i,
    .icon-badge > i,
    .partner-badge > i,
    .badge-booth > i,
    .badge-award > i,
    .award-item-name > i,
    .floating-badge-tags > i,
    .logo-badge > i,
    .right-end-badge-block span > i,
    .img-over-badge > i,
    [class*="badge"] > i {
        flex-shrink: 0;
        margin-right: 2px;
    }

.sponsored-ads-row .logo-badge p {
    font-size: 8px;
}

.sponsored-ads-row .logo-badge {
    min-width: 80px;
}

.sponsored-ads-row .sponsored-card .card-logo {
    width: 80px;
    height: 80px;
}

.dropdown-content {
    z-index: 99 !important;
}

.categoryContainerName span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 12em;
    word-break: break-all;
}

span.featured-content-type {
    background: var(--ResourceCardBackgroundColor);
    color: var(--ResourceCardBorderColor);
    padding: 4px 8px;
    font-size: 15px;
    border-radius: 8px;
}

.active-filters-bar .dropdown-menu {
    min-width: auto;
}

div#advancesearchbannerimage {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 174px;
}

@media (max-width: 1366px) {
    .quick-view-below-header {
        padding: 24px 15px;
    }

    .card-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 1250px) {
    /*    .hero-tabs {
        transform: translate(-86%, -100%);
    }*/
    .hero-tab {
        padding: 16px 22px;
        gap: 8px;
    }

    .search-sort-by {
        width: 100%;
    }
}

@media (max-width: 1220px) {
    .view-toggle-group {
        display: none;
    }
}

@media (min-width: 1100px) and (max-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 1100px;
    }

    .hero-tab {
        padding: 16px 22px;
        gap: 8px;
    }

    .container-main-search {
        gap: 20px;
    }

    .lblMapToggleSwitch span {
        display: none;
    }

    .lblMapToggleSwitch i {
        margin-right: 0 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1099px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 990px;
    }

    .container-main-search {
        gap: 15px;
    }

    .sidebar {
        width: 280px;
        min-width: 280px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 15px;
    }

        .nav-links a {
            font-size: 12px;
        }

    .hero-tabs {
        transform: translate(-152px, -77px);
    }

    .lblMapToggleSwitch span {
        display: none;
    }

    .lblMapToggleSwitch i {
        margin-right: 0 !important;
    }

    .searchResultMessageSection {
        max-width: 30%;
    }

    .sponsored-ads-row {
        flex-direction: column;
    }

    .featured-filter-button01 p {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 100px;
    }

    .category-tree .category-text, .category-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 15em;
    }

    .category-search .search-input, .category-search-input {
        padding: 10px 34px 10px 40px;
    }

    .category-search .floating-icons-block {
        position: absolute;
        left: 6px;
        top: 0;
    }

        .category-search .floating-icons-block .search-icon i {
            font-size: 15px;
        }

    .category-search .floating-icon-block-right {
        position: absolute;
        right: 0;
        left: 0;
    }

        .category-search .floating-icon-block-right .close-icon i {
            font-size: 15px;
        }

    .rgt-company-info-block {
        margin-left: 22%;
    }

    .category-search .search-icon {
        left: 0;
        top: 12px;
    }

    .card-stats {
        flex-direction: row;
    }

    .map-toggle-switch .form-check-label {
        width: 37px;
        height: 37px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    filter-tooltip-container .filter-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 15em;
    }

    .category-tree .subcategory-text {
        display: -webkit-box !important;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 148px;
    }

    .card {
        min-height: 300px;
    }

    .category-search .close-icon {
        top: 0;
    }

    .dropdown-menu[data-bs-popper] {
        transform: translate(-92px, -8px);
    }
}

@media (min-width: 991px) and (max-width: 1023px) {
    .container, .container-lg, .container-md, .container-sm {
        max-width: 960px;
    }

    .hero-tabs {
        transform: translate(-2px, -77px);
    }

    #quickViewPopup #btnNextPreviousCompany {
        height: 70px !important;
    }

    .rgt-company-info-block {
        margin-left: 23%;
    }

    .quickview-btn.btn-follow-info {
        height: 40px;
    }
}

@media (max-width: 1023px) {
    /* Header */
    .header-content {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 15px;
        gap: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #e1e4e8;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 12px 15px;
            border-bottom: 1px solid #f0f0f0;
        }

            .nav-links a:last-child {
                border-bottom: none;
            }

    .header {
        position: relative;
    }

    .logo {
        font-size: 20px;
    }
    /* Hero */


    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 0 16px 80px 16px;
        background: white;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

        .sidebar.open {
            left: 0;
        }

    .sidebar-mobile-header {
        display: flex;
        margin: 0 -16px 16px -16px;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex !important;
    }
    /* Search filter button visible on mobile */
    .search-filter-btn {
        display: flex;
    }

    /* Main content full width */
    .main-content {
        width: 100%;
    }

    /* Search section */
    .search-section {
        margin-bottom: 15px;
    }

    /* Active filters bar mobile */
    .active-filters-bar {
        gap: 10px;
        padding: 10px 0;
    }

    .active-filters-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .active-filters-chips {
        width: 100%;
    }

    .filter-chip {
        font-size: 12px;
        padding: 6px 10px;
    }

    .filter-chip-remove {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .reset-all-filters {
        padding: 8px 12px;
    }

    .search-bar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-input {
        flex: 1;
        min-width: 0;
    }

    .search-filter-btn {
        display: flex;
        flex-shrink: 0;
    }

    .search-button {
        width: 100%;
    }

    .results-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .results-count {
        font-size: 14px;
    }

    .view-options {
        width: 100%;
        justify-content: flex-end;
    }

    .sort-dropdown {
        flex: 1;
    }

    /* Map toggle - icon only on mobile */
    .map-toggle-btn {
        padding: 8px 10px;
        gap: 0;
    }

        .map-toggle-btn span {
            display: none;
        }

        .map-toggle-btn svg {
            width: 18px;
            height: 18px;
        }

    /* Active filters - collapsible on mobile, collapsed by default */
    .active-filters-bar {
        padding: 12px 0;
        gap: 10px;
    }

    .active-filters-header {
        cursor: pointer;
        padding: 8px 12px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        transition: all 0.2s;
    }

        .active-filters-header:hover {
            background: #f1f5f9;
        }

        /* Arrow points right when collapsed (default on mobile) */
        .active-filters-header::after {
            content: '';
            width: 8px;
            height: 8px;
            border-right: 2px solid #64748b;
            border-bottom: 2px solid #64748b;
            transform: rotate(-45deg);
            transition: transform 0.3s ease;
            margin-left: auto;
        }

        /* Arrow points down when expanded */
        .active-filters-header.expanded::after {
            transform: rotate(45deg);
        }

    /* Collapsed by default on mobile */
    .active-filters-chips {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
    }

        /* Expanded state */
        .active-filters-chips.expanded {
            max-height: 500px;
            opacity: 1;
        }

    .filter-chip {
        padding: 6px 10px;
        font-size: 12px;
    }

    .filter-chip-remove {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .reset-all-filters {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Cards */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    /* Mobile card header - horizontal layout with logo left, content right */
    .card-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding-right: 35px; /* Room for action menu */
    }

    .card-logo-column {
        width: auto;
        flex-shrink: 0;
    }

    .card-logo {
        width: 100px;
        height: 100px;
        font-size: 20px;
        border-radius: 8px;
    }

    .card-logo-container {
        position: relative;
    }

    /* Smaller logo badge on mobile */
    .logo-badge {
        font-size: 7px;
        padding: 2px 6px;
        bottom: -4px;
    }

    /* Icon badges under logo - smaller on mobile */
    .icon-badges-under-logo {
        margin-top: 6px;
    }

        .icon-badges-under-logo .icon-badge {
            width: 20px;
            height: 20px;
            font-size: 10px;
            border-radius: 4px;
        }

    .card-title-section {
        flex: 1;
        min-width: 0;
    }

    .card-title {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .card-subtitle {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 4px;
        row-gap: 2px;
    }

    .company-link {
        font-size: 12px;
    }

    .partner-badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-left: 0;
    }

    /* Badges row - wrap tightly */
    .badges-row {
        margin-top: 6px;
        gap: 4px;
    }

        .badges-row .badge {
            font-size: 8px;
            padding: 4px 8px;
            line-height: 10px;
        }

    .partner-badge p {
        position: relative;
        top: 0px;
    }

    .partner-badge i {
        font-size: 10px;
        position: relative;
        top: 0px;
    }

    .card-description {
        font-size: 13px;
        min-height: auto;
        margin-top: 12px;
    }

    /* Tags */
    .card-tags {
        height: auto;
        overflow: visible;
    }

    .tags-container {
        flex-wrap: wrap;
    }

    .tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    /* Card action menu - adjust position for mobile */
    .card-action-menu {
        top: 28px;
        right: 8px;
    }

    .action-menu-btn {
        width: 28px;
        height: 28px;
    }

        .action-menu-btn svg {
            width: 16px;
            height: 16px;
        }

    .cp-items .tag {
        max-width: 105px;
    }

    .card-tags .tag {
        max-width: 88px;
    }
    /* Category more dropdown - full width, centered, limited height on mobile so it does not overlap cards */
    .category-more-dropdown-menu {
        left: 15%;
        right: auto;
        width: 200px;
        min-width: 0;
        max-width: 200px;
        max-height: min(200px, 45vh);
    }

    .category-more-dropdown.open .category-more-dropdown-menu {
        transform: translateY(0) translateX(-50%);
    }

    /* PRODUCT/COMPANY label - adjust for mobile */
    .card.product-card::before,
    .card.company-card::before {
        font-size: 8px;
        padding: 3px 8px;
        right: 40px;
    }

    /* Card footer */
    .card-footer {
        gap: 12px;
    }

    .card-stats {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
        flex-direction: row;
    }

    .card-actions {
        justify-content: space-between;
    }

    .action-btn {
        flex: 1;
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn-new-window {
        flex: 0 0 36px;
    }

    /* Company products section */
    .company-products {
        padding: 10px;
    }

    .products-list {
        gap: 6px;
    }

    .product-link {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Filter sections */
    .filter-section {
        margin-bottom: 8px;
        padding: 12px 0;
    }

    .filter-header {
        padding: 0;
        margin-bottom: 10px;
    }

    .filter-content {
        padding: 4px 0;
    }

    /* Ratings filter */
    .avg-ratings-container {
        padding: 0;
        margin-bottom: 16px;
    }

    .avg-ratings-title {
        font-size: 13px;
        font-weight: 600;
        color: #333;
    }

    .rating-row {
        padding: 6px 0;
    }

    .rating-label {
        font-size: 12px;
        min-width: 45px;
    }

    .rating-count {
        font-size: 11px;
        min-width: 30px;
    }

    /* NPS filter */
    .nps-filter-widget {
        padding: 0;
        margin-top: 4px;
    }

    .nps-widget-title h4 {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        white-space: nowrap;
    }

    .nps-responses-text {
        display: none;
    }

    .nps-header-right {
        gap: 6px;
    }

    .nps-summary-mini {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .nps-summary-cards {
        gap: 6px;
    }

    .nps-summary-card {
        padding: 6px 8px;
    }

    .nps-card-label {
        font-size: 9px;
    }

    .nps-card-count {
        font-size: 14px;
    }

    /* Pagination */
    .pagination {
        padding: 15px 0;
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Stat icons */
    .stat-icon {
        width: 24px;
        height: 24px;
    }

    .followers-count {
        font-size: 12px;
    }

    .stat {
        font-size: 12px;
    }



    .form-check-label i {
        margin-right: 0 !important;
    }

    .form-check-label span {
        display: none;
    }

    .view-options .listing-type-flex-type {
        flex-direction: row;
    }



    .search-sort-by {
        width: 100%;
    }

    .info-adv-btn-style {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .info-adv-btn-style i {
            margin-right: 0 !important;
        }

    .btn-following {
        width: 40px;
        height: 40px;
        align-items: center;
        display: flex;
        justify-content: center;
        border-radius: 6px;
    }

        .btn-following i {
            margin-right: 0 !important;
        }



    .filter-location-advance-style {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .above-location-input.filter-location-advance-style .right-end-search-controls {
        position: absolute;
        margin-top: unset;
    }

    .rgt-flex-bind-container {
        min-width: 100%;
    }

    .card {
        min-height: 250px;
    }

    .close-button-for-search {
        position: absolute;
        top: 13px;
        right: 75px;
    }




    #searchFormFreeText,
    #searchFormAutocomplete {
        width: 100%;
    }



    .hero-tab.active::before {
        transform: scaleX(1);
        background: var(--selectedTabBackgroundColor);
    }

    .hero-tab::before {
        transform: scaleX(1);
        background: var(--selectedTabBackgroundColor);
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .map-view-image {
        height: 350px !important;
    }

    .sponsored-ads-row {
        flex-direction: column
    }

    .featured-filter-button01 p {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 100px;
    }

    .category-tree .category-text, .category-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 15em;
    }

    .category-search .floating-icons-block {
        position: absolute;
        left: 0;
        top: 0;
    }

        .category-search .floating-icons-block .search-icon i {
            font-size: 15px;
        }

    .category-search .floating-icon-block-right {
        position: absolute;
        right: 0;
        top: 0;
    }

        .category-search .floating-icon-block-right .close-icon i {
            font-size: 15px;
        }

    .map-toggle-switch .form-check-label {
        width: 37px;
        height: 37px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    filter-tooltip-container .filter-text {
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 15em;
    }
}

@media (min-width: 820px) and (max-width: 990px) {
    .container, .container-md, .container-sm {
        max-width: 790px;
    }

    .hero-tabs {
        transform: translate(0px, -80px);
    }

    .company-logo-fl-container {
        width: 100px;
        height: 100px;
    }

    .profile-info-company-logo {
        top: -10px;
    }

    .advanced-filter-showcase {
        max-width: 800px;
        width: 800px;
    }

    .rgt-company-info-block {
        margin-left: 18%;
    }

    .quickview-btn.btn-follow-info {
        height: 40px;
    }

    .category-search .search-icon {
        left: 5px;
    }
}

@media (min-width: 768px) and (max-width: 819px) {
    .container, .container-md, .container-sm {
        max-width: 750px;
    }

    .hero-tabs {
        transform: translate(0px, -80px);
    }

    .search-filter-btn i {
        font-size: 18px;
    }

    .company-logo-fl-container {
        width: 100px;
        height: 100px;
    }

    .profile-info-company-logo {
        top: -10px;
    }

    .advanced-filter-showcase {
        max-width: 700px;
        width: 700px;
    }

    .rgt-company-info-block {
        margin-left: 20%;
    }

    .rgt-flex-follow-end {
        width: 100%;
    }

    .quickview-btn.btn-follow-info {
        height: 40px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-content {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Stat icons */
    .stat-icon {
        width: 24px;
        height: 24px;
    }

    .followers-count {
        font-size: 12px;
    }

    .stat {
        font-size: 12px;
    }

    .auto-complete-search-area .search-input-content {
        top: -5px;
    }

    #searchFormAutocomplete .auto-complete-search-area .search-input {
        padding: 15px 50px 15px 45px;
    }

    .searchResultMessageSection {
        max-width: 32%;
    }
    /* quick view modal css*/
    .rgt-company-info-block {
        margin-left: 22%;
    }

    .rgt-flex-follow-end {
        width: 100%;
    }

    .profile-info-company-logo {
        top: -10px;
    }

    .company-logo-fl-container {
        width: 100px;
        height: 100px;
    }

    .top-company-info-block .h3 {
        font-size: 20px;
    }

    .profile-info-fkex {
        padding: 15px 24px;
    }

    .right-end-badge-block.tooltip.tfd-round-tip-contanct.badge-display-section span {
        line-height: 24px;
    }
}

@media (max-width: 767px) {
    .container, .container-sm {
        max-width: 100%;
    }

    .hero-tabs {
        transform: translate(0, -80px);
    }

    .card-footer {
        flex-direction: column;
    }

    .card-actions {
        width: 100%;
    }

    .advancedSearch.advance-search-header {
        padding-bottom: 90px;
    }

    .company-logo-fl-container {
        width: 80px;
        height: 80px;
    }

    .profile-info-company-logo {
        top: -50px;
    }

    .column-flex-dv .rgt-company-info-block {
        top: -30px;
    }

    .rgt-flex-follow-end {
        width: unset;
    }

    .info-adv-btn-style {
        width: 36px;
        height: 36px;
    }

    .sticky-quick-view-container {
        flex-direction: column;
    }

    .bind-contact-details {
        flex: 1 !important;
    }

    .company-type-card-section .info-adv-btn-style {
        width: 100%;
        height: auto;
        border: 1px solid var(--buttonBackgroundColor2);
    }

    .listing-contact-lineup-res-flx {
        flex-direction: row;
    }

    #quickViewPopup #btnNextPreviousCompany {
        height: 70px !important;
    }

    .sticky-quick-view-container {
        top: -18px;
    }

    .header-title-sec1 {
        z-index: 1;
    }

    .category-search .close-icon {
        top: 20px;
    }

    .membertype-filter-dropdown .featured-filter-button02 {
        width: 8% !important;
    }

    .category-more-dropdown.open .category-more-dropdown-menu {
        transform: translateY(0) translateX(-78%);
    }
}

@media (max-width: 620px) {
    .searchResultMessageSection {
        max-width: 100%;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .searchByLocationSection {
        margin-bottom: 5px;
    }

    .card-logo {
        width: 80px;
        height: 80px;
    }

    .logo-badge {
        min-width: 72px;
    }

    .advanced-filter-showcase {
        max-width: 580px;
        width: 580px;
    }
}

@media (max-width: 490px) {
    .btn.featured-filter-button {
        gap: unset;
    }

    .btn.featured-filter-button {
        padding: 6px 12px;
    }

    .view-options {
        flex-wrap: wrap;
    }

        .view-options .listing-type-flex-type {
            flex: 0 0 100%;
        }

    .hero-tab {
        padding: 12px 15px;
        gap: 8px;
        font-size: 14px;
    }

    .hero-tabs {
        transform: translate(0, -69px);
    }

    .btn-new-window, .icon-btn {
        width: 40px;
        height: 40px;
    }

    .advancedSearch.advance-search-header {
        padding-bottom: 90px;
    }

    .advanced-filter-showcase {
        max-width: 430px;
        width: 430px;
    }

    .video-thumb {
        min-width: 100px;
        height: 70px;
    }

        .video-thumb img {
            height: 70px;
        }

    .thumbnail-wrapper .btn-crs-prev, .thumbnail-wrapper .btn-crs-next {
        height: 70px;
    }

    .quick-view-above-header h5 {
        font-size: 16px;
    }

    .quick-view-above-header .bottom-contanct-info-filler {
        gap: 5px !important;
    }

    .btn-crs-prev, .btn-crs-next {
        padding: 5px 5px;
    }

    .quick-view-above-header {
        gap: 5px;
    }

    .quick-view-settle-block .quick-view-above-header .bottom-contanct-info-filler {
        flex: 0 0 35%;
    }

    .carousel-control-next-icon, .carousel-control-prev-icon {
        width: 20px;
        height: 20px;
    }

    .bottom-contanct-info-filler .carousel-control-prev-icon i, .bottom-contanct-info-filler .carousel-control-next-icon i {
        font-size: 14px;
    }

    .memberperk-custom-caption {
        top: 0;
    }

    .contact-info-bar-rec {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 412px) {
    .quick-view-settle-block .quick-view-above-header .bottom-contanct-info-filler {
        flex: 0 0 38%;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 18px;
    }

    .hero p {
        font-size: 13px;
    }

    .card-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .nps-summary-card {
        padding: 4px 6px;
    }

    .nps-card-label {
        font-size: 8px;
    }

    .nps-card-count {
        font-size: 12px;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .btn-new-window, .icon-btn {
        width: 34px;
        height: 34px;
    }

    #searchFormFreeText,
    #searchFormAutocomplete {
        width: 80%;
    }

    .award-item {
        padding: 5px 10px;
    }

    .hero-tab {
        padding: 12px 12px;
    }

    .advanced-filter-showcase {
        max-width: 350px;
        width: 350px;
    }

    .quick-view-settle-block .quick-view-above-header .bottom-contanct-info-filler {
        flex: 0 0 42%;
    }
}

@media (max-width:375px) {
    .hero-tab {
        gap: 5px;
        font-size: 12px;
    }

    .hero-tabs {
        transform: translate(0, -66px);
    }

    .advanced-filter-showcase {
        max-width: 320px;
        width: 320px;
    }

    .quick-view-settle-block .quick-view-above-header .bottom-contanct-info-filler {
        flex: 0 0 46%;
    }

    .auto-complete-search-area .section-header {
        margin-bottom: 5px;
    }

    .auto-complete-search-area .single-listing-section {
        flex: unset !important;
    }

    .auto-complete-search-area .category-section {
        flex: unset !important;
    }

    .auto-complete-search-area .dropdown-container {
        max-height: 460px !important;
        min-height: 290px !important;
    }

    .card-tags .tag {
        max-width: 70px;
    }

    .cp-items .tag {
        max-width: 82px;
    }
}

@media (max-width: 330px) {
    .filter-container-block.filter-selection-sls {
        flex: 1;
        width: unset;
    }

    .hero-tab {
        padding: 10px 12px;
        font-size: 10px;
    }

        .hero-tab i {
            font-size: 14px;
        }

    .hero-tabs {
        transform: translate(0, -59px);
    }

    .auto-complete-search-area .search-icon {
        right: 0;
        left: 10px !important;
        font-size: 12px !important;
    }

    #searchFormAutocomplete .auto-complete-search-area .search-input {
        padding: 5px 20px 5px 30px;
        min-height: 35px;
    }

    .auto-complete-search-area .search-input-text {
        min-width: 140px !important;
        font-size: 12px !important;
        padding-left: 0 !important;
    }

    .auto-complete-search-area .search-input-content {
        top: -2px;
    }

    .search-filter-btn {
        width: 40px;
        height: 40px;
    }

    .advancedSearch.advance-search-header {
        padding-bottom: 70px;
    }

    .input-field.inputbordercolor {
        font-size: 12px;
    }

    .filter-location-advance-style i.floating-filter-location {
        top: 15px;
        font-size: 12px;
    }

    .locationPointer.cursorPointer, .clearlocationPointer {
        line-height: 38px;
    }

        .locationPointer i, .clearlocationPointer i {
            font-size: 12px;
        }

    .filter-location-advance-style input#SearchHeadQuarter {
        padding: 10px 70px 10px 32px;
    }

    .results-count, .featured-filter-button01 p.h5, .featured-filter-dropdown-item, .view-toggle-btn i {
        font-size: 12px;
    }

    .search-filter-btn i {
        font-size: 15px;
    }

    .card-title {
        font-size: 14px;
    }

    .mobile-filter-toggle {
        padding: 8px 24px;
        font-size: 12px;
    }

    .card-footer {
        flex-direction: column;
    }

    .card-actions {
        width: 100%;
    }

    .sponsored-ads-row {
        padding: 15px;
    }

    .advanced-filter-showcase {
        max-width: 280px;
        width: 280px;
    }

    .card-tags .tag {
        max-width: 55px;
    }

    .cp-items .tag {
        max-width: 55px;
    }
}
