
/* ======================= Common ===================== */

:root {
    --bg-color: #F2EFE9;
    --profile-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

body {
    background-color: var(--bg-color);
}

span{
    font-weight: 600;
}

/* =================== PAGE ======================== */

.profile-page {
    min-height: 2000px;
    /*padding: 70px 0 150px;*/
}

.profile-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =================== INTRO ====================== */

.profile-intro{
    text-align: center;
}

.profile-heading {

}

.profile-description {

}


/* =============== DESKTOP FILTER ================= */

.profile-desktop-filter {
    display: block;
}

.profile-filter-card {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--grey-400);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--profile-shadow);

    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ================== SEARCH ====================== */

.profile-search-row {
    width: 100%;
    /*margin-bottom: 30px;*/
}

.profile-search-box {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 58px;
    overflow: hidden;
    /*border: 1px solid #d3d3d3;*/
    /*border-radius: 10px;*/
    background: var(--white);
    gap: 2rem;
}

.profile-search-icon {
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    /*width: 58px;*/
    /*flex-shrink: 0;*/
    /*color: #777777;*/
}

.profile-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--grey-400);
    padding: 0 1rem;
    background: var(--offWhite);
    font-size: 14px;
    border-radius: 4px;
}

.profile-search-input::placeholder {
    color: var(--grey-300);
}

.profile-search-button {
    min-width: 125px;
    padding: 0 1rem;
    border: 1px solid var(--brickRed);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--brickRed);
    color: var(--white);
    font-weight: 600;
    transition: 0.2s ease;
}

.profile-search-button:hover {
    background-color: var(--primaryBlue);
}

/* =============== FILTER GRID ================== */

.profile-filter-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.8fr)
                minmax(190px, 1fr)
                minmax(190px, 1fr)
                auto;
    gap: 1.5rem;
    align-items: end;
}

/* =================== FILTER FIELD =============== */

.profile-filter-field {
    min-width: 0;
}

.profile-filter-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-filter-label {
    margin: 0;
    color: var(--grey-200);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}

.profile-filter-selected-range {
    color: var(--brickRed);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

/* ================= RANGE SLIDER =================== */

.profile-range-wrapper {
    position: relative;
    height: 48px;
    /*padding-top: 5px;*/
}

.profile-range-track {
    position: absolute;
    top: 1rem;
    right: 0;
    left: 0;
    height: 5px;
    border-radius: 1.5rem;
    background-color: var(--grey-400);
}

.profile-range-progress {
    position: absolute;
    top: 16px;
    height: 5px;
    border-radius: 1.5rem;
    background: var(--primaryBlue);
}

.profile-range-input {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 22px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
}

.profile-range-input{
    color: var(--primaryBlue);
}

.profile-range-input::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 1px solid var(--white);
    border-radius: 50%;
    background-color: var(--primaryBlue);
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
}

.profile-range-input::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--white);
    border-radius: 50%;
    background-color: var(--primaryBlue);
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    pointer-events: auto;
}

.profile-range-values {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
}

.profile-range-values p{
    color: var(--grey-200);
    font-size: 14px;
    font-weight: 500;
}

/* ================= MULTI SELECT =================== */

.profile-multiselect {
    position: relative;
    width: 100%;
}

.profile-multiselect-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 1rem;
    border: 1px solid var(--grey-400);
    border-radius: 4px;
    background: var(--white);
    /*color: #222222;*/
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: 0.4s ease;
}

.profile-multiselect-button:hover {
    border-color: var(--grey-200);
}

.profile-multiselect-button i {
    color: var(--grey-200);
    font-size: 11px;
}

.profile-multiselect-menu {
    position: absolute;
    z-index: 2000;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--grey-300);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    /*overflow-x: hidden;*/
}

.profile-multiselect.is-open .profile-multiselect-menu {
    display: block;
}

.profile-multiselect-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    color: var(--grey-100);
    cursor: pointer;
    font-size: 14px;
}

.profile-multiselect-option:hover {
    background: var(--accent);
}

.profile-multiselect-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--black);
}

/* ================= RESET ================== */

.profile-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--grey-300);
    border-radius: 4px;
    background-color: var(--white);
    /*color: #222222;*/
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.profile-reset-button:hover {
    border-color: var(--primaryBlue);
    background-color: var(--primaryBlue);
    color: var(--white);
}

/* ============ SELECTED FILTER CHIPS ================= */

.profile-selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /*margin-top: 25px;*/
    padding-top: 24px;
    border-top: 1px solid var(--grey-400);
}

.profile-selected-filter {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 99px;
    background: var(--brickRed-300);
    font-size: 12px;
}

.profile-selected-filter-category {
    color: var(--grey-200);
    font-size: 12px;
    /*font-weight: 700;*/
    /*letter-spacing: 0.5px;*/
    text-transform: uppercase;
}

.profile-selected-filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--black);
    cursor: pointer;
    transition: 0.3s ease;
}

.profile-selected-filter-remove:hover {
    background: red;
    color: var(--white);
}

/* ============= FLOATING FILTER BUTTON ================== */

.profile-floating-filter {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 333px;
    background: var(--primaryBlue);
    color: var(--white);
    box-shadow:0 10px 30px rgba(0, 0, 0, 0.22);
    font-size: 14px;
    /*font-weight: 700;*/
    cursor: pointer;
    transition:transform 0.2s ease, background 0.2s ease;
}

.profile-floating-filter:hover {
    background: var(--primaryBlue);
    transform: translateY(-2px);
}

.profile-floating-filter.is-visible {
    display: inline-flex;
}


/* ================== BOTTOM OFFCANVAS ================== */

.profile-filter-offcanvas {
    --bs-offcanvas-height: auto;
    /*height: 60vh!important;*/
    max-height: 90vh;
    border-top:1px solid var(--grey-400);
    border-radius:1.5rem 1.5rem 0 0;
    z-index: 2000;
}

.profile-filter-offcanvas .offcanvas-header {
    position: relative;
    justify-content: space-between;
    padding:1.5rem;
    border-bottom:1px solid var(--grey-400);
}
.responsive-filter-actions{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-filter-offcanvas .offcanvas-body {
    max-height:calc(90vh - 75px);
    overflow-y: auto;
    padding: 2rem;

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.responsive-filters-wrapper{
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.responsive-filters-wrapper .profile-filter-field{
    width: 100%;
}

/* ================= OFFCANVAS HANDLE =============== */

.profile-offcanvas-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 20px;
    background: var(--brickRed);
    transform:translateX(-50%);
}

/* =================== MOBILE FOOTER ================== */

.profile-mobile-filter-footer {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    gap: 10px;
    /*padding:15px 0 5px;*/
    background: #ffffff;
}

.profile-mobile-reset-button {
    width: auto;
    min-width: 100px;
}

.profile-mobile-apply-button {
    flex: 1;
    min-height: 48px;
    border: 0;
    border-radius: 9px;
    background: var(--primaryBlue);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}


/* =================== TABLET < 992PX ======================= */

@media (max-width: 991.98px) {

    /*
     * Hide normal desktop filter.
     */

    .profile-desktop-filter {
        display: none;
    }

    /*
     * Filter button is ALWAYS visible.
     */

    .profile-floating-filter {
        display: inline-flex;
    }

    /*
     * Candidate cards.
     */

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


/* ==================  MOBILE < 768PX ================= */

@media (max-width: 767.98px) {

    .profile-page {
        padding:45px 0 120px;
    }

    .profile-container {
        padding: 0 16px;
    }

    .profile-heading {
        font-size: 38px;
        letter-spacing:-1.5px;
    }

    .profile-description {
        margin-bottom:30px;
        font-size: 15px;
    }

    /* Search */
    .profile-search-box {
        min-height:52px;
    }

    .profile-search-button {
        /*width:58px;*/
        /*min-width:58px;*/
        padding:0;
        /*font-size:0;*/
    }

    .profile-search-button i {
        margin:0 !important;

        font-size: 16px;
    }


    /* Bottom panel */

    .profile-filter-offcanvas {
        max-height:95vh;
    }

    .profile-filter-offcanvas .offcanvas-body {
        max-height: calc(95vh - 70px);

        padding:20px;
    }

    .responsive-filters-wrapper{
        flex-direction: column;
    }


    /* Floating button */

    .profile-floating-filter {
        right:16px;
        bottom:16px;
    }

    /* Candidate cards */

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

@media (max-width: 575.98px) {
    .profile-search-box{
        gap: 1rem;
    }
}

/* =================== SMALL MOBILE ===================== */

@media (max-width: 400px) {

    .profile-floating-filter {
        right:12px;
        bottom:12px;
        min-height:48px;
        padding:0 17px;
    }
}


/* ==================== SCROLLBAR ======================= */

.profile-multiselect-menu::-webkit-scrollbar,
.profile-filter-offcanvas
.offcanvas-body::-webkit-scrollbar {
    width:5px;
}

.profile-multiselect-menu::-webkit-scrollbar-track,
.profile-filter-offcanvas
.offcanvas-body::-webkit-scrollbar-track {
    background:#f5f5f5;
}

.profile-multiselect-menu::-webkit-scrollbar-thumb,
.profile-filter-offcanvas
.offcanvas-body::-webkit-scrollbar-thumb {

    border-radius:10px;
    background:#cccccc;
}