/* Theme and base styles. Responsive overrides stay in cascade order. */
@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #1f2e21;
  --muted: #5f665d;
  --primary: #c8260a;
  --navy: #0f3d14;
  --accent: #e8501f;
  --line: #f1e0d3;
  --soft: #fbf2f0;
  --wheel: min(80vw, 1280px);
  --hub: clamp(200px, 16vw, 250px);
  --wheel-lift: calc(var(--wheel) * 0.15);
  --gutter: 5%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding-top: 56px;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.65 Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

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

.icon {
  display: block;
  flex-shrink: 0;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--navy);
  color: white;
  padding: 12px;
}

/* Fixed header and brand. */
.site-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px #0f3d1406;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-header .brand > img {
  width: 109.2px;
  height: auto;
}

.header-note {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Property wheel and room labels. */
.experience {
  overflow: hidden;
  position: relative;
}

.stage {
  height: calc(var(--wheel) / 2 - var(--wheel-lift) + 10px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.circle-shell {
  width: var(--wheel);
  height: var(--wheel);
  position: absolute;
  left: calc(50% - var(--wheel) / 2);
  top: calc(var(--wheel) / -2 - var(--wheel-lift));
  isolation: isolate;
}

.circle-outline {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.property-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--line);
}

.wheel-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: opacity, transform;
}

.wheel-layer.is-outgoing {
  pointer-events: none;
}

.room-panel {
  position: absolute;
  inset: 0;
  cursor: zoom-in;
  outline: none;
}

.room-panel img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.room-panel:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.035);
}

.wheel-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.curved-room-text {
  color: #fff;
  font: 600 12px Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.center-room-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  min-width: clamp(128px, calc(var(--wheel) * 0.14), 175px);
  height: clamp(28px, calc(var(--wheel) * 0.025), 32px);
  padding: 0 18px;
  border-radius: 30px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  box-shadow: none;
}

.center-room-label:hover {
  background: var(--primary);
}

.price-hub {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--wheel-lift));
  transform: translate(-50%, -50%);
  width: var(--hub);
  height: var(--hub);
  border-radius: 50%;
  border: 8px solid white;
  background: #fff;
  color: var(--navy);
  z-index: 3;
  padding: 0;
  box-shadow: none;
  transition: background 0.2s;
}

.price-hub:hover {
  background: var(--soft);
}

.price-hub:focus-visible {
  outline-offset: -4px;
}

.hub-content {
  position: absolute;
  top: calc(50% + 13px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1px;
  transition: opacity 0.55s ease, translate 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-hub.is-switching .hub-content {
  opacity: 0;
  translate: 0 4px;
  transition-duration: 0.45s;
}

.hub-label {
  font-size: 8px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: var(--muted);
}

.hub-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: var(--accent);
  line-height: 1.1;
}

.hub-price strong {
  font-size: 35px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
}

.hub-price small {
  font-size: 14px;
  font-weight: 600;
}

.hub-link {
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

/* Selected property and text transitions. */
.details {
  position: relative;
  z-index: 2;
  isolation: isolate;
  text-align: center;
  padding: 32px 24px 0;
}

.details:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: min(460px, 100%);
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: 110px 110px 0 0;
  pointer-events: none;
}

.eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow:before,
.eyebrow:after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line);
}

.property-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.4px;
  margin: 11px 0 12px;
  color: var(--navy);
}

.description {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 590px;
  margin: 0 auto;
  min-height: 46px;
}

.property-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.property-meta > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.property-meta > span + span {
  padding-left: 19px;
  border-left: 1px solid var(--line);
}

/* External SVG icons. */
.inline-icon {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: middle;
  color: var(--primary);
}

.property-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 12px;
}

.property-tags > span {
  font-size: 11px;
  line-height: 1.3;
  padding-inline: 12px;
  color: var(--muted);
}

.property-tags > span + span {
  border-left: 1px solid var(--line);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 7px;
  padding: 8px 17px;
  margin-top: 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}

.detail-link:hover {
  background: var(--navy);
}

.details {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.details > :not(button),
.details > button > span {
  transition: opacity 0.55s ease;
}

.detail-link-content {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.details.is-switching {
  transform: translateY(9px);
  transition-duration: 0.45s;
}

.details.is-switching > :not(button),
.details.is-switching > button > span {
  opacity: 0;
  transition-duration: 0.45s;
}

/* Property cards and pagination. */
.listing-section {
  width: calc(100% - 2 * var(--listing-gutter, var(--gutter)));
  max-width: none;
  margin: 0 auto;
  padding: 32px 0 0;
}

.listing-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 0 54px 12px;
}

.listing-heading h2 {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.listing-heading h2 b {
  font-weight: 700;
  color: var(--navy);
}

.listing-counter {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.6px;
  font-variant-numeric: tabular-nums;
}

.carousel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 18px;
}

.arrow-button {
  border: 1px solid var(--line);
  width: 36px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.arrow-button:hover {
  background: var(--line);
}

.arrow-button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: wait;
}

.listing-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 2px 8px;
  position: relative;
}

.property-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.property-card > span {
  min-width: 0;
  padding: 0 5px;
}

.property-card strong {
  display: block;
}

.card-facts {
  font-size: 10px;
  color: var(--muted);
}

.card-price {
  color: var(--primary);
}

.property-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.property-card[aria-pressed="true"] {
  background: #fdf3f0;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.property-card[aria-pressed="true"] .card-price {
  color: var(--accent);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 15px 0 0;
}

.pager > button {
  width: 7px;
  height: 4px;
  position: relative;
  padding: 0;
  background: var(--line);
  border-radius: 4px;
  transition: width 0.25s, background 0.25s;
}

.pager > button:before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.pager > button.active {
  width: 24px;
  background: var(--primary);
}

/* Property dialog and photo gallery. */
.dialog-surface {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  width: min(1060px, calc(100% - 48px));
  max-width: 1060px;
  max-height: calc(100svh - 48px);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 25px 100px #0f3d142b;
}

.property-dialog::backdrop {
  background: #0f3a1588;
  backdrop-filter: blur(7px);
}

.property-dialog[open] {
  animation: none;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffffff2;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
}

.dialog-close:hover {
  background: var(--primary);
  color: #fff;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: stretch;
}

.dialog-gallery {
  padding: 20px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.dialog-photo {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.dialog-photo > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.dialog-photo > span {
  position: absolute;
  left: 15px;
  bottom: 15px;
  background: #ffffffeb;
  color: var(--navy);
  font-size: 10px;
  padding: 6px 11px;
  border-radius: 4px;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 38px;
  border-radius: 5px;
  background: #ffffffeb;
  color: var(--navy);
  font-size: 26px;
  display: grid;
  place-items: center;
}

.photo-prev {
  left: 10px;
}

.photo-next {
  right: 10px;
}

.photo-arrow:hover {
  background: #fff;
}

.room-thumbnails {
  display: grid;
  grid-template-columns: repeat(var(--gallery-count, 4), minmax(0, 1fr));
  gap: 10px;
}

.room-thumbnails > button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 0;
  text-align: center;
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}

.room-thumbnails img {
  height: 72px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.room-thumbnails > button[aria-pressed="true"] img {
  opacity: 1;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.room-thumbnails > button:hover img {
  opacity: 1;
}

.detail-panel {
  padding: 40px 32px 28px;
  min-width: 0;
}

.detail-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--primary);
  padding-right: 12px;
  text-transform: uppercase;
}

.detail-panel h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 16px 0;
  color: var(--navy);
}

.detail-copy {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 23px;
}

.detail-facts > div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.detail-facts small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 5px;
}

.detail-facts strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.detail-location {
  grid-column: 1/-1;
  font-size: 11px !important;
  padding: 11px 12px !important;
  color: var(--muted);
}

.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 23px;
}

.detail-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}

.feature-list {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 9px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 8px;
}

.feature-list li:before {
  content: "✓";
  color: var(--primary);
  font-size: 13px;
  flex: none;
}

.detail-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-price-label {
  font-size: 10px;
  color: var(--muted);
}

.detail-price {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 4px;
  color: var(--accent);
}

.detail-price > small {
  font-size: 13px;
  font-weight: 400;
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--primary);
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-height: 44px;
  white-space: nowrap;
}

.save-button > span {
  font-size: 18px;
  line-height: 1;
}

.save-button[aria-pressed="true"] {
  color: var(--primary);
  background: #fdefec;
}

.listing-disclaimer {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 19px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  z-index: 99;
  font-size: 12px;
  max-width: calc(100% - 40px);
  width: max-content;
  box-shadow: 0 8px 25px #0002;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

body:has(dialog[open]) {
  overflow: hidden;
}

@media (max-width: 1150px) {
  :root {
    --wheel: 88vw;
    --hub: 200px;
  }

  .listing-section {
    padding-inline: 0;
  }

  .listing-heading {
    margin-inline: 49px;
  }

  .carousel {
    gap: 13px;
  }

  .card-facts {
    font-size: 9px;
  }

  .detail-panel {
    padding: 37px 25px 25px;
  }

  .detail-panel h2 {
    font-size: 29px;
  }

  .detail-facts > div {
    padding: 11px 9px;
  }
}

@media (max-width: 900px) {
  .header-note {
    display: none;
  }

  .site-header {
    padding-inline: 26px;
  }

  .details {
    padding-top: 28px;
  }

  .details:before {
    width: min(460px, 100%);
    border-radius: 85px 85px 0 0;
  }

  .property-title {
    font-size: 35px;
  }

  .property-meta {
    gap: 14px;
  }

  .property-meta > span + span {
    padding-left: 14px;
  }

  .dialog-layout {
    grid-template-columns: 0.95fr 1fr;
  }

  .dialog-gallery {
    padding: 15px;
    gap: 11px;
  }

  .detail-panel {
    padding: 40px 23px 23px;
  }

  .detail-panel h2 {
    font-size: 26px;
  }

  .detail-copy {
    font-size: 12px;
  }

  .detail-facts strong {
    font-size: 13px;
  }

  .feature-list li {
    font-size: 11px;
  }

  .detail-facts {
    gap: 6px;
  }

  .save-button {
    font-size: 11px;
    padding: 11px 12px;
  }

  .detail-price {
    font-size: 27px;
  }
}

@media (max-width: 650px) {
  :root {
    --wheel: 96vw;
  }

  .site-header {
    height: 52px;
    padding-inline: 19px;
  }

  .brand {
    gap: 7px;
  }

  .site-header .brand > img {
    width: 102.2px;
    height: auto;
  }

  .stage {
    height: calc(var(--wheel) / 2 - var(--wheel-lift) + 6px);
  }

  .hub-content {
    gap: 0;
  }

  .hub-label {
    letter-spacing: 0.3px;
  }

  .curved-room-text {
    font-size: 8.4px;
    letter-spacing: 0;
  }

  .center-room-label {
    min-width: 96px;
    height: 23px;
    padding-inline: 12px;
    font-size: 8.4px;
    letter-spacing: 0;
  }

  .details {
    padding: 20px 21px 0;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
    gap: 8px;
  }

  .eyebrow:before,
  .eyebrow:after {
    width: 17px;
  }

  .property-title {
    font-size: 29px;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 10px 0;
  }

  .description {
    font-size: 12px;
    min-height: 60px;
    max-width: 390px;
  }

  .property-meta {
    gap: 10px;
    flex-wrap: wrap;
    row-gap: 8px;
    margin-top: 13px;
  }

  .property-meta > span {
    font-size: 10px;
    gap: 5px;
  }

  .property-meta > span + span {
    padding-left: 10px;
  }

  .inline-icon {
    width: 14px;
    height: 14px;
  }

  .property-tags {
    margin-top: 11px;
  }

  .property-tags > span {
    font-size: 9px;
    padding-inline: 8px;
  }

  .detail-link {
    font-size: 11px;
    margin-top: 16px;
    padding: 8px 15px;
  }

  .listing-section {
    padding: 26px 0 0;
  }

  .listing-heading {
    margin: 0 33px 11px;
    gap: 12px;
  }

  .listing-heading h2 {
    font-size: 11px;
    line-height: 1.6;
  }

  .listing-counter {
    font-size: 8px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .carousel {
    grid-template-columns: 25px minmax(0, 1fr) 25px;
    gap: 7px;
  }

  .arrow-button {
    width: 25px;
    height: 36px;
    border-radius: 7px;
  }

  .arrow-button .icon {
    width: 14px;
    height: 14px;
  }

  .listing-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 4px 8px;
  }

  .property-card > span {
    padding: 0 2px;
  }

  .card-facts {
    font-size: 8px;
  }

  .pager {
    margin-top: 12px;
  }

  .dialog-surface {
    width: calc(100% - 28px);
    max-height: calc(100svh - 28px);
    border-radius: 12px;
  }

  .dialog-layout {
    display: flex;
    flex-direction: column;
  }

  .dialog-photo {
    flex: auto;
    border-radius: 7px;
  }

  .dialog-photo > span {
    font-size: 9px;
    left: 12px;
    bottom: 12px;
    padding: 5px 9px;
  }

  .dialog-close {
    top: 20px;
    right: 20px;
    width: 31px;
    height: 31px;
    font-size: 23px;
  }

  .room-thumbnails img {
    height: 55px;
  }

  .room-thumbnails > button {
    font-size: 9px;
    gap: 5px;
  }

  .detail-kicker {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .detail-panel h2 {
    font-size: 28px;
    margin-block: 14px;
  }

  .detail-copy {
    font-size: 12px;
  }

  .detail-facts {
    margin-top: 20px;
    gap: 7px;
  }

  .detail-facts > div {
    padding: 11px;
  }

  .detail-facts strong {
    font-size: 14px;
  }

  .detail-facts small {
    font-size: 8px;
  }

  .detail-location {
    font-size: 10px !important;
  }

  .detail-section {
    margin-top: 21px;
    padding-top: 18px;
  }

  .detail-section h3 {
    font-size: 12px;
  }

  .feature-list li {
    font-size: 11px;
  }

  .detail-bottom {
    padding-top: 19px;
    margin-top: 21px;
  }

  .detail-price {
    font-size: 27px;
  }

  .detail-price-label {
    font-size: 9px;
  }

  .save-button {
    font-size: 11px;
    min-height: 43px;
  }

  .listing-disclaimer {
    font-size: 9px;
  }

  .toast {
    font-size: 10px;
    bottom: 18px;
  }
}

@media (max-width: 370px) {
  .property-title {
    font-size: 26px;
  }

  .property-tags > span {
    font-size: 8px;
    padding-inline: 7px;
  }

  .property-meta {
    gap: 8px;
  }

  .property-meta > span + span {
    padding-left: 8px;
  }

  .property-meta > span {
    font-size: 9px;
  }

  .listing-heading h2 {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Footer. */
.site-footer {
  display: block;
  max-width: none;
  margin: 48px 0 0;
  padding: 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-inner {
  max-width: none;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 64px;
  padding: 40px 0 32px;
}

.footer-brand {
  gap: 11px;
}

.footer-brand > img {
  width: 180px;
  height: auto;
}

.footer-intro {
  max-width: 325px;
  margin-top: 17px;
  font-size: 12px;
  line-height: 1.9;
}

.footer-tagline {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin: 1px 0 14px;
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 12px;
  padding: 2px 0;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-note {
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 17px;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 13px;
  background: #fff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.back-top:hover {
  border-color: var(--primary);
}

.back-top span {
  font-size: 16px;
  line-height: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 18px 0 21px;
  font-size: 10px;
}

.footer-disclaimer {
  max-width: 490px;
  text-align: right;
  font-size: 10px;
}

@media (max-width: 900px) {
  .footer-grid {
    gap: 30px;
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

@media (max-width: 650px) {
  .site-footer {
    margin-top: 30px;
    padding-inline: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 24px;
    padding: 30px 0 26px;
  }

  .footer-identity {
    grid-column: 1/-1;
  }

  .footer-intro {
    max-width: 340px;
    margin-top: 14px;
  }

  .footer-tagline {
    font-size: 13px;
  }

  .footer-title {
    font-size: 11px;
    margin-bottom: 10px;
  }

  .footer-nav a,
  .footer-note {
    font-size: 11px;
  }

  .footer-note {
    margin-bottom: 13px;
  }

  .back-top {
    gap: 12px;
    font-size: 10px;
    padding: 7px 10px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 17px 0 22px;
    font-size: 9px;
  }

  .footer-disclaimer {
    text-align: left;
    font-size: 9px;
    max-width: 340px;
  }
}

/* Advisor profile. */
.agent-section {
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #fbf2f0, #fff 75%);
}

.agent-photo {
  background: var(--line);
}

.agent-eyebrow {
  font-weight: 600;
  color: var(--primary);
}

.agent-content h2 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--navy);
}

.agent-lead {
  font-weight: 600;
  color: var(--navy);
}

.agent-description {
  max-width: 550px;
  color: var(--muted);
}

.agent-services {
  list-style: none;
  flex-wrap: wrap;
  margin: 18px 0 0;
  padding: 0;
}

.agent-services li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
}

.agent-services li:before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
}

.agent-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}

.agent-cta:hover {
  background: var(--navy);
}

.agent-cta span[aria-hidden] {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 650px) {
  .agent-services li {
    width: 100%;
  }

  .agent-cta {
    min-height: 41px;
  }

  body {
    padding-top: 52px;
  }

  html {
    scroll-padding-top: 68px;
  }
}

.header-contact {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.header-contact strong {
  color: var(--primary);
  font-weight: 700;
}

.header-contact:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .header-contact {
    position: static;
    transform: none;
    display: flex;
    margin-left: auto;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
    line-height: 1.5;
  }

  .header-contact > span {
    font-size: 9px;
  }

  .header-contact strong {
    font-size: 12px;
  }
}

@media (max-width: 370px) {
  .site-header .brand > img {
    width: 86.8px;
  }

  .header-contact strong {
    font-size: 11px;
  }
}

:root {
  --drawer-width: min(360px, calc(100vw - 70px));
  --drawer-padding: 28px;
}

.site-header {
  padding-right: calc(var(--gutter) + 52px);
  z-index: 80;
}

/* Sidebar navigation. */
.menu-toggle {
  position: fixed;
  top: 11px;
  right: var(--gutter);
  z-index: 100;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.2s;
}

.menu-toggle:hover {
  background: var(--soft);
}

.menu-toggle span {
  position: absolute;
  left: 9px;
  top: 15px;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--primary);
  transition: transform 0.3s, opacity 0.2s;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-5px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(5px);
}

.is-menu-open .menu-toggle {
  right: calc(var(--drawer-width) - var(--drawer-padding) - 34px);
}

.is-menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
  transform: translateX(5px);
}

.is-menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.sidebar-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: #0f3a1545;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s, visibility 0s 0.35s;
}

.site-sidebar {
  position: fixed;
  z-index: 90;
  right: 0;
  top: 0;
  width: var(--drawer-width);
  height: 100dvh;
  padding: 88px var(--drawer-padding) 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -12px 16px 36px #0f3d1412;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0s 0.35s;
}

.is-menu-open {
  overflow: hidden;
}

.is-menu-open .sidebar-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.is-menu-open .site-sidebar {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.sidebar-eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.1px;
  color: var(--primary);
}

.sidebar-top h2 {
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 9px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
}

.sidebar-nav > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
}

.sidebar-nav > a > span:last-child {
  font-size: 16px;
  color: var(--primary);
}

.sidebar-nav > a:hover {
  color: var(--primary);
}

.sidebar-contact {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.sidebar-contact-label {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.sidebar-contact > strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  color: var(--navy);
}

.sidebar-contact > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.8;
}

.sidebar-contact > a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 17px;
  color: var(--primary);
}

.sidebar-contact > a > span {
  font-size: 10px;
}

.sidebar-contact b {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
}

.sidebar-footnote {
  font-size: 10px;
  color: var(--muted);
  margin-top: auto;
  padding-top: 28px;
}

.header-contact {
  transition: opacity 0.2s;
}

@media (max-width: 900px) {
  .site-header {
    padding-right: 76px;
  }

  .header-contact {
    margin-right: 0;
  }

  .menu-toggle {
    right: 26px;
  }
}

@media (max-width: 650px) {
  :root {
    --drawer-padding: 23px;
  }

  .site-header {
    padding-right: 65px;
  }

  .menu-toggle {
    top: 9px;
    right: 19px;
  }

  .site-sidebar {
    padding: 80px var(--drawer-padding) 20px;
  }

  .sidebar-top h2 {
    font-size: 23px;
  }

  .sidebar-contact {
    padding: 18px;
  }

  .sidebar-nav > a {
    padding-block: 15px;
    font-size: 12px;
  }

  .is-menu-open .site-header .brand,
  .is-menu-open .header-contact {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 900px) {
  :root {
    --listing-gutter: 26px;
  }
}

@media (max-width: 650px) {
  :root {
    --listing-gutter: 19px;
  }
}

/* Detailed card content. */
.listing-track .property-card {
  padding: 0;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  align-items: stretch;
}

.property-card > .card-media {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 2.2;
  padding: 0;
  overflow: hidden;
  background: var(--line);
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.property-card:focus-visible .card-cover {
  transform: scale(1.045);
}

.card-type {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fffffff2;
  color: var(--navy);
  padding: 4px 8px;
  border: 1px solid #ffffff8c;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
}

.card-photo-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  background: #0f3d14cc;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  line-height: 1.5;
}

.card-thumbnails {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid #ffffff66;
  background: #ffffff29;
  border-radius: 7px;
  backdrop-filter: blur(5px);
}

.card-thumbnails img {
  width: 48px;
  height: 34px;
  object-fit: cover;
  border: 1.5px solid #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px #0002;
}

.property-card > .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 12px 11px;
  min-width: 0;
}

.property-card .card-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.card-location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--muted);
  margin-top: 6px;
  min-width: 0;
}

.card-location > .inline-icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.card-location > span {
  min-width: 0;
}

.card-location b {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.card-location small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1.5;
}

.card-facts {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-top: 8px;
  white-space: normal;
}

.card-facts > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.card-facts .inline-icon {
  width: 14px;
  height: 14px;
}

.card-highlights {
  display: flex;
  gap: 6px;
  min-width: 0;
  margin-top: 8px;
  overflow: hidden;
}

.card-highlights > span {
  max-width: calc(60% - 3px);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fbf3f1;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}

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

.card-price {
  margin: 0;
  display: block;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.card-unit-price {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 2px;
}

.card-open {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fdf3f0;
  color: var(--primary);
  font-size: 18px;
  flex: none;
}

.property-card[aria-pressed="true"] .card-open {
  background: var(--primary);
  color: white;
}

@media (max-width: 1150px) {
  .property-card .card-name {
    font-size: 14px;
  }

  .property-card > .card-body {
    padding: 12px;
  }

  .card-facts {
    gap: 10px;
  }

  .card-facts > span {
    gap: 4px;
    font-size: 10px;
  }

  .card-thumbnails {
    right: 7px;
    bottom: 7px;
    padding: 3px;
    gap: 4px;
  }

  .card-thumbnails img {
    width: 37px;
    height: 28px;
  }

  .card-type {
    top: 7px;
    left: 7px;
    font-size: 8px;
    padding: 3px 6px;
  }

  .card-photo-count {
    left: 7px;
    bottom: 7px;
    font-size: 8px;
  }

  .card-price {
    font-size: 17px;
  }

  .card-highlights > span {
    font-size: 8px;
  }
}

@media (max-width: 650px) {
  .listing-track .property-card {
    padding: 0;
    gap: 0;
    border-radius: 9px;
  }

  .property-card > .card-media {
    aspect-ratio: 1.45;
  }

  .property-card > .card-body {
    padding: 8px 9px 9px;
  }

  .property-card .card-name {
    font-size: 12px;
    line-height: 1.4;
    min-height: 0;
  }

  .card-type {
    top: 6px;
    left: 6px;
    font-size: 7px;
    padding: 3px 5px;
    max-width: calc(100% - 12px);
  }

  .card-photo-count {
    left: 6px;
    bottom: 6px;
    font-size: 7px;
    padding: 2px 4px;
  }

  .card-thumbnails {
    right: 5px;
    bottom: 5px;
    padding: 2px;
    gap: 3px;
    border-radius: 4px;
  }

  .card-thumbnails img {
    width: 27px;
    height: 21px;
    border-width: 1px;
    border-radius: 2px;
  }

  .card-location {
    margin-top: 5px;
    gap: 4px;
  }

  .card-location > .inline-icon {
    width: 11px;
    height: 11px;
    margin-top: 2px;
  }

  .card-location b {
    font-size: 9px;
  }

  .card-location small {
    font-size: 8px;
  }

  .card-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 8px;
  }

  .card-facts > span {
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    align-items: flex-start;
  }

  .card-facts .inline-icon {
    width: 13px;
    height: 13px;
  }

  .card-highlights {
    margin-top: 7px;
    margin-bottom: 6px;
    gap: 4px;
  }

  .card-highlights > span {
    max-width: 100%;
    font-size: 8px;
    padding: 2px 5px;
  }

  .card-highlights > span + span {
    display: none;
  }

  .card-price-row {
    padding-top: 8px;
    margin-top: auto;
    gap: 6px;
  }

  .card-price {
    font-size: 16px;
  }

  .card-unit-price {
    font-size: 8px;
    margin-top: 2px;
  }

  .card-open {
    width: 22px;
    height: 22px;
    font-size: 15px;
  }

  .details {
    padding-top: 26px;
  }

  .details:before {
    width: 54%;
    border-radius: 12vw 12vw 0 0;
  }

  :root {
    --hub: clamp(100px, 22vw, 136px);
  }

  .price-hub {
    border-width: 5px;
  }

  .hub-content {
    top: calc(50% + 4px);
  }

  .hub-label {
    font-size: 5.5px;
    line-height: 1.4;
  }

  .hub-price strong {
    font-size: clamp(21px, 5vw, 27px);
    line-height: 1.1;
  }

  .hub-price small {
    font-size: 10px;
  }

  .hub-link {
    font-size: 6.5px;
    line-height: 1.3;
  }
}

@media (max-width: 370px) {
  .property-card .card-name {
    font-size: 11px;
  }

  .card-price {
    font-size: 15px;
  }

  .property-card > .card-body {
    padding-inline: 8px;
  }
}

@media (min-width: 651px) {
  .card-location > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
  }

  .card-location small {
    margin-top: 0;
  }

  .card-location small:before {
    content: "·";
    margin-right: 5px;
  }

  .card-highlights {
    margin-bottom: 8px;
  }

  .card-price-row {
    margin-top: auto;
  }
}

@media (min-width: 880px) {
  .listing-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1152px) {
  .listing-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .listing-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .details,
  .details > *,
  .details > button > span,
  .hub-content {
    transition: none;
  }
}

/* Price-circle loading and dialog morph. */
.hub-loading {
  position: absolute;
  inset: -8px;
  display: none;
  border-radius: 50%;
  pointer-events: none;
}

.hub-loading > span {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px #c8260a30;
  opacity: 0;
  animation: hub-loading-wave 1.7s ease-out infinite;
}

.hub-loading > span:nth-child(2) {
  animation-delay: -0.57s;
}

.hub-loading > span:nth-child(3) {
  animation-delay: -1.14s;
}

@keyframes hub-loading-wave {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hub-loading > span {
    animation: none;
    opacity: 0.35;
  }

  .hub-loading > span:nth-child(2) {
    transform: scale(1.2);
    opacity: 0.2;
  }

  .hub-loading > span:nth-child(3) {
    transform: scale(1.4);
    opacity: 0.1;
  }
}

.dialog-price-preview {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  pointer-events: none;
}

.is-morphing .dialog-surface {
  inset: auto;
  margin: 0;
  max-width: none;
  max-height: none;
  overflow: hidden;
  border-color: transparent;
}

.is-morphing .dialog-price-preview {
  display: flex;
}

.is-morphing .dialog-layout {
  width: var(--morph-width);
}

.is-morphing .dialog-layout,
.is-morphing .dialog-close {
  opacity: 0;
  pointer-events: none;
}

.price-hub.is-morph-source {
  visibility: hidden;
}

.property-dialog[open]::backdrop {
  animation: dialog-backdrop-in 0.5s ease both;
}

@keyframes dialog-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-dialog[open]::backdrop {
    animation: none;
  }
}

.property-dialog:focus,
.property-dialog:focus-visible {
  outline: none;
}

.property-dialog.is-closing::backdrop {
  animation: dialog-backdrop-out 1.65s ease both;
}

@keyframes dialog-backdrop-out {
  0%,
  60% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .property-dialog.is-closing::backdrop {
    animation: none;
  }
}

.property-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  color: var(--ink);
}

.dialog-center-loading {
  inset: auto;
  left: 50%;
  top: 50%;
  width: var(--morph-circle);
  height: var(--morph-circle);
  translate: -50% -50%;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}

.is-opening .dialog-center-loading {
  display: block;
}

.listing-track.is-paging {
  overflow: hidden;
  pointer-events: none;
}

.listing-outgoing {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
}

.pager > button[aria-disabled="true"] {
  cursor: wait;
}

/* Overview support actions. */
.property-overview {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(46vw, 690px)) minmax(
      0,
      1fr
    );
  gap: clamp(18px, 1.7vw, 32px);
  align-items: center;
  width: calc(100% - 2 * var(--gutter));
  margin: calc(40px - var(--wheel) * 0.15) auto 0;
}

.property-overview .details {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: none;
  margin: 0;
}

.overview-aside {
  min-width: 0;
  margin-top: 30px;
}

.overview-aside h2 {
  color: var(--navy);
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.45px;
}

.overview-aside p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin-top: 7px;
}

.home-finder {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-finder-art {
  width: clamp(62px, 5.8vw, 100px);
  height: auto;
  flex: none;
}

.home-finder-copy {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  min-width: 0;
}

.overview-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding: 5px 16px;
  margin-top: 12px;
  border: 1px solid var(--primary);
  border-radius: 24px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.overview-explore:hover {
  background: var(--primary);
  color: #fff;
}

.overview-explore > span[aria-hidden] {
  font-size: 16px;
  line-height: 1;
}

.quick-contact {
  grid-column: 3;
  grid-row: 1;
  padding: 19px;
  border: 1px solid #f1e0dc;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 15px #0f3d140d, 0 2px 3px #0f3d1405;
}

.quick-contact-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quick-contact-heading > .quick-contact-icon {
  width: 39px;
  height: 39px;
  flex: none;
  color: var(--primary);
}

.quick-contact-heading > div {
  border-left: 1px solid #ecd5cf;
  padding-left: 16px;
  min-width: 0;
}

.quick-contact h2 {
  font-size: clamp(16px, 1.16vw, 21px);
}

.quick-contact p {
  font-size: 11px;
  margin-top: 5px;
}

.quick-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.quick-contact-actions > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.quick-contact-actions img {
  width: 18px;
  height: 18px;
  flex: none;
}

.quick-call {
  background: var(--primary);
  color: #fff;
}

.quick-call:hover {
  background: var(--navy);
}

.quick-message {
  color: var(--primary);
  background: #fff;
}

.quick-message:hover {
  background: var(--soft);
}

@media (max-width: 1350px) and (min-width: 1024px) {
  .home-finder {
    gap: 10px;
  }

  .home-finder-art {
    width: 44px;
  }

  .home-finder-copy {
    padding-left: 10px;
  }

  .overview-aside p {
    font-size: 11px;
  }

  .overview-explore {
    padding-inline: 8px;
    gap: 6px;
    font-size: 11px;
  }

  .overview-explore > span[aria-hidden] {
    font-size: 14px;
  }

  .quick-contact {
    padding: 14px;
  }

  .quick-contact-heading {
    gap: 9px;
  }

  .quick-contact-heading > .quick-contact-icon {
    width: 28px;
    height: 28px;
  }

  .quick-contact-heading > div {
    padding-left: 9px;
  }

  .quick-contact-actions {
    gap: 7px;
  }

  .quick-contact-actions > a {
    font-size: 11px;
    padding-inline: 6px;
    gap: 6px;
  }

  .quick-contact-actions img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 1023px) {
  .property-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .property-overview .details {
    grid-column: 1;
    grid-row: 1;
    max-width: 790px;
    margin-inline: auto;
  }

  .property-overview .overview-aside {
    display: none;
  }
}

@media (max-width: 650px) {
  .property-overview {
    width: 100%;
    margin-top: calc(18px - var(--wheel) * 0.15);
  }

  .listing-section {
    --listing-gutter: 12px;
  }

  .listing-heading {
    margin-inline: 2px;
  }

  .listing-heading h2 {
    max-width: none;
  }

  .carousel {
    display: block;
    position: relative;
  }

  .carousel > .arrow-button {
    position: absolute;
    top: calc((100vw - 38px) / 5.8 + 4px);
    transform: translateY(-50%);
    z-index: 4;
    width: 32px;
    height: 44px;
    border-radius: 9px;
    background: #fffffff5;
    box-shadow: 0 3px 10px #0f3d1412;
  }

  .carousel > #previous {
    left: -10px;
  }

  .carousel > #next {
    right: -10px;
  }

  .carousel > .arrow-button:hover {
    background: #fdf3f0;
  }

  .carousel > .arrow-button:before {
    content: "";
    position: absolute;
    inset: 0 -6px;
  }

  .listing-track {
    gap: 10px;
    touch-action: pan-y pinch-zoom;
  }

  .details .description {
    min-height: 0;
  }

  .details .property-meta {
    margin-top: 8px;
  }

  :root {
    --wheel-lift: 6px;
  }
}

.details:before {
  clip-path: var(--room-label-notch, none);
}

.property-wheel {
  clip-path: var(--rim-label-notch, none);
}

.circle-outline {
  clip-path: var(--rim-outline-notch, none);
}

.wheel-labels .curved-room-text {
  transition: opacity 0.55s ease;
}

.wheel-labels.is-switching .curved-room-text {
  opacity: 0;
  transition-duration: 0.45s;
}

/* Dialog tabs, map and contact. */
.detail-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 22px;
}

.detail-tabs > [role="tab"] {
  position: relative;
  padding: 0 0 12px;
  background: none;
  font: 600 12px/1.5 Inter, Arial, sans-serif;
  color: var(--muted);
  white-space: nowrap;
}

.detail-tabs > [aria-selected="true"] {
  color: var(--primary);
}

.detail-tabs > [aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}

.detail-tab-panel {
  animation: detail-tab-in 0.22s ease;
}

.detail-tab-panel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
  border-radius: 4px;
}

@keyframes detail-tab-in {
  from {
    opacity: 0.35;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-heading h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 5px;
}

.map-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.property-map {
  height: 300px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--soft);
  margin-top: 16px;
}

.property-map iframe {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.map-external {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.map-external:hover {
  background: var(--soft);
}

.map-note,
.modal-contact-note {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 12px;
}

.modal-advisor {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.modal-advisor img {
  object-position: 50% 35%;
  flex: none;
}

.modal-advisor > div {
  min-width: 0;
  flex: 1;
}

.modal-advisor > div > span {
  font-size: 8px;
  letter-spacing: 0.65px;
  font-weight: 600;
  color: var(--muted);
}

.modal-advisor h3 {
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
  font-weight: 800;
  margin: 4px 0;
}

.modal-advisor > div > a {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
}

.advisor-call {
  font-size: 10px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  white-space: nowrap;
}

.modal-contact-intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 16px;
}

.modal-contact-form {
  margin-top: 18px;
}

.modal-contact-form > .contact-submit {
  margin-top: 16px;
  width: 100%;
}

.modal-contact-form textarea {
  min-height: 95px;
}

.modal-contact-form > input[type="hidden"] {
  display: none;
}

@media (max-width: 650px) {
  .detail-tabs {
    gap: 25px;
  }

  .detail-tabs > [role="tab"] {
    font-size: 12px;
  }

  .property-map {
    height: 280px;
  }

  .modal-advisor {
    padding: 12px;
    gap: 11px;
  }

  .modal-advisor h3 {
    font-size: 18px;
  }

  .modal-advisor > div > span {
    font-size: 7px;
  }

  .advisor-call {
    display: none;
  }

  .modal-contact-form .contact-fields {
    grid-template-columns: 1fr;
  }

  .map-heading h3 {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-tab-panel {
    animation: none;
  }
}

/* Aligned advisor and contact blocks. */
.agent-contact-section,
.footer-inner {
  --cards-inset: 56px;
  width: calc(
    100% - 2 * var(--listing-gutter, var(--gutter)) - 2 * var(--cards-inset)
  );
}

.agent-contact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 44px auto 0;
  align-items: stretch;
}

.agent-contact-section > .agent-section {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

.agent-contact-section .agent-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 270px;
  aspect-ratio: auto;
  border-radius: 10px;
  overflow: hidden;
}

.agent-contact-section .agent-photo img {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--agent-photo-position, 50% 15%);
}

.agent-contact-section .agent-content {
  padding: 0;
  min-width: 0;
}

.agent-contact-section .agent-eyebrow {
  font-size: 9px;
  letter-spacing: 0.8px;
  line-height: 1.7;
}

.agent-contact-section .agent-content h2 {
  font-size: 32px;
  margin: 9px 0;
}

.agent-contact-section .agent-lead {
  font-size: 16px;
  line-height: 1.5;
}

.agent-contact-section .agent-description {
  font-size: 12px;
  line-height: 1.85;
  margin-top: 13px;
}

.agent-contact-section .agent-services {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.agent-contact-section .agent-services li {
  font-size: 10px;
  line-height: 1.5;
}

.agent-contact-section .agent-cta {
  margin-top: 20px;
  font-size: 11px;
  padding: 10px 13px;
  gap: 16px;
}

.contact-section {
  padding: 28px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 80px;
}

.contact-heading h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0;
}

.contact-heading > p:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 410px;
}

.contact-form {
  margin-top: 22px;
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy);
  min-width: 0;
}

.contact-form label > span {
  display: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  font: 400 12px/1.5 Inter, Arial, sans-serif;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  padding: 10px 11px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form input,
.contact-form select {
  height: 41px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 84px;
  max-height: 240px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9b8782;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #c8260a12;
  background: #fff;
}

.contact-message {
  margin-top: 14px;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.contact-submit-row p {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 185px;
}

.contact-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 19px;
  background: var(--primary);
  color: #fff;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-submit:hover {
  background: var(--navy);
}

.contact-submit > span {
  font-size: 17px;
}

.contact-phone {
  display: block;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-phone strong {
  color: var(--primary);
  font-weight: 600;
  margin-left: 5px;
  white-space: nowrap;
}

.contact-status {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 14px;
  padding: 11px 13px;
  background: var(--soft);
  border-radius: 7px;
  color: var(--muted);
}

.contact-status a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1350px) and (min-width: 1001px) {
  .agent-contact-section {
    gap: 18px;
  }

  .agent-contact-section > .agent-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    padding: 20px;
    gap: 18px;
  }

  .agent-contact-section .agent-content h2 {
    font-size: 28px;
  }

  .agent-contact-section .agent-lead {
    font-size: 14px;
  }

  .agent-contact-section .agent-eyebrow {
    font-size: 8px;
  }

  .agent-contact-section .agent-description {
    font-size: 11px;
  }

  .contact-section {
    padding: 22px;
  }

  .contact-heading h2 {
    font-size: 23px;
  }

  .contact-submit-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .contact-submit-row p {
    max-width: none;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (max-width: 1150px) {
  .agent-contact-section,
  .footer-inner {
    --cards-inset: 51px;
  }
}

@media (max-width: 1000px) {
  .agent-contact-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .agent-contact-section > .agent-section {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    padding: 25px;
    gap: 30px;
  }

  .agent-contact-section .agent-photo {
    min-height: 280px;
  }

  .contact-section {
    padding: 28px;
  }

  .contact-heading h2 {
    font-size: 26px;
  }
}

@media (max-width: 650px) {
  .agent-contact-section,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .agent-contact-section {
    margin-top: 30px;
    gap: 16px;
  }

  .agent-contact-section > .agent-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    border-radius: 12px;
  }

  .agent-contact-section .agent-photo {
    min-height: 0;
    height: auto;
    border-radius: 0;
    aspect-ratio: 1;
  }

  .agent-contact-section .agent-photo img {
    height: 100%;
    object-position: var(--agent-mobile-photo-position, 50% 12%);
  }

  .agent-contact-section .agent-content {
    padding: 23px 21px;
  }

  .agent-contact-section .agent-content h2 {
    font-size: 29px;
  }

  .agent-contact-section .agent-eyebrow {
    font-size: 8px;
  }

  .agent-contact-section .agent-lead {
    font-size: 16px;
  }

  .agent-contact-section .agent-services li {
    font-size: 11px;
  }

  .contact-section {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .contact-heading h2 {
    font-size: 24px;
  }

  .contact-fields {
    gap: 13px 11px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .contact-form input,
  .contact-form select {
    height: 44px;
  }

  .contact-form label {
    font-size: 11px;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .contact-submit-row p {
    max-width: none;
  }

  .contact-submit {
    width: 100%;
    min-height: 44px;
  }

  .contact-phone {
    font-size: 11px;
  }
}

.modal-advisor-avatar {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--line);
}

.modal-advisor-avatar img {
  position: absolute;
  width: var(--avatar-width, 250%);
  max-width: none;
  height: auto;
  left: var(--avatar-left, -87.5%);
  top: var(--avatar-top, -20%);
  border-radius: 0;
  object-fit: contain;
}

@media (max-width: 650px) {
  .modal-advisor-avatar {
    width: 48px;
    height: 48px;
  }

  .modal-advisor-avatar img {
    width: var(--avatar-width, 250%);
    height: auto;
  }
}

/* External SVG icons load as ordinary images, including from file://. */
.inline-icon {
  display: inline-block;
  object-fit: contain;
}

.agent-eyebrow {
  text-transform: uppercase;
}

@media (max-width: 650px) {
  .room-thumbnails {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 3px 2px 5px;
    scroll-snap-type: x proximity;
  }

  .room-thumbnails > button {
    flex: 0 0 calc((100% - 30px) / 4);
    min-width: 64px;
    scroll-snap-align: start;
  }
}

/* Stable popup height. */
.dialog-surface {
  height: min(var(--dialog-height, 760px), calc(100svh - 48px));
  overflow: hidden;
}

.dialog-layout {
  height: 100%;
  min-height: 0;
}

.dialog-gallery {
  min-height: 0;
  overflow: hidden;
}

.dialog-photo {
  min-height: 0;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.detail-kicker,
.detail-panel > h2,
.detail-tabs {
  flex-shrink: 0;
}

.detail-tab-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 5px;
}

@media (max-width: 650px) {
  .dialog-surface {
    height: min(var(--dialog-height, 760px), calc(100svh - 28px));
  }

  .dialog-gallery {
    flex: 0 0 clamp(190px, 34svh, 280px);
    gap: 8px;
    padding: 12px;
  }

  .dialog-photo {
    height: auto;
    min-height: 0;
  }

  .room-thumbnails {
    flex: none;
  }

  .detail-panel {
    flex: 1;
    padding: 18px 20px 20px;
  }

  .detail-tabs {
    margin: 12px 0 16px;
  }
}

@media (max-width: 650px) and (max-height: 520px) {
  .dialog-gallery {
    flex-basis: 130px;
  }

  .room-thumbnails {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .room-panel:hover img {
    transform: scale(1.04);
    filter: brightness(1.035);
  }

  .property-card:hover .card-cover {
    transform: scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-panel img,
  .property-card .card-cover {
    transform: none !important;
    transition: none;
  }
}

/* Interactive wheel uses native CSS geometry; no SVG fetch or local server. */
.panel-divider {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: left center;
  background: #fff;
  pointer-events: none;
}
.curved-room-label {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: #0f3d14d9;
  pointer-events: auto;
  cursor: zoom-in;
}
.curved-room-label:focus-visible {
  background: var(--primary);
}
.curved-room-text {
  pointer-events: none;
}
.curved-room-text > span {
  position: absolute;
  white-space: pre;
  line-height: 1;
}

/* Configuration notices appear only when editable content needs attention. */
.content-notice {
  width: calc(100% - 2 * var(--gutter));
  margin: 16px auto;
  padding: 14px 18px;
  border: 1px solid #e4b55f;
  border-radius: 10px;
  background: #fffaf0;
  color: #674710;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.content-notice h2 {
  font-size: 14px;
  margin-bottom: 5px;
}
.content-notice summary {
  cursor: pointer;
}
.content-notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
img[data-image-error] {
  opacity: 0;
}
.hub-label {
  text-transform: uppercase;
}
