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

:root {
    --ink: #1c1f22;
    --brick: #8a3b2e;
    --concrete: #e9e4d8;
    --paper: #fbf9f4;
    --steel: #5b6670;
    --amber: #c97b2c;
    --line: rgba(28, 31, 34, 0.14);
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 2px rgba(28,31,34,0.05), 0 4px 14px -8px rgba(28,31,34,0.18);
    --shadow-hover: 0 2px 4px rgba(28,31,34,0.07), 0 10px 22px -10px rgba(28,31,34,0.26);
    /* Single restrained accent for icons/graphics — no rainbow */
    --accent: #2c5282;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Work Sans', -apple-system, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', 'Work Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.4em;
    line-height: 1.1;
    color: var(--ink);
}

.mono, .spec, .unit-id {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

a { color: var(--brick); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--ink);
    color: var(--paper);
    border-bottom: 4px solid var(--amber);
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}
.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--paper);
    text-decoration: none;
}
.brand .mark {
    font-family: 'IBM Plex Mono';
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--amber);
    border: 1px solid var(--amber);
    padding: 3px 7px;
    border-radius: var(--radius);
}
.brand .name {
    font-family: 'Oswald';
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.site-header nav a {
    color: var(--concrete);
    text-decoration: none;
    font-size: 14px;
    margin-left: 22px;
    letter-spacing: 0.02em;
}
.site-header nav a:hover { color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(180deg, rgba(28,31,34,0.86), rgba(28,31,34,0.92)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
    color: var(--paper);
    padding: 64px 0 56px;
}
.hero .eyebrow {
    font-family: 'IBM Plex Mono';
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--amber);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    color: var(--paper);
    max-width: 14ch;
}
.hero p.lede {
    font-size: 17px;
    color: rgba(251,249,244,0.8);
    max-width: 52ch;
    margin-top: 14px;
}
.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.hero-stats div { border-left: 2px solid var(--amber); padding-left: 12px; }
.hero-stats .num { font-family: 'IBM Plex Mono'; font-size: 26px; font-weight: 600; display: block; }
.hero-stats .lbl { font-size: 12px; color: rgba(251,249,244,0.65); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Section headings ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 10px;
    margin: 56px 0 22px;
}
.section-head h2 { font-size: 22px; }
.section-head .count { font-family: 'IBM Plex Mono'; font-size: 13px; color: var(--steel); }

/* ---------- Property block ---------- */
.property-block { margin-bottom: 12px; }
.property-meta {
    font-size: 14px;
    color: var(--steel);
    margin-bottom: 18px;
}
.property-meta .addr::before { content: '\2014\ '; }

/* ---------- Unit plate card (signature element) ---------- */
.plate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-bottom: 8px;
}
.plate {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plate:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.plate .thumb {
    height: 168px;
    background: var(--concrete) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    color: var(--steel);
}
.plate .thumb .type-icon { width: 56px; height: 56px; opacity: 0.85; }
.plate .thumb .no-photo-label { font-family: 'IBM Plex Mono'; font-size: 11px; color: var(--steel); margin-top: 6px; }
.plate .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plate .unit-id { font-size: 11px; letter-spacing: 0.1em; color: var(--steel); }
.plate h3 { font-size: 17px; margin: 0; }
.plate .specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--steel); font-family: 'IBM Plex Mono'; }
.plate .specs span { display: inline-flex; align-items: center; gap: 4px; }
.plate .specs svg { width: 14px; height: 14px; flex-shrink: 0; }
.plate .rent { font-family: 'IBM Plex Mono'; font-size: 16px; font-weight: 600; margin-top: auto; padding-top: 10px; }

.badge {
    position: absolute; top: 12px; right: 12px;
    font-family: 'IBM Plex Mono';
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}
.badge-available { color: #fff; background: #2f6e3f; }
.badge-occupied  { color: #fff; background: var(--steel); }
.badge-refurb    { color: #fff; background: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: 'IBM Plex Mono';
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--brick); border-color: var(--brick); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #b56a20; }
.btn:hover { color: var(--brick); border-color: var(--brick); }
.btn-solid:hover, .btn-amber:hover { color: var(--paper); }

/* ---------- Unit detail page ---------- */
.unit-hero {
    background: var(--ink);
    color: var(--paper);
    padding: 40px 0 30px;
}
.unit-hero .unit-id { color: var(--amber); }
.unit-hero h1 { color: var(--paper); font-size: clamp(26px, 4vw, 38px); }
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 140px);
    gap: 8px;
    margin: 26px 0;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--concrete); }
.gallery .main { grid-row: span 2; height: 100%; }
.gallery-empty {
    padding: 40px; text-align: center; color: var(--steel);
    background: var(--concrete); border-radius: var(--radius); font-family: 'IBM Plex Mono'; font-size: 13px;
}

.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; margin: 20px 0 60px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; grid-template-rows: 220px repeat(4, 90px); } .gallery .main { grid-row: span 1; } }

.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th { color: var(--steel); font-weight: 500; width: 40%; font-family: 'IBM Plex Mono'; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.spec-table th .icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: 8px; vertical-align: middle; color: var(--accent); opacity: 0.75; }
.spec-table th .icon-chip svg { width: 13px; height: 13px; }

/* ---------- Trust / promotion strip ---------- */
.trust-strip { background: var(--concrete); border-radius: var(--radius); padding: 30px 34px; margin: -34px 0 10px; position: relative; z-index: 2; }
.trust-strip h2 { font-size: 19px; margin-bottom: 14px; }
.trust-strip .trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.trust-strip .trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-strip .trust-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.trust-strip .trust-item strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.trust-strip .trust-item span { font-size: 13.5px; color: var(--steel); }

.charity-note {
    background: rgba(201,123,44,0.09);
    border-left: 3px solid var(--amber);
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 18px 0;
}

.map-frame { border: 0; width: 100%; height: 260px; border-radius: var(--radius); margin-top: 18px; filter: grayscale(0.15); }

/* ---------- Enquiry form ---------- */
.enquiry-card {
    background: var(--concrete);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 20px;
    box-shadow: var(--shadow);
}
.enquiry-card h3 { font-size: 16px; }
.enquiry-card .privacy-note { font-size: 12.5px; color: var(--steel); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--steel); margin-bottom: 5px; font-family: 'IBM Plex Mono'; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-family: 'Work Sans';
    font-size: 14.5px;
    background: var(--paper);
    color: var(--ink);
}
.field textarea { resize: vertical; min-height: 90px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.human-check { display: flex; align-items: center; gap: 10px; }
.human-check span { font-family: 'IBM Plex Mono'; font-size: 14px; }
.human-check input { width: 70px; }
.alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; }
.alert-success { background: rgba(47,110,63,0.1); border-left: 3px solid #2f6e3f; }
.alert-error { background: rgba(138,59,46,0.1); border-left: 3px solid var(--brick); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(251,249,244,0.7);
    padding: 40px 0;
    margin-top: 60px;
    font-size: 13.5px;
}
.site-footer a { color: var(--concrete); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--steel); }
.card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
