/* Self-hosted fonts (SIL OFL 1.1, ../fonts/NOTICES.txt), latin subset. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-grotesque-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-latin-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Keystone Realty Group: bold, warm, image-led. Bricolage Grotesque display over Instrument Sans. Charcoal, warm white, terracotta. */
:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --ink: #1d1d1b;
  --muted: #66625a;
  --line: #e6e1d7;
  --terra: #c2502c;
  --terra-ink: #9c3c1d;
  --sand: #f1ebe0;
  --night: #1f2422;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
}
a {
  color: inherit;
}
svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wrap {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 12px;
  z-index: 9;
}
:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 21px/1 var(--display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo i {
  width: 30px;
  height: 30px;
  background: var(--terra);
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15.5px;
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.nav a:hover,
.nav a[aria-current] {
  background: var(--sand);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover {
  background: var(--terra-ink);
}
.btn.terra {
  background: var(--terra);
}
.btn.terra:hover {
  background: var(--terra-ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h1 {
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.92;
  font-weight: 800;
}
h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero {
  padding: clamp(24px, 4vw, 48px) 0 0;
}
.hero-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 56px);
  color: #fff;
  background: #3a4a44;
}
.hero-card .scene {
  position: absolute;
  inset: 0;
}
.hero-card .scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 24, 22, 0.7) 0, rgba(20, 24, 22, 0.35) 45%, rgba(20, 24, 22, 0) 70%),
    linear-gradient(180deg, rgba(20, 24, 22, 0) 50%, rgba(20, 24, 22, 0.5));
}
.hero-card .scene {
  background: linear-gradient(180deg, #8fa9b8 0%, #bfd0d6 70%);
}
.hero-card .scene .sun {
  position: absolute;
  right: 9%;
  top: 12%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #f3d9b4;
}
.hero-card .scene .h {
  position: absolute;
  bottom: calc(7% - 2.2vw);
  width: 30%;
  aspect-ratio: 400 / 260;
}
.hero-card .scene .h1 {
  right: 50%;
  width: 26%;
}
.hero-card .scene .h2 {
  right: 19%;
  width: 36%;
}
.hero-card .scene .h3 {
  right: -4%;
  width: 30%;
}
.hero-card .scene .ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7%;
  background: linear-gradient(180deg, #cfd6c4 0 26%, #b9c4ab 26%);
}
@media (max-width: 600px) {
  .hero-card .scene .h1 {
    display: none;
  }
  .hero-card .scene .h2 {
    right: 30%;
    width: 70%;
  }
  .hero-card .scene .h3 {
    display: none;
  }
}
.hero-card > *:not(.scene) {
  position: relative;
  z-index: 1;
}
.hero-card p {
  font-size: clamp(18px, 1.6vw, 21px);
  max-width: 30em;
  margin: 18px 0 28px;
  color: #f1ece4;
}
.search {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  background: #fff;
  border-radius: 22px;
  padding: 8px;
  max-width: 900px;
  color: var(--ink);
}
.search label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 16px;
  min-height: 60px;
  font-size: 13px;
  color: var(--muted);
}
.search label:hover {
  background: var(--sand);
}
.search select,
.search input {
  border: 0;
  background: transparent;
  font: 500 16px var(--text);
  color: var(--ink);
  padding: 2px 0 0;
  outline: none;
  width: 100%;
}
.search .btn {
  min-height: 60px;
  border-radius: 16px;
  padding: 0 28px;
}

.band {
  padding: clamp(72px, 9vw, 120px) 0;
}
.band.sand {
  background: var(--sand);
}
.band.night {
  background: var(--night);
  color: #eef0ec;
}
.hd {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px 48px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hd p {
  margin: 0;
  color: var(--muted);
  max-width: 28em;
}
.count {
  color: var(--muted);
  font-size: 15px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filters button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: 500 15px var(--text);
  cursor: pointer;
  color: var(--ink);
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.listings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
.home-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-card[hidden] {
  display: none;
}
.ph {
  position: relative;
  aspect-ratio: 400 / 260;
  border-radius: 22px;
  overflow: hidden;
}
.ph svg {
  transition: transform 0.6s var(--ease);
}
.home-card:hover .ph svg {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}
.badge.new {
  background: var(--terra);
  color: #fff;
}
.price {
  font: 700 26px/1 var(--display);
  letter-spacing: -0.03em;
}
.addr {
  color: var(--muted);
  font-size: 15.5px;
}
.facts {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink);
}
.facts span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--muted);
}

.hoods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.hood {
  border-radius: 22px;
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hood b {
  font: 700 28px/1 var(--display);
  letter-spacing: -0.03em;
}
.hood span {
  font-size: 14.5px;
}
.hood dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 16px;
  margin: 0;
  font-size: 14px;
}
.hood dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #3a413e;
}
.stats div {
  padding: 28px 24px 0 0;
}
.stats b {
  display: block;
  font: 800 clamp(48px, 5vw, 72px)/1 var(--display);
  letter-spacing: -0.04em;
  color: #ffb59a;
}
.stats span {
  color: #b8bfb9;
  font-size: 15px;
}
.chart {
  margin-top: 56px;
  background: #283029;
  border-radius: 22px;
  padding: 24px;
}
.chart h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.chart p {
  margin: 0 0 16px;
  color: #b8bfb9;
  font-size: 14.5px;
}
.chart .plot {
  height: 200px;
}

.agents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.agent {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.agent i {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 20px var(--display);
  font-style: normal;
  flex: none;
}
.agent b {
  display: block;
  font-size: 17px;
}
.agent span {
  color: var(--muted);
  font-size: 14.5px;
}

.sell {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: center;
  background: var(--terra);
  color: #fff;
  border-radius: 32px;
  padding: clamp(32px, 5vw, 72px);
}
.sell p {
  color: #fff;
}
.sell .btn {
  background: #fff;
  color: var(--ink);
}

/* Listing page */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(300px, 46vw, 560px);
}
.gallery div {
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.gallery div:first-child {
  grid-row: 1 / 3;
}
.room {
  width: 100%;
  height: 100%;
}
.detail {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}
.kv {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.kv div {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
}
.kv b {
  display: block;
  font: 700 26px var(--display);
  letter-spacing: -0.03em;
}
.kv span {
  color: var(--muted);
  font-size: 14px;
}
.tour {
  position: sticky;
  top: 20px;
  background: #fff;
  border-radius: 26px;
  padding: 28px;
  border: 1px solid var(--line);
}
.tour h2 {
  font-size: 30px;
}
.tour .times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.tour .times button {
  min-height: 52px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  font: 600 15px var(--text);
  cursor: pointer;
  color: var(--ink);
}
.tour .times button small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
}
.tour .times button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--sand);
}
.tour .ok {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sand);
  font-size: 15px;
}
.tour .ok.show {
  display: block;
}
.feat {
  columns: 2;
  padding: 0;
  list-style: none;
  margin: 0;
}
.feat li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.foot {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  align-items: center;
}
.foot nav {
  display: flex;
  gap: 4px 20px;
  flex-wrap: wrap;
}
.foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ph svg {
    transition: none;
  }
  .home-card:hover .ph svg {
    transform: none;
  }
}

@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .top .btn {
    margin-left: auto;
  }
  .listings {
    grid-template-columns: 1fr 1fr;
  }
  .hoods,
  .agents {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }
  .sell,
  .detail {
    grid-template-columns: 1fr;
  }
  .search {
    grid-template-columns: 1fr 1fr;
  }
  .search label:first-child {
    grid-column: 1 / -1;
  }
  .search .btn {
    grid-column: 1 / -1;
  }
  .tour {
    position: static;
  }
}
@media (max-width: 600px) {
  .hero-card {
    min-height: 640px;
  }
  .listings,
  .hoods,
  .agents {
    grid-template-columns: 1fr;
  }
  .kv {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
  }
  .gallery div:first-child {
    grid-row: auto;
  }
  .gallery div:nth-child(3) {
    display: none;
  }
  .feat {
    columns: 1;
  }
}

.logo {
  min-height: 44px;
}
.search label {
  padding: 2px 16px;
}
.search select,
.search input {
  min-height: 44px;
  padding: 0;
}

/* RareBlooms sample strip: always on screen, so no one mistakes this for a real business. */
body {
  padding-bottom: 34px;
}
.rb-sample {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  margin: 0;
  padding: 7px 16px;
  background: #111;
  color: #fff;
  font:
    500 13px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  text-align: center;
}
