:root { --navy: #0e2a47; --teal: #0d9488; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --radius: 18px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
a { color: var(--teal); }
.head { background: var(--navy); color: #fff; }
.head-inner { display: flex; justify-content: space-between; align-items: center; height: 62px; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.35rem; }
.logo span { color: #5eead4; }
.saved-btn { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
.saved-btn[aria-pressed="true"] { background: #fff; color: var(--navy); }
.saved-btn b { background: #f43f5e; color: #fff; border-radius: 999px; padding: 0 .45rem; margin-left: .2rem; font-size: .8rem; }
.hero { background: linear-gradient(160deg, var(--navy), #134e6f 70%, var(--teal)); color: #fff; padding: 42px 0 70px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 .3rem; letter-spacing: -.02em; }
.hero p { color: #cbe7f0; margin: 0 0 1.4rem; }
.search { display: grid; grid-template-columns: auto 1.6fr repeat(4, 1fr); gap: .6rem; background: #fff; padding: .7rem; border-radius: var(--radius); box-shadow: 0 20px 50px -25px rgba(0,0,0,.5); }
.search input, .search select { font: inherit; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; min-width: 0; }
.seg { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 3px; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .5rem .8rem; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--teal); }
main { margin-top: -30px; padding-bottom: 40px; }
.count { background: var(--bg); display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-weight: 700; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15,23,42,.45); outline: none; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; display: block; }
.body { padding: .9rem 1rem 1.1rem; }
.card h3 { margin: .4rem 0 .1rem; font-size: 1.05rem; }
.where { color: var(--muted); margin: 0; font-size: .9rem; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--navy); margin: .5rem 0 .1rem; }
.price.big { font-size: 1.5rem; }
.meta { margin: 0; color: var(--muted); font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 6px; }
.badge.rent { background: #ccfbf1; color: #115e59; } .badge.sale { background: #fef3c7; color: #92400e; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.2rem; color: #f43f5e; cursor: pointer; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem; background: #fff; border-radius: var(--radius); }
.demo-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; }

dialog { border: 0; padding: 0; border-radius: 22px; width: min(680px, 100% - 24px); max-height: 92vh; }
dialog::backdrop { background: rgba(15,23,42,.55); }
dialog img { width: 100%; height: auto; display: block; }
.d-pad { padding: 1.2rem 1.4rem 1.6rem; }
.d-pad h2 { margin: .4rem 0 .1rem; }
.d-pad h3 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.close { position: sticky; top: 10px; float: right; margin: 10px 10px -48px 0; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.facts, .chips { list-style: none; padding: 0; margin: .6rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.facts li { font-weight: 700; background: var(--bg); padding: .3rem .7rem; border-radius: 8px; }
.chips li { background: #f0fdfa; color: #115e59; padding: .25rem .65rem; border-radius: 999px; font-size: .88rem; }
.desc { color: #334155; }
.mortgage { background: #fffbeb; border-radius: 14px; padding: .2rem 1rem .6rem; }
.enquire { display: grid; gap: .6rem; }
.enquire input, .enquire textarea { font: inherit; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 12px; }
.enquire small { color: var(--muted); }
.btn { background: var(--teal); color: #fff; border: 0; border-radius: 12px; padding: .75rem 1rem; font: inherit; font-weight: 800; cursor: pointer; }
.btn:hover { background: #0f766e; }
@media (max-width: 960px) { .search { grid-template-columns: 1fr 1fr; } .seg { grid-column: 1 / -1; justify-self: start; } .search input[name=q] { grid-column: 1 / -1; } }

/* More projects by Bevon Manyara */
.bm-more { background: #0f172a; color: #cbd5e1; padding: 18px 16px 22px; text-align: center; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .9rem; }
.bm-more p { margin: 0 0 .6rem; }
.bm-more a { color: #fff; }
.bm-more nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.bm-more nav a { text-decoration: none; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.bm-more nav a:hover { background: rgba(255,255,255,.1); }
.bm-more .bm-port { background: #4f46e5; border-color: #4f46e5; }
@media print { .bm-more { display: none; } }
