/* ==================================================
   LISTING PAGE
================================================== */

.listing-page,
.listing-page * {
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
}

.listing-page {
    padding: 22px 0 72px;
    background: #ffffff;
    color: #1f2f3d;
    font-size: 14px;
}

.listing-page svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   BREADCRUMB
================================================== */

.listing-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: #7a8792;
    font-size: 12px;
}

.listing-breadcrumb a {
    color: #32495b;
    text-decoration: none;
}


/* ==================================================
   TITLE
================================================== */

.listing-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #e5eaee;
    border-radius: 14px;
    background: #ffffff;
}

.listing-titlebar > div:first-child {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.listing-titlebar__accent {
    width: 4px;
    height: 28px;
    flex: 0 0 4px;
    margin-top: 2px;
    border-radius: 999px;
    background: #ef4e5e;
}

.listing-titlebar h1 {
    margin: 0;
    color: #102d43;
    font-size: 25px;
    line-height: 1.2;
}

.listing-titlebar p {
    max-width: 760px;
    margin: 6px 0 0;
    color: #687886;
    font-size: 13px;
    line-height: 1.6;
}

.listing-titlebar__count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex: 0 0 auto;
    color: #758491;
    font-size: 12px;
}

.listing-titlebar__count strong {
    color: #102d43;
    font-size: 17px;
}


/* ==================================================
   LAYOUT
================================================== */

.listing-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.listing-sidebar {
    position: sticky;
    top: 88px;
}


/* ==================================================
   FILTER
================================================== */

.listing-filter {
    overflow: visible;
    border: 1px solid #e3e8ec;
    border-radius: 14px;
    background: #ffffff;
}

.listing-filter__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f2;
}

.listing-filter__heading > span {
    width: 4px;
    height: 22px;
    flex: 0 0 4px;
    border-radius: 999px;
    background: #ef4e5e;
}

.listing-filter__heading h2 {
    margin: 0;
    color: #123147;
    font-size: 18px;
}

.listing-filter__form,
.listing-filter__section {
    display: grid;
}

.listing-filter__section {
    gap: 9px;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f2f4;
}

.listing-filter__section > label {
    color: #18384e;
    font-size: 13px;
}

.listing-filter__input-wrap {
    position: relative;
}

.listing-filter__input-wrap svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 15px;
    height: 15px;
    transform: translateY(-50%);
    color: #ef4e5e;
    pointer-events: none;
}

.listing-filter__input-wrap input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 36px;
    border: 1px solid #dfe5e9;
    border-radius: 10px;
    background: #ffffff;
    color: #263b4a;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.listing-filter__input-wrap input:focus {
    border-color: #cbd6dd;
}

.listing-filter__options {
    display: grid;
    max-height: 190px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.listing-filter-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 0 2px;
    color: #294558;
    font-size: 12px;
    cursor: pointer;
}

.listing-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.listing-filter-option > span {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #aebbc4;
    border-radius: 50%;
    background: #ffffff;
}

.listing-filter-option input:checked + span {
    border: 5px solid #ef4e5e;
}

.listing-filter__district {
    display: grid;
    gap: 9px;
}

.listing-filter__disabled {
    min-height: 42px;
    padding: 12px;
    border: 1px dashed #dce4e9;
    border-radius: 9px;
    background: #fafcfd;
    color: #91a0aa;
    font-size: 12px;
}

.listing-filter__error {
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff2f3;
    color: #cf3949;
    font-size: 11px;
}

.listing-filter__search-button,
.listing-filter__submit {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 9px;
    background: #ef4e5e;
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.listing-company-search {
    display: grid;
    gap: 9px;
}

.listing-filter__submit {
    position: sticky;
    bottom: 12px;
    z-index: 6;

    width: calc(100% - 36px);
    margin: 16px 18px 0;

    box-shadow: 0 8px 22px rgba(239, 78, 94, 0.18);
}

.listing-filter__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 10px 18px 18px;
    border-radius: 9px;
    background: #fff2f3;
    color: #ef4e5e;
    font-size: 12px;
    text-decoration: none;
}


/* ==================================================
   MAIN
================================================== */

.listing-main {
    min-width: 0;
}

.listing-main__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.listing-main__top > span {
    color: #516573;
    font-size: 13px;
}



/* ==================================================
   COMPANY LIST
================================================== */

.listing-list {
    display: grid;
    gap: 13px;
}

.listing-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    min-height: 154px;
    overflow: hidden;
    border: 1px solid #e3e8ec;
    border-radius: 13px;
    background: #ffffff;
}

.listing-card__logo {
    display: grid;
    place-items: center;
    min-height: 154px;
    padding: 22px;
    border-right: 1px solid #edf0f2;
    background: #fcfcfc;
}

.listing-card__logo img {
    width: 100%;
    max-width: 92px;
    max-height: 92px;
    object-fit: contain;
}

.listing-card__logo > span {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #fff1f3;
    color: #ef4e5e;
    font-size: 24px;
}

.listing-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px 15px;
}

.listing-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.listing-card h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    color: #102d43;
    font-size: 17px;
    line-height: 1.3;
}

.listing-card h2 a {
    color: inherit;
    text-decoration: none;
}

.listing-verified {
    display: inline-grid;
    place-items: center;

    width: 19px;
    height: 19px;

    flex: 0 0 19px;

    color: #1d9bf0;
}

.listing-verified svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
    stroke: currentColor;
}

.listing-verified svg path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 6px;
    color: #73838f;
    font-size: 12px;
}

.listing-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.listing-card__meta svg {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    color: #ef4e5e;
}


.listing-card__meta span + span::before {
    content: none;
}

.listing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 10px;
}

.listing-badge--featured {
    background: #fff1f3;
    color: #ef4e5e;
}

.listing-card__description {
    max-width: 760px;
    margin: 13px 0 0;
    color: #596d7b;
    font-size: 13px;
    line-height: 1.65;
}

.listing-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid #edf0f2;
}

.listing-card__bottom > span {
    color: #87949e;
    font-size: 11px;
}

.listing-card__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f5973;
    font-size: 12px;
    text-decoration: none;
}


/* ==================================================
   EMPTY
================================================== */

.listing-empty {
    padding: 40px 28px;
    border: 1px solid #e3e8ec;
    border-radius: 13px;
    text-align: center;
}

.listing-empty h2 {
    margin: 0;
    color: #153247;
    font-size: 18px;
}

.listing-empty p {
    max-width: 620px;
    margin: 8px auto 0;
    color: #71818d;
    font-size: 13px;
    line-height: 1.65;
}

.listing-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 16px;
    padding: 0 14px;
    border-radius: 8px;
    background: #ef4e5e;
    color: #ffffff;
    font-size: 12px;
    text-decoration: none;
}


/* ==================================================
   PAGINATION
================================================== */

.listing-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 24px;
}

.listing-pagination a,
.listing-pagination span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    border: 1px solid #e1e7eb;
    border-radius: 9px;
    background: #ffffff;
    color: #264659;
    font-size: 12px;
    text-decoration: none;
}

.listing-pagination a.is-active {
    border-color: #0e5b76;
    background: #0e5b76;
    color: #ffffff;
}


/* ==================================================
   EXTRA AREAS
================================================== */

.listing-extra {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid #e3e8ec;
    border-radius: 14px;
    background: #ffffff;
}

.listing-extra__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.listing-extra__heading > span {
    width: 4px;
    height: 22px;
    flex: 0 0 4px;
    border-radius: 999px;
    background: #ef4e5e;
}

.listing-extra__heading h2 {
    margin: 0;
    color: #123147;
    font-size: 18px;
}

.listing-trends {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.listing-trends a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #e3e9ed;
    border-radius: 10px;
    background: #f7fbfd;
    color: #21475e;
    font-size: 12px;
    text-decoration: none;
}

.listing-trends svg {
    width: 14px;
    height: 14px;
    color: #ef4e5e;
}

.listing-faq {
    display: grid;
    gap: 9px;
}

.listing-faq details {
    border: 1px solid #e5eaee;
    border-radius: 9px;
    background: #ffffff;
}

.listing-faq summary {
    padding: 13px 15px;
    color: #29495d;
    font-size: 13px;
    cursor: pointer;
}

.listing-faq p {
    margin: 0;
    padding: 0 15px 14px;
    color: #6b7d89;
    font-size: 12px;
    line-height: 1.7;
}

.listing-content__body {
    color: #536875;
    font-size: 13px;
    line-height: 1.8;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 980px) {
    .listing-layout {
        grid-template-columns: 1fr;
    }

    .listing-sidebar {
        position: static;
    }
}

@media (max-width: 700px) {
    .listing-page {
        padding: 18px 0 52px;
    }

    .listing-titlebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .listing-card {
        grid-template-columns: 1fr;
    }

    .listing-card__logo {
        min-height: 118px;
        border-right: 0;
        border-bottom: 1px solid #edf0f2;
    }

    .listing-card__top,
    .listing-card__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==================================================
   FINAL LISTING POLISH
================================================== */

.listing-extra + .listing-extra {
    margin-top: 18px;
}

.listing-faq details[open] {
    background: #fbfcfd;
}

.listing-faq summary {
    list-style: none;
}

.listing-faq summary::-webkit-details-marker {
    display: none;
}

.listing-faq summary::after {
    content: "+";
    float: right;
    color: #ef4e5e;
}

.listing-faq details[open] summary::after {
    content: "−";
}

.listing-content__body h2,
.listing-content__body h3 {
    color: #123147;
}

.listing-content__body p {
    margin: 0 0 14px;
}

.listing-content__body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .listing-filter__submit {
        position: static;
        box-shadow: none;
    }
}
