/* ============================================================
   Strong Star — Public MVP UI kit
   Hi-fi screen styling. Composes design-system tokens (styles.css).
   Aesthetic: Airbnb warmth × Stripe clarity × Linear precision.
   ============================================================ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.82);
  --blur-sm: blur(8px);
  --blur-md: blur(14px);
  --topbar-h: 64px;
  --z-sticky: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-sans); color: var(--text-strong); background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* lucide icon base size — container rules below override on equal specificity */
svg.lucide { width: 18px; height: 18px; flex: none; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1340px; }

/* ---------- Eyebrow (brand signature) ---------- */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-wider); text-transform: uppercase;
  color: var(--gold-700); display: inline-flex; align-items: center; gap: 11px; }
.eyebrow::before { content: ""; width: 24px; height: 1.5px; background: var(--rule-gold); }
.eyebrow.on-dark { color: var(--gold-500); } .eyebrow.on-dark::before { background: var(--gold-500); }
.eyebrow.center { justify-content: center; }

.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); height: var(--topbar-h);
  background: var(--glass-bg); backdrop-filter: var(--blur-md); -webkit-backdrop-filter: var(--blur-md);
  border-bottom: 1px solid var(--hairline); }
.site-header .bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-lockup img { height: 30px; }
.brand-lockup .wm { font-weight: 700; font-size: 16px; letter-spacing: .01em; color: var(--brand-strong); }
.brand-lockup .wm .star { color: var(--gold-600); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 13px; font-size: 14px; font-weight: 500; color: var(--text-body); border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard); cursor: pointer; }
.site-nav a:hover { color: var(--brand-strong); background: var(--green-50); }
.site-nav a.active { color: var(--brand-strong); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-link { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-body); cursor: pointer; transition: background var(--duration-fast); }
.icon-link:hover { background: var(--green-50); }
.icon-link svg { width: 19px; height: 19px; }

/* =====================================================
   PHOTO PLACEHOLDER SYSTEM (warm architectural duotones)
   Swap for real listing photos: replace .photo background-image.
   ===================================================== */
.photo { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.photo > img { height: 100%; object-fit: cover; width: 100%; }
.photo .ph-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.42); }
.photo .ph-icon svg { width: 30%; height: 30%; max-width: 96px; max-height: 96px; stroke-width: 1; }
.photo::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(16,35,26,.18); pointer-events: none; }
.photo.tint::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,38,28,.55) 100%); pointer-events: none; z-index: 1; }
/* scenes */
.sc-1 { background-image: linear-gradient(150deg,#dfe5dd 0%,#b6c5b6 45%,#7f9382 100%); }
.sc-2 { background-image: linear-gradient(155deg,#e9e2d2 0%,#cdbf9e 50%,#9c8c66 100%); }
.sc-3 { background-image: linear-gradient(160deg,#cfd9dc 0%,#9fb0b6 48%,#6c7e84 100%); }
.sc-4 { background-image: linear-gradient(150deg,#e6dcc9 0%,#c9a98a 52%,#8f6f55 100%); }
.sc-5 { background-image: linear-gradient(155deg,#dde6e0 0%,#a9c2b3 50%,#6f9079 100%); }
.sc-6 { background-image: linear-gradient(160deg,#e4e7ea 0%,#b9bcc2 50%,#7e8a93 100%); }
.sc-dusk { background-image: linear-gradient(170deg,#cdb89a 0%,#9b8468 45%,#3a4a3e 100%); }

/* =====================================================
   PROPERTY CARD
   ===================================================== */
.pcard { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-xs); cursor: pointer;
  transition: box-shadow var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pcard .pc-photo { aspect-ratio: 4 / 3; }
.pcard .pc-top { position: absolute; inset: 12px 12px auto 12px; display: flex; align-items: flex-start; gap: 6px; z-index: 2; }
.pcard .pc-fav { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--glass-bg);
  backdrop-filter: var(--blur-sm); display: flex; align-items: center; justify-content: center; color: var(--brand-strong);
  cursor: pointer; transition: transform var(--duration-fast); }
.pcard .pc-fav:hover { transform: scale(1.08); }
.pcard .pc-fav svg { width: 17px; height: 17px; }
.pcard .pc-fav.on { color: var(--danger-600); }
.pcard .pc-body { padding: 14px 16px 16px; }
.pcard .pc-price { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--brand-strong); letter-spacing: -0.02em; }
.pcard .pc-fair { font-size: 11px; font-weight: 600; color: var(--success-600); display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.pcard .pc-fair svg { width: 13px; height: 13px; }
.pcard .pc-title { font-size: 15px; font-weight: 600; color: var(--text-strong); margin: 7px 0 2px; letter-spacing: -0.01em; }
.pcard .pc-loc { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.pcard .pc-loc svg { width: 13px; height: 13px; color: var(--gold-700); }
.pcard .pc-specs { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.pcard .spec { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-body); }
.pcard .spec svg { width: 15px; height: 15px; color: var(--text-muted); }

/* photo badge (energy / status) */
.photo-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--glass-bg); backdrop-filter: var(--blur-sm); color: var(--brand-strong); }
.photo-badge svg { width: 12px; height: 12px; }
.photo-badge.solid { background: var(--green-900); color: var(--cream-100); }
.photo-badge.gold { background: var(--gold-600); color: var(--green-950); }
.photo-badge.ai { background: rgba(226,236,247,.9); color: var(--info-600); }

/* energy class chip color coding */
.energy { font-weight: 700; }
.energy-A { color: #1E7A4D; } .energy-B { color: #4F9A3C; } .energy-C { color: #C8A61E; }
.energy-D { color: #C8861E; } .energy-E { color: #C0392B; }

/* =====================================================
   VALUE / AI WIDGET (subtle, data-driven)
   ===================================================== */
.value-widget { border: 1px solid var(--info-600); border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--info-100), var(--surface-card) 70%); padding: 14px 16px; }
.value-widget .vw-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--info-600); }
.value-widget .vw-head svg { width: 14px; height: 14px; }
.value-widget .vw-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.value-widget .vw-est { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--brand-strong); letter-spacing: -0.02em; }
.value-widget .vw-tag { font-size: 12px; font-weight: 700; color: var(--success-600); }
.value-widget .vw-bar { height: 7px; border-radius: var(--radius-pill); margin-top: 10px;
  background: linear-gradient(90deg, var(--gold-300), var(--green-400), var(--gold-300)); position: relative; }
.value-widget .vw-bar .mk { position: absolute; top: -3px; width: 3px; height: 13px; border-radius: 2px; background: var(--green-900); }
.value-widget .vw-range { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); margin-top: 6px; }

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section { padding: 64px 0; }
.section.tight { padding: 44px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 30px; letter-spacing: -0.01em;
  color: var(--brand-strong); margin: 12px 0 0; line-height: 1.1; }
.section-head p { font-size: 14px; color: var(--text-muted); margin: 8px 0 0; max-width: 460px; line-height: 1.5; }
.see-all { font-size: 13.5px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }
.see-all svg { width: 15px; height: 15px; transition: transform var(--duration-fast); }
.see-all:hover svg { transform: translateX(3px); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { margin-top: auto; background: var(--green-950); color: var(--green-200); padding: 56px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .fbrand img { height: 34px; margin-bottom: 16px; }
.site-footer .fbrand p { font-size: 13px; line-height: 1.6; color: var(--green-300); max-width: 280px; }
.site-footer h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-500); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer ul a { font-size: 13.5px; color: var(--green-200); cursor: pointer; transition: color var(--duration-fast); }
.site-footer ul a:hover { color: var(--cream-100); }
.site-footer .fbot { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(212,166,89,.18);
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--green-300); }
.site-footer .fbot .ami { font-family: var(--font-mono); }

/* =====================================================
   LEAD FORM
   ===================================================== */
.lead-form { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden; }
.lead-form .lf-head { padding: 22px 24px 16px; }
.lead-form .lf-body { padding: 0 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-strong); }
.field input, .field textarea, .field select { font-family: var(--font-sans); font-size: 14px; color: var(--text-strong);
  background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 11px 13px; outline: none;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast); width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: var(--shadow-focus); }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.consent input { margin-top: 2px; accent-color: var(--brand); }
.lf-success { padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lf-success .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--success-100); color: var(--success-600);
  display: flex; align-items: center; justify-content: center; }
.lf-success .ok svg { width: 28px; height: 28px; }
.lf-success h3 { font-family: var(--font-display); font-size: 22px; color: var(--brand-strong); margin: 0; }
.lf-success p { font-size: 14px; color: var(--text-muted); margin: 0; max-width: 320px; line-height: 1.5; }
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.trust-row .t { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); }
.trust-row .t svg { width: 14px; height: 14px; color: var(--success-600); }

/* =====================================================
   AGENT CARD
   ===================================================== */
.agent-card { display: flex; align-items: center; gap: 14px; background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-xs); }
.agent-card .ac-photo { width: 60px; height: 60px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--gold-500); }
.agent-card .ac-name { font-size: 15px; font-weight: 700; color: var(--text-strong); display: flex; align-items: center; gap: 6px; }
.agent-card .ac-name svg { width: 15px; height: 15px; color: var(--gold-600); }
.agent-card .ac-role { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.agent-card .ac-meta { display: flex; gap: 14px; margin-top: 8px; }
.agent-card .ac-meta .m { font-size: 11.5px; color: var(--text-body); display: flex; align-items: center; gap: 5px; }
.agent-card .ac-meta .m svg { width: 13px; height: 13px; color: var(--gold-700); }

/* generic button fallbacks used outside DS Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; border: 1px solid transparent;
  transition: filter var(--duration-fast), transform var(--duration-fast); }
.btn:active { transform: scale(.985); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: var(--cream-100); box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(.94); }
.btn-accent { background: var(--gold-600); color: var(--green-950); box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(.95); }
.btn-secondary { background: var(--surface-card); color: var(--text-strong); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--green-50); }
.btn-ghost-light { background: rgba(245,242,232,.12); color: var(--cream-100); border-color: rgba(245,242,232,.3); }
.btn-ghost-light:hover { background: rgba(245,242,232,.2); }
.btn-block { width: 100%; }

/* WordPress conversion helpers for the PHP templates. */
.ss-phase3-hero {
  position: relative;
  background: var(--green-950);
  overflow: hidden;
}

.ss-phase3-hero .photo {
  background-image:
    linear-gradient(170deg, rgba(205, 184, 154, .26) 0%, rgba(58, 74, 62, .62) 100%),
    url("../images/commercial/villa-modern.jpg");
  position: absolute;
  inset: 0;
  opacity: .4;
}

.ss-phase3-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,38,28,.55), rgba(7,38,28,.85));
}

.ss-phase3-hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: 76px 92px;
}

.ss-phase3-hero h1 {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--cream-100);
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
}

.ss-phase3-hero h1 span {
  color: var(--gold-400);
  font-style: italic;
}

.ss-phase3-hero p {
  max-width: 560px;
  margin-top: 18px;
  color: var(--green-200);
  font-size: 17px;
  line-height: 1.55;
}

.ss-phase3-search-panel {
  max-width: 760px;
  margin-top: 34px;
  padding: 8px;
  background: var(--surface-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.ss-phase3-search-tabs,
.ss-phase3-search-row {
  display: flex;
  gap: 8px;
}

.ss-phase3-search-tabs {
  gap: 4px;
  padding: 4px 6px;
}

.ss-phase3-search-tabs label {
  cursor: pointer;
}

.ss-phase3-search-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ss-phase3-search-tabs span {
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  display: inline-flex;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
}

.ss-phase3-search-tabs input:checked + span {
  background: var(--green-50);
  color: var(--brand-strong);
}

.ss-phase3-search-row {
  align-items: center;
  flex-wrap: wrap;
  padding: 6px;
}

.ss-phase3-search-row input,
.ss-phase3-search-row select {
  flex: 1;
  min-height: 52px;
  min-width: 150px;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 15px;
  outline: none;
  padding-inline: 14px;
}

.ss-phase3-search-row select {
  border-left: 1px solid var(--border);
}

.ss-phase3-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 40px;
}

.ss-phase3-stats strong {
  color: var(--cream-100);
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
}

.ss-phase3-stats span {
  color: var(--green-300);
  display: block;
  font-size: 12.5px;
  margin-top: 2px;
}

.ss-phase3-empty {
  padding: 28px;
  text-align: center;
}

.ss-phase3-empty h2,
.ss-phase3-empty h3 {
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.ss-phase3-empty p {
  color: var(--text-muted);
  margin-top: 8px;
}

.ss-phase3-service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.ss-phase3-service {
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 12px;
  padding: 16px 18px;
}

.ss-phase3-service span:first-child {
  align-items: center;
  background: var(--gold-100);
  border-radius: var(--radius-sm);
  color: var(--gold-700);
  display: inline-flex;
  flex: none;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.ss-phase3-sell-cta {
  background: var(--green-900);
  border-radius: var(--radius-2xl);
  display: grid;
  gap: 0;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}

.ss-phase3-sell-cta > div {
  padding: 44px;
}

.ss-phase3-sell-cta h2 {
  color: var(--cream-100);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  margin-top: 14px;
}

.ss-phase3-sell-cta p {
  color: var(--green-200);
  margin: 14px 0 26px;
  max-width: 420px;
}

.ss-phase3-searchbar {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.ss-phase3-searchbar .field {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  flex: 1;
}

.ss-phase3-results {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 252px 1fr;
}

.ss-phase3-facets {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  padding: 6px 18px 18px;
  position: sticky;
  top: 84px;
}

.ss-phase3-facet {
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
}

.ss-phase3-facet-title {
  color: var(--text-strong);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ss-phase3-result-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.ss-phase3-result-head form {
  margin-left: auto;
}

.ss-phase3-ai-banner {
  align-items: center;
  background: var(--info-100);
  border: 1px solid color-mix(in srgb, var(--info-600) 30%, transparent);
  border-radius: var(--radius-md);
  color: var(--text-body);
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
}

.ss-phase3-detail-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-height: 460px;
  margin-bottom: 28px;
}

.ss-phase3-detail-gallery > :first-child {
  grid-row: span 2;
}

.ss-phase3-detail-layout {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.ss-phase3-detail-titlebar {
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.ss-phase3-detail-titlebar h1,
.ss-phase3-searchbar h1 {
  color: var(--brand-strong);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin-top: 12px;
}

.ss-phase3-detail-titlebar .pc-loc {
  margin-top: 10px;
}

.ss-phase3-spec-grid,
.ss-phase3-market-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.ss-phase3-feature-grid {
  display: grid;
  gap: 12px 20px;
  grid-template-columns: repeat(3, 1fr);
}

.ss-phase3-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 84px;
}

.ss-phase3-price-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4,
  .ss-phase3-service-grid,
  .ss-phase3-sell-cta,
  .ss-phase3-results,
  .ss-phase3-detail-layout {
    grid-template-columns: 1fr;
  }

  .ss-phase3-facets,
  .ss-phase3-sidebar {
    position: static;
  }

  .ss-phase3-detail-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 16px;
  }

  .section,
  .section.tight {
    padding-block: 40px;
  }

  .section-head,
  .ss-phase3-searchbar,
  .ss-phase3-search-row,
  .field-row,
  .ss-phase3-detail-titlebar {
    align-items: stretch;
    flex-direction: column;
  }

  .grid-3,
  .grid-4,
  .ss-phase3-spec-grid,
  .ss-phase3-market-grid,
  .ss-phase3-feature-grid {
    grid-template-columns: 1fr;
  }

  .ss-phase3-detail-gallery {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ss-phase3-detail-gallery > :first-child {
    grid-row: auto;
  }

  .ss-phase3-detail-gallery .photo {
    min-height: 220px;
  }

  .ss-phase3-sell-cta > div {
    padding: 28px 22px;
  }
}
