/* =========================================================
   MD Group — commercial property marketplace
   v1 design system
   ========================================================= */

:root {
  /* brand */
  --navy: #10263a;
  --navy-2: #1b3c57;
  --copper: #e0632a;
  --copper-dk: #c2511e;
  --verified: #1f7a5c;

  /* neutrals (warm elegant beige/cream bias) */
  --paper: #ffffff;
  --ground: #f6f1ea;
  --sunk: #ebe4db;
  --ink: #1a1715;
  --ink-2: #453f3a;
  --muted: #736b64;
  --line: #e4ded8;
  --line-soft: #f0ebe5;

  /* placeholder slots */
  --slot-bg: #f3eee8;
  --slot-line: #d2c7be;
  --slot-ink: #7d7269;

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 38, 58, .06);
  --shadow: 0 1px 2px rgba(16, 38, 58, .06), 0 10px 24px -16px rgba(16, 38, 58, .35);
  --wrap: 1200px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%
}

a {
  color: inherit;
  text-decoration: none
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(20px, 3vw, 44px)
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace
}

/* ---------------------------------------------------------
   PLACEHOLDER SLOTS — everything MD still has to supply
   --------------------------------------------------------- */
.slot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--slot-bg);
  border: 1.5px dashed var(--slot-line);
  border-radius: 6px;
  color: var(--slot-ink);
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 12px;
  position: relative;
  background-image: repeating-linear-gradient(135deg, rgba(88, 115, 138, .05) 0 8px, transparent 8px 16px);
}

.slot span {
  max-width: 30ch
}

.slot b {
  display: block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 3px
}

.slot--photo {
  aspect-ratio: 4/3
}

.slot--wide {
  aspect-ratio: 16/9
}

.slot--logo {
  height: 56px;
  font-size: 11px
}

.slot--line {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  border-style: dashed;
  aspect-ratio: auto;
  min-height: 22px;
}

.slot-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--sunk);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}

/* value that is awaiting real data */
.pending {
  display: inline-block;
  min-width: 56px;
  border-bottom: 1.5px dashed var(--slot-line);
  color: var(--slot-ink);
  font-size: inherit;
}

.pending::before {
  content: "———"
}

/* ---------------------------------------------------------
   ANNOUNCE + HEADER
   --------------------------------------------------------- */
.announce {
  background: var(--navy);
  color: #fff;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 44px 9px 20px;
  position: relative;
}

.announce .btn-xs {
  background: var(--copper);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: .02em;
}

.announce .close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #8fa5b8;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 4px 8px;
}

.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px
}

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

.brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
}

.brand .name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.1
}

.brand .name small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted)
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2)
}

.site-nav a:hover {
  color: var(--navy)
}

.site-nav a.on {
  color: var(--navy);
  font-weight: 700
}

.head-cta {
  display: flex;
  align-items: center;
  gap: 10px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  transition: background .15s, border-color .15s, color .15s;
}

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

.btn--primary:hover {
  background: var(--copper-dk)
}

.btn--navy {
  background: var(--navy);
  color: #fff
}

.btn--navy:hover {
  background: #0a1b29
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line)
}

.btn--ghost:hover {
  border-color: var(--navy)
}

.btn--sm {
  padding: 7px 14px;
  font-size: 13px
}

.btn--block {
  width: 100%
}

/* ---------------------------------------------------------
   HERO + SEARCH
   --------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-block: 76px 84px;
}

/* --- hero background: slideshow or video --- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy);
  background-size: cover;
  background-position: center 42%;
  /* poster, set in JS — never a blank frame */
}

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

.hero-bg img {
  opacity: 0;
  animation: heroCycle var(--cycle, 21s) infinite
}

.hero-bg img:nth-child(1) {
  animation-delay: 0s
}

.hero-bg img:nth-child(2) {
  animation-delay: calc(var(--cycle, 21s) / 3)
}

.hero-bg img:nth-child(3) {
  animation-delay: calc(var(--cycle, 21s) / 3 * 2)
}

@keyframes heroCycle {
  0% {
    opacity: 0;
    transform: scale(1.00)
  }

  4% {
    opacity: 1
  }

  33% {
    opacity: 1
  }

  38% {
    opacity: 0
  }

  100% {
    opacity: 0;
    transform: scale(1.11)
  }
}

/* scrim: keeps the headline legible over any render */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 20, 32, .62) 0%, rgba(9, 20, 32, .48) 46%, rgba(9, 20, 32, .78) 100%),
    radial-gradient(120% 70% at 50% 34%, rgba(9, 20, 32, .15), rgba(9, 20, 32, .6) 78%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img {
    animation: none;
    opacity: 0
  }

  .hero-bg img:first-child {
    opacity: 1
  }
}

/* hero type sits on the dark background now */
.hero .wrap {
  position: relative;
  z-index: 2
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 28px rgba(6, 14, 22, .45)
}

.hero h1 em {
  color: #ff8a4c;
  border-bottom-color: #ff8a4c
}

.hero .sub {
  color: #cfdae4
}

.hero .sub .slot {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .34);
  color: #dbe6ef
}

.hero .credit {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  font-size: 10.5px;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .04em;
}

.hero h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 auto 10px;
  text-align: center;
  max-width: 18ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--copper);
  border-bottom: 3px solid var(--copper)
}

.hero .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 30px;
  max-width: 56ch;
  font-size: 15.5px
}

.searchbox {
  max-width: 840px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow)
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto
}

.search-tabs button {
  flex: 1 0 auto;
  background: none;
  border: 0;
  padding: 13px 18px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.search-tabs button[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--copper)
}

.search-tabs button .new {
  font-size: 9px;
  background: var(--copper);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: 2px;
  letter-spacing: .06em;
}

.search-fields {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px
}

.search-fields select,
.search-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--paper);
}

.search-fields input::placeholder {
  color: var(--muted)
}

/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */
.section {
  padding-block: 44px
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px
}

.section-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0
}

.section-head .link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--copper)
}

.section-head .link:hover {
  text-decoration: underline
}

.grid {
  display: grid;
  gap: 18px
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

/* ---------------------------------------------------------
   PROPERTY CARD
   --------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .16s, transform .16s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px)
}

.card .media {
  position: relative
}

.card .media .slot {
  border: 0;
  border-bottom: 1.5px dashed var(--slot-line);
  border-radius: 0
}

.badge-verified {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--verified);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: .03em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(15, 26, 36, .78);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
}

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

.card .name {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -.015em;
  line-height: 1.3
}

.card .loc {
  font-size: 13px;
  color: var(--muted)
}

.card .price {
  margin-top: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy)
}

.card .price small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0
}

.card .specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.card .specs div {
  min-width: 0
}

.card .specs b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.card .specs span {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted)
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--sunk);
  color: var(--ink-2);
}

.pill--negotiable {
  background: #fdefe6;
  color: var(--copper-dk)
}

/* ---------------------------------------------------------
   SEARCH RESULTS PAGE
   --------------------------------------------------------- */
.filterbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 64px;
  z-index: 30
}

.filterbar .wrap {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-block: 12px;
  overflow-x: auto
}

.filterbar select {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.filterbar .range {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px
}

.filterbar .range input {
  width: 78px;
  border: 0;
  padding: 3px 0;
  font-size: 13px;
  background: none
}

.filterbar .range label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600
}

.filterbar .toggle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap
}

.filterbar .reset {
  flex: 0 0 auto;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--copper);
}

.crumbs {
  font-size: 12.5px;
  color: var(--muted);
  padding-block: 16px 6px
}

.crumbs a:hover {
  color: var(--navy);
  text-decoration: underline
}

.crumbs span {
  margin-inline: 7px;
  opacity: .5
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px
}

.results-head h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0
}

.results-head .count {
  font-size: 13.5px;
  color: var(--muted)
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
  padding-bottom: 60px
}

.rows {
  display: grid;
  gap: 14px
}

/* horizontal result row */
.row-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 210px;
  gap: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.row-card:hover {
  box-shadow: var(--shadow)
}

.row-card .media {
  position: relative;
  min-height: 170px
}

.row-card .media .slot {
  position: absolute;
  inset: 0;
  border: 0;
  border-right: 1.5px dashed var(--slot-line);
  border-radius: 0
}

.row-card .main {
  padding: 15px 18px
}

.row-card .main h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em
}

.row-card .main .loc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px
}

.row-card .main .desc {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 12px
}

.row-card .attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.row-card .side {
  border-left: 1px solid var(--line-soft);
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.row-card .side .price {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.025em
}

.row-card .side .psf {
  font-size: 12.5px;
  color: var(--muted)
}

.row-card .side .btn {
  margin-top: auto;
  width: 100%
}

.row-card .side .listed {
  font-size: 11px;
  color: var(--muted)
}

.rail {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 124px
}

.rail-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px
}

.rail-box h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em
}

.locality-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.locality-tile {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-soft)
}

.locality-tile .slot {
  aspect-ratio: 3/2;
  border: 0;
  border-radius: 0;
  font-size: 10.5px
}

.locality-tile .cap {
  padding: 7px 9px
}

.locality-tile b {
  display: block;
  font-size: 12.5px;
  font-weight: 700
}

.locality-tile span {
  font-size: 11px;
  color: var(--muted)
}

.empty {
  background: var(--paper);
  border: 1.5px dashed var(--slot-line);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  color: var(--ink-2);
}

.empty b {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--ink)
}

/* ---------------------------------------------------------
   DETAIL PAGE
   --------------------------------------------------------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-bottom: 64px
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 140px);
  gap: 8px;
  margin-bottom: 8px
}

.gallery .g1 {
  grid-row: 1/3
}

.gallery .slot {
  height: 100%;
  border-radius: 6px
}

.gallery-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px
}

.provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}

.detail h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 4px;
  line-height: 1.18
}

.detail .addr {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px
}

.block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px
}

.block h2 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em
}

.block h2 .hint {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px
}

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

.speclist div b {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em
}

.speclist div span {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

table.terms {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px
}

table.terms td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line-soft)
}

table.terms td:first-child {
  color: var(--muted);
  width: 52%
}

table.terms td:last-child {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums
}

table.terms tr:last-child td {
  border-bottom: 0
}

.buybox {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow)
}

.buybox .tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.buybox .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1.15
}

.buybox .psf {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px
}

.buybox .mini {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px
}

.buybox .mini div {
  display: flex;
  justify-content: space-between;
  font-size: 13px
}

.buybox .mini span {
  color: var(--muted)
}

.buybox .mini b {
  font-weight: 700
}

.buybox .actions {
  display: grid;
  gap: 8px
}

/* ---------------------------------------------------------
   LEADS / PROJECTS / BROKERS
   --------------------------------------------------------- */
.lead-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm)
}

.lead-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px
}

.lead-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3
}

.lead-card .demand-id {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap
}

.lead-card .demand-id b {
  display: block;
  font-size: 15px;
  color: var(--ink)
}

.lead-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 13px
}

.lead-card dt {
  color: var(--muted)
}

.lead-card dd {
  margin: 0;
  font-weight: 600
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm)
}

.project-card .media {
  position: relative
}

.project-card .units {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.project-card .body {
  padding: 14px 15px 16px
}

.project-card h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em
}

.project-card .loc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px
}

.project-card .row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft)
}

.project-card .row span {
  color: var(--muted)
}

.broker-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm)
}

.broker-card .avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden
}

.broker-card .avatar .slot {
  height: 100%;
  border-radius: 50%;
  font-size: 9.5px;
  padding: 4px
}

.broker-card h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800
}

.broker-card .exp {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px
}

.broker-card .stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line-soft)
}

.broker-card .stats b {
  display: block;
  font-size: 15px;
  color: var(--ink)
}

/* ---------------------------------------------------------
   BANDS + FORMS + FOOTER
   --------------------------------------------------------- */
.band {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center
}

.band h2 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.025em
}

.band p {
  margin: 0;
  color: #a9bccd;
  font-size: 14px;
  max-width: 60ch
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2)
}

.field label em {
  font-style: normal;
  color: var(--copper)
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--paper);
  width: 100%;
}

.field textarea {
  min-height: 100px;
  resize: vertical
}

.field .help {
  font-size: 11.5px;
  color: var(--muted)
}

.site-foot {
  background: var(--navy);
  color: #c3d2de;
  margin-top: 40px;
  padding-block: 40px 28px;
  font-size: 13.5px
}

.site-foot .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid #1e3c55
}

.site-foot h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 700
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px
}

.site-foot a:hover {
  color: #fff
}

.site-foot .about p {
  margin: 0 0 14px;
  color: #a9bccd;
  max-width: 40ch
}

.site-foot .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: #8fa5b8
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width:1040px) {

  .results-layout,
  .detail-layout {
    grid-template-columns: 1fr
  }

  .rail,
  .buybox {
    position: static
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (max-width:860px) {
  .site-nav {
    display: none
  }

  .site-head .wrap {
    gap: 14px
  }

  .search-fields {
    grid-template-columns: 1fr
  }

  .row-card {
    grid-template-columns: 1fr
  }

  .row-card .media {
    min-height: 180px
  }

  .row-card .media .slot {
    border-right: 0;
    border-bottom: 1.5px dashed var(--slot-line)
  }

  .row-card .side {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    align-items: flex-start;
    text-align: left
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px 110px
  }

  .gallery .g1 {
    grid-column: 1/-1;
    grid-row: auto
  }

  .site-foot .cols {
    grid-template-columns: 1fr 1fr
  }

  .band {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  .hero {
    padding-block: 52px 56px
  }

  .hero-bg img {
    animation: none;
    opacity: 0
  }

  .hero-bg img:first-child {
    opacity: 1
  }
}

@media (max-width:560px) {

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr
  }

  .logos {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .locality-tiles {
    grid-template-columns: 1fr
  }
}