:root {
  --ink: var(--ur-ink);
  --muted: var(--ur-muted);
  --teal: var(--ur-taupe-600);
  --teal-dark: var(--ur-taupe-700);
  --coral: var(--ur-taupe-600);
  --line: var(--ur-stone-300);
  --soft: var(--ur-ivory-200);
  --surface: var(--ur-ivory-50);
  font-family: var(--ur-font-body);
  color: var(--ink);
  background: var(--surface);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
}

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

img { max-width: 100%; }

[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
.detail-main-photo:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.property-detail-page .detail-page-header {
  color: var(--ur-ink);
}

.property-detail-page .detail-page-header .header-menu {
  justify-content: flex-end;
}

.property-detail-page .detail-page-header .language-switch { display: block; }

.detail-page {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
  padding: 94px 0 84px;
}

.detail-gallery {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: clamp(520px, 52vw, 760px) 82px;
  gap: 0;
  min-height: 0;
}

.detail-main-photo {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y;
}

.detail-main-photo::before,
.detail-main-photo::after { content: none; }

.detail-gallery-loading {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.78) 48%, transparent 66%),
    #f1f4f2;
  background-size: 220% 100%, 100% 100%;
  animation: detail-gallery-loading 1.25s ease-in-out infinite;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.detail-main-photo.is-loading .detail-gallery-loading { opacity: 1; }

@keyframes detail-gallery-loading {
  from { background-position: 150% 0, 0 0; }
  to { background-position: -70% 0, 0 0; }
}

.detail-main-photo > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
  background: transparent;
  filter: none;
  transition: opacity 180ms ease;
}

.detail-gallery-support img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.detail-main-photo > img.is-changing { opacity: 0.45; }

.detail-gallery-support {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 0;
  border-top: 0;
  background: transparent;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(19, 32, 29, 0.24) transparent;
}

.detail-gallery-grid:has(.detail-gallery-support[hidden]) {
  grid-template-rows: clamp(520px, 52vw, 760px);
}

.detail-gallery-support button {
  position: relative;
  width: 108px;
  aspect-ratio: 3 / 2;
  height: auto;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: var(--ur-ivory-200);
  opacity: 0.74;
  cursor: pointer;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.detail-gallery-support button.is-active {
  border-color: var(--teal);
  opacity: 1;
}

.detail-gallery-support button:hover { opacity: 1; }

.detail-gallery-support button span {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 1;
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(8, 22, 18, 0.76);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.detail-gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(19, 32, 29, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(13, 29, 24, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
}

.detail-gallery-nav span {
  font-size: 28px;
  line-height: 1;
}

.detail-gallery-nav--prev { left: 18px; }

.detail-gallery-nav--next { right: 18px; }

.detail-photo-counter {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(19, 32, 29, 0.11);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.detail-photo-counter {
  left: 18px;
  padding: 0 12px;
}

.detail-main-photo.is-empty::before {
  min-height: 320px;
  color: var(--muted);
  content: "Property photos are being prepared";
  font-size: 13px;
  font-weight: 700;
}

.detail-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-top: clamp(52px, 6vw, 76px);
}

.detail-content-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.detail-hero {
  padding: 0;
  border-bottom: 0;
}

.detail-heading { min-width: 0; }

.detail-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-eyebrow,
.detail-section-label,
.detail-contact-kicker {
  margin: 0 0 11px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.detail-heading-meta .detail-eyebrow { margin: 0; }

.detail-heading h1,
.detail-unavailable h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--ur-font-display);
  font-size: clamp(40px, 4vw, 59px);
  font-weight: 500;
  line-height: 1.06;
}

.detail-location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}

.detail-location-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.property-detail-page [data-detail-status],
.property-detail-page [data-detail-reference] {
  position: static;
  inset: auto;
}

[data-detail-reference][hidden] { display: none; }

.detail-favorite {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--teal);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.detail-favorite span { font-family: Arial, sans-serif; font-size: 19px; line-height: 1; }
.detail-favorite.is-saved { border-color: var(--teal); background: var(--teal); color: #ffffff; }
.detail-favorite:focus-visible { outline: 2px solid #ff654f; outline-offset: 3px; }

.detail-available-from {
  width: max-content;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 9px 12px;
  border-left: 2px solid var(--teal);
  background: var(--ur-ivory-200);
  color: var(--ur-taupe-800);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.detail-price {
  margin-top: 27px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
}

.detail-quick-facts {
  display: grid;
  grid-template-columns: repeat(var(--detail-fact-count, 4), minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-block: 1px solid var(--line);
  background: transparent;
}

.detail-quick-facts > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-width: 0;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 17px 20px;
}

.detail-quick-facts > div + div {
  border-left: 1px solid var(--line);
}

.detail-quick-facts > div:first-child { padding-left: 20px; }

.detail-quick-facts > div:last-child { padding-right: 20px; }

.detail-quick-facts > div > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.detail-fact-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--ur-taupe-600);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-quick-facts span {
  color: var(--muted);
  font-family: var(--ur-font-body);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-quick-facts strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--ur-font-body);
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 750;
  line-height: 1;
}

.detail-section--intro {
  max-width: 780px;
  margin-top: 48px;
}

.detail-contact {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
  margin-top: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ur-ivory-100, #f7f3ec);
  box-shadow: var(--ur-shadow-md);
}

.detail-contact h2 {
  margin: 0;
  font-family: var(--ur-font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
}

.detail-contact-agent {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 4px 0 2px;
}

.detail-contact-avatar {
  position: relative;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(43, 39, 36, 0.12);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ur-ivory-200);
}

.detail-contact-avatar img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  transform: translate(-50%, -50%) scale(1.26);
}

.detail-contact-agent-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail-contact-agent strong {
  color: var(--ur-ink);
  font-size: 15px;
  line-height: 1.25;
}

.detail-contact-agent strong span { font-weight: 600; }

.detail-contact-agent small {
  color: var(--ur-muted);
  font-size: 12px;
  font-weight: 650;
}

.detail-contact p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-contact .detail-contact-kicker {
  margin: 0;
  color: var(--teal);
}

.detail-contact-actions {
  display: grid;
  gap: 10px;
}

.detail-contact-action {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.detail-contact-primary {
  background: var(--ur-taupe-700, #6f6258);
  color: var(--ur-ivory-50, #fffdf8);
}

.detail-contact-secondary {
  border: 1px solid var(--ur-taupe-500, #9e8d80);
  background: transparent;
  color: var(--ur-taupe-800, #554b44);
}

.detail-contact-action:hover,
.detail-contact-action:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid var(--ur-taupe-500, #9e8d80);
  outline-offset: 2px;
}

.detail-contact .detail-contact-note {
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.detail-contact .detail-contact-response {
  margin: -2px 0 0;
  color: var(--ur-taupe-700);
  font-size: 11px;
  font-weight: 700;
}

.detail-information {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(44px, 7vw, 90px);
  padding: 56px 0 68px;
  border-bottom: 1px solid var(--line);
}

.detail-copy {
  display: grid;
  gap: 58px;
  min-width: 0;
}

.detail-section h2,
.detail-map-section h2,
.similar-listings h2 {
  margin: 0;
  font-family: var(--ur-font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.16;
}

.detail-description-wrap { position: relative; }

.detail-description-wrap.is-collapsed {
  max-height: 240px;
  overflow: hidden;
}

.detail-description-wrap.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(transparent, #ffffff);
  content: "";
  pointer-events: none;
}

.detail-description {
  max-width: 720px;
  margin: 21px 0 0;
  color: #756c65;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-line;
}

.detail-read-more {
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
  cursor: pointer;
}

.detail-amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin-top: 24px;
}

.detail-amenity-group h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-amenity-group ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-amenity-group li {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 10px;
  color: #5f554d;
  font-size: 14px;
}

.detail-amenity-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
}

.detail-map-section {
  display: grid;
  align-content: start;
  gap: 20px;
}

.detail-map-section > div:first-child > p:last-child {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

/* Keep the detail map complete even when Leaflet's CDN stylesheet is delayed. */
.detail-map.leaflet-container {
  position: relative;
  overflow: hidden;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

.detail-map .leaflet-pane,
.detail-map .leaflet-tile,
.detail-map .leaflet-marker-icon,
.detail-map .leaflet-marker-shadow,
.detail-map .leaflet-tile-container,
.detail-map .leaflet-pane > svg,
.detail-map .leaflet-pane > canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.detail-map .leaflet-map-pane,
.detail-map .leaflet-tile-pane,
.detail-map .leaflet-overlay-pane,
.detail-map .leaflet-shadow-pane,
.detail-map .leaflet-marker-pane,
.detail-map .leaflet-tooltip-pane,
.detail-map .leaflet-popup-pane {
  position: absolute;
  inset: 0;
}

.detail-map .leaflet-map-pane,
.detail-map .leaflet-tile-pane { z-index: 1; }

.detail-map .leaflet-overlay-pane { z-index: 2; }
.detail-map .leaflet-shadow-pane { z-index: 3; }
.detail-map .leaflet-marker-pane { z-index: 4; }
.detail-map .leaflet-tooltip-pane { z-index: 5; pointer-events: none; }
.detail-map .leaflet-popup-pane { z-index: 6; }

.detail-map .leaflet-zoom-animated { transform-origin: 0 0; }

.detail-map.leaflet-container .leaflet-tile,
.detail-map.leaflet-container .leaflet-marker-icon,
.detail-map.leaflet-container .leaflet-marker-shadow {
  max-width: none !important;
  max-height: none !important;
}

.detail-map .leaflet-tile {
  width: 256px;
  height: 256px;
  visibility: hidden;
}

.detail-map .leaflet-tile-loaded { visibility: inherit; }

.detail-map .leaflet-top,
.detail-map .leaflet-bottom {
  position: absolute;
  z-index: 8;
  pointer-events: none;
}

.detail-map .leaflet-top { top: 0; }
.detail-map .leaflet-right { right: 0; }
.detail-map .leaflet-bottom { bottom: 0; }
.detail-map .leaflet-left { left: 0; }

.detail-map .leaflet-control {
  position: relative;
  float: left;
  clear: both;
  pointer-events: auto;
}

.detail-map .leaflet-right .leaflet-control { float: right; }
.detail-map .leaflet-top .leaflet-control { margin-top: 12px; }
.detail-map .leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.detail-map .leaflet-left .leaflet-control { margin-left: 12px; }
.detail-map .leaflet-right .leaflet-control { margin-right: 12px; }

.detail-map .leaflet-bar {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(23, 33, 31, 0.14);
}

.detail-map .leaflet-bar a {
  display: block;
  width: 34px;
  height: 34px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
}

.detail-map .leaflet-bar a:last-child { border-bottom: 0; }

.detail-map .leaflet-control-attribution { font-size: 9px; }

.detail-location-fallback {
  display: grid;
  min-height: 250px;
  place-content: center;
  gap: 8px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  text-align: center;
}

.detail-location-fallback strong {
  color: var(--ink);
  font-size: 17px;
}

.similar-listings { padding: 68px 0 18px; }

.similar-listings-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.similar-listings-heading > a {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.similar-listing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.detail-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.detail-unavailable {
  max-width: 760px;
  margin: 80px auto;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.detail-unavailable p:not(.detail-eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.detail-unavailable a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 17px;
  border-radius: 6px;
  background: var(--teal-dark);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.detail-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, auto);
  min-height: 120px;
  align-items: center;
  gap: 36px;
  padding: 24px max(24px, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.detail-footer-brand {
  display: grid;
  gap: 10px;
}

.detail-footer-brand .brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.detail-footer-brand .brand-symbol {
  width: 40px;
  height: 40px;
}

.detail-footer-brand .brand-name { gap: 0; }

.detail-footer-brand .brand-name strong {
  font-size: 18px;
  line-height: 1;
}

.detail-footer-brand .brand-name small {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.detail-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.detail-footer-legal a {
  color: var(--teal-dark);
  font-size: 12px;
  text-decoration: none;
}

.detail-footer-legal a:hover,
.detail-footer-legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .property-detail-page .detail-page-header .header-menu {
    position: static;
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
  }

  .property-detail-page .detail-page-header .header-actions { justify-content: flex-end; }

  .detail-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(430px, 58vw, 640px) 78px;
  }

  .detail-gallery-grid:has(.detail-gallery-support[hidden]) {
    grid-template-rows: clamp(430px, 58vw, 640px);
  }

  .detail-content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }

  .detail-information {
    grid-template-columns: 1fr;
  }

  .detail-map { height: 380px; }

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

@media (max-width: 900px) {
  .detail-content-layout { grid-template-columns: 1fr; }

  .detail-content-main,
  .detail-contact {
    grid-column: 1;
  }

  .detail-content-main { grid-row: 1; }

  .detail-contact {
    grid-row: 2;
    position: static;
    margin-top: 36px;
  }
}

@media (max-width: 760px) {
  .property-detail-page .detail-page-header .header-inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 10px;
  }

  .property-detail-page .detail-page-header .header-brand-cluster {
    width: 100%;
    justify-content: space-between;
  }

  .property-detail-page .detail-page-header .header-menu {
    width: 100%;
    flex: 0 0 100%;
  }

  .property-detail-page .detail-page-header .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .detail-page {
    width: min(100% - 28px, 680px);
    padding-top: 142px;
  }

  .detail-gallery {
    width: calc(100% + 28px);
    margin-left: -14px;
    border-inline: 0;
    border-radius: 0;
  }

  .detail-gallery-grid {
    display: grid;
    grid-template-rows: clamp(270px, 72vw, 410px) 72px;
    min-height: 0;
  }

  .detail-main-photo > img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .detail-gallery-support {
    display: flex;
    gap: 6px;
    padding: 7px 0 0;
  }

  .detail-gallery-support button {
    width: 84px;
    height: 58px;
  }

  .detail-gallery-grid:has(.detail-gallery-support[hidden]) {
    grid-template-rows: clamp(270px, 72vw, 410px);
  }

  .detail-gallery-nav {
    width: 38px;
    height: 38px;
  }

  .detail-gallery-nav--prev { left: 12px; }

  .detail-gallery-nav--next { right: 12px; }

  .detail-photo-counter { bottom: 12px; }

  .detail-photo-counter { left: 12px; }


  .detail-content-layout { padding-top: 42px; }

  .detail-hero { padding: 0; }

  .detail-heading h1 {
    max-width: 19ch;
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.06;
  }

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

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

  .detail-quick-facts > div {
    min-height: 84px;
    padding: 15px 14px 15px 0;
  }

  .detail-quick-facts > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .detail-quick-facts > div:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 14px;
  }

  .detail-quick-facts > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .detail-contact {
    position: static;
    padding: 24px;
  }

  .detail-contact-agent {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .detail-contact-avatar {
    width: 80px;
    height: 80px;
  }

  .detail-information { padding: 36px 0 48px; }

  .detail-copy { gap: 36px; }

  .detail-amenities { grid-template-columns: 1fr; }

  .detail-map { height: 330px; }

  .similar-listings { padding-top: 48px; }

  .similar-listings-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-footer {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
    padding: 28px 20px;
  }

  .detail-footer-legal { justify-content: flex-start; }

}

@media (max-width: 460px) {
  .back-link {
    gap: 4px;
    max-width: 142px;
    text-align: center;
  }

  .detail-location-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .similar-listing-grid { grid-template-columns: 1fr; }

  .detail-unavailable {
    margin: 40px auto;
    padding: 32px 22px;
  }
}

@media (max-width: 430px) {
  .detail-brand .brand-name small { display: none; }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
