
/* =========================================
   SAMRUDDHI HOMES - PREMIUM PROPERTIES
========================================= */


/* ================= GLOBAL ================= */

:root {
    --navy: #1B2554;
    --navy-dark: #121A40;
    --lime: #9ACD32;
    --lime-dark: #7FAF25;

    --white: #ffffff;
    --background: #F8F9F6;

    --text: #1B2554;
    --muted: #737B8C;

    --border: #E5E9DF;

    --shadow:
        0 15px 45px rgba(27, 37, 84, 0.08);

    --transition: 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
}


a {
    text-decoration: none;
    color: inherit;
}


button,
input,
select {
    font-family: inherit;
}


/* ================= HERO ================= */

.properties-hero {

    position: relative;

    min-height: 420px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    padding: 80px 7% 100px;

    background-image:
        url("../Images/banner6.jpg");

    background-size: cover;

    background-position: center;

    background-attachment: fixed;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(18, 26, 64, 0.92),
            rgba(27, 37, 84, 0.72),
            rgba(27, 37, 84, 0.45)
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 900px;

    color: var(--white);

}


.hero-tag {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    color: var(--lime);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 28px;

}


.hero-line {

    width: 35px;

    height: 2px;

    background: var(--lime);

}


.hero-content h1 {

    font-size: clamp(42px, 6vw, 76px);

    line-height: 1.12;

    font-weight: 700;

    letter-spacing: -2px;

    margin-bottom: 25px;

}


.hero-content h1 span {

    color: var(--lime);

}


.hero-content p {

    max-width: 600px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.82);

    font-size: 17px;

    line-height: 1.9;

}


.hero-btn {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 35px;

    padding: 16px 28px;

    background: var(--lime);

    color: var(--navy);

    border-radius: 4px;

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);

}


.hero-btn:hover {

    background: var(--white);

    transform: translateY(-3px);

}


.hero-btn i {

    font-size: 17px;

}


.hero-bottom {

    position: absolute;

    bottom: 30px;

    left: 7%;

    right: 7%;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: rgba(255, 255, 255, 0.65);

    font-size: 10px;

    letter-spacing: 2px;

}


/* ================= SECTION ================= */

.property-section {

    width: 88%;

    max-width: 1380px;

    margin: auto;

    padding: 100px 0 110px;

}


.section-intro {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;

}


.section-title {

    max-width: 750px;

}


.eyebrow {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--lime-dark);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 18px;

}


.green-dot {

    width: 7px;

    height: 7px;

    background: var(--lime);

    border-radius: 50%;

}


.section-title h2 {

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.2;

    letter-spacing: -1.5px;

    margin-bottom: 16px;

}


.section-title h2 span {

    color: var(--lime-dark);

}


.section-title p {

    max-width: 600px;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.8;

}


.section-side-note {

    display: flex;

    align-items: center;

    gap: 15px;

    padding-bottom: 8px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;

}


.section-side-note i {

    font-size: 30px;

    color: var(--lime-dark);

}


/* ================= FILTER PANEL ================= */

.filter-panel {

    position: relative;

    background: var(--white);

    padding: 32px;

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow: var(--shadow);

    margin-bottom: 85px;

}


.filter-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 28px;

    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);

}


.filter-eyebrow {

    display: block;

    color: var(--lime-dark);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;

}


.filter-heading h3 {

    font-size: 21px;

    font-weight: 700;

}


.filter-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    background: #F3F7E8;

    color: var(--navy);

    border-radius: 8px;

    font-size: 18px;

}


.filter-grid {

    display: grid;

    grid-template-columns:
        1.2fr
        1fr
        1fr
        1.2fr
        1fr;

    gap: 20px;

    align-items: end;

}


.filter-item label {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    font-weight: 700;

    margin-bottom: 11px;

    color: var(--navy);

}


.filter-item label i {

    color: var(--lime-dark);

    font-size: 15px;

}


.filter-item input,
.filter-item select {

    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid var(--border);

    border-radius: 5px;

    background: #FAFBF8;

    color: var(--navy);

    font-size: 13px;

    outline: none;

    transition: var(--transition);

}


.filter-item input::placeholder {

    color: #A0A5AF;

}


.filter-item input:focus,
.filter-item select:focus {

    border-color: var(--lime);

    background: var(--white);

    box-shadow:
        0 0 0 3px rgba(154, 205, 50, 0.12);

}


.filter-item select {

    cursor: pointer;

}


.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;

}


.filter-actions {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.search-btn {

    height: 48px;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background: var(--navy);

    color: var(--white);

    border: none;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);

}


.search-btn:hover {

    background: var(--lime);

    color: var(--navy);

}


.search-btn i {

    font-size: 16px;

}


.reset-btn {

    border: none;

    background: transparent;

    color: var(--muted);

    font-size: 11px;

    cursor: pointer;

    transition: var(--transition);

}


.reset-btn:hover {

    color: var(--lime-dark);

}


/* ================= PROPERTY HEADING ================= */

.property-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 35px;

}


.property-heading h2 {

    font-size: 32px;

    letter-spacing: -1px;

}


.property-count {

    padding: 11px 17px;

    background: #F3F7E8;

    color: var(--navy);

    border-radius: 4px;

    font-size: 12px;

    font-weight: 700;

}


/* ================= GRID ================= */

.properties-grid {

    width: 100%;

}


#propertyList {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

}


/* ================= PROPERTY CARD ================= */

.property-card {

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

}


.property-card:hover {

    transform: translateY(-7px);

    border-color: rgba(154, 205, 50, 0.5);

    box-shadow:
        0 20px 45px rgba(27, 37, 84, 0.12);

}


/* ================= IMAGE ================= */

.property-image {

    position: relative;

    height: 300px;

    overflow: hidden;

    background: #EDEFEA;

}


.property-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.7s ease;

}


.property-card:hover .property-image img {

    transform: scale(1.07);

}


.image-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(18, 26, 64, 0.75),
            transparent 55%
        );

}


.property-status {

    position: absolute;

    top: 18px;

    left: 18px;

    z-index: 2;

    padding: 8px 13px;

    background: var(--lime);

    color: var(--navy);

    border-radius: 3px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.5px;

}


.image-bottom {

    position: absolute;

    bottom: 20px;

    left: 20px;

    right: 20px;

    z-index: 2;

    display: flex;

    flex-direction: column;

    gap: 9px;

    color: var(--white);

}


.property-type {

    width: fit-content;

    padding: 5px 9px;

    background: rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 3px;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;

    backdrop-filter: blur(5px);

}


.image-location {

    font-size: 12px;

    color: rgba(255, 255, 255, 0.9);

}


.image-location i {

    color: var(--lime);

    margin-right: 5px;

}


/* ================= CONTENT ================= */

.property-content {

    padding: 24px;

}


.property-top {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 23px;

}


.property-label {

    display: block;

    font-size: 9px;

    color: var(--lime-dark);

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 10px;

}


.property-content h3 {

    color: var(--navy);

    font-size: 18px;

    line-height: 1.5;

    font-weight: 700;

}


.property-price {

    text-align: right;

    flex-shrink: 0;

}


.property-price > span {

    display: block;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: 1px;

    margin-bottom: 8px;

}


.property-price h4 {

    color: var(--lime-dark);

    font-size: 18px;

    white-space: nowrap;

}


/* ================= DETAILS ================= */

.property-details {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    padding: 16px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

}


.detail-item {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 11px;

}


.detail-item i {

    color: var(--lime-dark);

    font-size: 15px;

}


/* ================= BUTTON ================= */

.view-property {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 20px;

    padding: 14px 17px;

    background: var(--navy);

    color: var(--white);

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    transition: var(--transition);

}


.view-property i {

    font-size: 16px;

    transition: transform var(--transition);

}


.view-property:hover {

    background: var(--lime);

    color: var(--navy);

}


.view-property:hover i {

    transform: translate(3px, -3px);

}


/* ================= PAGINATION ================= */

.pagination {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 9px;

    margin-top: 55px;

}


.pagination button {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--navy);

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);

}


.pagination button:hover:not(:disabled) {

    background: var(--lime);

    border-color: var(--lime);

}


.pagination button.active {

    background: var(--navy);

    color: var(--white);

    border-color: var(--navy);

}


.pagination button:disabled {

    opacity: 0.35;

    cursor: not-allowed;

}


/* ================= EMPTY STATE ================= */

#noresult {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 75px 20px;

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 10px;

}


.noresult-icon {

    width: 75px;

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border-radius: 50%;

    background: #EEF3E5;

    color: var(--navy);

    font-size: 30px;

}


#noresult h3 {

    font-size: 22px;

    margin-bottom: 12px;

}


#noresult p {

    max-width: 420px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;

}


#noresult button {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 25px;

    padding: 13px 20px;

    background: var(--navy);

    color: var(--white);

    border: none;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);

}


#noresult button:hover {

    background: var(--lime);

    color: var(--navy);

}


/* ================= LOADING ================= */

.loading-state {

    grid-column: 1 / -1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 250px;

    color: var(--muted);

    gap: 15px;

}


.loader {

    width: 35px;

    height: 35px;

    border: 3px solid #E5E9DF;

    border-top-color: var(--lime-dark);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;

}


@keyframes spin {

    to {
        transform: rotate(360deg);
    }

}


/* ================= TABLET ================= */

@media (max-width: 1100px) {

    .property-section {
        width: 90%;
    }

    .filter-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .filter-actions {

        grid-column: 1 / -1;

        flex-direction: row;

        align-items: center;

    }

    .search-btn {
        flex: 1;
    }

    #propertyList {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


/* ================= MOBILE ================= */

@media (max-width: 768px) {

    .properties-hero {

        min-height: 500px;

        padding: 80px 6%;

        background-attachment: scroll;

    }


    .hero-content h1 {

        font-size: 44px;

        letter-spacing: -1px;

    }


    .hero-content p {

        font-size: 15px;

    }


    .hero-bottom {

        left: 6%;

        right: 6%;

        font-size: 9px;

        letter-spacing: 1px;

    }


    .property-section {

        width: 90%;

        padding: 70px 0;

    }


    .section-intro {

        flex-direction: column;

        align-items: flex-start;

        margin-bottom: 35px;

    }


    .section-title h2 {

        font-size: 34px;

    }


    .section-side-note {

        display: none;

    }


    .filter-panel {

        padding: 24px;

        margin-bottom: 65px;

    }


    .filter-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .filter-actions {

        grid-column: auto;

        flex-direction: column;

    }


    .search-btn {

        width: 100%;

    }


    .property-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

    }


    .property-heading h2 {

        font-size: 28px;

    }


    #propertyList {

        grid-template-columns: 1fr;

        gap: 25px;

    }


    .property-image {

        height: 280px;

    }


    .property-content {

        padding: 22px;

    }


    .property-content h3 {

        font-size: 17px;

    }


    .property-price h4 {

        font-size: 16px;

    }


    .pagination {

        margin-top: 40px;

    }

}


/* ================= SMALL MOBILE ================= */

@media (max-width: 480px) {

    .properties-hero {

        min-height: 430px;

    }


    .hero-content h1 {

        font-size: 35px;

    }


    .hero-tag {

        font-size: 10px;

        letter-spacing: 2px;

    }


    .hero-content p {

        font-size: 14px;

        line-height: 1.8;

    }


    .property-section {

        padding: 55px 0;

    }


    .section-title h2 {

        font-size: 29px;

    }


    .section-title p {

        font-size: 13px;

    }


    .filter-panel {

        padding: 20px;

        border-radius: 8px;

    }


    .filter-heading h3 {

        font-size: 18px;

    }


    .property-image {

        height: 250px;

    }


    .property-top {

        flex-direction: column;

    }


    .property-price {

        text-align: left;

    }


    .property-price h4 {

        font-size: 20px;

    }


    .property-details {

        gap: 12px;

    }


    .pagination button {

        width: 38px;

        height: 38px;

    }

}


/* ================= REDUCED MOTION ================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;

        transition-duration: 0.01ms !important;

    }

}
