:root {
--page: var(--soft);
--muted: var(--ink-soft);
--line-soft: var(--line);
--blue-soft: var(--sky-soft);
--blue: #1e536f;
--success: #176c44;
}
body[data-property-detail="true"] { background: var(--page); }
.skip-link {
position: fixed;
z-index: 200;
top: -80px;
left: 16px;
padding: 11px 15px;
background: var(--ink);
color: #fff;
}
.visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}

iframe { width: 100%; height: 250px; }

.property-profile-band { border-bottom: 1px solid var(--line-soft); background: var(--soft); padding-block: 30px; }
.property-profile-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.property-profile-bar h1 { margin: 0; font-size: clamp(34px, 8vw, 54px); }
.detail-layout h2 { font-size: clamp(24px, 9.5vw, 34px); margin-bottom: 15px; }
.property-profile-bar .eyebrow { margin-bottom: 7px; }
.property-profile-bar .secondary-button svg { width: 17px; height: 17px; }
.property-hero { padding-block: 32px 24px; }
.property-hero h2 { margin-bottom: 12px; font-size: clamp(22px, 7vw, 42px); }
.hero-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: 30px;
}
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.status {
display: inline-flex;
min-height: 34px;
align-items: center;
border-radius: 9px;
padding: 6px 12px;
background: var(--red);
color: #fff;
font-size: 14px;
font-weight: 800;
}
.listing-id { color: var(--muted); font-size: 14px; font-weight: 700; }
.address {
display: flex;
max-width: 720px;
align-items: flex-start;
gap: 8px;
margin-bottom: 0;
color: var(--muted);
}
.address svg { flex: 0 0 auto; margin-top: 2px; }
.price-block { text-align: right; }
.price-label {
display: block;
margin-bottom: 4px;
color: var(--muted);
font-size: 13px;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
}
.price { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 38px); line-height: 1; }

.gallery {
position: relative;
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
grid-template-rows: repeat(3, 156px);
gap: 12px;
margin-bottom: 26px;
}
.gallery-item {
position: relative;
min-width: 0;
overflow: hidden;
border: 0;
border-radius: 16px;
padding: 0;
background: #dfe3e5;
}
.gallery-item:first-child { grid-row: 1 / span 3; }
.gallery-item img { cursor:pointer; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.018); }
.gallery-item::after {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 65%, rgba(0,0,0,.18));
content: "";
pointer-events: none;
}
.photo-count {
position: absolute;
z-index: 3;
right: 16px;
bottom: 16px;
display: inline-flex;
min-height: 44px;
align-items: center;
gap: 8px;
border: 1px solid rgba(255,255,255,.72);
border-radius: 12px;
padding: 9px 13px;
background: rgba(25, 29, 32, .86);
color: #fff;
font-size: 14px;
font-weight: 800;
box-shadow: 0 8px 22px rgba(0,0,0,.2);
}

.detail-layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
align-items: start;
gap: 28px;
padding-bottom: 72px;
}
.main-column { min-width: 0; }
.content-card, .inquiry-card {
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--paper);
}
.content-card { margin-bottom: 22px; padding: 24px; }
.content-card > :last-child { margin-bottom: 0; }
.section-kicker {
margin-bottom: 8px;
color: var(--red);
font-size: 12px;
font-weight: 900;
letter-spacing: .13em;
text-transform: uppercase;
}
.quick-facts {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0;
padding: 0;
overflow: hidden;
}
.fact {
display: flex;
min-height: 116px;
align-items: center;
gap: 14px;
padding: 20px;
}
.fact + .fact { border-left: 1px solid var(--line-soft); }
.fact-icon {
display: inline-flex;
width: 44px;
height: 44px;
flex: 0 0 44px;
align-items: center;
justify-content: center;
border-radius: 12px;
background: var(--blue-soft);
color: var(--blue);
}
.fact-icon svg { width: 24px; height: 24px; }
.fact-value { display: block; font-family: var(--font-heading); font-size: 22px; line-height: 1.1; }
.fact-label { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.lead { color: #3e484e; font-size: 19px; line-height: 1.65; }
.overview-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0 32px;
margin: 0;
}
.overview-row {
display: flex;
justify-content: space-between;
gap: 16px;
padding-block: 13px;
border-top: 1px solid var(--line-soft);
}
.overview-row dt { color: var(--muted); }
.overview-row dd { margin: 0; font-weight: 800; text-align: right; }
.feature-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px 24px;
margin: 0;
padding: 0;
list-style: none;
}
.feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.feature-list svg { flex: 0 0 auto; margin-top: 2px; color: var(--success); }
.location-visual {
position: relative;
min-height: 250px;
margin-bottom: 18px;
overflow: hidden;
border: 1px solid var(--line-soft);
border-radius: 15px;
background: #e8eef0;
}
.map-art { width: 100%; height: 250px; stroke: none; }
.map-art .road { fill: none; stroke: #fff; stroke-width: 15; }
.map-art .road-minor { fill: none; stroke: #f8fafb; stroke-width: 7; }
.map-art .block { fill: #d9e3de; stroke: #c6d4cd; stroke-width: 1; }
.map-art .park { fill: #c4dec4; }
.map-pin {
position: absolute;
top: 50%;
left: 50%;
display: flex;
width: 52px;
height: 52px;
align-items: center;
justify-content: center;
transform: translate(-50%, -50%);
border: 5px solid #fff;
border-radius: 15px 15px 15px 4px;
background: var(--red);
color: #fff;
box-shadow: 0 9px 22px rgba(74,22,26,.28);
rotate: -45deg;
}
.map-pin svg { width: 22px; height: 22px; rotate: 45deg; }
.location-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.location-footer p { margin-bottom: 0; color: var(--muted); }

.sidebar { position: sticky; top: 96px; }
.inquiry-card { padding: 22px; box-shadow: var(--shadow); }
.agent {
display: grid;
grid-template-columns: 72px 1fr;
align-items: center;
gap: 15px;
padding-bottom: 20px;
border-bottom: 1px solid var(--line-soft);
}
.agent-mark {
display: flex;
width: 72px;
height: 84px;
align-items: center;
justify-content: center;
border-radius: 14px;
background: linear-gradient(145deg, #d9edf8, #eef7fb);
color: var(--blue);
font-family: var(--font-heading);
font-size: 24px;
}
.agent p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.contact-links a {
display: inline-flex;
min-height: 42px;
align-items: center;
gap: 7px;
border-radius: 10px;
padding: 7px 10px;
background: #f3f5f6;
color: #344047;
font-size: 14px;
font-weight: 800;
text-decoration: none;
}
.contact-links a:hover { background: var(--blue-soft); color: var(--blue); }
.form-heading { margin: 22px 0 5px; }
.form-intro { margin-bottom: 18px; color: var(--muted); font-size: 15px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.required { color: var(--red); }
input, select, textarea {
width: 100%;
min-height: 46px;
border: 1px solid #899297;
border-radius: 10px;
padding: 10px 11px;
background: #fff;
}
textarea { min-height: 92px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #596268; }
.primary-button { width: 100%; margin-top: 2px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.form-success {
margin-top: 14px;
border: 1px solid #75af92;
border-radius: 11px;
padding: 12px;
background: #eef8f2;
color: #115f3a;
font-size: 14px;
font-weight: 800; min-height: 46px;
}
.form-success[hidden] { display: none; }
.form-failure {
margin-top: 14px;
border: 1px solid #d88d8d;
border-radius: 11px;
padding: 12px;
background: #fff0f0;
color: #8a2020;
font-size: 14px;
font-weight: 800; min-height: 46px;
}
.form-failure[hidden] { display: none; }

dialog.lightbox {
width: min(1120px, calc(100% - 32px));
max-width: none;
max-height: calc(100dvh - 32px);
margin: auto;
overflow: hidden;
border: 0;
border-radius: 18px;
padding: 0;
background: #151719;
color: #fff;
box-shadow: 0 30px 90px rgba(0,0,0,.5);
}
dialog.lightbox::backdrop { background: rgba(12,14,16,.84); backdrop-filter: blur(4px); }
.lightbox-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 32px); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px; }
.lightbox-bar p { margin-bottom: 0; font-size: 14px; font-weight: 800; }
.icon-button {
display: inline-flex;
width: 44px;
height: 44px;
align-items: center;
justify-content: center;
border: 1px solid rgba(255,255,255,.38);
border-radius: 12px;
padding: 0;
background: rgba(255,255,255,.08);
color: #fff;
}
.icon-button:hover { background: rgba(255,255,255,.17); }
.lightbox-stage { position: relative; display: grid; min-height: 0; place-items: center; padding: 0 68px; }
.lightbox-image { max-width: 100%; max-height: calc(100dvh - 164px); object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-caption { margin: 0; padding: 12px 20px 17px; color: #d9dcde; text-align: center; font-size: 14px; }

@media (max-width: 900px) {
.gallery { grid-template-rows: repeat(3, 124px); }
.detail-layout { grid-template-columns: 1fr; }
.sidebar { position: static; }
.inquiry-card { box-shadow: none; }
}

@media (max-width: 640px) {
.property-profile-band { padding-block: 22px; }
.property-profile-bar { align-items: stretch; flex-direction: column; gap: 14px; }
.property-profile-bar .secondary-button { width: 100%; }
.property-hero { padding-block: 22px 18px; }
.hero-row { grid-template-columns: 1fr; gap: 18px; }
.property-hero h2 { font-size: clamp(39px, 12vw, 55px); }
.price-block { text-align: left; }
.price-label { display: none; }
.gallery {
  display: flex;
  grid-template: none;
  gap: 10px;
  width: calc(100% + 32px);
  margin-left: -16px;
  margin-bottom: 20px;
  padding-inline: 16px;
  overflow-x: auto;
  scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-item,
.gallery-item:first-child {
  width: calc(100vw - 32px);
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 calc(100vw - 32px);
  grid-row: auto;
  scroll-snap-align: center;
}
.photo-count { right: 28px; bottom: 12px; }
.detail-layout { gap: 20px; padding-bottom: 44px; }
.content-card { margin-bottom: 16px; padding: 18px; }
.quick-facts { grid-template-columns: 1fr; }
.fact { min-height: 82px; padding: 15px 17px; }
.fact + .fact { border-top: 1px solid var(--line-soft); border-left: 0; }
.overview-grid, .feature-list { grid-template-columns: 1fr; }
.overview-row:nth-child(2) { border-top: 0; }
.location-footer { align-items: stretch; flex-direction: column; }
.location-footer .secondary-button { width: 100%; }
.inquiry-card { padding: 18px; }
.field-row { grid-template-columns: 1fr; gap: 0; }
.lightbox-stage { padding-inline: 0; }
.lightbox-nav { top: auto; bottom: 8px; transform: none; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-caption { min-height: 68px; padding-inline: 68px; }
}

@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}