:root {
  --brand: #37718d;
  --brand-dark: #255268;
  --brand-soft: #eaf2f6;
  --dark: #0f1b22;
  --text: #18252d;
  --muted: #5e6d77;
  --surface: #ffffff;
  --canvas: #f4f6f7;
  --border: #e2e7eb;
  --cta: #1f9d55;
  --cta-hover: #188246;
  --status-available: #1f9d55;
  --status-eoi: #c58a1b;
  --status-hold: #6b7280;
  --status-sold: #b42318;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(15, 27, 34, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 27, 34, 0.09);
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cta);
  color: #fff;
}
.btn-primary:hover { background: var(--cta-hover); }

.btn-brand {
  background: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-dark); }

.btn-outline {
  background: var(--surface);
  color: var(--dark);
  border-color: var(--border);
}
.btn-outline:hover { background: #f8fafb; border-color: #cbd5dc; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover { background: #eef2f5; color: var(--dark); }

.btn-danger {
  background: #fef2f2;
  color: #b42318;
  border-color: #fecaca;
}
.btn-danger:hover { background: #fee2e2; }

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.btn-block { width: 100%; }

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-available { background: #eaf7ef; color: var(--status-available); }
.badge-eoi { background: #fef6e6; color: var(--status-eoi); }
.badge-hold { background: #f1f3f5; color: var(--status-hold); }
.badge-sold { background: #fef2f2; color: var(--status-sold); }
.badge-neutral { background: var(--brand-soft); color: var(--brand-dark); }

/* Stocklist layout */
.stocklist-shell {
  display: grid;
  grid-template-columns: 440px 1fr;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}

.stocklist-sidebar {
  background: var(--canvas);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.filters-panel {
  background: var(--surface);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-row {
  display: flex;
  gap: 8px;
}

.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(55, 113, 141, 0.14);
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chips .select {
  width: auto;
  flex: 1 1 110px;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.bounds-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.cards-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prop-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.prop-card:hover,
.prop-card.is-highlighted {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.prop-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--brand);
  overflow: hidden;
  flex-shrink: 0;
}

.prop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.reg-pill {
  background: rgba(15, 27, 34, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.prop-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.prop-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.prop-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.prop-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
}

.prop-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.prop-suburb {
  font-size: 13px;
  color: var(--muted);
}

.prop-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--canvas);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
}

.prop-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.map-pane {
  position: relative;
  height: 100%;
  width: 100%;
  background: #e5ecef;
}

#stocklist-map {
  width: 100%;
  height: 100%;
}

/* Leaflet price pins */
.leaflet-div-icon.price-pin-wrap {
  background: transparent;
  border: none;
}

.price-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 27, 34, 0.25);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, background 0.12s ease;
}

.price-pin.is-eoi { background: var(--status-eoi); }
.price-pin.is-hold { background: var(--status-hold); }
.price-pin.is-sold { background: var(--status-sold); }
.price-pin.is-active {
  background: var(--dark);
  transform: translate(-50%, -50%) scale(1.14);
  z-index: 900;
}

.mobile-view-toggle {
  display: none;
}

.empty-state {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Property detail page */
.page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 96px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 14px;
  min-height: 44px;
}

.hero-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--brand);
  aspect-ratio: 16 / 7;
  max-height: 460px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media-actions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 27, 34, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.hero-pill-btn:hover { background: var(--dark); }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.detail-headline-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin: 10px 0 4px;
}

.detail-split-price {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.detail-title {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
}

.inclusions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 16px;
}

.inclusions-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.inclusions-check {
  color: var(--cta);
  font-weight: 800;
  flex-shrink: 0;
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.overview-table tr { border-bottom: 1px solid var(--border); }
.overview-table tr:last-child { border-bottom: none; }
.overview-table th {
  text-align: left;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 500;
  width: 45%;
}
.overview-table td {
  text-align: right;
  padding: 10px 0;
  font-weight: 600;
  color: var(--dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.stat-tile {
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: 14px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}

#property-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  background: #e5ecef;
}

.detail-aside {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.sticky-cta-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sticky-cta-card .input,
.sticky-cta-card .select {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 13px;
}

.sticky-cta-card .field-label {
  font-size: 12px;
  margin-bottom: 4px;
}

.agent-note {
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.agent-row-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-soft);
  flex-shrink: 0;
}

.info-pack-band {
  background: linear-gradient(135deg, #f8fbfd 0%, #eef5f8 100%);
  border: 1px solid #d9e6ee;
}

.info-pack-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mobile-sticky-bar {
  display: none;
}

/* Modal & Form */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 27, 34, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.is-open { display: flex; }

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.segmented-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.seg-option input { display: none; }
.seg-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  text-align: center;
}
.seg-option input:checked + span {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
}

.form-error {
  background: #fef2f2;
  color: #b42318;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

.form-success {
  background: #eaf7ef;
  color: #14532d;
  border-radius: var(--radius-md);
  padding: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Lightbox */
.lightbox-card {
  max-width: 900px;
  padding: 16px;
  background: var(--dark);
  color: #fff;
}
.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #091116;
}
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}
.lightbox-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
}
.lightbox-thumb.is-active { opacity: 1; border-color: #fff; }

/* Admin layout */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--dark);
  color: #fff;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 6px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 8px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}
.admin-nav-link:hover, .admin-nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-main {
  padding: 24px 28px 90px;
  max-width: 1180px;
  width: 100%;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
}

.admin-table-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  padding: 13px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-mobile-cards { display: none; }

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.span-2 { grid-column: 1 / -1; }

#admin-pin-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  background: #e5ecef;
}

.toast {
  background: #eaf7ef;
  color: #14532d;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.admin-bottom-nav { display: none; }

/* Navigation & Homepage & Footer */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.mobile-menu-btn { display: none; }

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 410;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-drawer.is-open { display: flex; }
.mobile-nav-drawer a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
}
.mobile-nav-drawer a:hover { background: var(--brand-soft); }

.home-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding: 56px 20px;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(15, 27, 34, 0.88) 0%, rgba(15, 27, 34, 0.68) 55%, rgba(15, 27, 34, 0.38) 100%);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  color: #fff;
}

.home-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b7dff2;
  background: rgba(55, 113, 141, 0.35);
  border: 1px solid rgba(183, 223, 242, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.home-hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  max-width: 720px;
}

.home-hero-sub {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
}

.hero-search-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 10px;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  max-width: 780px;
  margin-bottom: 18px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.22); }

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-item {
  padding: 6px 12px;
  border-left: 3px solid var(--brand);
}

.trust-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
}

.trust-lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.home-section {
  padding: 60px 0;
}

.home-section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--dark);
}

.section-sub {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.55;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.featured-grid .prop-card {
  height: 100%;
}

.featured-grid .prop-card-footer {
  margin-top: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
}

.service-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
  color: #3d4d57;
  font-size: 14px;
  line-height: 1.8;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.about-card, .past-projects-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.footprint-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footprint-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.footprint-item span { color: var(--muted); font-size: 13px; }

.booking-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.booking-meta-box {
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  border: 1px solid var(--border);
}

.contact-banner {
  background: linear-gradient(135deg, #0f1b22 0%, #255268 100%);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.site-footer {
  background: #090e11;
  color: #fff;
  padding: 44px 20px 24px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
}
.footer-col a:hover { color: #fff; }

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1060px) {
  .site-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero-search-bar { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid, .services-grid, .about-grid, .booking-grid, .footer-inner {
    grid-template-columns: 1fr;
  }
  .home-section { padding: 40px 0; }
  .home-hero { padding: 38px 16px; min-height: 460px; }
  .contact-banner { padding: 24px 20px; }
}

/* Responsive <= 768px */
@media (max-width: 768px) {
  .site-header { padding: 0 12px; }
  .brand-logo-img { height: 44px; }
  .brand-pill { display: none; }
  .header-actions .btn-text-hide { display: none; }

  .stocklist-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--header-h));
    overflow: visible;
  }

  .stocklist-sidebar {
    border-right: none;
    overflow: visible;
    min-width: 0;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
  }
  .filter-chips .select { flex: 0 0 auto; }

  .cards-scroll { overflow: visible; padding-bottom: 92px; min-width: 0; }
  .prop-card, .prop-card-body { min-width: 0; }

  .map-pane {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    height: calc(100vh - var(--header-h));
  }

  body.mobile-map-open .map-pane { display: block; }
  body.mobile-map-open .stocklist-sidebar .cards-scroll { display: none; }

  .mobile-view-toggle {
    display: inline-flex;
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 450;
    background: var(--dark);
    padding: 4px;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  }

  .mobile-view-toggle button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
  }

  .mobile-view-toggle button.is-active {
    background: #fff;
    color: var(--dark);
  }

  .hero-stage { aspect-ratio: 16 / 10; }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky-cta-card { display: none; }

  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 450;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 12px;
    gap: 8px;
    box-shadow: 0 -6px 20px rgba(15, 27, 34, 0.08);
  }

  .info-pack-grid {
    grid-template-columns: 1fr;
  }

  .segmented-group, .checkbox-grid, .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 { grid-column: auto; }

  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px 14px 88px; }
  .admin-table-wrap { display: none; }
  .admin-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .admin-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 450;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .admin-bottom-nav a, .admin-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
  }
  .admin-bottom-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }
}

/* ============================================================
   Option 2: Editorial Luxury Theme (body[data-theme="editorial"])
   ============================================================ */
body[data-theme="editorial"] {
  --brand: #1c3d32;
  --brand-dark: #122820;
  --brand-soft: #ede6da;
  --dark: #141414;
  --canvas: #faf7f2;
  --border: #e7dfd2;
  --cta: #1c3d32;
  --cta-hover: #122820;
}

body[data-theme="editorial"] .editorial-hero-title,
body[data-theme="editorial"] .section-title,
body[data-theme="editorial"] .detail-title,
body[data-theme="editorial"] .card-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

body[data-theme="editorial"] .site-header {
  background: #faf7f2;
  border-bottom-color: #e7dfd2;
}

body[data-theme="editorial"] .info-pack-band {
  background: linear-gradient(135deg, #fdf8f1 0%, #f5e9db 100%);
  border-color: #e4d2bc;
}

.editorial-hero {
  background: #f5efe6;
  border-bottom: 1px solid #e7dfd2;
  padding: 52px 0;
}

.editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

.editorial-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8b653c;
  background: #ede4d6;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.editorial-hero-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  color: #141414;
}

.editorial-hero-sub {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.65;
  color: #4b463f;
}

.editorial-search-inline {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.editorial-hero-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.collage-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
  display: block;
}

.collage-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.collage-tile:hover img {
  transform: scale(1.04);
}

.collage-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

.collage-price { font-weight: 800; }
.collage-suburb { opacity: 0.9; }

/* Property multi-photo collage (Editorial) */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 460px;
  box-shadow: var(--shadow-md);
}

.hero-collage-main {
  height: 460px;
}

.hero-collage-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-collage-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 460px;
}

.hero-collage-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Option 3: Modern PropTech Theme (body[data-theme="proptech"])
   ============================================================ */
body[data-theme="proptech"] {
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --brand-soft: #e0f2fe;
  --dark: #0b192c;
  --canvas: #f1f5f9;
  --border: #dbe3ec;
}

body[data-theme="proptech"] .site-header {
  background: #0b192c;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body[data-theme="proptech"] .brand-logo { color: #fff; }
body[data-theme="proptech"] .brand-pill {
  background: rgba(2, 132, 199, 0.25);
  color: #bae6fd;
}
body[data-theme="proptech"] .nav-link { color: rgba(255, 255, 255, 0.78); }
body[data-theme="proptech"] .nav-link:hover,
body[data-theme="proptech"] .nav-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
body[data-theme="proptech"] .site-header .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.proptech-hero {
  background: linear-gradient(135deg, #0b192c 0%, #102a49 60%, #075985 100%);
  color: #fff;
  padding: 54px 0 48px;
}

.proptech-search-bar {
  grid-template-columns: 1.4fr 1fr 1fr auto;
  max-width: 920px;
  margin-bottom: 0;
}

.proptech-data-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  padding: 8px;
  font-size: 11px;
}

.proptech-data-strip span {
  display: block;
  color: #64748b;
}
.proptech-data-strip strong {
  display: block;
  font-size: 12px;
  color: #0b192c;
  margin-top: 1px;
}

.desktop-view-switch {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.desktop-view-switch button {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.desktop-view-switch button.is-active {
  background: #fff;
  color: #0b192c;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
  .stocklist-shell[data-view="list"] {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--header-h));
    overflow: visible;
  }
  .stocklist-shell[data-view="list"] .map-pane { display: none; }
  .stocklist-shell[data-view="list"] .cards-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
  }

  .stocklist-shell[data-view="map"] {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .stocklist-shell[data-view="map"] .cards-scroll { display: none; }
  .stocklist-shell[data-view="map"] .stocklist-sidebar {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .editorial-hero-grid { grid-template-columns: 1fr; }
  .editorial-hero { padding: 34px 0; }
  .proptech-search-bar { grid-template-columns: 1fr; }
  .desktop-view-switch { display: none; }
  .hero-collage { grid-template-columns: 1fr; max-height: none; }
  .hero-collage-main { height: 260px; }
  .hero-collage-side { display: none; }
}

/* Development & Subdivision page */
.dev-hero {
  background: linear-gradient(135deg, #0f1b22 0%, #255268 100%);
  color: #fff;
  padding: 54px 20px;
}

body[data-theme="editorial"] .dev-hero {
  background: linear-gradient(135deg, #141414 0%, #1c3d32 100%);
}

body[data-theme="proptech"] .dev-hero {
  background: linear-gradient(135deg, #0b192c 0%, #075985 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.process-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.process-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.process-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
}

.process-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #3d4d57;
  line-height: 1.7;
}

.timeline-callout {
  margin-top: 20px;
  background: var(--surface);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.quote-band {
  margin-top: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  text-align: center;
}

/* Admin Split-Screen Login */
.admin-login-body {
  margin: 0;
  background: #f1f5f9;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}

.admin-login-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  overflow: hidden;
  background: #0b192c;
}

.admin-login-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-login-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 25, 44, 0.55) 0%, rgba(11, 25, 44, 0.88) 65%, rgba(7, 89, 133, 0.92) 100%);
}

.admin-login-visual-inner {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 520px;
}

.admin-login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-login-pills span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.admin-login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 18px 46px rgba(11, 25, 44, 0.1);
  border-top: 4px solid #0284c7;
}

@media (max-width: 900px) {
  .admin-login-shell {
    grid-template-columns: 1fr;
  }
  .admin-login-visual {
    padding: 28px 20px;
    min-height: 260px;
  }
  .admin-login-panel {
    padding: 24px 16px 40px;
  }
}
