:root {
    --bg-main: #11151b;
    --bg-secondary: #171c24;
    --card: #1b212a;

    --accent: #d3ad47;
    --accent-light: #ebcc74;

    --text: #f4f6f8;
    --muted: #99a4af;

    --border: rgba(255, 255, 255, 0.09);

    --success: #2fba74;

    --radius: 14px;
    --radius-lg: 20px;

    --max: 1240px;

    --shadow:
        0 12px 35px rgba(0, 0, 0, 0.28);
}


/* ====================================================== */
/* GLOBAL */
/* ====================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        'Montserrat',
        Arial,
        sans-serif;

    background: var(--bg-main);

    color: var(--text);

    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
select,
input {
    font-family: inherit;
}

.wrap {
    max-width: var(--max);

    margin: 0 auto;

    padding:
        0 22px
        70px;
}


/* ====================================================== */
/* HERO */
/* ====================================================== */

.apartments-hero {
    min-height: 420px;

    display: flex;

    align-items: center;

    padding:
        70px
        24px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(211, 173, 71, 0.18),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #161b22,
            #0b0e12
        );

    border-bottom:
        1px solid var(--border);
}

.hero-content {
    width: 100%;

    max-width: var(--max);

    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--accent);

    font-size: 14px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;

    margin-bottom: 18px;
}

.hero-content h1 {
    max-width: 760px;

    margin:
        0
        0
        18px;

    font-size:
        clamp(
            38px,
            6vw,
            68px
        );

    line-height: 1.05;

    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content > p {
    max-width: 660px;

    margin:
        0
        0
        30px;

    color: var(--muted);

    font-size: 18px;
}


/* ====================================================== */
/* HERO SEARCH */
/* ====================================================== */

.hero-search {
    display: flex;

    max-width: 760px;

    padding: 7px;

    border: 1px solid var(--border);

    border-radius: 14px;

    background:
        rgba(
            20,
            24,
            31,
            0.95
        );

    box-shadow: var(--shadow);
}

.search-main {
    flex: 1;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0
        16px;
}

.search-main i {
    color: var(--accent);
}

.search-main input {
    width: 100%;

    height: 50px;

    border: 0;

    outline: none;

    background: transparent;

    color: #fff;

    font-size: 16px;
}

.search-main input::placeholder {
    color: #7f8994;
}

.hero-search button {
    min-width: 130px;

    border: 0;

    border-radius: 10px;

    background: var(--accent);

    color: #151515;

    font-weight: 800;

    cursor: pointer;

    padding:
        0
        20px;
}

.hero-search button:hover {
    background:
        var(--accent-light);
}


/* ====================================================== */
/* PROPERTY FILTERS */
/* ====================================================== */

.property-filters {
    position: relative;

    margin-top: -34px;

    z-index: 5;
}

.filter-form {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(120px, 1fr)
        )
        auto;

    gap: 14px;

    padding: 20px;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    box-shadow: var(--shadow);
}

.filter-field {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.filter-field label {
    color: var(--muted);

    font-size: 12px;

    font-weight: 700;
}

.filter-field select {
    width: 100%;

    height: 44px;

    padding:
        0
        10px;

    border:
        1px solid
        var(--border);

    border-radius: 8px;

    background: #11161d;

    color: white;

    outline: none;
}

.filter-submit {
    align-self: end;

    height: 44px;

    padding:
        0
        20px;

    border: 0;

    border-radius: 8px;

    background: var(--accent);

    color: #111;

    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;
}


/* ====================================================== */
/* SECTION TITLES */
/* ====================================================== */

.section-label {
    color: var(--accent);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 10px;
}

.section-heading h2,
.listings-header h2,
.buyer-tools h2 {
    margin:
        5px
        0;

    font-size: 28px;
}


/* ====================================================== */
/* LOCATIONS */
/* ====================================================== */

.location-section {
    margin-top: 55px;
}

.location-container {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 15px;
}

.location-row {
    flex: 1;

    display: flex;

    gap: 10px;

    overflow-x: auto;

    scroll-behavior: smooth;

    padding:
        5px
        2px;

    scrollbar-width: none;
}

.location-row::-webkit-scrollbar {
    display: none;
}

.location-btn {
    flex: 0 0 auto;

    border:
        1px solid
        var(--border);

    border-radius: 30px;

    background: var(--card);

    color: var(--text);

    padding:
        10px
        18px;

    font-size: 14px;

    cursor: pointer;

    transition:
        0.25s ease;
}

.location-btn:hover {
    border-color: var(--accent);
}

.location-btn.active {
    background: var(--accent);

    border-color: var(--accent);

    color: #111;

    font-weight: 800;
}

.scroll-btn {
    flex: 0 0 42px;

    width: 42px;

    height: 42px;

    border-radius: 50%;

    border:
        1px solid
        var(--border);

    background: var(--card);

    color: white;

    cursor: pointer;
}

.scroll-btn:hover {
    color: #111;

    background: var(--accent);
}


/* ====================================================== */
/* LISTINGS HEADER */
/* ====================================================== */

.listings-header {
    display: flex;

    align-items: flex-end;

    justify-content:
        space-between;

    gap: 20px;

    margin-top: 55px;

    margin-bottom: 22px;
}

.listings-header p {
    margin: 5px 0 0;

    color: var(--muted);
}

.sort form {
    display: flex;

    gap: 8px;
}

.sort select {
    height: 42px;

    padding:
        0
        12px;

    border:
        1px solid
        var(--border);

    border-radius: 8px;

    background: var(--card);

    color: white;
}

.sort button {
    height: 42px;

    padding:
        0
        16px;

    border: 0;

    border-radius: 8px;

    background: var(--accent);

    color: #111;

    font-weight: 800;

    cursor: pointer;
}


/* ====================================================== */
/* PROPERTY GRID */
/* ====================================================== */

.properties {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 24px;
}

.property-link {
    min-width: 0;
}

.property-card {
    height: 100%;

    overflow: hidden;

    background: var(--card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    transition:
        transform
        0.25s ease,
        border-color
        0.25s ease,
        box-shadow
        0.25s ease;
}

.property-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(
            211,
            173,
            71,
            0.45
        );

    box-shadow: var(--shadow);
}


/* ====================================================== */
/* PROPERTY IMAGE */
/* ====================================================== */

.property-img {
    position: relative;

    height: 235px;

    overflow: hidden;
}

.property-img img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform
        0.4s ease;
}

.property-card:hover
.property-img img {
    transform: scale(1.03);
}


/* ====================================================== */
/* BADGES */
/* ====================================================== */

.card-badges {
    position: absolute;

    top: 14px;

    left: 14px;

    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}

.badge {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding:
        6px
        10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 800;
}

.badge.verified {
    background:
        rgba(
            34,
            140,
            91,
            0.95
        );

    color: white;
}

.badge.off-plan {
    background:
        rgba(
            67,
            103,
            204,
            0.95
        );
}

.badge.ready {
    background:
        rgba(
            211,
            173,
            71,
            0.95
        );

    color: #111;
}

.badge.construction {
    background:
        rgba(
            193,
            117,
            42,
            0.95
        );
}


/* ====================================================== */
/* SAVE BUTTON */
/* ====================================================== */

.save-property {
    position: absolute;

    top: 14px;

    right: 14px;

    width: 40px;

    height: 40px;

    border: 0;

    border-radius: 50%;

    background:
        rgba(
            10,
            12,
            16,
            0.75
        );

    color: white;

    font-size: 18px;

    cursor: pointer;

    backdrop-filter:
        blur(8px);
}

.save-property:hover {
    color: var(--accent);
}


/* ====================================================== */
/* CARD CONTENT */
/* ====================================================== */

.info {
    padding: 18px;
}

.property-location {
    margin:
        0
        0
        8px;

    color: var(--muted);

    font-size: 13px;
}

.property-location i {
    margin-right: 5px;

    color: var(--accent);
}

.info h3 {
    margin:
        0
        0
        12px;

    font-size: 19px;

    line-height: 1.35;
}

.property-price {
    margin:
        0
        0
        16px;

    color: var(--accent);

    font-size: 21px;

    font-weight: 800;
}

.property-features {
    display: flex;

    flex-wrap: wrap;

    gap:
        10px
        18px;

    padding-bottom:
        16px;

    border-bottom:
        1px solid
        var(--border);

    color: #d7dde3;

    font-size: 13px;
}

.property-features span {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.property-features i {
    color: var(--accent);
}


/* ====================================================== */
/* INVESTMENT PREVIEW */
/* ====================================================== */

.investment-preview {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 12px;

    margin-top: 15px;

    padding:
        11px
        12px;

    border-radius: 9px;

    background:
        rgba(
            211,
            173,
            71,
            0.08
        );
}

.investment-preview span {
    color: var(--muted);

    font-size: 12px;
}

.investment-preview strong {
    color: var(--accent);

    font-size: 13px;

    text-align: right;
}


/* ====================================================== */
/* VIEW PROPERTY */
/* ====================================================== */

.view-property {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    margin-top: 17px;

    color: var(--text);

    font-weight: 700;

    font-size: 13px;
}

.view-property i {
    color: var(--accent);

    transition:
        transform
        0.2s ease;
}

.property-card:hover
.view-property i {
    transform:
        translateX(4px);
}


/* ====================================================== */
/* EMPTY STATE */
/* ====================================================== */

.no-properties {
    grid-column: 1 / -1;

    padding:
        60px
        20px;

    text-align: center;

    border:
        1px dashed
        var(--border);

    border-radius:
        var(--radius-lg);
}

.no-properties > i {
    color: var(--accent);

    font-size: 40px;
}

.no-properties p {
    color: var(--muted);
}

.empty-whatsapp {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    padding:
        11px
        18px;

    border-radius: 9px;

    background: #25d366;

    color: white;

    font-weight: 800;
}


/* ====================================================== */
/* BUYER TOOLS */
/* ====================================================== */

.buyer-tools {
    margin-top: 75px;

    padding:
        45px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(
                211,
                173,
                71,
                0.15
            ),
            transparent 35%
        ),
        var(--card);
}

.buyer-tools-content {
    max-width: 720px;
}

.buyer-tools p {
    color: var(--muted);

    max-width: 620px;
}

.tool-list {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 24px;
}

.tool-list div {
    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        11px
        14px;

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    background:
        rgba(
            0,
            0,
            0,
            0.15
        );

    font-size: 13px;
}

.tool-list i {
    color: var(--accent);
}


/* ====================================================== */
/* WHATSAPP */
/* ====================================================== */

#whatsapp-chat {
    position: fixed;

    right: 20px;

    bottom: 20px;

    z-index: 1000;

    display: flex;

    align-items: center;

    gap: 10px;
}

.whatsapp-btn {
    width: 58px;

    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: white;

    font-size: 29px;

    box-shadow:
        0
        5px
        20px
        rgba(
            0,
            0,
            0,
            0.3
        );
}

.whatsapp-btn:hover {
    transform: scale(1.06);
}

.whatsapp-text {
    padding:
        9px
        14px;

    border-radius: 20px;

    background: white;

    color: #222;

    font-size: 13px;

    font-weight: 600;

    box-shadow:
        0
        3px
        15px
        rgba(
            0,
            0,
            0,
            0.25
        );

    transition:
        opacity
        0.25s ease,
        transform
        0.25s ease;
}

.whatsapp-text.hidden {
    opacity: 0;

    pointer-events: none;

    transform:
        translateX(
            10px
        );
}


/* ====================================================== */
/* TABLET */
/* ====================================================== */

@media (
    max-width: 1024px
) {

    .filter-form {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }

    .filter-submit {
        width: 100%;
    }

    .properties {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


/* ====================================================== */
/* MOBILE */
/* ====================================================== */

@media (
    max-width: 700px
) {

    .apartments-hero {
        min-height: auto;

        padding:
            55px
            18px
            75px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: column;

        gap: 7px;
    }

    .search-main {
        min-height: 52px;
    }

    .hero-search button {
        min-height: 48px;
    }

    .wrap {
        padding:
            0
            15px
            55px;
    }

    .property-filters {
        margin-top: -35px;
    }

    .filter-form {
        grid-template-columns:
            1fr
            1fr;

        padding: 15px;
    }

    .filter-field:first-child {
        grid-column: 1 / -1;
    }

    .filter-submit {
        grid-column: 1 / -1;
    }

    .scroll-btn {
        display: none;
    }

    .location-row {
        padding:
            5px
            0;
    }

    .listings-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .sort {
        width: 100%;
    }

    .sort form {
        width: 100%;
    }

    .sort select {
        flex: 1;
    }

    .properties {
        grid-template-columns: 1fr;
    }

    .property-img {
        height: 230px;
    }

    .buyer-tools {
        padding:
            28px
            20px;

        margin-top: 50px;
    }

}


/* ====================================================== */
/* SMALL MOBILE */
/* ====================================================== */

@media (
    max-width: 420px
) {

    .hero-content h1 {
        font-size: 34px;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-field:first-child,
    .filter-submit {
        grid-column: auto;
    }

    .property-img {
        height: 210px;
    }

    .investment-preview {
        align-items: flex-start;

        flex-direction: column;
    }

    .investment-preview strong {
        text-align: left;
    }

}