/*
|--------------------------------------------------------------------------
| PROPERTIES PAGE CSS
| File: /assets/css/properties.css
|--------------------------------------------------------------------------
*/


/* =========================================================
   PAGE HEADER
========================================================= */

.properties-page-header {
    padding: 55px 0 45px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(23, 105, 255, 0.08),
            transparent 32%
        ),
        #f8fbff;

    border-bottom: 1px solid #edf1f6;
}

.properties-page-header-content {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
}

.properties-page-header-content > div:first-child {
    max-width: 760px;
}

.properties-page-action {
    flex: 0 0 auto;
}

.properties-page-action .btn {
    display: inline-flex;

    align-items: center;

    gap: 7px;
}

.properties-page-action img {
    width: 17px;
    height: 17px;

    object-fit: contain;
}

.properties-page-title {
    margin: 8px 0 10px;

    color: #14213d;

    font-size: clamp(
        32px,
        4vw,
        48px
    );

    font-weight: 850;

    line-height: 1.08;

    letter-spacing: -0.04em;
}

.properties-page-description {
    max-width: 680px;

    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   EYEBROW
========================================================= */

.properties-page .section-eyebrow {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 0 11px;

    background: #eef5ff;

    border: 1px solid #dce9ff;

    border-radius: 30px;

    color: #1769ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================================
   FILTER SECTION
========================================================= */

.properties-filter-section {
    position: relative;

    z-index: 10;

    margin-top: -25px;

    padding-bottom: 25px;
}

.properties-filter-card {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5eaf1;

    border-radius: 16px;

    box-shadow:
        0 15px 45px rgba(
            16,
            24,
            40,
            0.08
        );
}


/* =========================================================
   FILTER FORM
========================================================= */

.properties-filter-form {
    display: grid;

    grid-template-columns:
        0.9fr
        1.3fr
        1.15fr
        1.15fr
        1fr
        auto;

    align-items: end;

    gap: 12px;
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 10px;
    font-weight: 750;
}

.filter-field input,
.filter-field select {
    display: block;

    width: 100%;
    height: 44px;

    min-width: 0;

    padding: 0 12px;

    background: #ffffff;

    border: 1px solid #dfe5ed;

    border-radius: 8px;

    outline: none;

    color: #172033;

    font-family: inherit;

    font-size: 12px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.filter-field input::placeholder {
    color: #98a2b3;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: #1769ff;

    box-shadow:
        0 0 0 3px rgba(
            23,
            105,
            255,
            0.08
        );
}

.filter-submit {
    min-width: 95px;
}

.filter-submit .btn {
    width: 100%;

    min-height: 44px;

    gap: 6px;
}

.filter-submit img {
    width: 16px;
    height: 16px;

    object-fit: contain;
}


/* =========================================================
   ACTIVE FILTERS
========================================================= */

.properties-active-filters {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px solid #edf0f4;
}

.properties-filter-label {
    color: #667085;

    font-size: 10px;
    font-weight: 650;
}

.properties-filter-chip {
    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding: 0 9px;

    background: #f4f7fb;

    border: 1px solid #e5eaf1;

    border-radius: 20px;

    color: #475467;

    font-size: 9px;
    font-weight: 700;
}

.properties-filter-clear {
    display: inline-flex;

    align-items: center;

    min-height: 27px;

    padding: 0 9px;

    color: #1769ff;

    font-size: 9px;
    font-weight: 750;

    text-decoration: none;
}

.properties-filter-clear:hover {
    text-decoration: underline;
}


/* =========================================================
   RESULTS SECTION
========================================================= */

.properties-results-section {
    padding: 20px 0 70px;

    background: #ffffff;
}

.properties-results-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}

.properties-results-info h2 {
    margin: 0 0 4px;

    color: #172033;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.properties-results-info p {
    margin: 0;

    color: #98a2b3;

    font-size: 10px;
}

.properties-sort {
    display: flex;

    align-items: center;

    gap: 8px;
}

.properties-sort label {
    color: #667085;

    font-size: 10px;
    font-weight: 650;
}

.properties-sort select {
    height: 38px;

    padding: 0 30px 0 10px;

    background: #ffffff;

    border: 1px solid #dfe5ed;

    border-radius: 8px;

    color: #344054;

    font-family: inherit;

    font-size: 10px;

    outline: none;
}

.properties-sort select:focus {
    border-color: #1769ff;
}


/* =========================================================
   PROPERTY GRID
========================================================= */

.properties-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 22px;
}


/* =========================================================
   PROPERTY CARD
========================================================= */

.properties-page .property-card {
    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e6ebf1;

    border-radius: 14px;

    box-shadow:
        0 7px 25px rgba(
            16,
            24,
            40,
            0.055
        );

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.properties-page .property-card:hover {
    transform: translateY(-4px);

    border-color: #d7e5ff;

    box-shadow:
        0 16px 38px rgba(
            16,
            24,
            40,
            0.11
        );
}


/* =========================================================
   CARD IMAGE
========================================================= */

.properties-page .property-card-image {
    position: relative;

    display: block;

    width: 100%;

    height: 235px;

    overflow: hidden;

    background: #f1f4f8;

    text-decoration: none;
}

.properties-page .property-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.properties-page .property-card:hover
.property-card-image img {
    transform: scale(1.04);
}


/* =========================================================
   CARD BADGES
========================================================= */

.property-card-badges {
    position: absolute;

    top: 12px;
    left: 12px;
    right: 12px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 7px;
}

.property-card-badge {
    display: inline-flex;

    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    background: #1769ff;

    border-radius: 20px;

    color: #ffffff;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.property-card-badge.sale {
    background: #1769ff;
}

.property-card-badge.rent {
    background: #12a36b;
}

.property-card-badge.lease {
    background: #8b5cf6;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.properties-page .property-card-content {
    padding: 16px;
}

.property-card-type {
    display: inline-block;

    margin-bottom: 6px;

    color: #1769ff;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.property-card-title {
    margin: 0 0 8px;

    font-size: 17px;
    font-weight: 800;

    line-height: 1.3;

    letter-spacing: -0.02em;
}

.property-card-title a {
    color: #172033;

    text-decoration: none;
}

.property-card-title a:hover {
    color: #1769ff;
}


/* =========================================================
   LOCATION
========================================================= */

.property-card-location {
    display: flex;

    align-items: center;

    gap: 6px;

    min-width: 0;

    margin-bottom: 12px;

    color: #667085;

    font-size: 10px;
}

.property-card-location img {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    object-fit: contain;
}

.property-card-location span {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =========================================================
   META
========================================================= */

.property-card-meta {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    padding: 10px 0;

    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.property-card-meta-item {
    display: inline-flex;

    align-items: center;

    gap: 4px;

    color: #667085;

    font-size: 9px;
    font-weight: 650;
}

.property-card-meta-item img {
    width: 15px;
    height: 15px;

    object-fit: contain;
}


/* =========================================================
   PRICE
========================================================= */

.property-card-price {
    display: flex;

    align-items: baseline;

    gap: 4px;

    padding-top: 13px;
}

.property-card-price strong {
    color: #172033;

    font-size: 18px;
    font-weight: 850;

    letter-spacing: -0.025em;
}

.property-card-price span {
    color: #98a2b3;

    font-size: 9px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.properties-empty {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 360px;

    padding: 30px;

    background: #f8fafc;

    border: 1px dashed #d9e0e8;

    border-radius: 16px;
}

.properties-empty-content {
    max-width: 420px;

    text-align: center;
}

.properties-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 15px;

    background: #eef5ff;

    border-radius: 50%;
}

.properties-empty-icon img {
    width: 31px;
    height: 31px;

    object-fit: contain;
}

.properties-empty h3 {
    margin: 0 0 7px;

    color: #172033;

    font-size: 20px;
    font-weight: 800;
}

.properties-empty p {
    margin: 0 0 20px;

    color: #667085;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   PAGINATION
========================================================= */

.properties-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 35px;
}

.properties-pagination a,
.properties-pagination span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    padding: 0 9px;

    border: 1px solid #e0e6ee;

    border-radius: 8px;

    color: #475467;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}

.properties-pagination a:hover {
    border-color: #1769ff;

    background: #eef5ff;

    color: #1769ff;
}

.properties-pagination span.active {
    border-color: #1769ff;

    background: #1769ff;

    color: #ffffff;
}

.properties-pagination span:not(.active) {
    min-width: 24px;

    border-color: transparent;

    background: transparent;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .properties-filter-form {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .filter-submit {
        grid-column: span 3;
    }

    .filter-submit .btn {
        width: 100%;
    }

    .properties-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET SMALL
========================================================= */

@media (max-width: 800px) {

    .properties-page-header {
        padding: 45px 0 38px;
    }

    .properties-page-header-content {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .properties-page-action {
        width: 100%;
    }

    .properties-page-action .btn {
        width: 100%;
    }

    .properties-filter-section {
        margin-top: -18px;
    }

    .properties-filter-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .filter-submit {
        grid-column: span 2;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .properties-page-header {
        padding: 35px 0 32px;
    }

    .properties-page-title {
        font-size: 32px;

        line-height: 1.12;
    }

    .properties-page-description {
        font-size: 12px;
    }

    .properties-filter-card {
        padding: 14px;

        border-radius: 13px;
    }

    .properties-filter-form {
        display: grid;

        grid-template-columns: 1fr;

        gap: 11px;
    }

    .filter-submit {
        grid-column: auto;
    }

    .filter-field input,
    .filter-field select {
        height: 43px;
    }

    .properties-results-section {
        padding-bottom: 50px;
    }

    .properties-results-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .properties-sort {
        width: 100%;
    }

    .properties-sort select {
        flex: 1;
    }

    .properties-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .properties-page .property-card-image {
        height: 225px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .properties-page-title {
        font-size: 28px;
    }

    .properties-page .property-card-image {
        height: 205px;
    }

    .properties-page .property-card-content {
        padding: 14px;
    }

    .property-card-title {
        font-size: 16px;
    }

    .property-card-price strong {
        font-size: 17px;
    }

    .properties-empty {
        min-height: 300px;

        padding: 20px;
    }

}