:root {
    --ink: #0f1a2e;
    --ink-soft: #243b53;
    --muted: #6b7280;
    --paper: #ffffff;
    --canvas: #f0f9ff;
    --line: #e0f2fe;
    --green: #0284c7;
    --green-deep: #0f1a2e;
    --lime: #7dd3fc;
    --gold: #60a5fa;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --sky-700: #0369a1;
    --sky-800: #075985;
    --sky-900: #0c4a6e;
    --shadow: 0 16px 42px rgba(14, 165, 233, .12);
    --blue-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 45%, #2563eb 100%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    min-height: 65px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 10px max(6%, calc((100% - 1320px) / 2));
    border-bottom: 1px solid rgba(186, 230, 253, .55);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 4px 22px rgba(14, 165, 233, .06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 32px rgba(14, 165, 233, .12);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .45px;
    line-height: 1;
}

.logo-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--sky-900, #0c4a6e);
    background: var(--lime);
    font-size: 18px;
}

.logo-accent {
    color: #0284c7;
}

.logo small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 2.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 34px);
}

.nav-links a {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    transition: color .18s ease, background .18s ease;
}

.nav-links a:hover {
    color: #0284c7;
}

.nav-links .nav-login,
.nav-links .nav-account,
.nav-links .nav-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-profile-image {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(14, 165, 233, .25);
    border-radius: 50%;
    object-fit: cover;
}

.nav-links .nav-logout {
    padding: 9px 12px;
    border: 1px solid rgba(14, 165, 233, .25);
    border-radius: 7px;
}

.nav-links .nav-logout:hover {
    border-color: rgba(14, 165, 233, .45);
    background: rgba(14, 165, 233, .06);
}

.nav-links .register-btn {
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    background: var(--blue-gradient);
    box-shadow: 0 5px 18px rgba(14, 165, 233, .25);
    font-weight: 750;
}

.nav-links .register-btn:hover {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8.7vw, 122px) 6% clamp(88px, 10.6vw, 132px);
    color: white;
    background:
        radial-gradient(ellipse at 82% 15%, rgba(56, 189, 248, .2), transparent 32%),
        radial-gradient(ellipse at 8% 100%, rgba(99, 102, 241, .24), transparent 38%),
        linear-gradient(122deg, #0f1a2e, #075985 58%, #0284c7);
}

.hero::before,
.hero::after {
    position: absolute;
    width: 390px;
    height: 390px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero::before {
    top: -240px;
    right: 12%;
    box-shadow: 0 0 0 35px rgba(255, 255, 255, .025), 0 0 0 70px rgba(255, 255, 255, .02);
}

.hero::after {
    right: -260px;
    bottom: -300px;
    width: 560px;
    height: 560px;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1160px);
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--lime);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 21px 0 17px;
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 760;
    letter-spacing: -2.9px;
    line-height: 1.04;
}

.hero h1 span {
    color: var(--lime);
}

.hero-description {
    max-width: 520px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(14px, 1.35vw, 15px);
    line-height: 1.65;
}

.search-box {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    align-items: end;
    gap: 10px;
    max-width: 894px;
    margin: 0 auto;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 22px 55px rgba(8, 27, 23, .22);
    text-align: left;
}

.search-field {
    display: block;
    min-width: 0;
    padding: 4px 10px 5px;
}

.search-field + .search-field {
    border-left: 1px solid var(--line);
}

.search-field > span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .85px;
    text-transform: uppercase;
}

.search-field > span i {
    margin-right: 4px;
    color: var(--green);
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 30px;
    padding: 2px 20px 2px 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.search-field input::placeholder {
    color: #9aa6a0;
}

.search-field select {
    cursor: pointer;
}

.search-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border: 0;
    border-radius: 8px;
    color: white;
    background: var(--green);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.search-btn:hover {
    background: var(--green-deep);
    transform: translateY(-1px);
}

.section {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: clamp(58px, 8vw, 92px) 6%;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-eyebrow {
    color: var(--green);
    font-size: 10px;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin: 8px 0 7px;
    color: var(--ink);
    font-size: clamp(27px, 3.7vw, 38px);
    font-weight: 760;
    letter-spacing: -1px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.section-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--green);
    font-size: 13px;
    font-weight: 750;
}

.section-link i,
.property-link i {
    transition: transform .18s ease;
}

.section-link:hover,
.property-link:hover {
    color: #194c39;
}

.section-link:hover i,
.property-link:hover i {
    transform: translateX(3px);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.property-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 6px 21px rgba(14, 165, 233, .05);
    transition: transform .22s ease, box-shadow .22s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.property-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background: #e7ece8;
}

.property-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.property-card:hover .property-image > img {
    transform: scale(1.04);
}

.property-placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: #83928b;
    background: linear-gradient(140deg, #e8eeea, #dce6df);
}

.property-placeholder i {
    font-size: 28px;
}

.property-placeholder span {
    font-size: 11px;
    font-weight: 650;
}

.property-type {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 5px;
    color: var(--green-deep);
    background: rgba(255, 255, 255, .94);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.property-content {
    padding: 19px 19px 17px;
}

.property-content h3 {
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 720;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-price {
    margin-bottom: 10px;
    color: var(--green);
    font-size: 18px;
    font-weight: 800;
}

.property-location {
    display: flex;
    min-height: 36px;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.property-location i {
    margin-top: 2px;
    color: var(--gold);
}

.property-category {
    padding-top: 12px;
    border-top: 1px solid #edf1ed;
    color: #87938d;
    font-size: 11px;
}

.property-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #edf1ed;
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
}

.empty-state {
    padding: 55px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 6px 21px rgba(14, 165, 233, .05);
    text-align: center;
}

.empty-state > i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 50%;
    color: var(--green);
    background: #eef4ef;
    font-size: 22px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 740;
}

.empty-state p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state .section-link {
    justify-content: center;
}

.footer {
    padding: 25px 6%;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .66);
    background: var(--green-deep);
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 11px;
    letter-spacing: .2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(56, 189, 248, .8);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .search-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-field + .search-field {
        border-left: 0;
    }

    .search-field:nth-child(2n) {
        border-left: 1px solid var(--line);
    }

    .search-btn {
        grid-column: 1 / -1;
    }

    .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 15px 5%;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .nav-links .register-btn {
        padding: 9px 10px;
    }

    .hero {
        padding: 66px 5% 82px;
    }

    .hero h1 {
        letter-spacing: -1.7px;
    }

    .hero-description {
        margin-bottom: 27px;
    }

    .search-box {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 13px 13px;
    }

    .search-field,
    .search-field:nth-child(2n) {
        padding: 12px 5px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .search-field > span {
        margin-bottom: 5px;
    }

    .search-btn {
        grid-column: auto;
        margin-top: 10px;
    }

    .section {
        padding: 56px 5%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .property-image {
        height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Homepage polish */
.navbar {
    position: sticky;
    top: 0;
    min-height: 76px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom-color: rgba(186, 230, 253, .55);
    box-shadow: 0 4px 22px rgba(14, 165, 233, .06);
}

.nav-toggle {
    padding: 7px 10px;
    border: 1px solid rgba(14, 165, 233, .24);
    background-color: rgba(255, 255, 255, .8);
}

.nav-toggle i {
    color: var(--ink);
    font-size: 17px;
}

.nav-links .nav-link {
    padding: 8px 0;
}

.nav-links .nav-account {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-links .register-btn {
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, .2);
}

.hero {
    min-height: 580px;
    display: grid;
    align-items: center;
    padding-top: clamp(76px, 9vw, 124px);
    padding-bottom: clamp(102px, 11vw, 150px);
    background:
        linear-gradient(180deg, rgba(15, 26, 46, .72), rgba(7, 89, 133, .76)),
        url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=2000&q=85") center 55% / cover no-repeat,
        linear-gradient(128deg, #0f1a2e 0%, #075985 52%, #0284c7 100%);
}

.hero-content {
    max-width: 1220px;
}

.hero-eyebrow {
    padding: 9px 14px;
    border: 1px solid rgba(125, 211, 252, .38);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    letter-spacing: 1.4px;
}

.hero h1 {
    margin-top: 26px;
    font-size: clamp(48px, 7vw, 86px);
    letter-spacing: -3.8px;
    text-shadow: 0 12px 38px rgba(0, 0, 0, .16);
}

.hero-description {
    max-width: 560px;
    margin-bottom: 30px;
    font-size: clamp(15px, 1.5vw, 17px);
}

.search-box {
    max-width: 1040px;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(8, 27, 46, .3);
}

.search-field {
    padding: 8px 14px;
    border-radius: 10px;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.search-field:focus-within {
    background: #f0f9ff;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, .16);
}

.search-field input.form-control,
.search-field select.form-select {
    min-height: 38px;
    padding: 5px 28px 5px 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    color: var(--ink);
    font-size: 14px;
}

.search-field input.form-control:focus,
.search-field select.form-select:focus {
    border: 0;
    box-shadow: none;
    background-color: transparent;
}

.search-btn {
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    box-shadow: 0 9px 22px rgba(14, 165, 233, .28);
    font-size: 13px;
}

.search-btn:hover {
    background: #075985;
    box-shadow: 0 12px 25px rgba(7, 89, 133, .32);
    transform: translateY(-2px);
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 26px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .76);
    font-size: 11px;
    font-weight: 600;
}

.hero-highlights span,
.hero-highlights a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-highlights i {
    color: var(--sky-300, #7dd3fc);
}

.hero-highlights a {
    color: #fff;
    transition: color .18s ease;
}

.hero-highlights a:hover {
    color: var(--sky-300, #7dd3fc);
}

.section {
    padding-top: clamp(66px, 8vw, 104px);
    padding-bottom: clamp(72px, 8vw, 110px);
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);
    letter-spacing: -1.5px;
}

.section-link.btn {
    padding: 12px 16px;
    border-color: rgba(14, 165, 233, .35);
    border-radius: 999px;
    color: var(--green);
    font-size: 12px;
}

.section-link.btn:hover {
    color: #fff;
    border-color: transparent;
    background: var(--blue-gradient);
}

.property-grid {
    gap: 24px;
}

.property-card {
    border-color: #e0f2fe;
    border-radius: 16px;
    box-shadow: 0 9px 28px rgba(14, 165, 233, .08);
}

.property-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 46px rgba(14, 165, 233, .18);
}

.property-image {
    height: auto;
    aspect-ratio: 1.58 / 1;
}

.property-image::after {
    position: absolute;
    inset: 42% 0 0;
    background: linear-gradient(180deg, transparent, rgba(15, 26, 46, .27));
    content: "";
    pointer-events: none;
}

.property-image > img {
    display: block;
}

.property-type {
    z-index: 1;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 26, 46, .12);
    font-size: 9px;
}

.property-content {
    padding: 21px 21px 18px;
}

.property-content h3 {
    margin-bottom: 9px;
    font-size: 17px;
    letter-spacing: -.2px;
}

.property-price {
    margin-bottom: 13px;
    font-size: 20px;
    letter-spacing: -.4px;
}

.property-location {
    min-height: 34px;
    margin-bottom: 12px;
    font-size: 12px;
}

.property-category {
    display: inline-flex;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #e0f2fe;
    border-radius: 999px;
    color: var(--green);
    background: #f0f9ff;
    font-size: 10px;
    font-weight: 700;
}

.property-link {
    margin-top: 13px;
    padding-top: 14px;
    font-size: 12px;
}

.empty-state {
    padding: clamp(42px, 7vw, 78px) 22px;
    border-radius: 18px;
}

.footer {
    padding: 48px 6% 30px;
    border-top: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, .22), transparent 50%),
        var(--green-deep);
}

.footer-content {
    width: min(100%, 1320px);
    margin: 0 auto;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: .5px;
}

.footer-brand span {
    color: var(--lime);
}

.footer-content > p {
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    margin-bottom: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 650;
    transition: color .18s ease;
}

.footer-links a:hover {
    color: var(--lime);
}

.footer-content > small {
    display: block;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .52);
    font-size: 10px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease, box-shadow .22s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .navbar {
        align-items: center;
    }

    .nav-links.show {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
        padding: 14px 0 4px;
    }

    .nav-links .nav-link {
        padding: 9px 4px;
    }

    .nav-links .nav-logout,
    .nav-links .register-btn {
        align-self: flex-start;
        padding: 9px 13px;
    }

    .search-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-field + .search-field {
        border-left: 0;
    }

    .search-field:nth-child(2n) {
        border-left: 1px solid var(--line);
    }

    .search-btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 12px 5%;
        align-items: center;
        flex-direction: row;
        gap: 12px;
    }

    .navbar .logo {
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 70px 5% 85px;
    }

    .hero h1 {
        margin-top: 21px;
        font-size: clamp(43px, 12vw, 61px);
        letter-spacing: -2.4px;
    }

    .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero-highlights {
        align-items: flex-start;
        flex-direction: column;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        font-size: 10px;
    }

    .search-box {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 13px 13px;
        border-radius: 14px;
    }

    .search-field,
    .search-field:nth-child(2n) {
        padding: 12px 5px;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .search-field > span {
        margin-bottom: 5px;
    }

    .search-btn {
        grid-column: auto;
        margin-top: 10px;
    }

    .section {
        padding: 58px 5%;
    }

    .section-heading {
        margin-bottom: 24px;
    }

    .section-link.btn {
        align-self: flex-start;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .property-image {
        aspect-ratio: 1.55 / 1;
    }

    .property-content {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
