/* ==========================================================================
   Diamond Realty — 2026 redesign system
   Derived from the Canva design "Website.pdf" (Owen Ona, 24 Sep 2026).
   Type: Cormorant Garamond (display) · DM Sans (UI + body) · Montserrat (captions)
   Scale: the design page is 1024.5pt wide with an 815pt content column;
   mapped here to a 1150px content column on a ~1440px viewport (×1.406).
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #000;
  --ink-soft: #2b2b2b;
  --paper: #fff;
  --hairline: #d4d4d4;
  --hairline-strong: #9c9c9c;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-caption: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 1150px of content + gutters, so the design's 815pt column maps ×1.411 */
  --container: 1198px;
  --gutter: 24px;
  --header-h: 80px;

  --track: 0.08em;        /* nav / button letterspacing */
  --track-wide: 0.16em;   /* eyebrow + role letterspacing */
}

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

body.dr {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dr img { max-width: 100%; display: block; }
.dr a { color: inherit; text-decoration: none; }

.dr :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.dr-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: #fff;
}

/* the header sits wider than the content column, as in the design */
.dr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  max-width: none;
  padding-inline: 40px;
}

/* --- logo lockup --- */
.dr-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

/* the mark's artwork is 378 × 304 */
.dr-brand__mark,
.hero__stamp svg,
.contact-block__mark { display: block; flex: 0 0 auto; aspect-ratio: 378 / 304; }

.dr-brand__mark { width: 41px; }

.dr-brand__word {
  font-family: var(--font-caption);
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- nav --- */
.dr-nav { flex: 0 0 auto; }

.dr-nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dr-nav__item { position: relative; }

.dr-nav__link {
  display: inline-block;
  padding: 8px 6px;
  font-size: 15px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.18s ease;
}

.dr-nav__link:hover { opacity: 0.62; }

/* current page / open section gets the outlined box from the design */
.dr-nav__link[aria-current="page"],
.dr-nav__item.is-open > .dr-nav__link {
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 1;
}

/* --- dropdowns (Properties → Listings/Sold, Explore → Reviews/Media) --- */
.dr-nav__sub {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: 6px 0 10px;
  list-style: none;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.dr-nav__item:hover > .dr-nav__sub,
.dr-nav__item:focus-within > .dr-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dr-nav__sub .dr-nav__link {
  display: block;
  padding: 7px 6px;
  font-size: 14px;
}

/* --- mobile toggle --- */
.dr-burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.dr-burger span,
.dr-burger span::before,
.dr-burger span::after {
  display: block;
  width: 22px; height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.dr-burger span { position: relative; }
.dr-burger span::before,
.dr-burger span::after { content: ""; position: absolute; left: 0; }
.dr-burger span::before { top: -7px; }
.dr-burger span::after  { top: 7px; }

.dr-burger[aria-expanded="true"] span { background: transparent; }
.dr-burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.dr-burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.dr-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.eyebrow {
  font-family: var(--font-caption);
  font-size: 12px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin: 0;
}

/* text link with the design's trailing arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: inherit;
  /* also used on <button> (Read more / View more) - strip the UA chrome */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.arrow-link::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.2s ease;
}

.arrow-link:hover::after { width: 56px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 12px 28px;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--outline {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  min-width: 288px;
}

.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--solid {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-width: 225px;
  min-height: 48px;
}

.btn--solid:hover { background: #262626; border-color: #262626; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.251fr 1fr; /* design: 438pt image : 350pt text */
  gap: 38px;
  align-items: start;
  padding-top: 60px;
}

.hero__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 438 / 323;
  overflow: hidden;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

/* the white lockup sitting over the team photo */
.hero__stamp {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.32);
}

.hero__stamp svg { width: 34px; }

.hero__stamp span {
  font-family: var(--font-caption);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__lede {
  font-family: var(--font-display);
  font-size: 24.5px;
  line-height: 1.385;
  font-weight: 400;
  margin: 0;
}

/* the design centres the button stack within the text column */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 132px;
}

/* ==========================================================================
   Home — rule + story cards
   ========================================================================== */
.rule {
  height: 1px;
  margin: 70px 0 0;
  background: var(--hairline);
  border: 0;
}

.stories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  padding: 63px 0 0;
}

.story__media {
  aspect-ratio: 245 / 200;
  overflow: hidden;
  margin: 0 0 22px;
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story:nth-child(1) .story__media img { object-position: center 22%; }
.story:nth-child(3) .story__media img { object-position: center 18%; }

.story__title {
  font-family: var(--font-caption);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  margin: 0;
}

/* ==========================================================================
   Full-bleed image band
   ========================================================================== */
.band {
  margin-top: 88px;
  height: 484px;
  overflow: hidden;
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* ==========================================================================
   Team grid
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 46px;
  padding-top: 8px;
}

.team-card__media {
  margin: 0 0 18px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.team-card__media img { width: 100%; height: 100%; object-fit: cover; }

.team-card__name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 4px;
}

.team-card__role {
  font-family: var(--font-caption);
  font-size: 12px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.team-card__link {
  display: block;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-strong);
  font-size: 13px;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.team-card__link:hover { opacity: 0.6; }

/* ==========================================================================
   Agent profile
   ========================================================================== */
.agent {
  display: grid;
  grid-template-columns: 373px 1fr;
  gap: 68px;
  padding-top: 54px;
}

.agent__media { margin: 0; aspect-ratio: 373 / 560; overflow: hidden; }
.agent__media img { width: 100%; height: 100%; object-fit: cover; }

.agent__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 10px;
}

.agent__role {
  font-family: var(--font-caption);
  font-size: 13px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin: 0 0 44px;
}

/* design puts email/phone on the left and the social links on the right */
.agent__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  margin: 0 0 42px;
}

.agent__contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 40px;
  margin: 0;
  font-size: 14px;
}

.agent__contact dt {
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.agent__contact dd { margin: 0; }
.agent__contact dd a:hover { opacity: 0.6; }

.agent__social {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  min-width: 170px;
}

.agent__bio p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.62;
}

.agent__cta { margin-top: 30px; }

/* ==========================================================================
   Listings strip (5 across, as in the design)
   ========================================================================== */
.strip { padding-top: 64px; }

.strip__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.listing-card__media {
  margin: 0 0 15px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.listing-card:hover .listing-card__media img { transform: scale(1.04); }

.listing-card__address {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 5px;
}

.listing-card__specs {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.strip__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

.strip__empty {
  margin: 0;
  font-size: 14px;
  color: #5a5a5a;
}

/* ==========================================================================
   Reviews strip
   ========================================================================== */
.reviews-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.review-quote p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.52;
}

.review-quote cite {
  font-family: var(--font-caption);
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
}

/* ==========================================================================
   Shared contact block (repeats on every page in the design)
   ========================================================================== */
/* padding-top only: the `padding` shorthand would wipe .shell's side gutters */
.contact-block { padding-top: 56px; }

/* the design insets the form ~91px from the right edge of the content column */
.contact-block__grid {
  display: grid;
  grid-template-columns: 1.044fr 1fr;
  gap: 56px;
  align-items: start;
  padding-right: 91px;
}

.contact-block__intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 104px;
  align-items: center;
  padding-top: 103px; /* design aligns the blurb with "Enquiry type" */
}

.contact-block__mark { width: 55px; color: var(--ink); }

.contact-block__copy p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 29ch;
}

.contact-block__copy p:last-child { margin-bottom: 0; }

.contact-block__exp {
  width: 72px;
  margin-top: 64px;
  grid-column: 1 / -1;
}

/* --- form --- */
.dr-form { display: block; }

/* design row pitch, label top to label top, is 46px */
.dr-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  margin-bottom: 7px;
}

.dr-field { display: block; }

.dr-field > span {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.dr-field input {
  width: 100%;
  padding: 0 0 4px;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.dr-fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.dr-fieldset legend {
  padding: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* design places the three columns on a fixed 170px pitch; the last label
   ("Property Management") is allowed to run past its column, as it does there */
.dr-checks {
  display: grid;
  grid-template-columns: 170px 170px 1fr;
  gap: 16px 0;
}

/* design order runs across: Buying · Rental · Other / Selling · Property Management */
.dr-check {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  justify-self: start;
}

.dr-check input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 19px; height: 19px;
  margin: 0;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.dr-check input::after {
  content: "";
  width: 10px; height: 10px;
  transform: scale(0);
  background: var(--ink);
  transition: transform 0.12s ease;
}

.dr-check input:checked::after { transform: scale(1); }

.dr-form__message { margin-top: 26px; }

.dr-form__message textarea {
  width: 100%;
  min-height: 106px;
  padding: 13px 15px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  resize: vertical;
}

.dr-form__message textarea::placeholder { color: var(--ink); opacity: 1; }

.dr-form__consent { margin: 24px 0 26px; }

.dr-form__status {
  margin: 0 0 14px;
  font-size: 13px;
  min-height: 1em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.dr-footer { padding: 34px 0 60px; }

.dr-footer__rule {
  height: 1px;
  background: var(--hairline);
  margin-bottom: 18px;
}

.dr-footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dr-footer__row p,
.dr-footer__row a {
  font-family: var(--font-caption);
  font-size: 10px;
  margin: 0;
}

.dr-footer__terms { letter-spacing: 0.25em; text-transform: uppercase; }

/* ==========================================================================
   Dark variant (the Contact page in the design)
   ========================================================================== */
.section--dark {
  background: var(--ink);
  color: #fff;
}

.section--dark .dr-field input,
.section--dark .dr-form__message textarea,
.section--dark .dr-check input { border-color: #fff; color: #fff; }

.section--dark .dr-form__message textarea::placeholder { color: #fff; }
.section--dark .dr-check input::after { background: #fff; }
.section--dark .btn--solid { background: transparent; border-color: #fff; color: #fff; }
.section--dark .btn--solid:hover { background: #fff; color: var(--ink); }
.section--dark .dr-footer__rule { background: rgba(255, 255, 255, 0.34); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .dr-nav__list { gap: 26px; }
  .dr-nav__link { font-size: 14px; }
  .stories { gap: 40px; }
  .btn--outline { min-width: 240px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .dr-burger { display: block; }

  /* the panel is always dark, whichever header variant the page uses -
     without this, light-header pages render black text on the black panel */
  .dr-nav,
  .dr-header--light .dr-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ink);
    color: #fff;
    padding: 8px var(--gutter) 28px;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .dr-nav.is-open { display: block; }

  .dr-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .dr-nav__item { border-top: 1px solid rgba(255, 255, 255, 0.16); }

  .dr-nav__link { display: block; padding: 15px 2px; }

  /* submenus are plain indented items in the panel, never white cards */
  .dr-nav__sub,
  .dr-nav__sub--static,
  .dr-header--light .dr-nav__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 8px 18px;
    background: transparent;
  }

  .dr-nav__sub .dr-nav__link { padding: 11px 2px; opacity: 0.78; }

  /* current page: a left rule reads better here than the desktop outline */
  .dr-nav__link[aria-current="page"],
  .dr-nav__item.is-open > .dr-nav__link {
    box-shadow: none;
    font-weight: 500;
  }

  .dr-nav__sub .dr-nav__link[aria-current="page"] {
    opacity: 1;
    box-shadow: inset 2px 0 0 currentColor;
    padding-left: 12px;
  }

  .dr-brand__word { font-size: 20px; }
  .dr-brand__mark { width: 30px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 40px;
  }

  .hero__lede { font-size: 23px; max-width: none; }
  .hero__actions { margin-top: 8px; align-self: stretch; }
  .btn--outline { width: 100%; min-width: 0; }

  .rule { margin-top: 48px; }
  .stories { grid-template-columns: 1fr; gap: 38px; padding-top: 44px; }
  .story__media { aspect-ratio: 16 / 10; }

  .band { margin-top: 56px; height: 300px; }

  .contact-block__grid { grid-template-columns: 1fr; gap: 40px; padding-right: 0; }
  .contact-block__intro { padding-top: 0; gap: 28px; align-items: start; }
  .contact-block__exp { margin-top: 28px; }

  /* loosen the design's very tight field rhythm to usable tap targets */
  .dr-form__row { gap: 26px; margin-bottom: 18px; }
  .dr-field > span { margin-bottom: 4px; }
  .dr-field input { padding: 6px 0 10px; }
  .dr-checks { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
  .dr-check { white-space: normal; }
  .btn--solid { width: 100%; }

  .dr-footer__row { flex-direction: column; align-items: flex-start; gap: 10px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .agent { grid-template-columns: 1fr; gap: 32px; padding-top: 34px; }
  .agent__media { aspect-ratio: 3 / 2; }
  .agent__role { margin-bottom: 28px; }
  .agent__meta { grid-template-columns: 1fr; gap: 22px; margin-bottom: 28px; }

  .strip { padding-top: 46px; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .reviews-strip { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .hero__figure { aspect-ratio: 4 / 3; }
  .hero__stamp span { font-size: 18px; }
  .hero__stamp img { width: 26px; }
  .dr-form__row { grid-template-columns: 1fr; }
  .dr-checks { grid-template-columns: 1fr; }
  .contact-block__intro { grid-template-columns: 1fr; gap: 18px; }
  .band { height: 220px; }
  .team-grid { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .dr *, .dr *::before, .dr *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Light header variant (agent / listings / detail / explore pages)
   ========================================================================== */
.dr-header--light {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 0;
}

/* only the desktop dropdown needs a solid panel - on mobile the submenu sits
   inside the dark slide-down, so it must stay transparent */
@media (min-width: 901px) {
  .dr-header--light .dr-nav__sub { background: var(--paper); }
}

/* the design shows the Properties / Explore submenu already open on its own
   page - kept absolutely positioned so it never grows the header row */
.dr-nav__sub--static {
  opacity: 1;
  visibility: visible;
  transform: none;
  padding: 2px 0 0;
  background: transparent;
}

.dr-nav__sub--static .dr-nav__link { padding: 6px; }

/* ==========================================================================
   Listings / Sold index
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 26px;
}

.card__media {
  margin: 0 0 22px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card:hover .card__media img { transform: scale(1.04); }

.card__address {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 7px;
}

.card__specs {
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}

.card__sale {
  margin: 6px 0 0;
  font-size: 13px;
  color: #5a5a5a;
}

.count-note {
  margin: 0 0 30px;
  font-size: 14px;
  color: #5a5a5a;
}

/* ==========================================================================
   Property detail
   ========================================================================== */
.detail__hero {
  margin: 0 0 42px;
  aspect-ratio: 1165 / 454;
  overflow: hidden;
  background: #eee;
}

.detail__hero img { width: 100%; height: 100%; object-fit: cover; }

.detail__address {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
  margin: 0 0 44px;
}

.detail__body {
  display: grid;
  grid-template-columns: 1fr 1.32fr;
  gap: 60px;
  align-items: start;
}

.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 23px 0;
  margin: 0 0 54px;
  align-items: center;
}

.spec-list dt {
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 0;
  font-size: 17px;
  position: relative;
  padding-left: 66px;
}

/* the short rule the design draws between label and value */
.spec-list dd::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--ink);
}

.detail__method { margin: 0 0 54px; }

.detail__method dt {
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail__method dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
}

.detail__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 26px;
}

.detail__copy p {
  margin: 0 0 21px;
  font-size: 15px;
  line-height: 1.42;
}

.detail__copy--rest[hidden] { display: none; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 64px;
}

.gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.detail__foot {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 76px;
  align-items: start;
  margin-top: 74px;
}

.agent-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

.agent-card__media { margin: 0 0 18px; aspect-ratio: 2 / 3; overflow: hidden; }
.agent-card__media img { width: 100%; height: 100%; object-fit: cover; }

.agent-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 3px;
}

.agent-card__role {
  font-family: var(--font-caption);
  font-size: 12px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.agent-card__link {
  display: block;
  padding-top: 13px;
  border-top: 1px solid var(--hairline-strong);
  font-size: 13px;
  letter-spacing: var(--track);
  text-transform: uppercase;
}

.detail__map {
  aspect-ratio: 581 / 464;
  border: 0;
  width: 100%;
  background: #eee;
}

/* ==========================================================================
   Explore - media
   ========================================================================== */
.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
  display: block;
}

.video img { width: 100%; height: 100%; object-fit: cover; }

.video::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
}

.video::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}

/* ==========================================================================
   Dark contact page
   ========================================================================== */
.page--dark {
  background: var(--ink);
  color: #fff;
  min-height: 100vh;
}

.page--dark .contact-block__mark { color: #fff; }
.page--dark .dr-field input,
.page--dark .dr-form__message textarea,
.page--dark .dr-check input { border-color: #fff; color: #fff; }
.page--dark .dr-form__message textarea::placeholder { color: #fff; }
.page--dark .dr-check input::after { background: #fff; }
.page--dark .btn--solid { background: transparent; border-color: #fff; color: #fff; }
.page--dark .btn--solid:hover { background: #fff; color: var(--ink); }
.page--dark .dr-footer__rule { background: rgba(255, 255, 255, 0.34); }

/* ==========================================================================
   Responsive additions
   ========================================================================== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .card__address { font-size: 19px; }

  .detail__body { grid-template-columns: 1fr; gap: 38px; }
  .detail__title { font-size: 30px; }
  .detail__foot { grid-template-columns: 1fr; gap: 40px; }
  .gallery { gap: 14px; margin-top: 40px; }
  .videos { grid-template-columns: 1fr; gap: 18px; }
  .spec-list { margin-bottom: 36px; }
  .detail__method { margin-bottom: 36px; }
}

@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .agent-cards { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: 1fr; }
  .detail__hero { aspect-ratio: 4 / 3; }
}
