/* ================================================
   TOPSPACE — Page-level styles & legacy compatibility
   ================================================ */

/* Legacy variable bridge */
:root {
  --c-bg:      var(--bg-0);
  --c-bg2:     var(--bg-1);
  --c-bg3:     var(--bg-2);
  --c-pur:     var(--pur);
  --c-pur2:    var(--pur-2);
  --c-pur3:    var(--pur-3);
  --c-pur-l:   var(--pur-l);
  --c-gold:    var(--gold);
  --c-gold-l:  var(--gold-2);
  --c-gold-b:  var(--gold-3);
  --c-tx1:     var(--tx-1);
  --c-tx2:     var(--tx-2);
  --c-tx3:     var(--tx-3);
  --c-bd:      var(--bd-0);
  --c-bd-pur:  var(--bd-1);
  --c-w55:     rgba(255,255,255,.55);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--bg-pur2);
  padding: 7rem 0 4rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(107,79,181,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }

.page-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500; color: #FFFFFF;
  line-height: 1.18; margin-bottom: 1.25rem; letter-spacing: -.01em;
  font-style: normal;
}
/* emphasis inside dark page-hero → light lavender (was gold gradient) so it stays legible */
.page-hero-h1 em { font-style: normal; background: none !important; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #E4D3F5 !important; color: #E4D3F5 !important; }
.page-hero-sub {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,.65);
  max-width: 520px; line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 300;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--t2); }
.breadcrumb a:hover { color: var(--gold-3); }
.breadcrumb-sep { color: rgba(255,255,255,.2); }

/* ===== PAGE-HERO LIGHT ===== */
.page-hero-light {
  background: var(--bg-1);
  padding: 6rem 0 3.5rem;
  border-bottom: 1px solid var(--bd-0);
}
.page-hero-light .page-hero-h1 { color: var(--tx-1); font-style: normal; }
.page-hero-light .page-hero-sub { color: var(--tx-2); }
.page-hero-light .breadcrumb { color: var(--tx-3); }
.page-hero-light .breadcrumb a { color: var(--tx-3); }
.page-hero-light .breadcrumb a:hover { color: var(--pur); }

/* ===== PROPERTY DETAIL ===== */
.prop-detail-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 1024px) { .prop-detail-grid { grid-template-columns: 1fr 360px; gap: 4rem; } }

.spec-grid-wh {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 2rem;
}
@media (min-width: 640px) { .spec-grid-wh { grid-template-columns: repeat(4,1fr); } }

.spec-card-wh {
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-md); padding: 1.25rem 1rem; text-align: center;
  transition: all var(--t2);
}
.spec-card-wh:hover { border-color: var(--bd-gold); box-shadow: var(--sh-sm); }
.spec-card-wh .val {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 600; color: var(--gold);
  line-height: 1; margin-bottom: 0.35rem; display: block;
}
.spec-card-wh .lbl { font-size: 0.7rem; color: var(--tx-3); letter-spacing: 0.06em; }

.feat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.5rem 1rem; }
.feat-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--tx-2); }
.feat-item svg { color: var(--pur-3); flex-shrink: 0; }

.loc-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.875rem; }
.loc-chip {
  background: rgba(61,42,107,.06); border: 1px solid var(--bd-0);
  border-radius: 100px; padding: 0.3rem 0.875rem;
  font-size: 0.75rem; color: var(--pur-3);
}

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.sticky-card {
  position: sticky; top: 6rem;
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--sh-md);
}
.sticky-card-price {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 0.25rem;
}
.sticky-card-price small { font-size: 0.875rem; font-weight: 300; color: var(--tx-3); }
.sticky-card-name { font-size: 0.875rem; font-weight: 400; color: var(--tx-2); margin-bottom: 1.5rem; }
.contact-btn-stack { display: flex; flex-direction: column; gap: 0.75rem; }

.section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--tx-3);
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bd-0);
}

/* YouTube embed */
.yt-wrap {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: #000; aspect-ratio: 16/9; margin-bottom: 1rem; box-shadow: var(--sh-lg);
}
.yt-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-thumb-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; }
.yt-thumb-wrap img { width: 100%; display: block; }
.yt-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); transition: background var(--t2);
}
.yt-thumb-wrap:hover .yt-play-overlay { background: rgba(61,42,107,.5); }
.yt-play-btn {
  width: 72px; height: 72px; background: rgba(220,38,38,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: transform var(--t2);
}
.yt-thumb-wrap:hover .yt-play-btn { transform: scale(1.1); }

/* ===== PROPERTY LISTING ===== */
.filter-bar {
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-md); padding: 1.125rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  box-shadow: var(--sh-xs);
}
.filter-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--tx-3); white-space: nowrap;
}
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.375rem 0.875rem; border: 1.5px solid var(--bd-0); border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; color: var(--tx-2);
  cursor: pointer; transition: all var(--t2); background: transparent; font-family: var(--font);
}
.filter-chip:hover { border-color: var(--pur-3); color: var(--pur-3); }
.filter-chip.active { background: var(--pur); border-color: var(--pur); color: #FFFFFF; font-weight: 600; }

.keyword-wrap { position: relative; }
.keyword-input {
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  background: var(--bg-1); border: 1.5px solid var(--bd-0);
  border-radius: var(--r-sm); color: var(--tx-1);
  font-family: var(--font); font-size: 0.875rem; width: 220px;
  transition: border-color var(--t2), box-shadow var(--t2); outline: none;
}
.keyword-input:focus { border-color: var(--pur-3); box-shadow: 0 0 0 3px rgba(107,79,181,.1); }
.keyword-icon {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  color: var(--tx-3); pointer-events: none;
}

/* ===== CONTACT PAGE ===== */
.contact-form-card {
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-xl); padding: 2.5rem; box-shadow: var(--sh-sm);
}
.quick-contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.quick-contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.125rem 1.25rem; border: 1.5px solid var(--bd-0);
  border-radius: var(--r-md); text-decoration: none; color: inherit;
  transition: all var(--t2); cursor: pointer; background: var(--bg-0);
}
.quick-contact-item:hover { border-color: var(--pur-3); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.qc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
}
.qc-fb { background: #1877F2; color: #FFFFFF; }
.qc-ln { background: #06C755; color: #FFFFFF; }
.qc-tt { background: #010101; color: #FFFFFF; }
.qc-yt { background: #FF0000; color: #FFFFFF; }
.qc-ph { background: var(--pur); color: #FFFFFF; }
.qc-label { font-size: 0.75rem; font-weight: 400; color: var(--tx-3); margin-bottom: 0.15rem; }
.qc-value { font-size: 0.9375rem; font-weight: 600; color: var(--tx-1); }

.hour-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.875rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--bd-0); color: var(--tx-2);
}
.hour-row:last-child { border-bottom: none; }
.hour-day { font-weight: 500; color: var(--tx-1); }
.hour-time { color: var(--tx-3); }
.hour-badge-open {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(16,185,129,.1); color: #059669;
  border: 1px solid rgba(16,185,129,.2); border-radius: 100px; padding: 0.15rem 0.5rem;
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px)  { .portfolio-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3,1fr); } }

.portfolio-card {
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--t3); box-shadow: var(--sh-xs);
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.portfolio-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.06); }
.portfolio-card-body { padding: 1.5rem; }
.portfolio-card-stars { display: flex; gap: 0.2rem; color: var(--gold-3); margin-bottom: 0.875rem; }
.portfolio-card-quote {
  font-family: var(--font-serif); font-size: 0.9375rem; font-style: italic;
  color: var(--tx-1); line-height: 1.65; margin-bottom: 1.25rem;
}
.portfolio-card-author { display: flex; align-items: center; gap: 0.75rem; }
.portfolio-card-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pur-3), var(--pur-l));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: #FFFFFF; flex-shrink: 0;
}
.portfolio-card-name { font-size: 0.875rem; font-weight: 600; color: var(--tx-1); }
.portfolio-card-role { font-size: 0.75rem; color: var(--tx-3); }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: var(--r-xl); }
.about-img-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-md); padding: 0.875rem 1.25rem;
  box-shadow: var(--sh-md); display: flex; align-items: center; gap: 0.75rem;
}
.about-img-badge-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.about-img-badge-lbl { font-size: 0.72rem; color: var(--tx-3); }

.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3,1fr); } }

.team-card {
  text-align: center; padding: 2rem 1.5rem;
  border: 1px solid var(--bd-0); border-radius: var(--r-lg);
  background: var(--bg-0); transition: all var(--t2);
}
.team-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--pur-3), var(--pur-l));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: #FFFFFF;
}
.team-name { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: var(--tx-1); margin-bottom: 0.25rem; }
.team-role { font-size: 0.78rem; color: var(--tx-3); margin-bottom: 0.875rem; }
.team-desc { font-size: 0.85rem; color: var(--tx-2); line-height: 1.7; }

/* Map */
.map-embed { width: 100%; height: 400px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--bd-0); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== PAGE HERO — extras ===== */
.page-hero-eyebrow {
  display: inline-block; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
  padding: 0.3rem 0.875rem; border: 1px solid rgba(80,0,128,.28);
  border-radius: 100px; background: rgba(80,0,128,.05); margin-bottom: 1.25rem;
}
.page-hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.5rem;
  position: relative; z-index: 1;
}
.page-hero-stat {}
.page-hero-stat-val {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 600;
  color: var(--gold-3); display: block; line-height: 1;
}
.page-hero-stat-lbl { font-size: 0.7rem; color: rgba(255,255,255,.45); letter-spacing: 0.1em; margin-top: 0.3rem; display: block; }

/* ===== ABOUT PAGE — new styles ===== */
.about-intro-grid {
  display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start;
}
@media (min-width: 1024px) { .about-intro-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about-timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 1.25rem; }
.timeline-dot-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); border: 2px solid var(--gold-3);
  box-shadow: 0 0 8px rgba(80,0,128,.35);
}
.timeline-line { width: 1px; flex: 1; background: var(--bd-gold); margin-top: 4px; min-height: 40px; }
.timeline-body { padding-bottom: 2rem; }
.timeline-year {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.35rem;
}
.timeline-desc { font-size: 0.88rem; color: var(--tx-2); line-height: 1.75; }

.team-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(61,42,107,.12), rgba(107,79,181,.08));
  border: 1.5px solid var(--bd-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--pur-3);
}

/* ===== CONTACT PAGE — extras ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 400px; gap: 4rem; } }

.contact-info-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.125rem 1.25rem; border: 1.5px solid var(--bd-0);
  border-radius: var(--r-md); background: var(--bg-0); transition: all var(--t2);
}
.contact-info-card:hover { border-color: var(--bd-1); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: var(--pur-faint); border: 1px solid var(--bd-1); color: var(--pur-3);
}
.contact-info-label { font-size: 0.7rem; color: var(--tx-3); margin-bottom: 0.15rem; }
.contact-info-val { font-size: 0.9375rem; font-weight: 600; color: var(--tx-1); }

/* ===== PROPERTY DETAIL — layout ===== */
.prop-info-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
}
@media (min-width: 1200px) { .prop-info-grid { grid-template-columns: 1fr 400px; grid-template-areas: "gallery side" "specs specs"; gap: 0 3.25rem; align-items: start; } }
.prop-info-grid > * { min-width: 0; }

/* Property Slider */
.prop-slider {
  position: relative; width: 100%; border-radius: var(--r-xl); overflow: hidden;
  margin-bottom: 1.5rem; background: #111; box-shadow: var(--sh-lg);
  aspect-ratio: 16/9; max-height: 500px;
}
.prop-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.prop-slide.active { opacity: 1; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.52); backdrop-filter: blur(4px); color: #fff;
  border: none; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background var(--t2), transform var(--t2);
}
.slider-btn:hover { background: rgba(61,42,107,.85); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-counter {
  position: absolute; bottom: 1rem; right: 1rem;
  background: rgba(0,0,0,.52); color: #fff; font-size: .78rem;
  padding: .3rem .75rem; border-radius: 20px; z-index: 2;
}

/* Sidebar */
.sticky-sidebar { position: sticky; top: 5.5rem; }
.sidebar-card {
  background: var(--bg-0); border: 1px solid var(--bd-0);
  border-radius: var(--r-xl); padding: 1.75rem; box-shadow: var(--sh-md);
}
.agent-card { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.agent-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pur), var(--pur-3));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: #fff;
}
.agent-name { font-weight: 600; color: var(--tx-1); font-size: .9375rem; }
.agent-role { font-size: .75rem; color: var(--tx-3); margin-top: .1rem; }
.divider { height: 1px; background: var(--bd-0); margin: 1.25rem 0; }
.price-summary {
  background: rgba(80,0,128,.06); border: 1px solid var(--bd-gold);
  border-radius: var(--r-md); padding: 1rem; margin-top: 1.25rem;
}
.price-summary-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.price-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--tx-2); margin-bottom: .4rem;
}
.price-summary-row strong { color: var(--tx-1); font-weight: 600; }

/* Prop title on dark hero */
.prop-title-main {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.2; margin-bottom: 1rem; color: #FFFFFF; font-style: normal;
}
.prop-price-main {
  font-family: var(--font-serif);
  font-size: 2.25rem; font-weight: 600; color: var(--gold-3);
  line-height: 1; margin-bottom: 1.5rem;
}
.prop-price-main small { font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,.5); margin-left: 0.35rem; }

/* ===== PROPERTY DETAIL — New Hero (pd-hero) ===== */
.pd-hero { background: var(--bg-pur2); padding: 7rem 0 0; position: relative; overflow: hidden; }
.pd-hero-blob { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px); }
.pd-hero-inner { position: relative; z-index: 1; padding-bottom: 2.5rem; }
.pd-stat-bar { background: rgba(0,0,0,.32); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.07); position: relative; z-index: 1; }
.pd-stat-bar-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pd-stat-bar-inner::-webkit-scrollbar { display: none; }
.pd-stat-item { padding: 1rem 2rem 1rem 0; margin-right: 2rem; min-width: max-content; border-right: 1px solid rgba(255,255,255,.08); }
.pd-stat-item:last-child { border-right: none; margin-right: 0; }
.pd-stat-lbl { font-size: .6rem; color: rgba(255,255,255,.42); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }
.pd-stat-val { font-size: 1.05rem; font-weight: 600; color: #fff; }
