/* ==========================================================================
   SEN DARAL — ADS INDEX
   Marketplace premium
   ========================================================================== */

/* ==========================================================================
   ADS PAGE HEADER
   ========================================================================== */

.ads-page-header {
    position: relative;
    min-height: 330px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        url("../../img/ads/ads-header.png")
        center center /
        cover
        no-repeat;

    color: #fff;
}

.ads-page-header-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 50, 30, .50) 0%,
            rgba(8, 75, 60, .62) 12%,
            rgba(8, 75, 60, .28) 40%
        )
}

.ads-page-header-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 65px 0;
}

.ads-page-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;
    padding: 9px 15px;

    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;

    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(12px);

    color: #f1ca67;

    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.ads-page-header-title {
    margin: 0;

    color: #ffffff;

    font-size: clamp(
        2.4rem,
        5vw,
        4.4rem
    );

    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 800;
}

.ads-page-header-text {
    max-width: 680px;

    margin: 20px 0 0;

    color: rgba(255, 255, 255, .82);

    font-size: 1.08rem;
    line-height: 1.75;
}

.ads-sell-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 20px;
    border-radius: 12px;
    background: #fff;
    color: #075047;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: .25s ease;
}

.ads-sell-button:hover {
    transform: translateY(-2px);
    color: #075047;
    box-shadow: 0 15px 35px rgba(0,0,0,.16);
}


/* ==========================================================================
   SEARCH
   ========================================================================== */

.ads-search-section {
    position: relative;
    z-index: 5;
    margin-top: -34px;
    padding-bottom: 42px;
}

.ads-filter-shell {
    padding: 24px;
    border: 1px solid rgba(8,74,65,.08);
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    box-shadow:
        0 20px 60px rgba(6,44,39,.10),
        0 2px 10px rgba(6,44,39,.04);
    backdrop-filter: blur(18px);
}

.ads-search-main {
    display: flex;
    gap: 12px;
}

.ads-search-input-wrap {
    position: relative;
    flex: 1;
}

.ads-search-input-wrap > i {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a6559;
    font-size: 1.05rem;
}

.ads-search-input {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 50px;
    border: 1px solid #e2e9e7;
    border-radius: 14px;
    outline: none;
    background: #f8faf9;
    color: #10221f;
    font-size: .94rem;
    transition: .2s ease;
}

.ads-search-input:focus {
    border-color: rgba(8,79,69,.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8,79,69,.07);
}

.ads-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    padding: 0 22px;
    border: 0;
    border-radius: 14px;
    background: #075047;
    color: #fff;
    font-weight: 800;
    transition: .25s ease;
}

.ads-search-submit:hover {
    background: #063f38;
    transform: translateY(-1px);
}


/* ==========================================================================
   FILTERS
   ========================================================================== */

.ads-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.ads-filter-field label {
    display: block;
    margin: 0 0 8px 3px;
    color: #5c706c;
    font-size: .73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ads-select-wrap {
    position: relative;
}

.ads-select-wrap > i {
    position: absolute;
    z-index: 2;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a665a;
}

.ads-filter-select {
    width: 100%;
    height: 50px;
    padding: 0 38px 0 43px;
    border: 1px solid #e1e9e6;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: #1c302c;
    font-size: .88rem;
    cursor: pointer;
}

.ads-filter-select:focus {
    border-color: #0a6559;
    box-shadow: 0 0 0 4px rgba(10,101,89,.06);
}

.ads-filter-options {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid #edf1f0;
}

.ads-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #435652;
    font-size: .85rem;
    cursor: pointer;
}

.ads-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ads-check-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #ccd8d4;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    transition: .2s ease;
}

.ads-check input:checked + .ads-check-box {
    border-color: #075047;
    background: #075047;
    color: #fff;
}

.ads-check-box i {
    font-size: .72rem;
}

.ads-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #9b6c15;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

.ads-reset:hover {
    color: #79530c;
}


/* ==========================================================================
   RESULTS
   ========================================================================== */

.ads-results-section {
    padding: 45px 0 100px;
    background: #f7f9f8;
}

.ads-results-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.ads-results-top h2 {
    margin: 0;
    color: #142521;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -1px;
    font-weight: 800;
}

.ads-results-top p {
    margin: 8px 0 0;
    color: #70817d;
    font-size: .9rem;
}

.ads-results-top p strong {
    color: #075047;
}

.ads-active-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid rgba(8,80,71,.12);
    border-radius: 999px;
    background: #edf6f3;
    color: #075047;
    font-size: .76rem;
    font-weight: 800;
}


/* ==========================================================================
   CARDS
   ========================================================================== */

.ads-grid {
    align-items: stretch;
}

.ads-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e7ecea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17,43,38,.05);
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.ads-card:hover {
    transform: translateY(-6px);
    border-color: rgba(7,80,71,.18);
    box-shadow: 0 20px 45px rgba(17,43,38,.11);
}

.ads-card-image {
    position: relative;
    display: block;
    height: 245px;
    overflow: hidden;
    background: #e9efed;
}

.ads-card-cover {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.ads-card:hover .ads-card-cover {
    transform: scale(1.045);
}

.ads-card-featured,
.ads-card-available {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.ads-card-featured {
    top: 12px;
    left: 12px;
    background: rgba(215,169,61,.94);
    color: #18362f;
}

.ads-card-available {
    right: 12px;
    bottom: 12px;
    background: rgba(255,255,255,.92);
    color: #075047;
}

.ads-card-body {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 19px;
}

.ads-card-category {
    margin-bottom: 7px;
    color: #0a7668;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ads-card-title {
    margin: 0;
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 800;
}

.ads-card-title a {
    color: #152722;
    text-decoration: none;
}

.ads-card-title a:hover {
    color: #075047;
}

.ads-card-location {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 12px;
    color: #71817d;
    font-size: .76rem;
    line-height: 1.45;
}

.ads-card-location i {
    margin-top: 1px;
    color: #0a7668;
}

.ads-card-meta {
    display: flex;
    gap: 15px;
    margin-top: 12px;
    color: #8b9a96;
    font-size: .72rem;
}

.ads-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ads-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #edf1ef;
}

.ads-card-price {
    color: #075047;
    font-size: 1.08rem;
    font-weight: 900;
}

.ads-card-price small {
    margin-left: 2px;
    color: #83918d;
    font-size: .62rem;
    font-weight: 800;
}

.ads-card-negotiable {
    padding: 5px 8px;
    border-radius: 7px;
    background: #f2f7e9;
    color: #637e2d;
    font-size: .63rem;
    font-weight: 800;
}




/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.ads-empty-state {
    position: relative;

    display: flex;
    align-items: center;
    gap: 70px;

    min-height: 420px;

    margin: 30px 0 70px;
    padding: 55px;

    overflow: hidden;

    border: 1px solid rgba(13, 79, 69, .08);
    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbfa 55%,
            #eef6f3 100%
        );

    box-shadow:
        0 25px 70px rgba(8, 58, 52, .08);
}

.ads-empty-state::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -220px;

    border-radius: 50%;

    background: rgba(215, 169, 61, .08);
}

.ads-empty-visual {
    position: relative;

    flex: 0 0 240px;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 240px;
}

.ads-empty-glow {
    position: absolute;

    width: 210px;
    height: 210px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(13, 79, 69, .16),
            rgba(13, 79, 69, .03) 65%,
            transparent 70%
        );
}

.ads-empty-icon {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 125px;
    height: 125px;

    border-radius: 35px;

    background:
        linear-gradient(
            145deg,
            #0d4f45,
            #11665a
        );

    color: #f1ca67;

    font-size: 3rem;

    box-shadow:
        0 25px 50px rgba(13, 79, 69, .24);

    transform: rotate(-4deg);
}

.ads-empty-content {
    position: relative;
    z-index: 3;

    max-width: 650px;
}

.ads-empty-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #0d4f45;

    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .12em;
    text-transform: uppercase;
}

.ads-empty-content h2 {
    margin: 0 0 15px;

    color: #173c36;

    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
}

.ads-empty-content p {
    max-width: 620px;

    margin: 0;

    color: #667873;

    font-size: 1rem;
    line-height: 1.75;
}

.ads-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 28px;
}

.ads-empty-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 20px;

    border: 0;
    border-radius: 12px;

    background: #0d4f45;

    color: #fff;

    font-weight: 700;
}

.ads-empty-primary:hover {
    background: #083a34;
    color: #fff;
}

.ads-empty-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 12px 20px;

    border: 1px solid rgba(13, 79, 69, .14);
    border-radius: 12px;

    background: #fff;

    color: #0d4f45;

    font-weight: 700;
}

.ads-empty-secondary:hover {
    border-color: #0d4f45;
    color: #0d4f45;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1199.98px) {

    .ads-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ads-card-image {
        height: 225px;
    }

}


@media (max-width: 991.98px) {

    .ads-page-header {
        padding: 65px 0 75px;
    }

    .ads-page-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ads-sell-button {
        width: 100%;
        justify-content: center;
    }

    .ads-search-section {
        margin-top: -30px;
    }

    .ads-results-section {
        padding-top: 35px;
    }

}


@media (max-width: 767.98px) {

    .ads-page-header {
        padding: 50px 0 65px;
    }

    .ads-page-header h1 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    .ads-page-header p {
        font-size: .92rem;
    }

    .ads-filter-shell {
        padding: 16px;
        border-radius: 18px;
    }

    .ads-search-main {
        flex-direction: column;
    }

    .ads-search-input {
        height: 54px;
    }

    .ads-search-submit {
        min-height: 50px;
    }

    .ads-filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ads-filter-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .ads-reset {
        margin-left: 0;
    }

    .ads-results-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .ads-card-image {
        height: 240px;
    }

    
}


@media (max-width: 575.98px) {

    .ads-page-header h1 {
        font-size: 2.15rem;
    }

    .ads-page-header p {
        font-size: .88rem;
    }

    .ads-results-top h2 {
        font-size: 1.7rem;
    }

    .ads-card-image {
        height: 230px;
    }

    .ads-card-body {
        min-height: 215px;
        padding: 17px;
    }

    .ads-empty {
        padding: 50px 20px;
    }

    .ads-empty h2 {
        font-size: 1.35rem;
    }

}

@media (max-width: 767.98px) {

    .ads-page-header {
        min-height: 280px;
    }

    .ads-page-header-content {
        padding: 50px 0;
    }

    .ads-page-header-title {
        font-size: 2.5rem;
        letter-spacing: -1.2px;
    }

    .ads-page-header-text {
        font-size: .98rem;
    }

    .ads-empty-state {
        flex-direction: column;
        gap: 25px;

        min-height: auto;

        margin: 20px 0 45px;
        padding: 35px 25px;

        text-align: center;
    }

    .ads-empty-visual {
        flex-basis: auto;

        width: 180px;
        height: 180px;
    }

    .ads-empty-glow {
        width: 160px;
        height: 160px;
    }

    .ads-empty-icon {
        width: 95px;
        height: 95px;

        font-size: 2.3rem;
    }

    .ads-empty-content {
        width: 100%;
    }

    .ads-empty-actions {
        justify-content: center;
    }

    .ads-empty-primary,
    .ads-empty-secondary {
        width: 100%;
        justify-content: center;
    }
}