/* ==========================================================
   SPECTRA ASSET MANAGEMENT
   PROPERTIES PAGE
========================================================== */

.properties-page {
    --property-navy: #123058;
    --property-dark: #001b3c;

    --property-green: #15803d;
    --property-green-dark: #146c36;

    --property-light-green: #ecfdf3;

    --property-background: #f8f8ff;

    --property-border: #e2e8f0;

    --property-text: #172033;
    --property-muted: #64748b;

    background: var(--property-background);
}


/* ==========================================================
   HEADER
========================================================== */

.properties-page .site-header {
    position: absolute;

    top: 16px;
    left: 0;

    width: 100%;

    z-index: 1000;
}


.properties-page .site-header.header-sticky {
    position: fixed;

    top: 10px;
}



/* ==========================================================
   BANNER
========================================================== */

.properties-banner {
    position: relative;

    width: 100%;
    height: 390px;

    margin: 0;
    padding: 0;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--property-dark);
}


.properties-banner-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


.properties-banner-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 27, 60, 0.74),
            rgba(0, 27, 60, 0.48),
            rgba(0, 27, 60, 0.58)
        );
}


.properties-banner-content {
    position: relative;

    z-index: 5;

    width: min(90%, 850px);

    margin-top: 55px;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;
}


.properties-breadcrumb {
    margin-bottom: 14px;

    padding: 6px 12px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border: 1px solid rgba(255,255,255,0.22);

    border-radius: 40px;

    background: rgba(255,255,255,0.08);

    color: #ffffff;

    backdrop-filter: blur(7px);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.06em;
}


.properties-breadcrumb a {
    color: #86efac;
}


.properties-banner h1 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: clamp(39px, 4.5vw, 56px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -0.04em;
}


.properties-banner-content > p {
    margin: 0;

    color: #ffffff;

    font-size: 15px;

    font-weight: 500;
}



/* ==========================================================
   AVAILABLE PROPERTIES
========================================================== */

.available-properties {
    padding: 75px 0 100px;

    background: #f8f8ff;
}


.available-properties .container {
    max-width: 1160px;
}



/* ==========================================================
   SECTION HEADING
========================================================== */

.properties-heading {
    max-width: 650px;

    margin-bottom: 42px;
}


.properties-section-label {
    width: fit-content;

    margin-bottom: 10px;

    padding: 5px 11px;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    border: 1px solid #bbf7d0;

    border-radius: 40px;

    background: #dcfce7;

    color: var(--property-green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.055em;
}


.properties-section-label > span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--property-green);
}


.properties-heading h2 {
    margin: 0 0 8px;

    color: var(--property-navy);

    font-size: clamp(27px, 3vw, 37px);

    line-height: 1.18;

    letter-spacing: -0.035em;
}


.properties-heading p {
    max-width: 620px;

    margin: 0;

    color: var(--property-muted);

    font-size: 13px;

    line-height: 1.65;
}



/* ==========================================================
   PROPERTY GRID
========================================================== */

.properties-list-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}



/* ==========================================================
   PROPERTY CARD
========================================================== */

.listing-card {
    min-width: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    border: 1px solid var(--property-border);

    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 5px 20px rgba(18, 48, 88, 0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.listing-card:hover {
    transform: translateY(-5px);

    border-color: #d5dee9;

    box-shadow:
        0 15px 35px rgba(18,48,88,0.09);
}



/* ==========================================================
   LISTING IMAGE
========================================================== */

.listing-image {
    position: relative;

    width: 100%;
    height: 230px;

    overflow: hidden;

    background: #e2e8f0;
}


.listing-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.45s ease;
}


.listing-card:hover .listing-image img {
    transform: scale(1.045);
}



/* ==========================================================
   STATUS BADGE
========================================================== */

.listing-status {
    position: absolute;

    top: 13px;
    left: 13px;

    z-index: 3;

    padding: 6px 11px;

    border-radius: 30px;

    background: var(--property-green);

    color: #ffffff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.025em;

    box-shadow:
        0 3px 9px rgba(0,0,0,0.12);
}


.listing-status-sale {
    background: var(--property-navy);
}



/* ==========================================================
   LOCATION BADGE
========================================================== */

.listing-location {
    position: absolute;

    right: 12px;
    bottom: 12px;

    z-index: 3;

    max-width: calc(100% - 24px);

    padding: 7px 11px;

    display: flex;

    align-items: center;

    gap: 5px;

    border-radius: 30px;

    background: rgba(255,255,255,0.95);

    color: var(--property-navy);

    box-shadow:
        0 3px 9px rgba(15,23,42,0.09);

    font-size: 9px;

    font-weight: 700;
}


.listing-location .material-symbols-outlined {
    color: var(--property-green);

    font-size: 14px;
}



/* ==========================================================
   CARD BODY
========================================================== */

.listing-body {
    padding: 21px 20px 19px;

    display: flex;

    flex: 1;

    flex-direction: column;
}



/* ==========================================================
   PRICE
========================================================== */

.listing-price {
    margin-bottom: 8px;

    display: flex;

    align-items: baseline;

    gap: 5px;

    color: var(--property-navy);
}


.listing-price strong {
    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 800;
}


.listing-price > span {
    color: #94a3b8;

    font-size: 9px;

    font-weight: 500;
}


.listing-price-inquire {
    color: var(--property-navy);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 18px;

    font-weight: 800;
}



/* ==========================================================
   PROPERTY TITLE
========================================================== */

.listing-body h3 {
    margin: 0 0 9px;

    color: var(--property-navy);

    font-size: 16px;

    line-height: 1.42;

    font-weight: 700;
}



/* ==========================================================
   DESCRIPTION
========================================================== */

.listing-description {
    margin: 0 0 16px;

    color: var(--property-muted);

    font-size: 10px;

    line-height: 1.65;
}



/* ==========================================================
   FEATURES
========================================================== */

.listing-features {
    margin-bottom: 18px;

    display: grid;

    grid-template-columns: repeat(2, minmax(0,1fr));

    gap: 6px;
}


.listing-features > span {
    min-width: 0;

    padding: 6px 8px;

    display: flex;

    align-items: center;

    gap: 6px;

    overflow: hidden;

    border-radius: 3px;

    background: #f1f3ff;

    color: #39465d;

    font-size: 8px;

    font-weight: 600;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.listing-features .material-symbols-outlined {
    flex-shrink: 0;

    color: var(--property-green);

    font-size: 13px;
}



/* ==========================================================
   INQUIRE BUTTON
========================================================== */

.listing-button {
    width: 100%;

    min-height: 42px;

    margin-top: auto;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border-radius: 3px;

    background: var(--property-green);

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.listing-button:hover {
    background: var(--property-green-dark);

    transform: translateY(-1px);
}


.listing-button .material-symbols-outlined {
    font-size: 15px;
}



/* ==========================================================
   RESULTS
========================================================== */

.properties-results {
    margin-top: 42px;

    padding-top: 27px;

    border-top: 1px solid #e2e8f0;

    color: #64748b;

    font-size: 10px;
}


.properties-results > div {
    display: flex;

    align-items: center;

    gap: 7px;
}


.properties-results .material-symbols-outlined {
    color: var(--property-green);

    font-size: 16px;
}



/* ==========================================================
   FLOATING WHATSAPP
========================================================== */

.properties-whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 2000;

    width: 50px;
    height: 50px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background: var(--property-green);

    color: #ffffff;

    box-shadow:
        0 8px 23px rgba(21,128,61,0.28);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.properties-whatsapp:hover {
    transform: translateY(-3px);

    background: var(--property-green-dark);
}


.properties-whatsapp svg {
    width: 25px;
    height: 25px;

    fill: currentColor;
}



/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1000px) {

    .properties-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    .available-properties .container {
        max-width: 850px;
    }

}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .properties-banner {
        height: 340px;
    }


    .properties-banner-content {
        margin-top: 50px;
    }


    .properties-banner h1 {
        font-size: 38px;
    }


    .available-properties {
        padding: 60px 0 75px;
    }


    .properties-list-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .properties-heading {
        margin-bottom: 30px;
    }


    .listing-image {
        height: 260px;
    }


    .listing-body {
        padding: 20px;
    }


    .listing-price strong {
        font-size: 22px;
    }


    .listing-body h3 {
        font-size: 17px;
    }

}



/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 440px) {

    .properties-banner {
        height: 310px;
    }


    .properties-banner h1 {
        font-size: 33px;
    }


    .properties-list-grid {
        gap: 18px;
    }


    .listing-image {
        height: 220px;
    }


    .listing-features {
        grid-template-columns: 1fr 1fr;
    }


    .properties-whatsapp {
        right: 16px;
        bottom: 18px;

        width: 48px;
        height: 48px;
    }

}


/* ==========================================================
   PROPERTY PAGINATION
========================================================== */

.properties-pagination-area {
    margin-top: 42px;
    padding-top: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border-top: 1px solid #e2e8f0;
}


/* ==========================================================
   RESULTS COUNT
========================================================== */

.properties-results {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #64748b;

    font-size: 10px;
}


.properties-results .material-symbols-outlined {
    color: var(--property-green);

    font-size: 16px;
}


/* ==========================================================
   PAGINATION BUTTON GROUP
========================================================== */

.pagination {
    display: flex;
    align-items: center;

    gap: 6px;
}


/* ==========================================================
   SHARED BUTTON
========================================================== */

.pagination-number,
.pagination-arrow {
    width: 36px;
    height: 36px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e2e8f0;

    border-radius: 5px;

    background: #ffffff;

    color: var(--property-navy);

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* HOVER */

.pagination-number:hover,
.pagination-arrow:hover:not(:disabled) {
    border-color: var(--property-navy);

    transform: translateY(-1px);
}


/* ACTIVE PAGE */

.pagination-number.active {
    border-color: var(--property-navy);

    background: var(--property-navy);

    color: #ffffff;
}


/* ARROW ICON */

.pagination-arrow .material-symbols-outlined {
    font-size: 18px;
}


/* DISABLED ARROW */

.pagination-arrow:disabled {
    background: #f8fafc;

    color: #cbd5e1;

    cursor: not-allowed;
}


/* ==========================================================
   CARD PAGINATION VISIBILITY
========================================================== */

.listing-card.property-hidden {
    display: none;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

    .properties-pagination-area {
        flex-direction: column;

        align-items: center;

        gap: 18px;
    }


    .properties-results {
        text-align: center;
    }

}