/* Digilancer — Projects listing (Freeio) */

/* Projects listing — Freeio design system */
    .dl-projects-page {
        background: #f8f9fd;
    }
    .dl-projects-page .dl-projects-breadcrumb {
        font-size: 14px;
        color: #6b7177;
    }
    .dl-projects-page .dl-projects-breadcrumb a {
        color: #6b7177;
        text-decoration: none;
    }
    .dl-projects-page .dl-projects-breadcrumb a:hover {
        color: var(--main-color-one);
    }
    .dl-projects-page .dl-projects-breadcrumb .sep {
        margin: 0 8px;
        color: #c4c8ce;
    }
    .dl-projects-page .dl-page-heading {
        font-family: var(--title-font-family, inherit);
        color: #222;
        font-weight: 500;
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .dl-projects-page .dl-page-subheading {
        color: #6b7177;
        font-size: 15px;
        margin-bottom: 0;
    }
    .dl-projects-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 28px;
    }
    .dl-projects-toolbar-left {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }
    .dl-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border: 1px solid #e9e9e9;
        border-radius: 8px;
        background: #fff;
        color: #6b7177;
        cursor: pointer;
        transition: border-color .2s ease, color .2s ease, background .2s ease;
        font-size: 14px;
        line-height: 1.4;
    }
    .dl-filter-btn:hover {
        border-color: var(--main-color-one);
        color: var(--main-color-one);
        background: #fff;
    }
    .dl-filter-btn i {
        font-size: 14px;
        line-height: 1;
    }
    .dl-filter-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    .project-count-display {
        color: #6b7177;
        font-size: 14px;
    }
    .dl-sort-wrap {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .dl-sort-wrap > span {
        color: #6b7177;
        font-weight: 500;
        font-size: 14px;
        white-space: nowrap;
    }
    .dl-sort-select-wrap {
        position: relative;
        min-width: 180px;
    }
    .dl-sort-select-wrap select {
        width: 100%;
        padding: 10px 36px 10px 16px;
        border: 1px solid #e9e9e9;
        border-radius: 8px;
        background: #fff;
        color: #222;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        font-size: 14px;
        transition: border-color .2s ease, box-shadow .2s ease;
    }
    .dl-sort-select-wrap select:focus {
        outline: none;
        border-color: var(--main-color-one);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color-one) 20%, transparent);
    }
    .dl-sort-select-wrap .dl-select-arrow {
        pointer-events: none;
        position: absolute;
        inset-block: 0;
        right: 12px;
        display: flex;
        align-items: center;
        color: #6b7177;
    }
    /* Active filter chips */
    .active-filters-section {
        margin-bottom: 28px;
    }
    .dl-active-filters {
        background: #fff;
        border: 1px solid #e9e9e9;
        border-radius: 12px;
        padding: 16px 20px;
    }
    .dl-active-filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }
    .dl-active-filters-head h4 {
        font-size: 15px;
        font-weight: 500;
        color: #222;
        margin: 0;
    }
    #clear-all-filters {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border: 0;
        background: var(--main-color-one);
        color: #fff;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        cursor: pointer;
        transition: opacity .2s ease, background .2s ease;
        white-space: nowrap;
    }
    #clear-all-filters:hover {
        opacity: .88;
        color: #fff;
        background: var(--main-color-one);
    }
    .dl-active-filters-list,
    #active-filters-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    #active-filters-container .dl-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        padding: 7px 10px 7px 14px;
        background: color-mix(in srgb, var(--main-color-one) 8%, #fff);
        border: 1px solid color-mix(in srgb, var(--main-color-one) 22%, #e9e9e9);
        border-radius: 999px;
        font-size: 13px;
        font-weight: 500;
        color: #222;
        line-height: 1.3;
    }
    #active-filters-container .dl-filter-chip .remove-filter {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        min-width: 20px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #6b7177;
        cursor: pointer;
        line-height: 1;
        font-size: 14px;
        transition: background .15s ease, color .15s ease;
        flex-shrink: 0;
    }
    #active-filters-container .dl-filter-chip .remove-filter:hover {
        background: var(--main-color-one);
        color: #fff;
    }
    #active-filters-container .dl-filter-chip .remove-filter svg {
        width: 12px;
        height: 12px;
        display: block;
    }

    /* Equal-height listing cards in grid — 4-col proportion like Home */
    .search_project_result .row > [class*="col-"] {
        display: flex;
        margin-bottom: 24px;
    }
    .search_project_result .listing-style1.dl-service-card {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }
    .search_project_result .listing-style1 .list-content {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    /* Sidebar filter drawer (Freeio-style) */
    #sidebar.dl-filter-sidebar {
        position: fixed;
        inset: 0;
        background: rgba(22, 28, 45, .45);
        z-index: 99999;
        display: none;
        opacity: 0;
        transition: opacity .25s ease;
    }
    #sidebar.dl-filter-sidebar.is-open,
    #sidebar.dl-filter-sidebar:not(.hidden) {
        display: block;
        opacity: 1;
    }
    #sidebar.hidden {
        display: none !important;
    }
    .dl-filter-panel {
        width: 350px;
        max-width: 92vw;
        background: #fff;
        box-shadow: 6px 0 24px rgba(64, 79, 104, .12);
        border: 0;
        border-radius: 0;
        padding: 0;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-12px);
        transition: transform .3s ease;
    }
    #sidebar.dl-filter-sidebar:not(.hidden) .dl-filter-panel,
    #sidebar.dl-filter-sidebar.is-open .dl-filter-panel {
        transform: translateX(0);
    }
    .dl-filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 22px 24px;
        border-bottom: 1px solid #e9e9e9;
        flex-shrink: 0;
    }
    .dl-filter-panel-header h2 {
        font-size: 18px;
        font-weight: 500;
        color: #222;
        margin: 0;
        font-family: var(--title-font-family, inherit);
    }
    #closeSidebar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 8px;
        background: color-mix(in srgb, var(--main-color-one) 10%, #fff);
        color: #222;
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        transition: background .2s ease, color .2s ease;
        padding: 0;
    }
    #closeSidebar:hover {
        background: var(--main-color-one);
        color: #fff;
    }
    .dl-filter-body {
        padding: 8px 24px 28px;
        overflow-y: auto;
        flex: 1 1 auto;
        height: 100%;
    }
    .dl-filter-group {
        margin-bottom: 0;
        padding: 18px 0;
        border-bottom: 1px solid #f1f2f4;
    }
    .dl-filter-group--last {
        border-bottom: 0;
    }
    .dl-filter-group > label,
    .dl-filter-group .dl-filter-label {
        display: block;
        font-size: 15px;
        font-weight: 500;
        color: #222;
        margin-bottom: 12px;
    }
    .dl-filter-input-wrap,
    .dl-filter-select-wrap {
        position: relative;
    }
    .dl-filter-input-wrap .dl-search-icon {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        color: #9ca3af;
        pointer-events: none;
    }
    .dl-filter-panel input[type="text"],
    .dl-filter-panel select {
        width: 100%;
        padding: 11px 14px;
        border: 1px solid #e9e9e9;
        border-radius: 8px;
        background: #fff;
        color: #222;
        font-size: 14px;
        line-height: 1.4;
        transition: border-color .2s ease, box-shadow .2s ease;
    }
    .dl-filter-panel select {
        appearance: none;
        -webkit-appearance: none;
        padding-right: 40px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7177' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        cursor: pointer;
    }
    .dl-filter-panel input[type="text"]:focus,
    .dl-filter-panel select:focus {
        outline: none;
        border-color: var(--main-color-one);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color-one) 16%, transparent);
    }
    #project_search_string {
        padding-left: 40px;
    }
    .dl-price-inputs {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    .dl-price-inputs input {
        flex: 1;
        padding: 10px 12px;
        border: 1px solid #e9e9e9;
        border-radius: 8px;
        font-size: 13px;
        transition: border-color .2s ease, box-shadow .2s ease;
    }
    .dl-price-inputs input:focus {
        outline: none;
        border-color: var(--main-color-one);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--main-color-one) 16%, transparent);
    }
    .dl-price-sep {
        color: #6b7177;
        flex-shrink: 0;
    }
    .dl-range-wrap {
        position: relative;
        width: 100%;
        height: 24px;
    }
    .dl-range-wrap .dl-range-bg {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 4px;
        background: #e9e9e9;
        border-radius: 999px;
        transform: translateY(-50%);
    }
    #rangeTrack {
        position: absolute;
        top: 50%;
        height: 4px;
        background: var(--main-color-one);
        border-radius: 999px;
        transform: translateY(-50%);
    }
    .range-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        background: none;
        pointer-events: none;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 6px;
        margin: 0;
        padding: 0;
    }
    .range-slider::-webkit-slider-thumb {
        pointer-events: auto;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background: #fff;
        border: 3px solid var(--main-color-one);
        border-radius: 50%;
        cursor: pointer;
        transition: transform .2s ease, border-color .2s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    }
    .range-slider::-webkit-slider-thumb:hover {
        transform: scale(1.1);
    }
    .range-slider::-moz-range-thumb {
        pointer-events: auto;
        width: 18px;
        height: 18px;
        background: #fff;
        border: 3px solid var(--main-color-one);
        border-radius: 50%;
        cursor: pointer;
    }
    .dl-filter-radio-list {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .dl-rating-row {
        display: flex;
        align-items: center;
        padding: 6px 0;
    }
    .dl-rating-row input[type="radio"] {
        width: 16px;
        height: 16px;
        accent-color: var(--main-color-one);
        cursor: pointer;
        flex-shrink: 0;
        margin: 0;
    }
    .dl-rating-row label {
        margin-left: 12px;
        margin-bottom: 0;
        font-size: 14px;
        color: #6b7177;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 2px;
    }
    .dl-rating-row:has(input:checked) label {
        color: #222;
    }
    .dl-rating-row label .fas.fa-star {
        font-size: 14px;
        color: #d1d5db;
    }
    .dl-rating-row label .fas.fa-star.is-active {
        color: #fbbf24;
    }
    .dl-filter-body::-webkit-scrollbar {
        width: 8px;
    }
    .dl-filter-body::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--main-color-one) 14%, #f1f2f4);
        border-radius: 10px;
    }

    /* Pagination */
    .dl-pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 16px;
    }
    .dl-pagination .pagination-link,
    .dl-pagination button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        border: 1px solid #e9e9e9;
        border-radius: 999px;
        background: #fff;
        color: #6b7177;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: border-color .2s ease, color .2s ease, background .2s ease;
    }
    .dl-pagination .pagination-link:hover {
        border-color: var(--main-color-one);
        color: var(--main-color-one);
    }
    .dl-pagination .is-current {
        background: var(--main-color-one);
        border-color: var(--main-color-one);
        color: #fff;
    }
    .dl-pagination button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    /* Empty / loading states */
    .dl-projects-empty {
        text-align: center;
        padding: 48px 16px;
        width: 100%;
    }
    .dl-projects-empty img {
        max-width: 220px;
        margin-bottom: 16px;
    }
    .dl-projects-empty p {
        color: #6b7177;
        font-size: 16px;
        max-width: 420px;
        margin: 0 auto 20px;
    }
    .dl-projects-empty .ud-btn {
        background: var(--main-color-one);
        border-color: var(--main-color-one);
        color: #fff;
    }
    .dl-projects-empty .ud-btn:hover {
        background: #222;
        border-color: #222;
        color: #fff;
    }

    @media (max-width: 575.98px) {
        .dl-projects-page .dl-page-heading {
            font-size: 24px;
        }
        .dl-projects-toolbar {
            align-items: flex-start;
        }
        .dl-sort-wrap {
            width: 100%;
            justify-content: space-between;
        }
        .dl-sort-select-wrap {
            flex: 1;
        }
    }
