:root {
  --navy: #1b3a66;
  --navy-dark: #12294a;
  --blue: #224d82;
  --gold: #b98a2f;
  --ink: #1d2430;
  --muted: #5b6676;
  --line: #dbe1ea;
  --bg: #f5f7fa;
  --white: #fff;
  --green: #1f7a4d;
  --red: #b3261e;
  --radius: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { line-height: 1.25; color: var(--navy-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.25rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); }
.topbar { background: var(--navy-dark); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a, .site-footer a { color: inherit; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; position: relative; }
.logo img { width: 210px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a { display: block; padding: 10px 13px; color: var(--white); text-decoration: none; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.nav > ul > li > a:hover, .nav > ul > li > a[aria-current] { background: rgba(255, 255, 255, .14); }
.nav .has-sub > a::after { content: " ▾"; font-size: .7em; opacity: .8; }
.nav li ul { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 215px; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(10, 25, 50, .25); display: none; z-index: 20; }
.nav li:last-child ul { left: auto; right: 0; }
.nav li:hover > ul, .nav li:focus-within > ul { display: block; }
.nav li ul a { color: var(--ink); font-weight: 500; padding: 8px 12px; }
.nav li ul a:hover { background: var(--bg); }
.nav li.sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .5); color: var(--white); border-radius: 6px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 8px 20px 16px; z-index: 30; box-shadow: 0 12px 20px rgba(10, 25, 50, .3); }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; }
  .nav li ul { display: block; position: static; background: none; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav li ul a { color: #d7e1f0; padding: 6px 12px; }
  .nav li ul a:hover { background: rgba(255, 255, 255, .1); }
  .nav li.sep { border: 0; margin: 0; padding: 0; }
  .nav .has-sub > a::after { content: ""; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-dark); }
.hero > img { width: 100%; height: clamp(300px, 42vw, 460px); object-fit: cover; opacity: .55; }
.hero-text { position: absolute; inset: 0; display: flex; align-items: center; color: var(--white); }
.hero-text .wrap { width: 100%; }
.hero h1 { color: var(--white); font-size: clamp(1.7rem, 4.2vw, 2.9rem); max-width: 17em; margin-bottom: .3em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero p { max-width: 36em; font-size: 1.08rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.2em; }

/* ---------- page furniture ---------- */
.page { padding-top: 36px; padding-bottom: 56px; }
.narrow { max-width: 820px; }
.section-title { font-size: 1.5rem; margin-top: 0; padding-bottom: .4em; border-bottom: 3px solid var(--gold); display: inline-block; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5em; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .two-col, .detail { grid-template-columns: 1fr; } }
.side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side h2:first-child { margin-top: 0; }
.prose { max-width: 70ch; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border: 0; }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.empty, .note { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 14px 16px; border-radius: var(--radius); }
.ok { background: #e7f5ec; border: 1px solid #b5dcc5; color: #14532d; padding: 12px 16px; border-radius: var(--radius); }
.err { color: var(--red); font-weight: 600; }
p.err { background: #fdecea; border: 1px solid #f3c2bd; padding: 12px 16px; border-radius: var(--radius); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink); font-size: .92rem; }
.chips a:hover { border-color: var(--blue); }
.chips a[aria-current] { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: var(--white); border: 2px solid var(--blue); border-radius: 6px; padding: 9px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--navy-dark); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-small { padding: 3px 10px; }
.btn[disabled] { opacity: .35; cursor: default; pointer-events: none; }

/* ---------- property cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; margin-bottom: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 10px 24px rgba(20, 40, 80, .14); transform: translateY(-2px); color: var(--ink); }
.card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e6ebf2; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.card-title { font-weight: 700; font-size: 1.08rem; color: var(--navy-dark); }
.card-addr { font-size: .88rem; color: var(--muted); }
.card-price { font-weight: 600; color: var(--blue); }
.card-text { font-size: .92rem; color: var(--muted); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--white); background: var(--muted); }
.badge-available { background: var(--green); }
.badge-leased { background: var(--navy-dark); }
.badge-inline { position: static; display: inline-block; vertical-align: middle; font-size: .8rem; margin-left: 6px; }

/* ---------- property detail ---------- */
.gallery > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #e6ebf2; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.thumb img { width: 84px; height: 63px; object-fit: cover; }
.thumb[aria-current] { border-color: var(--gold); }
.price { font-size: 1.35rem; font-weight: 700; color: var(--blue); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 1em; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row .field { flex: 1 1 170px; }
.row .field.grow { flex: 3 1 260px; }
.row .field.narrow { flex: 0 1 90px; }
.field { display: block; font-weight: 600; font-size: .92rem; }
.field .err, .field .hint { display: block; margin-top: 4px; }
.field input, .field select, .field textarea { display: block; margin-top: 4px; font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #b9c2d0; border-radius: 6px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(34, 77, 130, .25); border-color: var(--blue); }
.form .btn { justify-self: start; }
.req { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfd9e8; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; max-width: 460px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 14px; padding-bottom: 20px; font-size: .85rem; }

/* ---------- blue pattern from the original site ---------- */
.site-header { background: #002865 url(/img/pattern.jpg) repeat-x 0 -150px; }
.topbar { background: rgba(4, 12, 34, .55); }
.site-footer { background: #002865 url(/img/pattern.jpg) repeat-x 0 -190px; }
@media (max-width: 900px) { .nav { background: #0b2456; } }
