/* =========================================================
   PROPERTY LISTING SECTION
   ========================================================= */

.properties-container {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 55px 5% 80px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 28px;

    box-sizing: border-box;
}


/* =========================================================
   PROPERTY CARD
   ========================================================= */

.property-card {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    background: #ffffff;

    border: 1px solid rgba(35, 35, 35, 0.08);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.035),
        0 15px 35px rgba(0, 0, 0, 0.055);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.property-card:hover {
    transform: translateY(-7px);

    border-color: rgba(244, 119, 33, 0.25);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.05),
        0 22px 45px rgba(244, 119, 33, 0.11);
}


/* =========================================================
   PROPERTY IMAGE
   ========================================================= */

.property-image {
    display: block;

    width: 100%;

    /* Bigger than the previous version */
    height: 205px;

    object-fit: cover;

    flex-shrink: 0;

    transition:
        transform 0.55s ease,
        filter 0.35s ease;
}


.property-card:hover .property-image {
    transform: scale(1.045);
}


/* =========================================================
   BADGE CONTAINER
   ========================================================= */

.badge-container {
    position: absolute;

    top: 14px;
    left: 14px;

    z-index: 10;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    max-width: calc(100% - 28px);
}


/* =========================================================
   ALL BADGES
   ========================================================= */

.badge-container span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 6px 12px;

    border-radius: 50px;

    font-family: Arial, sans-serif;

    font-size: 9px;
    font-weight: 700;

    line-height: 1.15;

    letter-spacing: 0.35px;

    text-transform: uppercase;

    box-sizing: border-box;

    backdrop-filter: blur(8px);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.property-card:hover .badge-container span {
    transform: translateY(-1px);
}


/* =========================================================
   PREMIUM PROPERTY
   RED
   ========================================================= */

.featured-badge {
    color: #ffffff !important;

    background: #d92f3f !important;

    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 5px 12px rgba(217, 47, 63, 0.20);
}


/* =========================================================
   NEW LISTING
   ORANGE
   ========================================================= */

.new-badge {
    color: #ffffff !important;

    background: #f47721 !important;

    border: 1px solid rgba(255, 255, 255, 0.30);

    box-shadow:
        0 5px 12px rgba(244, 119, 33, 0.20);
}


/* =========================================================
   SOLD
   ========================================================= */

.sold-badge {
    color: #ffffff !important;

    background: #242424 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
}


/* =========================================================
   CARD BODY
   ========================================================= */

.card-body {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 20px 20px 21px;

    background: #ffffff;

    box-sizing: border-box;
}


/* =========================================================
   LOCATION
   ========================================================= */

.property-location {
    display: flex;

    align-items: center;

    gap: 8px;

    min-height: 25px;

    margin: 0 0 9px;

    color: #628b5d;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.3;
}


/* =========================================================
   LOCATION SVG
   ========================================================= */

.location-icon {
    width: 20px;
    height: 24px;

    flex: 0 0 20px;

    display: block;

    overflow: visible;

    fill: none;

    stroke: #6b9565;

    stroke-width: 4;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform 0.3s ease,
        stroke 0.3s ease;
}


.location-icon circle {
    fill: #ffffff;

    stroke: #6b9565;

    stroke-width: 4;

    transition:
        stroke 0.3s ease,
        fill 0.3s ease;
}


.location-icon .location-ground {
    fill: none;

    stroke: #6b9565;

    stroke-width: 4;

    stroke-linecap: round;

    transition:
        stroke 0.3s ease;
}


/* Location hover */

.property-card:hover .location-icon {
    stroke: #f47721;

    transform:
        translateY(-2px)
        scale(1.05);
}


.property-card:hover .location-icon circle {
    stroke: #f47721;
}


.property-card:hover .location-icon .location-ground {
    stroke: #f47721;
}


.property-card:hover .property-location {
    color: #f47721;
}


/* =========================================================
   PROPERTY TITLE
   ========================================================= */

.property-title {
    margin: 0 0 17px;

    color: #222222;

    font-size: 22px;
    font-weight: 750;

    line-height: 1.15;

    letter-spacing: -0.35px;

    transition:
        color 0.3s ease;
}


.property-card:hover .property-title {
    color: #f47721;
}


/* =========================================================
   PROPERTY DESCRIPTION
   ========================================================= */

.property-description {
    margin: 0;

    color: #707070;

    font-size: 10.5px;
    font-weight: 400;

    line-height: 1.62;

    min-height: 136px;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 8;

    overflow: hidden;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.card-body hr {
    width: 100%;
    height: 1px;

    margin: 17px 0 17px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            rgba(244, 119, 33, 0.35),
            #eeeeee 30%,
            #eeeeee 70%,
            rgba(244, 119, 33, 0.35)
        );

    flex-shrink: 0;
}


/* =========================================================
   PRICE LABEL
   ========================================================= */

.card-body h2 {
    margin: 0 0 5px;

    color: #777777;

    font-size: 9px;
    font-weight: 800;

    line-height: 1.2;

    text-transform: uppercase;

    letter-spacing: 0.9px;
}


/* =========================================================
   PROPERTY PRICE
   ========================================================= */

.property-price {
    margin: 0 0 15px;

    color: #f47721;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -0.5px;
}


/* =========================================================
   PROPERTY INFORMATION
   ========================================================= */

.property-info {
    margin: 0 0 18px;

    color: #777777;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.45;
}


/* =========================================================
   VIEW FULL DETAILS BUTTON
   ========================================================= */

/*
   Styled like the button in your screenshot:

   - compact
   - rounded
   - clean
   - centered
   - subtle shadow
   - arrow on the right
*/

.property-button {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    height: 40px;

    margin-top: auto;

    padding: 0 18px;

    border: none;

    border-radius: 10px;

    background: #f47721;

    color: #ffffff;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    letter-spacing: 0;

    box-sizing: border-box;

    box-shadow:
        0 5px 10px rgba(244, 119, 33, 0.22);

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   BUTTON ARROW
   ========================================================= */

.property-button::after {
    content: "→";

    display: inline-block;

    margin-left: 10px;

    font-size: 16px;

    font-weight: 400;

    line-height: 1;

    transform: translateY(-1px);

    transition:
        transform 0.3s ease;
}


/* =========================================================
   BUTTON HOVER
   ========================================================= */

.property-button:hover {
    background: #e26412;

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 16px rgba(244, 119, 33, 0.28);
}


.property-button:hover::after {
    transform:
        translate(4px, -1px);
}


/* =========================================================
   BUTTON ACTIVE
   ========================================================= */

.property-button:active {
    transform: translateY(0);

    box-shadow:
        0 4px 8px rgba(244, 119, 33, 0.20);
}


/* =========================================================
   ORANGE CARD ACCENT
   ========================================================= */

.property-card::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    background: #f47721;

    z-index: 20;

    transition:
        width 0.4s ease;
}


.property-card:hover::after {
    width: 100%;
}


/* =========================================================
   NAVBAR PROTECTION
   ========================================================= */

nav,
header,
.navbar,
.navigation,
.site-navbar,
#navbar {
    position: relative;

    z-index: 99999;
}


.navbar,
#navbar,
.site-navbar {
    z-index: 99999;
}


/*
   Property content deliberately stays underneath
   the generated navbar.
*/

.properties-container {
    z-index: 1;
}


.property-card {
    z-index: 1;
}


.badge-container {
    z-index: 10;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .properties-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        padding:
            45px 5%
            70px;

        gap: 25px;
    }


    .property-image {
        height: 205px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .properties-container {
        grid-template-columns: 1fr;

        width: 100%;

        padding:
            35px 20px
            60px;

        gap: 24px;
    }


    .property-image {
        height: 225px;
    }


    .card-body {
        padding:
            21px 20px 22px;
    }


    .property-title {
        font-size: 22px;
    }


    .property-description {
        min-height: auto;

        font-size: 11px;

        -webkit-line-clamp: unset;
    }


    .property-price {
        font-size: 26px;
    }


    .property-button {
        height: 43px;

        font-size: 11px;
    }


    .location-icon {
        width: 20px;
        height: 24px;
    }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 400px) {

    .properties-container {
        padding-left: 14px;
        padding-right: 14px;
    }


    .property-image {
        height: 205px;
    }


    .card-body {
        padding: 18px;
    }
}
/* ========================================
   PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px auto;
    flex-wrap: wrap;
}

/* All pagination buttons */
.pagination button {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;
    color: #222;

    font-size: 15px;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* Hover */
.pagination button:hover {
    background: #f5f5f5;
    border-color: #d62828;
    color: #d62828;
    transform: translateY(-2px);
}

/* Current page */
.pagination button.active {
    background: #d62828;
    color: #fff;
    border-color: #d62828;
}

/* Keep active button from changing on hover */
.pagination button.active:hover {
    background: #b91f1f;
    color: #fff;
    border-color: #b91f1f;
}

/* Previous / Next buttons */
.pagination button:first-child,
.pagination button:last-child {
    padding: 0 18px;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .pagination {
        gap: 6px;
        margin: 30px auto;
    }

    .pagination button {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }

    .pagination button:first-child,
    .pagination button:last-child {
        padding: 0 13px;
    }
}