:root {
  --navy: #1b1464;
  --indigo: #2a215f;
  --footer: #3b2f86;
  --orange: #f15a22;
  --orange-dark: #d94e1a;
  --ink: #16162a;
  --muted: #5c6478;
  --line: #e4e7f0;
  --paper: #ffffff;
  --wash: #f5f6fb;
  --shadow: 0 16px 40px rgba(27, 20, 100, 0.08);
  --radius: 18px;
  --max: 1180px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
.brand-logo, .footer-logo, .agent img { max-width: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.demo-strip { display: flex; justify-content: center; padding: 8px 16px 0; }
.demo-pill {
  display: inline-flex; align-items: center;
  background: #fff1ea; color: var(--orange-dark);
  border: 1px solid #ffd0bc; border-radius: 999px;
  padding: 4px 12px; font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.demo-note {
  margin: 22px auto 0; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.14); color: #fff; font-weight: 700;
}
.topbar-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: 8px; flex: 0 0 auto; }
.brand-logo { height: 54px; width: auto; max-width: none; }
.footer-logo { height: 64px; width: auto; margin-bottom: 8px; }
.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--navy); }
.brand-name span { color: var(--orange); }
.brand-by { margin-top: 3px; font-size: .62rem; letter-spacing: .14em; color: var(--muted); font-weight: 700; }
.star { color: var(--orange); font-size: 1rem; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a.active { background: #fff4ef; color: var(--orange); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.saved { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; text-decoration: none; border: 0;
  border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer;
}
.btn:hover { background: var(--orange-dark); }
.btn.light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.light:hover { border-color: var(--orange); color: var(--orange); background: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }

.hero {
  position: relative; min-height: 620px; color: #fff;
  background: #123 center/cover no-repeat;
  display: flex; align-items: center;
}
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,16,40,.72), rgba(10,16,40,.18) 70%); }
.hero .wrap { position: relative; z-index: 1; padding: 72px 0; }
.kicker { letter-spacing: .16em; font-size: .78rem; font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 14px; max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.lead { max-width: 42ch; margin: 0 0 22px; font-size: 1.08rem; }
.search-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); max-width: 760px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tabs a, .tabs button { border: 0; background: #f3f4f8; color: var(--navy); border-radius: 999px; padding: 7px 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tabs a.on, .tabs button.on { background: var(--navy); color: #fff; }
.search-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; }
.search-row input, .search-row select, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; color: #fff; font-size: .92rem; }
.chips a { color: #fff; text-decoration: none; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 10px; }

.section { padding: 56px 0; }
.section h2, .page h1, .property-title { font-family: var(--display); letter-spacing: -.03em; color: var(--navy); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head p, .muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 1px 0 rgba(27,20,100,.03); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-photo { height: 168px; background: #d9deea center/cover; position: relative; }
.badge { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 800; border-radius: 999px; padding: 4px 8px; }
.badge.rent { background: var(--navy); }
.card-body { padding: 14px 14px 16px; }
.price { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.addr { color: var(--muted); font-size: .92rem; min-height: 2.6em; }
.facts { display: flex; gap: 10px; color: var(--navy); font-size: .86rem; font-weight: 700; margin-top: 8px; }

.why { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reason { background: var(--wash); border-radius: 16px; padding: 16px; }
.reason strong { display: block; color: var(--navy); margin-bottom: 4px; }
.reason span { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: 22px; padding: 28px; color: #fff; min-height: 220px; background: var(--indigo) center/cover; position: relative; overflow: hidden; }
.panel.photo:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,20,100,.82), rgba(27,20,100,.25)); }
.panel > * { position: relative; }
.panel h3 { font-family: var(--display); font-size: 1.8rem; margin: 0 0 8px; }
.team-row { display: grid; grid-template-columns: 280px 1fr 1fr; gap: 16px; align-items: stretch; }
.team-photo { border-radius: 18px; min-height: 220px; background: #ddd center/cover; }
.quote { background: var(--wash); border-radius: 18px; padding: 22px; }
.quote p { font-size: 1.05rem; }
.stars { color: var(--orange); letter-spacing: 2px; }

.site-footer { background: var(--footer); color: #efeaff; padding: 42px 0 18px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 22px; }
.site-footer a { color: #efeaff; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--display); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.legal { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 26px; padding-top: 14px; font-size: .86rem; color: #d9d2f3; }

.page { padding: 28px 0 64px; }
.crumbs { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.crumbs a { color: var(--navy); }
.gallery { display: block; }
.gallery-main { min-height: 520px; border-radius: 18px; background: #1b1464 center/cover no-repeat; position: relative; }
.gallery-nav, .photo-count, .lightbox-nav, .zoom-btn, .lightbox-close { border: 0; cursor: pointer; }
.gallery-nav, .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; padding: 0;
  background: rgba(255,255,255,.18); color: #fff;
  border: 1px solid rgba(255,255,255,.32);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(10,8,30,.12);
  transition: background .15s ease;
}
.gallery-nav svg, .lightbox-nav svg { width: 22px; height: 22px; display: block; }
.gallery-nav:hover, .lightbox-nav:hover { background: rgba(255,255,255,.32); }
.gallery-nav.prev, .lightbox-nav.prev { left: 16px; }
.gallery-nav.next, .lightbox-nav.next { right: 16px; }
.photo-count {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12,10,28,.28); color: #fff; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  padding: 7px 13px; font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.photo-count svg { width: 16px; height: 16px; opacity: .92; }
.photo-expand {
  position: absolute; right: 16px; bottom: 16px;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.32);
  display: grid; place-items: center; padding: 0; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.photo-expand svg { width: 20px; height: 20px; }
.photo-expand:hover { background: rgba(255,255,255,.32); }
.photo-modal {
  position: fixed; z-index: 50; display: flex; flex-direction: column;
  background: #16141f; color: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(8,6,20,.45); border: 1px solid rgba(255,255,255,.12);
  min-width: min(420px, calc(100vw - 16px)); min-height: 320px;
}
.photo-modal[hidden] { display: none; }
.photo-modal-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px;
  cursor: grab; user-select: none; background: rgba(255,255,255,.06); touch-action: none;
}
.photo-modal-bar strong { font-family: var(--display); font-weight: 600; }
.photo-modal-bar span { color: rgba(255,255,255,.72); font-size: .92rem; }
.photo-modal-close {
  margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.3rem; cursor: pointer;
}
.photo-modal-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #0c0b12; }
.photo-modal-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; touch-action: none; }
.photo-modal-stage .gallery-nav,
.photo-modal-zoom { z-index: 5; }
.photo-modal-zoom { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 8px; }
.photo-modal-zoom button {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; cursor: pointer; backdrop-filter: blur(10px);
}
.photo-modal-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 16px; background: #16141f; }
.photo-modal-strip button {
  flex: 0 0 92px; height: 68px; border: 2px solid transparent; border-radius: 10px; padding: 0; cursor: pointer;
  background: #2a2638 center/cover no-repeat;
}
.photo-modal-strip button.on { border-color: var(--orange); }
.photo-modal-resize {
  position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; cursor: nwse-resize; touch-action: none;
}
.photo-modal-resize::before {
  content: ""; position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px;
  border-right: 2px solid rgba(255,255,255,.7); border-bottom: 2px solid rgba(255,255,255,.7);
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 8px; }
.detail-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.detail-item dt { margin: 0; color: var(--muted); font-size: .82rem; }
.detail-item dd { margin: 3px 0 0; color: var(--navy); font-family: var(--display); font-weight: 600; }
.detail-item.block { grid-column: 1 / -1; }
.detail-item.block dd { font-family: inherit; font-weight: 400; color: var(--ink); }
.detail-item a { color: var(--orange-dark); }
.price-under { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--navy); margin: 12px 0 0; letter-spacing: -.03em; }
.property-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin-top: 18px; }
.price-xl { font-family: var(--display); font-size: 2.2rem; color: var(--navy); margin: 8px 0 0; }
.property-map { height: 360px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-top: 8px; }
.catalogue-map { height: 480px; margin-bottom: 18px; }
.map-pin { background: var(--navy); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(16,12,40,.35); }
.map-pin.here { background: var(--orange); width: 18px; height: 18px; margin-left: -1px; margin-top: -1px; }
.map-tip { background: #fff; border: 0; border-radius: 14px; box-shadow: 0 12px 30px rgba(16,12,40,.2); padding: 0; }
.map-tip .map-card { width: 180px; }
.map-tip img { width: 180px; height: 104px; object-fit: cover; display: block; border-radius: 14px 14px 0 0; }
.map-tip a { display: block; padding: 8px 10px 0; color: var(--navy); font-weight: 700; text-decoration: none; line-height: 1.3; }
.map-tip span { display: block; padding: 2px 10px 8px; color: var(--orange-dark); font-weight: 700; }
.leaflet-tooltip-top.map-tip::before { border-top-color: #fff; }
.enquire { background: var(--indigo); color: #fff; border-radius: 18px; padding: 16px; position: sticky; top: 92px; }
.enquire h3 { margin: 0 0 10px; font-family: var(--display); }
.enquire input, .enquire textarea { width: 100%; border: 0; border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.agents { display: grid; gap: 10px; margin-top: 14px; }
.agent { display: flex; gap: 10px; align-items: center; background: #fff; color: var(--ink); border-radius: 12px; padding: 10px; text-decoration: none; }
.agent img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.team-profile { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.team-profile img { width: 100%; border-radius: 18px; object-fit: cover; }
.team-banner { width: 100%; border-radius: 18px; margin: 8px 0 28px; max-height: 420px; object-fit: cover; object-position: center 30%; }
.agent strong { color: var(--navy); display: block; }
.prose h2 { font-family: var(--display); color: var(--navy); }
.ticks { columns: 2; padding-left: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.note { background: #eefbf3; color: #146c43; border-radius: 12px; padding: 12px 14px; }

@media (max-width: 980px) {
  .cards, .reasons, .foot-grid { grid-template-columns: 1fr 1fr; }
  .why, .split, .team-row, .team-profile, .property-layout, .gallery, .search-row { grid-template-columns: 1fr; }
  .brand-logo { height: 44px; }
  .saved { display: none; }
  .top-actions .btn { padding: 9px 12px; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
  .topbar { position: sticky; }
  .topbar-inner { position: relative; }
}
@media (max-width: 640px) {
  .cards, .reasons, .foot-grid, .form-grid, .ticks, .detail-grid { grid-template-columns: 1fr; columns: 1; }
  .hero { min-height: 0; }
}
