/* ==========================================================================
   Wright, Kingston & Dunn — Design System (Blueprint Edition)
   ========================================================================== */

/* ---------- Breakpoint system (desktop-first, max-width queries) ----------
   Always use these exact values for new responsive rules — no arbitrary
   in-between numbers. This keeps every component shifting layout at the
   same points, instead of each one breaking at a slightly different width.

   Desktop           ≥1920px     — base styles (enhanced further via the
                                     min-width:1920px rule below)
   Laptop             1440–1919px — base styles (default design target)
   Tablet landscape    ≤1439px    — @media (max-width: 1439px)
   Tablet portrait      ≤1023px    — @media (max-width: 1023px)
   Mobile landscape      ≤767px     — @media (max-width: 767px)
   Mobile portrait        ≤479px     — @media (max-width: 479px)
   Small mobile             ≤374px     — @media (max-width: 374px)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens — derived from the WKD mark */
  --paper: #F8F5EF;
  --paper-dim: #EFEAE0;
  --ink: #231F20;
  --graphite: #4A4542;
  --graphite-soft: #8A8178;
  --accent: #F7941D;      /* WKD orange */
  --accent-dark: #DE7E12;
  --accent-light: #FBB35E;
  --stone: #E4DDCF;
  --line: #D8CFBC;
  --coming: #5B4636;      /* walnut, for "coming soon" tags */
  --sold: var(--ink);     /* charcoal, for "sold" tags */

  --available: var(--accent);
  --leased: var(--graphite-soft);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
  --shadow: 0 2px 4px rgba(35,31,32,0.05), 0 12px 28px -14px rgba(35,31,32,0.22);
}

/* Extra breathing room on very large monitors (Desktop 1920px+ tier) */
@media (min-width: 1920px) {
  :root { --max: 1320px; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 767px) { .wrap { padding: 0 20px; } }
@media (max-width: 374px) { .wrap { padding: 0 16px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 0.4em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { color: var(--graphite); margin-bottom: 1em; }
.lede { font-size: 1.1rem; color: var(--graphite); max-width: 60ch; }
.accent { color: var(--accent); }
@media (max-width: 374px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .lede { font-size: 1rem; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 10px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(35,31,32,0.35); }
.btn-primary, .btn-brass { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover, .btn-brass:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-outline-light { background: transparent; border-color: rgba(248,245,239,0.5); color: var(--paper); }
.btn-outline-light:hover { background: rgba(248,245,239,0.12); border-color: var(--paper); }
.btn-ghost { background: transparent; border: none; color: var(--accent-dark); padding-left: 2px; padding-right: 2px; }
.btn-ghost::after { content: "\2192"; margin-left: 6px; transition: margin 0.2s ease; }
.btn-ghost:hover::after { margin-left: 11px; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media (max-width: 479px) {
  .btn { padding: 12px 20px; font-size: 0.88rem; }
  .btn-sm { padding: 9px 16px; font-size: 0.82rem; }
}

/* ---------- Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,245,239,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark-logo { height: 44px; width: auto; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--graphite); position: relative; padding-bottom: 3px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right 0.25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: 8px; width: 40px; height: 36px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 18px; height: 18px; }

/* Tablet landscape: content is too tight for the full nav at generous
   spacing — tighten gaps/type and drop the secondary CTA before resorting
   to the hamburger menu. */
@media (max-width: 1439px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.86rem; }
  .nav-cta .btn-outline { display: none; }
}

/* Tablet portrait and below: switch to the hamburger menu. */
@media (max-width: 1023px) {
  .nav-links { position: fixed; top: 69px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 20px 32px 28px; gap: 18px; border-bottom: 1px solid var(--line); transform: translateY(-110%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.95rem; }
  .nav-toggle { display: flex; width: 44px; height: 44px; }
}
@media (max-width: 767px) {
  .nav { padding: 16px 20px; }
  .nav-links { padding: 20px 20px 28px; }
}
@media (max-width: 374px) {
  .nav { padding: 16px 16px; }
  .nav-links { padding: 20px 16px 24px; }
}

/* ---------- Section rhythm ---------- */
section { padding: 90px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 46px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.section-head > div:first-child { max-width: 560px; }
.section-head p { max-width: 320px; font-size: 0.92rem; text-align: right; margin-bottom: 0; }
.section-head.stack { display: block; }
.section-head.stack p { text-align: left; max-width: 60ch; }
.section-head.center { text-align: center; }
.section-head.center p { margin: 0 auto; text-align: center; max-width: 60ch; }
@media (max-width: 1023px) { section { padding: 64px 0; } }
@media (max-width: 767px) {
  section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 34px; }
  .section-head p { text-align: left; max-width: none; }
}

.divider { border: 0; border-top: 1px solid var(--line); }
.bg-dark { background: var(--ink); color: var(--paper); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--paper); }
.bg-dark p { color: #B9B3A2; }
.bg-dark .eyebrow { color: var(--accent-light); }
.bg-stone { background: var(--paper-dim); }
.bg-forest { background: var(--coming); color: var(--paper); }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: var(--paper); }
.bg-forest p { color: #E3D6C8; }

/* ---------- Ledger / stat band (signature element) ---------- */
.ledger { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ledger-item { padding: 22px 24px 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.ledger-item:first-child { border-left: none; }
.ledger-num { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); display: block; }
.ledger-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-top: 4px; display: block; padding-bottom: 20px; }
@media (max-width: 767px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger-item:nth-child(3) { border-left: none; }
  .ledger-item { padding: 18px 16px 0; }
}

.rooftop-line { display: none; }

/* ---------- Cards (about/services/testimonials) ---------- */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
a.card { transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(35,31,32,0.28); }

.photo-slot {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: var(--stone); overflow: hidden;
}
.photo-slot::before {
  content: ""; position: absolute; inset: 0; opacity: 0.22;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
}
.photo-slot svg { position: relative; width: 44%; color: var(--graphite); opacity: 0.85; margin: auto; height: 100%; }
.photo-slot .slot-label {
  position: absolute; bottom: 10px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--graphite); background: rgba(248,245,239,0.85); padding: 3px 8px; border-radius: 8px;
}
.photo-slot.wide { aspect-ratio: 16/9; }
.photo-slot.square { aspect-ratio: 1/1; }
.photo-slot.tall { aspect-ratio: 3/4; }
.photo-slot:hover { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 1023px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 374px) { .grid-3, .grid-2 { gap: 18px; } }

.prop-card .body { padding: 20px 22px 24px; }
.prop-card .type-tag {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent-dark); display: inline-block; margin-bottom: 10px;
}
.prop-card h3 { margin-bottom: 2px; font-size: 1.2rem; }
.prop-card .loc { font-size: 0.86rem; color: var(--graphite-soft); margin-bottom: 12px; }
.prop-card .facts { display: flex; flex-wrap: wrap; gap: 8px 14px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--graphite); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; }
.prop-card .facts b { color: var(--ink); font-weight: 500; }
.prop-card .desc { font-size: 0.92rem; margin-bottom: 0; }
.rent-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.rent-price span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--graphite-soft); font-weight: 400; }
@media (max-width: 374px) { .prop-card .body { padding: 16px 18px 20px; } }

/* ---------- Property list (signature portfolio/rentals pattern) ---------- */
.property-list { display: flex; flex-direction: column; }
.property-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 34px;
  padding: 28px 0; border-top: 1px solid var(--line); align-items: center;
}
.property-row:last-child { border-bottom: 1px solid var(--line); }
.property-thumb { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--stone); display: block; cursor: pointer; }
.property-title a:hover { color: var(--accent-dark); }
.property-thumb::before {
  content: ""; position: absolute; inset: 0; opacity: 0.22;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
}
.property-thumb svg { position: relative; width: 100%; height: 100%; color: var(--graphite); }
.property-thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.property-row:hover .property-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.property-info { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.property-code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-dark); letter-spacing: 0.06em; text-transform: uppercase; }
.property-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-top: 6px; margin-bottom: 0; }
.property-loc { color: var(--graphite-soft); font-size: 0.88rem; margin-top: 4px; margin-bottom: 0; }
.property-specs { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--graphite); }
.property-specs b { color: var(--ink); font-weight: 500; }
.property-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-top: 10px; }
.property-price span { font-family: var(--font-mono); font-size: 0.65rem; color: var(--graphite-soft); font-weight: 400; }

.tag {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 5px 11px; border-radius: 8px; white-space: nowrap; height: fit-content;
  border: 1px solid currentColor; display: inline-block;
}
.tag-available { color: var(--available); }
.tag-leased { color: var(--leased); }
.tag-coming { color: var(--coming); }
.tag-sold { color: var(--sold); }

@media (max-width: 767px) {
  .property-row { grid-template-columns: 1fr; gap: 18px; padding: 22px 0; }
  .property-info { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Property grid (3-wide card variant, used on Portfolio page) ---------- */
#portfolio-grid.property-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
#portfolio-grid .property-row {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-top: none;
  align-items: stretch;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
#portfolio-grid .property-row:last-child { border-bottom: none; }
#portfolio-grid .property-row:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(35,31,32,0.28); }
#portfolio-grid .property-thumb { border-radius: 0; }
#portfolio-grid .property-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 20px 22px 24px;
}
#portfolio-grid .property-specs { margin-top: 14px; }
#portfolio-grid .property-info .tag { margin-top: 14px; }

@media (max-width: 1023px) {
  #portfolio-grid.property-list { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 767px) {
  #portfolio-grid.property-list { grid-template-columns: 1fr; }
}
@media (max-width: 374px) {
  #portfolio-grid .property-info { padding: 16px 18px 20px; }
}

/* ---------- Testimonials ---------- */
.testi-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 30px 28px; }
.testi-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.testi-card p.quote { font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; color: var(--ink); margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 8px; background: var(--stone); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent-dark); }
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { font-size: 0.8rem; color: var(--graphite-soft); }
@media (max-width: 374px) { .testi-card { padding: 22px 20px; } }

/* ---------- Service rows ---------- */
.service-row { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 32px 0; border-top: 1px solid var(--line); }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num { font-family: var(--font-mono); color: var(--accent-dark); font-size: 0.95rem; padding-top: 4px; }
.service-row h3 { margin-bottom: 8px; }
.service-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.service-list li { font-size: 0.88rem; color: var(--graphite); display: flex; align-items: baseline; gap: 8px; }
.service-list li::before { content: "\2014"; color: var(--accent); flex-shrink: 0; }
@media (max-width: 767px) { .service-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; } }

/* ---------- Team ---------- */
.team-card .body { padding: 16px 4px 0; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-role { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-dark); margin-bottom: 10px; display: block; }
.team-card p { font-size: 0.9rem; }

/* ---------- Values ---------- */
.value-card { padding: 28px 24px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; }
.value-card .icon { width: 36px; height: 36px; color: var(--accent-dark); margin-bottom: 16px; }
.values { display: flex; flex-direction: column; }
.value-row { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-name { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.value-desc h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-desc p { font-size: 0.9rem; margin-bottom: 0; }
@media (max-width: 479px) {
  .value-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
}

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  font-family: var(--font-mono); font-size: 0.76rem; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--graphite); transition: all 0.15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 36px; }
.select-field { display: flex; flex-direction: column; gap: 6px; }
.select-field label { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite-soft); }
select, input, textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--ink);
  max-width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
@media (max-width: 479px) {
  .filter-bar { gap: 16px; }
  .select-field, .filter-bar select { width: 100%; }
}

.empty-state { text-align: center; padding: 70px 20px; color: var(--graphite-soft); font-family: var(--font-mono); font-size: 0.9rem; display: none; }
.empty-state.show { display: block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--graphite-soft); font-weight: 400; }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { margin-top: 18px; font-size: 0.82rem; color: var(--graphite-soft); background: var(--paper-dim); border: 1px dashed var(--line); padding: 12px 16px; border-radius: 8px; }
.form-status { margin-top: 12px; font-size: 0.85rem; min-height: 1.2em; }
.form-status:empty { margin-top: 0; }

/* ---------- Portal / CRM callout (signature dark section) ---------- */
.portal-section { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; padding: 80px 0; }
.portal-section .eyebrow { color: var(--accent-light); }
.portal-section h2 { color: var(--paper); margin-top: 10px; }
.portal-section p { color: #B9B3A2; max-width: 440px; }
.portal-card { background: #2E2925; border: 1px solid #45372B; border-radius: 10px; padding: 32px; }
.portal-card .pf { margin-bottom: 16px; }
.portal-card label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: #9C8F80; display: block; margin-bottom: 6px; }
.portal-card .fake-input { border: 1px solid #45372B; border-radius: 8px; padding: 11px 12px; font-family: var(--font-mono); font-size: 0.8rem; color: #6E6459; }
.portal-card .btn { width: 100%; justify-content: center; margin-top: 6px; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.portal-card .btn:hover { background: var(--accent-light); border-color: var(--accent-light); }
@media (max-width: 1023px) { .portal-inner { grid-template-columns: 1fr; padding: 60px 0; gap: 40px; } }
@media (max-width: 479px) { .portal-card { padding: 24px 20px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 42px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 500; color: var(--graphite-soft); }
.footer-grid p, .footer-grid a { color: var(--graphite); font-size: 0.9rem; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a:hover { color: var(--accent-dark); }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.76rem; color: var(--graphite-soft); font-family: var(--font-mono); }
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 479px) {
  .site-footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill-tag {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 8px; background: var(--paper-dim); border: 1px solid var(--line); color: var(--graphite);
}
.badge-portal {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-dark); background: #FDECD3;
  padding: 6px 12px; border-radius: 8px; margin-bottom: 18px;
}
.badge-portal .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 60px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--graphite-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent-dark); }
@media (max-width: 767px) { .page-hero { padding: 44px 0 38px; } }
@media (max-width: 374px) { .page-hero h1 { font-size: 1.9rem; } }

/* ---------- Hero (home) ---------- */
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 30px; }
.hero-stat { padding: 20px 18px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; padding-right: 0; }
.hero-stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.hero-stat .label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--graphite); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 479px) { .hero-stat { padding: 16px 10px 14px; } }
@media (max-width: 374px) { .hero-stat .num { font-size: 1.4rem; } .hero-stat { padding: 14px 6px 12px; } .hero-stat .label { font-size: 0.6rem; } }

/* ---------- Login page ---------- */
.login-shell { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 70px 20px; }
.login-card { max-width: 440px; width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 44px 38px; box-shadow: var(--shadow); text-align: center; }
.login-tabs { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin: 24px 0; }
.login-tab { flex: 1; padding: 9px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--graphite-soft); font-family: var(--font-mono); }
.login-tab.active { background: var(--ink); color: var(--paper); }
@media (max-width: 479px) {
  .login-shell { padding: 48px 16px; }
  .login-card { padding: 32px 24px; }
}

/* ---------- Property detail page ---------- */
.detail-wrap { max-width: 980px; }

.gallery { margin-bottom: 14px; }
.gallery-main {
  position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 12px;
  overflow: hidden; background: var(--stone); border: 1px solid var(--line);
}
.gallery-track { display: flex; height: 100%; transition: transform 0.4s ease; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
  border-radius: 50%; background: rgba(248,245,239,0.92); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  cursor: pointer; transition: background 0.2s ease, transform 0.15s ease;
}
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-nav:hover { background: var(--accent); border-color: var(--accent); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
  position: absolute; bottom: 14px; right: 14px; background: rgba(35,31,32,0.72); color: var(--paper);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 20px;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.gallery-thumb {
  width: 88px; height: 62px; border-radius: 6px; overflow: hidden; border: 2px solid transparent;
  padding: 0; flex-shrink: 0; cursor: pointer; opacity: 0.55; transition: all 0.2s ease; background: none;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }
@media (max-width: 479px) {
  .gallery-nav { width: 36px; height: 36px; }
  .gallery-thumb { width: 72px; height: 50px; }
}

.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 28px 0 8px; flex-wrap: wrap; }
.detail-header h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 6px; }
.detail-address { color: var(--graphite-soft); font-size: 1rem; }

.detail-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0;
}
.detail-spec { padding: 18px 20px; border-left: 1px solid var(--line); }
.detail-spec:first-child { border-left: none; }
.detail-spec .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; display: block; }
.detail-spec .label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--graphite-soft); margin-top: 2px; display: block; }
@media (max-width: 767px) {
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .detail-spec:nth-child(3) { border-left: none; }
  .detail-spec { padding: 16px 14px; }
}
@media (max-width: 374px) { .detail-spec .num { font-size: 1.35rem; } }

.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.amenity-item { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; color: var(--ink); }
.amenity-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 767px) { .amenity-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .amenity-grid { grid-template-columns: 1fr; } }

.amenity-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 8px; }
.amenity-group h4 {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 9px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.amenity-group h4 svg { width: 17px; height: 17px; flex-shrink: 0; }
.amenity-group ul { display: flex; flex-direction: column; gap: 10px; }
.amenity-group li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.amenity-group li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 1023px) { .amenity-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .amenity-groups { grid-template-columns: 1fr; } }

.neighborhood-card { background: var(--paper-dim); border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.neighborhood-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.neighborhood-card p { font-size: 0.9rem; margin-bottom: 14px; }
@media (max-width: 479px) { .neighborhood-card { padding: 20px; } }

.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr { border-top: 1px solid var(--line); }
.detail-table tr:last-child { border-bottom: 1px solid var(--line); }
.detail-table td { padding: 13px 4px; font-size: 0.92rem; }
.detail-table td:first-child { color: var(--graphite-soft); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; width: 45%; }
.detail-table td:last-child { color: var(--ink); font-weight: 500; text-align: right; }

.detail-cta {
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 32px 30px; margin-top: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.detail-cta h3 { color: var(--paper); margin-bottom: 4px; }
.detail-cta p { color: #B9B3A2; margin-bottom: 0; }
@media (max-width: 479px) { .detail-cta { padding: 24px 22px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: flex-start; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.info-line { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.info-line:last-child { border-bottom: 1px solid var(--line); }
.info-line .icon { width: 20px; height: 20px; color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }
.info-line .lab { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--graphite-soft); margin-bottom: 2px; }
.info-line .val { font-weight: 500; }

.map-slot {
  aspect-ratio: 16/7;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px; background-color: var(--stone);
  border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--graphite); margin-top: 40px;
}
@media (max-width: 767px) { .map-slot { aspect-ratio: 4/3; margin-top: 28px; } }
