/* ================= GENERAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #1B2554;
    background: #fff;
}

a {
    text-decoration: none;
}


/* ================= HERO ================= */

.properties-hero {
    min-height: 430px;

    background-image:
        linear-gradient(
            rgba(27, 37, 84, 0.70),
            rgba(27, 37, 84, 0.70)
        ),
        url("../Images/banner6.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 60px 7%;
}

.hero-content {
    max-width: 750px;
    color: white;
}

.hero-content p {
    color: #9ACD32;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content span {
    color: #E8E8E8;
    font-size: 18px;
    line-height: 1.7;
}


/* ================= PROPERTY SECTION ================= */

.property-section {
    width: 86%;
    max-width: 1200px;
    margin: auto;
    padding: 70px 0 90px;
}


/* ================= FILTER ================= */

.filter-box {
    background: #fff;
    padding: 25px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr) auto;

    gap: 15px;

    align-items: end;

    border-radius: 12px;

    box-shadow:
        0 8px 30px rgba(27, 37, 84, 0.12);

    border: 1px solid #DDE5C8;

    margin-bottom: 60px;
}

.filter-item label {
    display: block;

    font-size: 14px;
    font-weight: bold;

    margin-bottom: 8px;

    color: #1B2554;
}


/* ================= SELECT ================= */

.filter-item select {
    width: 100%;

    padding: 13px;

    border: 1px solid #DDE5C8;
    border-radius: 6px;

    background: #F3F7E8;

    font-size: 14px;

    cursor: pointer;

    outline: none;

    transition: 0.3s;
}

.filter-item select:hover,
.filter-item select:focus {
    border-color: #9ACD32;
    background: #fff;
}


/* ================= INPUT ================= */

.filter-item input[type="text"],
.filter-item input[type="number"] {
    width: 100%;

    padding: 13px;

    border: 1px solid #DDE5C8;
    border-radius: 6px;

    background: #F3F7E8;

    font-size: 14px;

    outline: none;

    transition: 0.3s;

    color: #1B2554;
}

.filter-item input[type="text"]::placeholder,
.filter-item input[type="number"]::placeholder {
    color: #777;
}

.filter-item input[type="text"]:hover,
.filter-item input[type="text"]:focus,
.filter-item input[type="number"]:hover,
.filter-item input[type="number"]:focus {
    border-color: #9ACD32;
    background: #fff;
}


/* Remove number arrows */

.filter-item input[type="number"]::-webkit-inner-spin-button,
.filter-item input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-item input[type="number"] { 
    -moz-appearance: textfield;
}


/* ================= SEARCH BUTTON ================= */

.filter-btn {
    padding: 13px 28px;

    background: #1B2554;
    color: white;

    border: none;
    border-radius: 6px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.filter-btn:hover {
    background: #9ACD32;
    transform: translateY(-2px);
}


/* ================= HEADING ================= */

.property-heading {
    display: flex;

    align-items: end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.property-heading p {
    color: #7FAF25;

    font-size: 13px;
    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.property-heading h2 {
    font-size: 38px;
    line-height: 1.2;
}

.property-heading > span {
    color: #667080;
    font-size: 14px;
}


/* =========================
   PROPERTIES GRID
========================= */

.properties-grid {
    width: 100%;
    margin-top: 10px;
}


/* =========================
   PROPERTY LIST
========================= */

#propertyList {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* =========================
   PROPERTY CARD
========================= */

.property-card {
    position: relative;

    width: 100%;
    min-width: 0;

    background: #ffffff;

    border: 1px solid #DDE5C8;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(27, 37, 84, 0.10);

    display: flex;
    flex-direction: column;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(27, 37, 84, 0.16);
}


/* =========================
   PROPERTY IMAGE
========================= */

.property-image {
    position: relative;

    width: 100%;
    height: 280px;

    overflow: hidden;

    background: #F5F6F8;
}

.property-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition:
        transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.06);
}


/* =========================
   STATUS
========================= */

.status {
    position: absolute;

    top: 15px;
    left: 15px;

    background: #9ACD32;
    color: #1B2554;

    padding: 7px 14px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: bold;

    box-shadow:
        0 3px 10px rgba(27, 37, 84, 0.18);

    z-index: 2;
}


/* =========================
   PROPERTY CONTENT
========================= */

.property-content {
    padding: 20px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.property-content h3 {
    color: #1B2554;

    font-size: 20px;
    line-height: 1.4;

    margin-bottom: 10px;
}

.location {
    color: #667080;

    font-size: 14px;

    margin-bottom: 14px;
}

.property-content h4 {
    color: #7FAF25;

    font-size: 21px;

    margin-bottom: 15px;
}


/* =========================
   PROPERTY DETAILS
========================= */

.details {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 0;

    border-top:
        1px solid #DDE5C8;

    border-bottom:
        1px solid #DDE5C8;

    color: #526070;

    font-size: 13px;

    margin-top: auto;
}

.details span {
    white-space: normal;
}


/* =========================
   VIEW DETAILS BUTTON
========================= */

.property-content > a {
    display: block;

    width: 100%;

    text-align: center;

    margin-top: 18px;

    padding: 12px 15px;

    background: #1B2554;
    color: #ffffff !important;

    border-radius: 7px;

    font-size: 14px;
    font-weight: bold;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.property-content > a:hover {
    background: #9ACD32;

    color: #1B2554 !important;

    transform: translateY(-2px);
}


/* =========================
   PAGINATION
========================= */

.pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin-top: 50px;
}

.pagination button {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #DDE5C8;

    border-radius: 6px;

    color: #1B2554;
    background: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.pagination button:hover {
    background: #9ACD32;

    color: #1B2554;

    border-color: #9ACD32;
}

.pagination button.active {
    background: #1B2554;

    color: white;

    border-color: #1B2554;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .property-section {
        width: 90%;
    }

    .filter-box {
        grid-template-columns: 1fr 1fr;
    }

    .filter-btn {
        width: 100%;
    }

    #propertyList {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 25px;
    }

    .property-image {
        height: 260px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .properties-hero {
        min-height: 380px;

        padding: 50px 5%;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content span {
        font-size: 16px;
    }

    .property-section {
        width: 90%;

        padding-top: 55px;
    }

    .property-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .property-heading h2 {
        font-size: 34px;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 600px) {

    .properties-hero {
        min-height: 350px;

        padding: 45px 5%;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .hero-content span {
        font-size: 15px;

        line-height: 1.6;
    }

    .property-section {
        width: 90%;

        padding-top: 45px;
        padding-bottom: 60px;
    }

    .filter-box {
        grid-template-columns: 1fr;

        padding: 20px;

        margin-bottom: 45px;
    }

    .filter-btn {
        width: 100%;
    }

    #propertyList {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .property-image {
        height: 270px;
    }

    .property-content {
        padding: 20px;
    }

    .property-content h3 {
        font-size: 19px;
    }

    .property-content h4 {
        font-size: 20px;
    }

    .details {
        font-size: 12px;
    }

    .pagination {
        margin-top: 40px;

        gap: 8px;
    }

    .pagination button {
        width: 38px;
        height: 38px;
    }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 400px) {

    .properties-hero {
        min-height: 320px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .property-heading h2 {
        font-size: 27px;
    }

    .property-image {
        height: 240px;
    }

    .details {
        font-size: 11px;
    }

    .pagination button {
        width: 36px;
        height: 36px;
    }
}