/* The sample site's one stylesheet. No framework, no build step. */
:root {
  --ink: #1c2430;
  --soft: #5b6676;
  --line: #d9dee6;
  --paper: #ffffff;
  --shade: #f4f6f9;
  --accent: #14508c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
a {
  color: var(--accent);
}
.hidden {
  position: absolute;
  left: -10000px;
}
main,
.top,
.bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.top nav a {
  margin-left: 0.8rem;
}
.search-box {
  position: relative;
  display: flex;
  flex: 1 1 20rem;
  gap: 0.4rem;
}
.search-box input {
  flex: 1;
}
input,
select,
button {
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
button {
  cursor: pointer;
}
.suggestions {
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0.2rem 0 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 24rem;
  overflow: auto;
}
.suggestions a {
  display: block;
  padding: 0.3rem 0.8rem;
  text-decoration: none;
}
.suggestions .group {
  padding: 0.4rem 0.8rem 0.1rem;
  color: var(--soft);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
h1 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.7rem;
  line-height: 1.2;
}
h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.2rem;
}
.lead {
  color: var(--soft);
}
.notice {
  padding: 0.6rem 0.8rem;
  background: var(--shade);
  border-left: 3px solid var(--accent);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.filters label {
  display: grid;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--soft);
}
.filters input {
  width: 8rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.map {
  position: sticky;
  top: 0.5rem;
  height: 70vh;
  min-height: 320px;
  background: var(--shade);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cluster {
  background: none;
  border: 0;
  box-shadow: none;
  font-weight: 700;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card .photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--shade);
}
/* Photos are shown WHOLE: contain, never cover. A photo is never cropped, and nothing is
   drawn over it. */
.card .photo img,
.gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.no-photo {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--soft);
}
.card-text {
  padding: 0.6rem 0.8rem 0.8rem;
}
.card-text p,
.card-text h3 {
  margin: 0.15rem 0;
}
.card h3 {
  font-size: 1rem;
}
.status {
  display: inline-block;
  margin: 0;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--shade);
  font-size: 0.8rem;
  font-weight: 600;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
}
/* The listing office is one of the details: the same size and colour as the others. */
.facts,
.where,
.office {
  color: var(--ink);
  font-size: 0.95rem;
}
.listing header p {
  margin: 0.2rem 0;
}
.favorite {
  margin-top: 0.5rem;
}
.favorite[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.favorite[aria-pressed='true'] .when-off,
.favorite[aria-pressed='false'] .when-on {
  display: none;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--shade);
}
.remarks {
  white-space: pre-line;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.3rem 1.2rem;
  margin: 0;
}
.features div {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.2rem 0;
}
.features dt {
  flex: 0 0 45%;
  color: var(--soft);
}
.features dd {
  margin: 0;
}
.places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  padding: 0;
  list-style: none;
}
.pager,
.count {
  margin: 0.8rem 0;
}
.disclosures {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.85rem;
}
.disclosures p {
  margin: 0.35rem 0;
}
/* The brokerage's name is at least as prominent as anything else in the footer. */
.disclosures .brokerage {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}
.licensed {
  font-weight: 400;
}
.small {
  font-size: 0.85rem;
  color: var(--soft);
}
.bottom {
  padding-bottom: 2rem;
}
.sample {
  margin-top: 1rem;
  color: var(--soft);
  font-size: 0.85rem;
}
@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
  .map {
    position: static;
    height: 45vh;
  }
}
