/* Main Container */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');


:root {
    --son-font-family: 'Figtree', sans-serif;


    --son-job-avatar-size: clamp(40px, 8vw, 82px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.son-loading {
    height: 100%;
}


/* ######## LISTING ARCHIVE ######## */
.son-container {
    font-family: var(--son-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.son-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.son-filter input,
.son-filter select {
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #42526E;
    border-radius: 20px;
    outline: none;
}

.son-filter-clear button {
    background-color: inherit;
    color: #a40000;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 6px 18px;
    box-shadow: none;
    border: none;
}

#clear-filtersr {
    align-self: flex-end;
    text-decoration: underline;
}

.son-filter-total {
    font-weight: bold;
    margin-left: auto;
}

.son-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(580px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* << ##### LISTING CARD ##### >> */
.son-card {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid #B3BAC5;
    border-radius: 20px;
    padding: 28px 26px 25px 23px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.son-card .son-avatar {
    display: flex;
    justify-content: center;
    align-items: center;

    border: 1px solid #C1C7D0;
    min-width: 82px;
    background: rgb(255 255 255);
}

.son-card .son-avatar img {
    margin-bottom: 0 !important;
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.son-card .son-avatar .son-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
    background: #f0f0f0;
    border-radius: 50%;
    font-weight: bold;
}

.son-card .son-meta-info {
    display: flex;
    flex: 1;
    column-gap: 30px;
    color: #42526E;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.75;
    letter-spacing: 0;
    align-items: flex-start;
}

.son-meta .son-meta__review-rating {
    display: flex;
    align-items: flex-end;
    column-gap: 5px;
    margin-bottom: 12px;
}

.son-meta .son-meta__review-rating .son-review-average {
    font-size: var(--son-font-family);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0;
}

.son-meta .son-meta-review .son-review-count {
    font-family: var(--son-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0;
    color: #1E73BE;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-align: right;
    display: block;
}

.son-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.son-listing-archive .son-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: 22px;

    min-width: fit-content;
}

.son-search {
    position: relative;
    width: 100%;
    max-width: 271px;
}

.son-search .son-search__input {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    padding: 8px 24px 8px 52px;
    color: #7B8794;
    border: 1px solid #42526E;
    border-radius: 999px;
    outline: none;
    background: #fafbfc;

    /* quick fix for height */
    min-height: 38px;
}

.son-search__input::placeholder {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.75;
    letter-spacing: 0;
}

.son-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.son-card .son-meta-item .son-meta-text {
    color: #42526E;
}

/* #### PAGINATION #### */
.son-pagination {
    padding-top: 44px;
    padding-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.son-pagination .page-numbers {
    color: #6B778C;
    font-size: 18px;
    line-height: 1.75;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px solid #A5ADBA;
    border-radius: 8px;
    color: #6B778C !important;
    text-decoration: none ! important;

    height: 36px;
    width: 36px;
    aspect-ratio: 1 / 1;
}

.son-pagination .page-numbers.current {
    background: #A32245;
    color: #FFFFFF ! important;
    border: 1px solid #A32245;
}

.son-pagination .page-numbers.next,
.son-pagination .page-numbers.prev {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #42526E;
}

.son-pagination .son-pagination-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Mobile filter */
@media (max-width: 944px) {
    .son-listing-archive .son-filters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
    }

    .son-listing-archive .son-search {
        grid-column: 1 / span 1;
        min-width: 220px;
    }

    .son-listing-archive .son-filter-service {
        grid-column: 2 / span 1;
    }

    .son-listing-archive .son-filter-sort {
        grid-row: 2;
        grid-column: 4 / span 3;
        justify-self: end;
    }

    .son-listing-archive .son-filter-clear {
        grid-row: 2;
        grid-column: 3 / span 1;
        justify-self: end;
    }

    .son-listing-archive .son-filter-total {
        grid-row: 2;
        grid-column: 1 / span 1;
        justify-self: start;
        margin-left: 0;
    }

    /* .son-listing-archive .son-filter-total .total-companies {

    } */
}

@media (max-width: 680px) {
    .son-listing-archive .son-filters {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        row-gap: 14px;
    }

    .son-listing-archive .son-filter select {
        width: 100%;
    }

    .son-listing-archive .son-search {
        grid-column: 1 / span 4;
        min-width: 220px;
        max-width: 100%;
    }

    .son-listing-archive .son-filter-service {
        grid-row: 2;
        grid-column: 1 / span 2;
    }

    .son-listing-archive .son-filter-sort {
        grid-row: 2;
        grid-column: 3 / span 2;
        /* align-self: flex-start; */
        justify-self: end;
        width: 100%;
    }

    .son-listing-archive .son-filter-clear {
        grid-row: 3;
        grid-column: 3 / span 2;
        /* align-self: flex-start; */
        justify-self: end;
    }

    .son-listing-archive .son-filter-total {
        grid-row: 3;
        grid-column: 1 / span 2;
        justify-self: start;
        margin-left: 0;
    }
}

@media (max-width: 620px) {
    .son-grid {
        grid-template-columns: 1fr;
    }

    .son-grid .son-card {
        padding: 19px 22px 19px 23px;
    }

    .son-card .son-header {
        flex-direction: column;
        row-gap: 12px;
    }

    .son-listing-archive .son-avatar {
        min-width: 70px;
        width: 70px;
        height: 70px;
    }

    .son-card .son-title {
        font-size: 20px;
        line-height: 1.4;
        font-weight: 600;
        letter-spacing: 0;

        margin-bottom: 4px !important;
    }

    .son-card .son-header-left {
        margin-bottom: 17px;
    }

    .son-card .son-header-right {
        align-items: flex-start;
        row-gap: 14px;
    }

    .son-card .son-meta {
        flex-direction: column;
    }

    .son-card .son-meta-info {
        flex-direction: row;
        justify-content: space-between;
        column-gap: 10px;
        margin-bottom: 20px;
    }

    .son-card .son-meta-item .son-meta-text {
        color: #42526E;
        font-weight: 600;
        font-size: 14px;
        line-height: 2;
        padding-left: 4px;
    }

    .son-card .son-meta-item span.son-meta-icon {
        color: #42526E;
        font-weight: 600;
        font-size: 14px;
        line-height: 2;
        padding-left: 4px;
    }

    .son-card .son_card-review {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .son-card .son-rating {
        margin-bottom: 8px;
    }

}

/* ##### === JOB ARCHIVE === ##### */
.son-jobs-archive {
    font-family: var(--son-font-family);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

#son-job-container p {
    margin: 0;
}

#son-job-container a {
    color: #A32245;
}

#son-job-container .son-header {
    margin-bottom: 0px;
}

#son-job-container .son-jobs-list {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

#son-job-container .son-card.son-job-card .son-job-image {
    width: var(--son-job-avatar-size);
    height: var(--son-job-avatar-size);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    background: #f6f7f8;
}

#son-job-container .son-job-card .son-job-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 50%;
}

#son-job-container .son-card.son-job-card {
    border: 1px solid #B3BAC5;
    border-radius: 20px;
    padding-right: 27px;
    padding-left: 29px;
}

#son-job-container .son-jobs-list .son-job-title {
    font-family: var(--son-font-family);
    margin-bottom: 8px;
}

#son-job-container .son-jobs-list .son-job-company {
    color: #A32245;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

#son-job-container .son-jobs-list .son-job-company a {
    text-decoration: underline;
}

.son-listing-archive .son-header-left {
    display: flex;
    column-gap: 1rem;
    min-width: 82px;
}

.son-avatar {
    background: #0b5ed7;
    color: white;
    width: 82px;
    height: 82px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.son-avatar img {
    margin-bottom: 0 !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.son-listing-archive .son-title {
    font-size: 24px;
    margin: 0;
    margin-bottom: 8px;
}

.son-listing-archive .son-card__link {
    color: #A32245;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.son-listing-archive .son-card__link:hover {
    color: #7a001f;
}

.son-meta {
    display: flex;
    font-size: 14px;
    color: gray;
}

.son-listing-archive .son-meta-item {
    display: inline-flex;
    column-gap: 4px;
}

.son-badges {
    margin: 10px 0;
}

.son-listing-archive .son-badge {
    background: #EBECF0;
    color: #42526E;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 2;
    margin-right: 5px;
}

.son-listing-archive a.son-badge {
    text-decoration: none;
    padding-inline: 10px;
}

.son-ratings {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.son-rating {
    text-align: center;
    font-size: 14px;
}

.son-listing-archive .son-card .son-btn {
    display: inline-block;
    padding: 6px 18px;
    background: inherit;
    color: #A32245;
    border: 1px solid #A32245;
    border-radius: 8px;
    font-family: var(--son-font-family);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.son-listing-archive .son-card .son-btn:hover {
    background: #A32245;
    color: #fff !important;
    border-color: #A32245;
    text-decoration: none;
}

.son-listing-archive .son-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* #### JOBS ARCHIVE FILTER #### */
.son-filter-location {
    position: relative;
    width: 100%;
    max-width: 271px;
}

.son-filter-location input[type="text"] {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    width: 100%;
    padding: 8px 24px 8px 52px;
    color: #7B8794;
    border: 1px solid #42526E;
    border-radius: 999px;
    outline: none;
    background: #fafbfc;

    /* quick fix for height */
    min-height: 38px;
}

.son-filter-location .son-location-svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.son-filter-location input::placeholder {
    font-weight: 500;
    font-size: 18px;
    line-height: 28.4px;
    letter-spacing: 0;
}

/* Mobile filter */
@media (max-width: 1030px) {
    .son-jobs-archive .son-job-filters {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
    }

    .son-jobs-archive .son-filter-location.son-search-wrapper {
        grid-row: 1;
        grid-column: 1 / span 4;
        min-width: 220px;
        max-width: 100%;
    }

    .son-jobs-archive .son-filter-contract {
        grid-column: 5 / span 3;
        width: 100%;
        min-width: 175px;
    }

    .son-jobs-archive .son-filter-contract select {

        width: 100%;
    }

    .son-jobs-archive .son-filter-practice {
        grid-column: 8 / span 3;
    }

    .son-jobs-archive .son-filter-sort {
        grid-row: 2;
        grid-column: 2/ span 3;
        /* align-self: flex-start; */
        justify-self: end;
    }

    .son-jobs-archive .son-filter-clear {
        grid-row: 2;
        grid-column: 10 / span 3;
        /* align-self: flex-start; */
        justify-self: end;
    }

    .son-jobs-archive .son-filter-total {
        grid-row: 2;
        grid-column: 1 / span 2;
        justify-self: start;
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .son-jobs-archive .son-job-filters {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
    }

    .son-jobs-archive .son-filter-location.son-search-wrapper {
        grid-row: 1;
        grid-column: 1 / span 6;
        min-width: 165px;
        max-width: 100%;
    }

    .son-jobs-archive .son-filter-contract {
        grid-column: 7 / span 6;
        width: 100%;
        min-width: 145px;
    }

    .son-jobs-archive .son-filter-contract select {
        width: 100%;
    }

    .son-jobs-archive .son-filter-practice {
        grid-column: 2;
        grid-column: 5 / span 3;
        min-width: 180px;
        align-self: flex-start;
    }

    .son-jobs-archive .son-filter-sort {
        grid-row: 2;
        grid-column: 1/ span 4;
        align-self: flex-start;
        justify-self: end;
    }

    .son-jobs-archive .son-filter-clear {
        grid-row: 2;
        grid-column: 10 / span 3;
        justify-self: end;
    }

    .son-jobs-archive .son-filter-total {
        grid-row: 3;
        grid-column: 1 / span 2;
        justify-self: start;
        margin-left: 0;
    }

    .son-jobs-archive .son-filter-location.son-search-wrapper {
        grid-row: 1;
        grid-column: 1 / -1;
        min-width: 120px;
        max-width: 100%;
    }

    .son-jobs-archive .son-filter-contract {
        grid-row: 2;
        grid-column: 1 / span 6;
        width: 100%;
        min-width: auto;
    }

    .son-jobs-archive .son-filter-contract select {

        width: 100%;
    }

    .son-jobs-archive .son-filter-practice {
        grid-column: 3;
        grid-column: 7 / span 6;
        min-width: auto;
        align-self: flex-start;
    }

    .son-jobs-archive .son-filter-sort {
        grid-row: 3;
        grid-column: 1/ span 4;
        align-self: flex-start;
        justify-self: end;
        min-width: 120px;
    }

    .son-jobs-archive .son-filter-clear {
        grid-row: 3;
        grid-column: -5 / span 4;
        justify-self: end;
        min-width: 150px;
    }

    .son-jobs-archive .son-filter-clear button {
        width: 100%;
    }

    .son-jobs-archive .son-filter-total {
        grid-row: 4;
        grid-column: 1 / span 3;
        justify-self: start;
        margin-left: 0;
    }

    /* JOB CARD */
    #son-job-container .son-card.son-job-card {
        border: 1px solid #B3BAC5;
        border-radius: 20px;
        padding-right: 20px;
        padding-left: 20px;
    }


    .son-jobs-archive .son-job-card .son-header-left {
        column-gap: 14px;
    }

    #son-job-container .son-jobs-list .son-job-title {
        font-size: 20px;
        line-height: 1.4;
        font-weight: 600;
        letter-spacing: 0;
    }

    .son-jobs-archive .son-job-card .son-job-avatar {
        width: 64px !important;
        height: 64px !important;
    }
}

/* #### Skeleton Base #### */
.son-skel-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.son-skel-card {
    border: 1px solid #B3BAC5;
    border-radius: 20px;
    padding: 22px 24px;
    background: #fff;
    display: flex;
    /* gap: 18px; */
}

.son-skel-card .son-skel-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.son-skel-card .son-skel-header .son-skel-text {
    width: 100%;
}

.son-skel-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
    background-size: 400% 100%;
    animation: son-skel 1.2s ease-in-out infinite;
    flex-shrink: 0;
}

.son-skel-lines {
    flex: 1;
}

.son-skel-line {
    height: 16px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
    background-size: 400% 100%;
    animation: son-skel 1.2s ease-in-out infinite;
}

.son-skel-line.skel-h20 {
    height: 20px;
}

.son-skel-line.skel-h18 {
    height: 18px;
}

.son-skel-line.skel-h14 {
    height: 14px;
}

.son-skel-line.full {
    width: 100%;
}

.son-skel-line.short {
    width: 70%;
}

.son-skel-line.shorter {
    width: 45%;
}

.son-skel-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.son-skelton-card .son-skeleton-header-right {
    width: 100%;
}

.son-skelton-card .son-skeleton-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

@keyframes son-skel {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* #### Job Skeleton #### */
.son-skel-container-jobs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.son-skel-container-jobs .son-skel-card .son-skel-header {
    margin-bottom: 0;
}

#son-solicitor-container .son-listings-container,
#son-job-container .son-listings-container {
    min-height: 420px;
    position: relative;
}