/* =====================================================================
   properties.css — Architech | Properties (properties.html)
   Phone-first. Logical properties for RTL. Brand tokens from utilities.css.
   ===================================================================== */

/* ── HERO ───────────────────────────────────────────────────────────── */
.prop-hero {
  position: relative;
  padding: clamp(118px, 18vh, 200px) 0 clamp(30px, 4vh, 52px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201, 169, 110, 0.10), transparent 56%),
    linear-gradient(180deg, var(--black), var(--off-black));
  text-align: center;
}
.prop-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: clamp(16px, 2.4vw, 26px);
}
.prop-hero-rule { display: block; width: clamp(28px, 5vw, 56px); height: 1px; background: linear-gradient(90deg, var(--gold), rgba(201, 169, 110, 0)); }
.prop-hero-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.06; letter-spacing: -0.02em;
  color: var(--off-white); margin: 0 auto; max-width: 18ch; text-wrap: balance;
}
.prop-hero-title em { font-style: italic; color: var(--gold); }
.prop-hero-sub {
  margin: clamp(16px, 2.2vw, 26px) auto 0; max-width: 56ch;
  font-size: clamp(0.98rem, 1.4vw, 1.18rem); line-height: 1.65;
  color: rgba(240, 237, 232, 0.78);
}
.prop-hero-meta { margin-top: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.prop-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.05em; color: rgba(240, 237, 232, 0.7);
  background: rgba(255, 255, 255, 0.015);
}
.prop-hero-pill .est-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ── LISTING SECTION ───────────────────────────────────────────────── */
.prop-list { padding: clamp(18px, 3vh, 36px) 0 clamp(80px, 12vh, 140px); background: var(--off-black); }
.prop-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}
.prop-filters {
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 2px; max-width: 100%;
}
.prop-filters::-webkit-scrollbar { display: none; }
.prop-fbtn {
  flex: 0 0 auto; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, 0.02); color: var(--muted);
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.prop-fbtn:hover, .prop-fbtn:focus-visible { border-color: rgba(201, 169, 110, 0.5); color: var(--off-white); }
.prop-fbtn.active { border-color: var(--gold); color: var(--black); background: var(--gold); font-weight: 600; }
.prop-tally { margin-inline-start: auto; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ── GRID + CARDS ──────────────────────────────────────────────────── */
.prop-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 2.4vw, 26px); }
@media (min-width: 640px)  { .prop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .prop-grid { grid-template-columns: repeat(3, 1fr); } }

.prop-card {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(12, 12, 12, 0.9));
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.prop-card:hover, .prop-card:focus-visible {
  border-color: rgba(201, 169, 110, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
  outline: none;
}
.prop-card:focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 22px 50px rgba(0, 0, 0, 0.4); }
.prop-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #101010; }
.prop-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s var(--ease-out);
}
.prop-card:hover .prop-card-media img { transform: scale(1.06); }
.prop-card-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.18), transparent 38%, transparent 60%, rgba(8, 8, 8, 0.62));
}
.prop-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; z-index: 2; }
.prop-badge {
  font-family: var(--font-sans); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.prop-badge--new       { background: rgba(201, 169, 110, 0.92); color: var(--black); }
.prop-badge--renovated { background: rgba(240, 237, 232, 0.92); color: var(--black); }
.prop-badge--type      { background: rgba(255, 255, 255, 0.1); color: var(--off-white); border: 1px solid var(--border); }
.prop-badge--demo      { background: rgba(8, 8, 8, 0.66); color: rgba(240, 237, 232, 0.85); border: 1px dashed rgba(201, 169, 110, 0.5); }
.prop-price {
  position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2;
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--off-white); letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  direction: ltr; unicode-bidi: isolate;
}
.prop-photos {
  position: absolute; bottom: 14px; inset-inline-end: 12px; z-index: 2;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  color: rgba(240, 237, 232, 0.85); background: rgba(8, 8, 8, 0.55);
  padding: 4px 9px; border-radius: 999px;
}
.prop-card-body { padding: clamp(14px, 1.8vw, 20px); }
.prop-card-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.12rem, 1.7vw, 1.32rem); color: var(--off-white); margin: 0 0 4px; }
.prop-card-loc { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.prop-card-specs { display: flex; gap: 14px; font-size: 0.74rem; color: rgba(240, 237, 232, 0.66); font-variant-numeric: tabular-nums; }
[dir="rtl"] .prop-card-specs { justify-content: flex-end; }

/* ── DETAIL OVERLAY ────────────────────────────────────────────────── */
.prop-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(5, 5, 7, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
}
.prop-sheet {
  position: relative; width: 100%; max-width: 860px;
  max-height: 100dvh; height: 100dvh;
  background: var(--off-black);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  display: flex; flex-direction: column;
}
@supports not (height: 100dvh) { .prop-sheet { height: 100vh; max-height: 100vh; } }
@media (min-width: 900px) {
  .prop-overlay { align-items: center; padding: 3vh 16px; }
  .prop-sheet { height: auto; max-height: 94dvh; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
}
.prop-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 8, 8, 0.62); color: var(--off-white);
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.prop-close:hover, .prop-close:focus-visible { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* gallery */
.prop-gal { position: relative; flex: 0 0 auto; background: #0c0c0c; }
.prop-gal-strip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.prop-gal-strip::-webkit-scrollbar { display: none; }
.prop-gal-cell { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 10; }
.prop-gal-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop-gal-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; z-index: 3; }
.prop-gal-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(240, 237, 232, 0.4); transition: background 0.2s, transform 0.2s; }
.prop-gal-dots span.on { background: var(--gold); transform: scale(1.25); }
.prop-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 8, 8, 0.55); color: var(--off-white); font-size: 24px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.prop-gal-prev { left: 10px; }
.prop-gal-next { right: 10px; }
.prop-gal-nav:hover, .prop-gal-nav:focus-visible { background: var(--gold); color: var(--black); border-color: var(--gold); }
@media (hover: none) { .prop-gal-nav { display: none; } } /* touch: swipe + dots */

/* sheet body */
.prop-sheet-body { padding: clamp(18px, 3vw, 30px) clamp(18px, 3.4vw, 34px) 10px; }
.prop-badges--inline { position: static; margin-bottom: 12px; }
.prop-d-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--off-white); margin: 0 0 4px; }
.prop-d-loc { font-size: 0.84rem; color: var(--muted); }
.prop-d-price {
  margin-top: 10px; font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--gold);
  unicode-bidi: isolate;
}
.prop-d-desc { margin: clamp(14px, 2vw, 20px) 0 0; font-size: 0.95rem; line-height: 1.75; color: rgba(240, 237, 232, 0.8); }
.prop-d-sub {
  margin: clamp(22px, 3vw, 30px) 0 10px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.prop-d-video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c0c0c; }
.prop-d-video iframe, .prop-d-video video { width: 100%; height: 100%; display: block; border: 0; }
.prop-d-why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.prop-d-why li { position: relative; padding-inline-start: 22px; font-size: 0.92rem; color: rgba(240, 237, 232, 0.82); line-height: 1.5; }
.prop-d-why li::before { content: '◆'; position: absolute; inset-inline-start: 0; top: 1px; font-size: 0.7rem; color: var(--gold); }
.prop-d-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
@media (max-width: 480px) { .prop-d-specs { grid-template-columns: 1fr; } }
.prop-spec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); padding: 7px 0; }
.prop-spec-l { font-size: 0.76rem; color: var(--muted); }
.prop-spec-v { font-size: 0.88rem; color: var(--off-white); font-variant-numeric: tabular-nums; }
.prop-d-demo {
  margin: clamp(18px, 2.6vw, 24px) 0 0; padding: 12px 14px;
  border: 1px dashed rgba(201, 169, 110, 0.45); border-radius: 12px;
  font-size: 0.78rem; line-height: 1.6; color: rgba(240, 237, 232, 0.72);
  background: rgba(201, 169, 110, 0.05);
}
.prop-d-social { margin-top: 14px; font-size: 0.74rem; color: var(--muted); }

/* sticky CTA bar */
.prop-cta {
  position: sticky; bottom: 0; z-index: 5; margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(18px, 3.4vw, 34px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 8, 8, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.prop-cta-wa { flex: 1; justify-content: center; text-align: center; }
.prop-cta-call { flex: 0 0 auto; font-size: 0.8rem; color: var(--gold); border-bottom: 1px solid rgba(201, 169, 110, 0.4); padding-bottom: 2px; white-space: nowrap; }
.prop-cta-call:hover { border-color: var(--gold); }

/* page-level: hide floats behind the overlay */
body.prop-open .wa-float, body.prop-open .back-top { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .prop-card, .prop-card-media img { transition: none !important; }
}

/* ── SEO text block under the grid ─────────────────────────────────── */
.prop-seo { margin-top: clamp(40px, 6vw, 64px); max-width: 760px; }
.prop-seo-title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--off-white); margin: 0 0 12px; }
.prop-seo-text { font-size: 0.92rem; line-height: 1.85; color: rgba(240, 237, 232, 0.62); margin: 0; }
