/* ==========================================================================
   COMPONENTS — search, cards, marquee, filters, gallery, forms, accordion…
   ========================================================================== */

/* ---------- Badges & tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 2px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2;
  background: var(--white); color: var(--ink);
}
.badge-dark { background: var(--ink); color: var(--white); }
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-outline { background: transparent; border: 1px solid currentColor; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.badge.no-dot::before { display: none; }

/* ---------- Search panel ---------- */
.search-panel {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line);
}
.search-tabs { min-inline-size: 0; min-width: 0; display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; background: var(--sand); border-radius: var(--radius); margin: 0 0 20px; border: 0; }
.search-tabs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-tabs label { position: relative; }
.search-tabs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.search-tabs span { display: inline-block; padding: 9px 18px; font-size: var(--fs-sm); font-weight: 700; border-radius: 2px; color: var(--muted); transition: background var(--t), color var(--t); }
.search-tabs input:checked + span { background: var(--ink); color: var(--white); }
.search-tabs input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.search-fields { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; }
.search-fields .field { margin: 0; }
.search-fields .btn { min-height: 54px; }
@media (min-width: 560px) { .search-fields { grid-template-columns: 1fr 1fr; } .search-fields .btn { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
  .search-fields .field { padding: 10px 18px; border-right: 1px solid var(--line); }
  .search-fields .field label { margin-bottom: 2px; }
  .search-fields .field select { border: 0; padding: 4px 28px 4px 0; min-height: 36px; background-position: right 2px center; font-weight: 600; }
  .search-fields .btn { grid-column: auto; height: 100%; min-height: 72px; border-radius: 0 var(--radius) var(--radius) 0; padding-inline: 32px; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.field label, .field .label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field .optional { text-transform: none; letter-spacing: 0; font-weight: 500; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 1rem; transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select, select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315140f' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc5b3; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179, 139, 77, 0.2); outline: none; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-sm); margin-top: 6px; }
.form-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-note { font-size: var(--fs-sm); color: var(--muted); margin: 4px 0 18px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--success); background: #eef6f0; color: var(--success); font-size: var(--fs-sm); }
.form-status.is-error { border-color: var(--danger); background: #fbeeec; color: var(--danger); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .btn { flex: 1 1 calc(50% - 6px); min-width: 0; padding-inline: 14px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.form-card h2, .form-card h3 { margin-bottom: 0.3em; }
.form-card > p { color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.9375rem; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }

/* ---------- Property card ---------- */
.property-grid { display: grid; gap: clamp(20px, 2.2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.p-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--t), transform var(--t), border-color var(--t); min-width: 0; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.p-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.p-card:hover .p-card-media img { transform: scale(1.05); }
.p-card-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.p-card-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.p-card-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.p-card-price small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.p-card-title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.35; margin: 0 0 6px; letter-spacing: -0.005em; }
.p-card-title a { text-decoration: none; }
.p-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p-card-loc { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); margin: 0 0 16px; }
.p-card-loc .icon { width: 16px; height: 16px; color: var(--gold-deep); }
.p-card-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-3); }
.p-card-meta li { display: inline-flex; align-items: center; gap: 7px; }
.p-card-meta .icon { width: 17px; height: 17px; color: var(--muted); }
.p-card-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 2; }
.p-card-actions .btn { min-height: 42px; padding: 8px 10px; font-size: var(--fs-sm); }
.property-grid.is-list { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .is-list .p-card { flex-direction: row; }
  .is-list .p-card-media { flex: 0 0 min(42%, 380px); aspect-ratio: auto; min-height: 240px; }
}
.empty-state { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--white); }
.empty-state h3 { margin-bottom: 8px; }

/* ---------- Marquee ---------- */
.marquee-section { overflow: hidden; }
.marquee { position: relative; overflow: hidden; overflow: clip; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
/* Two identical groups; each carries its own trailing gap so -50% is an exact seamless loop */
.marquee { --mg: clamp(14px, 1.6vw, 24px); }
.marquee-track { display: flex; width: max-content; animation: marquee-rtl var(--marquee-duration, 60s) linear infinite; will-change: transform; }
.marquee-group { display: flex; gap: var(--mg); padding-right: var(--mg); flex: none; }
.marquee.reverse .marquee-track { animation-name: marquee-ltr; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee-rtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes marquee-ltr { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.m-card { position: relative; flex: none; width: clamp(250px, 26vw, 400px); aspect-ratio: 4 / 5; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); border-radius: 2px; }
.m-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity var(--t); opacity: 0.92; }
.m-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,11,9,.82) 0%, rgba(12,11,9,.1) 55%, rgba(12,11,9,0) 100%); }
.m-card:hover img, .m-card:focus-visible img { transform: scale(1.06); opacity: 1; }
.m-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2vw, 26px); }
.m-card-kicker, .m-card-title { display: block; }
.m-card-kicker { font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; margin: 0 0 8px; }
.m-card-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; line-height: 1.1; margin: 0 0 6px; color: var(--white); }
.m-card-loc { font-size: var(--fs-sm); color: rgba(255,255,255,.82); margin: 0; display: flex; align-items: center; gap: 6px; }
.m-card-loc .icon { width: 15px; height: 15px; }
.m-card-cta { display: inline-flex; width: fit-content; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; }
.m-card-cta .icon { width: 14px; height: 14px; }
.marquee.slim .m-card { aspect-ratio: 4 / 3; width: clamp(240px, 22vw, 340px); }
.marquee.slim .m-card-kicker { display: none; }
.marquee.slim .m-card-title { font-size: 1.4rem; }
@media (max-width: 640px) { .m-card { width: 72vw; } .marquee.slim .m-card { width: 64vw; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .marquee-track { animation: none !important; transform: none !important; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .m-card { scroll-snap-align: start; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: clamp(22px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.4vw, 4.2rem); font-weight: 500; line-height: 1; color: var(--ink); display: block; margin-bottom: 10px; }
.stat-num sup { font-size: 0.5em; color: var(--gold); top: -0.7em; margin-left: 2px; }
.stat-label { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; letter-spacing: 0.02em; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats-note { font-size: 0.75rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Project cards (featured editorial) ---------- */
.project-list { display: grid; gap: clamp(28px, 4vw, 64px); }
.project-row { display: grid; gap: clamp(20px, 3vw, 48px); align-items: center; grid-template-columns: 1fr; }
.project-row-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--stone); }
.project-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-row:hover .project-row-media img { transform: scale(1.04); }
.project-row-media .badge { position: absolute; top: 16px; left: 16px; }
.project-row-num { font-family: var(--font-display); font-size: 1rem; color: var(--gold-deep); letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.project-row h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 500; margin-bottom: 0.2em; }
.project-row h3 a { text-decoration: none; }
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 24px 0 28px; padding: 22px 0; border-block: 1px solid var(--line); }
.project-facts dt { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.project-facts dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
@media (min-width: 900px) {
  .project-row { grid-template-columns: 1.25fr 1fr; }
  .project-row:nth-child(even) .project-row-media { order: 2; }
}

/* Compact project card (projects page grid) */
.proj-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative; transition: box-shadow var(--t), transform var(--t); }
.proj-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.proj-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.proj-card-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-card-media .badge { position: absolute; top: 14px; left: 14px; }
.proj-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.proj-card-body h3 { font-size: 1.7rem; margin-bottom: 4px; }
.proj-card-body h3 a { text-decoration: none; }
.proj-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: var(--fs-sm); margin: 16px 0 20px; }
.proj-card dt { color: var(--muted); }
.proj-card dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.proj-card .btn-group { margin-top: auto; }
.proj-card .btn-group .btn { flex: 1; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.cat-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 1s var(--ease), opacity var(--t); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,11,9,.8), rgba(12,11,9,0) 60%); }
.cat-tile:hover img { transform: scale(1.06); opacity: 1; }
.cat-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(14px, 2vw, 22px); }
.cat-tile h3 { color: var(--white); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; margin: 0 0 4px; }
.cat-tile-body { display: block; }
.cat-tile-body > span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 6px; }
.cat-tile-body > span .icon { width: 14px; height: 14px; }

/* ---------- Feature list (why choose us, services) ---------- */
.feature-grid { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); padding: 1px 0 0 1px; }
@media (min-width: 1024px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); margin: -1px 0 0 -1px; background: transparent; transition: background var(--t); }
.feature:hover { background: var(--white); }
.feature-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--gold-deep); border-radius: 50%; margin-bottom: 22px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.6rem; margin-bottom: 10px; }
.feature p { color: var(--muted); margin: 0; }
.feature ul { color: var(--muted); margin: 14px 0 0; padding-left: 1.1em; font-size: 0.9375rem; }
.feature .link-arrow { margin-top: 20px; }
.bg-ink .feature { border-color: var(--line-dark); }
.bg-ink .feature:hover { background: rgba(255,255,255,.03); }
.bg-ink .feature p { color: var(--muted-light); }
.bg-ink .feature-icon { color: var(--gold-light); }

/* ---------- Location cards ---------- */
.loc-grid { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1024px) {
  .loc-grid.featured { grid-template-columns: repeat(12, 1fr); }
  .loc-grid.featured > :nth-child(1) { grid-column: span 6; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
  .loc-grid.featured > :nth-child(2), .loc-grid.featured > :nth-child(3) { grid-column: span 3; }
  .loc-grid.featured > :nth-child(4), .loc-grid.featured > :nth-child(5) { grid-column: span 3; }
  .loc-grid.featured > :nth-child(6) { grid-column: span 12; aspect-ratio: 32 / 9; }
}
.loc-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink); min-width: 0; }
.loc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.loc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,11,9,.9) 0%, rgba(12,11,9,.55) 45%, rgba(12,11,9,.15) 100%); }
.loc-card:hover img { transform: scale(1.05); }
.loc-card-body { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.2vw, 28px); }
.loc-card h3 { color: var(--white); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 500; margin: 0 0 4px; }
.loc-card p { margin: 0; font-size: var(--fs-sm); color: rgba(255,255,255,.84); max-width: 44ch; }
.loc-card .m-card-cta { margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.bg-ink .step { border-color: var(--line-dark); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--gold); }
.step-num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 16px; font-weight: 500; }
.step h3 { font-size: 1.55rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.bg-ink .step p { color: var(--muted-light); }

/* ---------- Testimonials ---------- */
.t-slider { position: relative; }
.t-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.t-track::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .t-track { grid-auto-columns: calc(50% - 12px); } }
.t-card { scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); margin: 0; display: flex; flex-direction: column; }
.t-card blockquote { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); line-height: 1.35; color: var(--ink); font-weight: 500; }
.t-card blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: 0.6; color: var(--gold); margin-bottom: 14px; }
.t-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sand); color: var(--gold-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.t-card cite { font-style: normal; font-weight: 700; color: var(--ink); display: block; }
.t-controls { display: flex; gap: 10px; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 50%; transition: background var(--t), color var(--t); }
.icon-btn:hover { background: var(--ink); color: var(--white); }
.icon-btn:disabled { opacity: 0.35; cursor: default; background: transparent; color: var(--ink); }
.no-js .t-controls { display: none; }

/* ---------- Blog cards ---------- */
.b-card { display: flex; flex-direction: column; position: relative; }
.b-card-media { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 20px; background: var(--stone); }
.b-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.b-card:hover .b-card-media img { transform: scale(1.05); }
.b-card-meta { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.b-card-meta span + span { color: var(--muted); }
.b-card h3 { font-size: 1.65rem; margin-bottom: 10px; }
.b-card h3 a { text-decoration: none; }
.b-card h3 a::after { content: ""; position: absolute; inset: 0; }
.b-card p { color: var(--muted); margin-bottom: 16px; }
.b-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ accordion (native details) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315140f' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-deep); }
.faq-answer { padding: 0 48px 22px 0; color: var(--muted); }
.faq-answer p:last-child { margin: 0; }
.faq-layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 80px; } }

/* ---------- Split / media sections ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.wide { aspect-ratio: 4 / 3; }
.split-media-note { position: absolute; left: 0; bottom: 0; background: var(--white); padding: 20px 24px; max-width: 280px; border-top: 2px solid var(--gold); }
.split-media-note strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.split-media-note span { font-size: var(--fs-sm); color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--gold-deep); margin-top: 3px; width: 18px; height: 18px; }
.checklist.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; }

/* ---------- Info cards (contact, values) ---------- */
.info-card { background: var(--white); border: 1px solid var(--line); padding: 28px; border-radius: var(--radius-lg); }
.info-card .feature-icon { margin-bottom: 16px; }
.info-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.info-card p { color: var(--muted); margin-bottom: 12px; }
.info-card a:not(.btn) { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.placeholder-note { display: inline-block; font-size: 0.75rem; padding: 3px 8px; background: #fff6e0; color: #6b4e14; border: 1px dashed #d9b35c; border-radius: 2px; margin-top: 6px; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.9375rem; }
.hours li span:last-child { font-weight: 600; color: var(--ink); }

/* Map placeholder */
.map-embed { position: relative; width: 100%; height: clamp(280px, 45vw, 440px); background: var(--stone); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px;
  background-color: var(--sand);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; }
.map-placeholder .icon { width: 36px; height: 36px; color: var(--gold-deep); }
.map-placeholder p { margin: 0; max-width: 44ch; color: var(--muted); font-size: var(--fs-sm); }

/* Team */
.team-card { text-align: left; }
.team-photo { aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--stone), var(--sand)); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; border: 1px solid var(--line); }
.team-photo .icon { width: 72px; height: 72px; color: #b9ad97; stroke-width: 1; }
.team-card h3 { font-size: 1.5rem; margin-bottom: 2px; }
.team-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.team-role { color: var(--gold-deep) !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem !important; margin-bottom: 8px !important; }

/* ---------- Listing page ---------- */
.listing-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.listing-search { position: relative; flex: 1 1 320px; }
.listing-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.listing-search input { width: 100%; min-height: 52px; padding: 12px 14px 12px 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.listing-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(179,139,77,.2); }
.listing-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.listing-controls select { min-height: 46px; }
.listing-count { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.listing-count strong { color: var(--ink); }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { width: 46px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--white); border: 0; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.listing-layout { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .listing-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; } }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; } }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.filters-head h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.filter-group { border: 0; padding: 18px 0; margin: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group legend, .filter-group > .label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.filter-group .field { margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 600; transition: background var(--t), color var(--t), border-color var(--t); }
.seg input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.btn-text { background: none; border: 0; padding: 6px 0; font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; color: var(--ink); }
.filters-mobile-bar { display: none; }
.filters-footer { display: none; }
.filters-open-btn { display: none; }
@media (max-width: 1023px) {
  .filters-open-btn { display: inline-flex; }
  .js .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 140; width: min(400px, 92vw); border-radius: 0; border: 0;
    overflow-y: auto; overscroll-behavior: contain; padding-bottom: 100px;
    transform: translateX(-102%); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0.4s;
  }
  .js .filters.is-open { transform: none; visibility: visible; }
  .js .filters-footer { display: flex; gap: 10px; position: sticky; bottom: -100px; margin: 20px -24px -100px; padding: 16px 24px 24px; background: var(--white); border-top: 1px solid var(--line); }
  .filters-footer .btn { flex: 1; }
  .filters-backdrop { position: fixed; inset: 0; z-index: 135; background: rgba(10,10,8,.5); }
}
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.chip button { width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--white); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.chip .icon { width: 12px; height: 12px; }
.load-more-wrap { text-align: center; margin-top: 40px; }
.load-more-wrap p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Property details ---------- */
.detail-head { display: grid; gap: 20px; padding-block: 28px 28px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .detail-head { grid-template-columns: 1fr auto; } }
.detail-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); margin: 12px 0 10px; }
.detail-loc { display: flex; align-items: center; gap: 8px; color: var(--muted); margin: 0; }
.detail-loc .icon { color: var(--gold-deep); }
.detail-price { text-align: left; }
@media (min-width: 900px) { .detail-price { text-align: right; } }
.detail-price strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem); font-weight: 600; color: var(--ink); line-height: 1; }
.detail-price span { font-size: var(--fs-sm); color: var(--muted); }
.gallery { display: grid; gap: 10px; grid-template-columns: 1fr; }
.gallery-main { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone); border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(12,11,9,.72); color: var(--white); padding: 8px 12px; font-size: var(--fs-sm); font-weight: 600; border-radius: 2px; }
.gallery-count .icon { width: 16px; height: 16px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; background: var(--stone); aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 3fr 1fr; }
  .gallery-main-wrap { aspect-ratio: 16 / 10; }
  .gallery-main { height: 100%; aspect-ratio: auto; }
  .gallery-thumbs { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); min-height: 0; }
  .gallery-thumbs button { aspect-ratio: auto; min-height: 0; position: relative; }
  .gallery-thumbs button img { position: absolute; inset: 0; }
  .gallery-thumbs button { aspect-ratio: auto; }
}
.key-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 28px 0 0; }
@media (min-width: 640px) { .key-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.key-fact { background: var(--white); padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.key-fact .icon { color: var(--gold-deep); margin-top: 2px; }
.key-fact dt { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.key-fact dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.detail-layout { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; padding-block: 40px var(--section); }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.detail-tabs { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tabs a { flex: none; padding: 14px 12px; font-size: var(--fs-sm); font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.detail-tabs a:hover, .detail-tabs a.is-active { color: var(--ink); border-color: var(--gold); }
.detail-section { padding-block: 36px; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 18px; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.amenities li { display: flex; align-items: center; gap: 10px; }
.amenities .icon { color: var(--gold-deep); width: 18px; height: 18px; }
.spec-table { width: 100%; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 600; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--white); }
.table-wrap table { min-width: 520px; }
.table-wrap.plain table { min-width: 0; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.9375rem; }
.data-table thead th { background: var(--sand); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.nearby { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.nearby li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.nearby li span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.floor-plan { background: var(--white); border: 1px solid var(--line); padding: 12px; }
.floor-plan img { width: 100%; }
.mini-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.mini-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.mini-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mini-gallery a:hover img { transform: scale(1.06); }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.advisor { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.advisor-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.advisor-avatar .icon { width: 26px; height: 26px; }
.advisor strong { display: block; color: var(--ink); }
.advisor span { font-size: var(--fs-sm); color: var(--muted); }
.cta-stack { display: grid; gap: 10px; }
.mobile-cta-bar { display: none; }
@media (max-width: 1023px) {
  .has-mobile-cta .mobile-cta-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.2); }
  .has-mobile-cta .mobile-cta-bar .btn { min-height: 46px; }
  .has-mobile-cta .float-wa { display: none; }
  .has-mobile-cta .back-to-top { bottom: 84px; }
  .has-mobile-cta .site-footer { padding-bottom: 72px; }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(10, 10, 8, 0.96); color: var(--white); }
.lightbox::backdrop { background: rgba(10, 10, 8, 0.9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); max-height: 84vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { font-size: var(--fs-sm); color: rgba(255,255,255,.8); text-align: center; }
.lightbox-btn { position: absolute; width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--white); border-radius: 50%; }
.lightbox-btn:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- Project detail ---------- */
.fact-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .fact-bar { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.fact-bar > div { background: var(--white); padding: 20px; }
.fact-bar dt { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fact-bar dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 0.9375rem; }
.overlap-up { position: relative; z-index: 3; margin-top: -48px; }

/* ---------- Article (blog) ---------- */
.article-layout { display: grid; gap: 48px; grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 80px) var(--section); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; } }
.prose { font-size: 1.0625rem; line-height: 1.8; color: var(--ink-3); max-width: 72ch; }
.prose h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.6rem; margin: 1.4em 0 0.4em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: 0.5em; }
.prose a { color: var(--gold-deep); font-weight: 600; }
.prose .callout { background: var(--sand); border-left: 3px solid var(--gold); padding: 20px 24px; margin: 1.6em 0; font-size: 1rem; }
.prose .callout p:last-child { margin: 0; }
.prose .table-wrap { margin: 1.4em 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-sm); color: rgba(255,255,255,.82); margin-top: 18px; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { width: 16px; height: 16px; }
.toc { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.toc h2 { font-family: var(--font-body); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 0.9375rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line); }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.9rem; margin-top: 1.6em; }

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.error-code { font-family: var(--font-display); font-size: clamp(7rem, 5rem + 12vw, 14rem); line-height: 0.85; color: var(--gold-light); font-weight: 500; margin: 0 0 12px; }

/* ---------- Misc ---------- */
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-links a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; background: var(--white); transition: border-color var(--t), background var(--t); }
.pill-links a:hover { border-color: var(--ink); }
.localities { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.locality { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.locality h3 { font-size: 1.45rem; margin-bottom: 6px; }
.locality p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.notice { font-size: var(--fs-sm); color: var(--muted); border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; margin: 24px 0 0; }
.credits-list { font-size: var(--fs-sm); color: var(--muted); padding-left: 1.2em; }
.credits-list a { color: var(--ink); }

/* Grid children must be allowed to shrink (prevents wide tables/forms forcing overflow) */
.split > *, .detail-layout > *, .article-layout > *, .listing-layout > *, .faq-layout > *, .grid > *, .project-row > *, .cta-band-inner > * { min-width: 0; }

@media (max-width: 420px) { .search-tabs { width: 100%; } .search-tabs label { flex: 1; } .search-tabs span { display: block; text-align: center; padding: 9px 6px; } }
.search-sell-note { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.search-panel.is-sell .search-fields .field { display: none; }
.search-panel.is-sell .search-fields { grid-template-columns: 1fr; border: 0; }
.search-panel.is-sell .search-fields .btn { border-radius: var(--radius); min-height: 56px; }
.badge-outline-light { background: rgba(12,11,9,.6); color: var(--white); }
.badge .icon { width: 12px; height: 12px; }
.gallery-main-wrap { position: relative; }
.gallery-nav { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 2; }
.gallery-nav .icon-btn { width: 42px; height: 42px; background: rgba(255,255,255,.92); border-color: transparent; }
.gallery-nav .icon-btn:hover { background: var(--ink); color: var(--white); }

/* ---------- Phase 3 additions ---------- */
.plan-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.plan-grid a { display: block; background: var(--white); border: 1px solid var(--line); padding: 10px; transition: border-color var(--t), box-shadow var(--t); }
.plan-grid a:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.plan-grid img { width: 100%; height: auto; object-fit: contain; }
.empty-state .empty-icon { width: 40px; height: 40px; color: var(--gold-deep); margin: 0 auto 14px; }
.empty-state p { max-width: 56ch; margin-inline: auto; color: var(--muted); }
.sample-banner { background: #fff6e0; color: #6b4e14; border-bottom: 1px solid #e9d29a; font-size: var(--fs-sm); font-weight: 600; padding: 10px 0; }
.mobile-cta-bar.single { grid-template-columns: 1fr !important; }
.listing-layout.is-empty { grid-template-columns: 1fr; }

/* ---------- Polish pass ---------- */
.marquee-section { padding-bottom: calc(var(--section) * 0.85); }
.section-head { margin-bottom: clamp(28px, 3.4vw, 48px); }
@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 20px; }
  .feature-icon { width: 44px; height: 44px; margin: 0; grid-row: span 3; }
  .feature-icon .icon { width: 20px; height: 20px; }
  .feature h3 { font-size: 1.4rem; margin-bottom: 6px; }
  .feature .link-arrow { margin-top: 12px; justify-self: start; }
  .feature ul { margin-top: 10px; }
  .hero .btn-group .btn, .page-hero .btn-group .btn { flex: 1 1 100%; }
  .cta-band .btn-group .btn { flex: 1 1 100%; }
  .step-num { font-size: 2.6rem; margin-bottom: 10px; }
  .loc-card { aspect-ratio: 16 / 11; }
  .project-facts { gap: 14px 18px; }
}
/* Consistent CTA treatment */
.btn-wa .icon, .btn .icon { flex: none; }
.form-actions .btn-outline:hover, .cta-stack .btn-outline:hover { --btn-bg: var(--ink); --btn-fg: var(--white); }
/* Text over images: slightly stronger scrim at the bottom of tiles */
.cat-tile::after { background: linear-gradient(0deg, rgba(12,11,9,.85), rgba(12,11,9,.1) 62%); }
.m-card::after { background: linear-gradient(0deg, rgba(12,11,9,.88) 0%, rgba(12,11,9,.2) 55%, rgba(12,11,9,0) 100%); }
/* Footer finish */
.site-footer { border-top: 1px solid rgba(201, 164, 104, 0.35); }
.site-footer .footer-top { border-bottom: 0; }
.footer-bottom { border-top-color: rgba(255,255,255,.1); }
.footer-col a, .footer-bottom a { transition: color var(--t); }
