/* ============================================================
   Mastí Inmobiliaria — Design System 2.0
   Modern · Elegant · Warm
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brand-primary:  #1a1a2e;
  --brand-dark:     #16213e;
  --brand-accent:   #e8542f;
  --brand-accent-hover: #d14525;
  --brand-warm:     #c9a87c;
  --brand-cream:    #faf8f5;
  --brand-light:    #f4f1ec;
  --brand-muted:    #5f5f70;
  --brand-border:   #e8e4de;
  --brand-white:    #ffffff;
  --brand-success:  #2ecc71;
  --brand-info:     #3498db;
  --brand-warning:  #f39c12;
  --brand-danger:   #e74c3c;

  --shadow-sm:  0 1px 3px rgba(26,26,46,.06);
  --shadow-md:  0 4px 16px rgba(26,26,46,.08);
  --shadow-lg:  0 8px 32px rgba(26,26,46,.12);
  --shadow-xl:  0 16px 48px rgba(26,26,46,.16);
  --shadow-card-hover: 0 12px 40px rgba(232,84,47,.10);

  --radius-sm: .375rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- Base Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--brand-cream);
  color: var(--brand-primary);
  font-size: .925rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
.heading, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  font-weight: 600;
  line-height: 1.25;
}
.heading-accent { color: var(--brand-accent); }

.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-accent);
  margin-bottom: .35rem;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--brand-muted);
  line-height: 1.7;
  max-width: 560px;
}
.muted { color: var(--brand-muted); font-size: .88rem; }

a { color: var(--brand-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-accent-hover); }

.link-soft {
  color: var(--brand-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-soft:hover { color: var(--brand-accent); }

/* ---------- Navbar (Glassmorphism) ---------- */
.navbar-masti {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: 0 1px 8px rgba(26,26,46,.04);
  padding: .6rem 0;
  transition: all .3s var(--ease-out);
  z-index: 1030;
}
.navbar-masti.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-md);
}
.navbar-masti .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-primary);
  letter-spacing: -.01em;
}
.navbar-masti .navbar-brand span.brand-accent { color: var(--brand-accent); }
.navbar-masti .nav-link {
  color: var(--brand-primary);
  font-size: .84rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
  position: relative;
  white-space: nowrap;
}
.navbar-masti .nav-link::after {
  content: '';
  position: absolute;
  bottom: .25rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: all .3s var(--ease-out);
  transform: translateX(-50%);
}
.navbar-masti .nav-link:hover::after,
.navbar-masti .nav-link.active::after {
  width: 60%;
}
.navbar-masti .nav-link:hover { color: var(--brand-accent); }

/* Navbar CTA buttons */
.nav-cta {
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 50px;
  transition: all .25s var(--ease-out);
}
.nav-cta-owner {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}
.nav-cta-owner:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232,84,47,.25);
}
.nav-cta-staff {
  border-color: var(--brand-border);
  color: var(--brand-muted);
}
.nav-cta-staff:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ---------- Hero Section ---------- */
.hero-masti {
  background: url('/static/img/hero-architecture.jpg') center/cover no-repeat;
  color: #fff;
  padding: 5rem 0 4rem;
  margin-top: -1px;
  position: relative;
  overflow: hidden;
}
/* Single dark overlay – neutral, no color cast */
.hero-masti::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, .62) 0%,
    rgba(0, 0, 0, .45) 60%,
    rgba(0, 0, 0, .30) 100%
  );
  pointer-events: none;
}
.hero-masti::after { display: none; }
.hero-masti .eyebrow { color: var(--brand-warm); }
.hero-masti h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 620px;
  margin-bottom: .75rem;
}
.hero-masti .lead-text {
  color: rgba(255,255,255,.78);
  max-width: 500px;
}
.hero-masti .link-soft { color: rgba(255,255,255,.6); }
.hero-masti .link-soft:hover { color: #fff; }

/* Hero Search */
.hero-search {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
.hero-search .form-control {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: .85rem;
  border-radius: var(--radius-sm);
}
.hero-search .form-control::placeholder { color: rgba(255,255,255,.5); }
.hero-search .form-control:focus {
  background: rgba(255,255,255,.18);
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 3px rgba(201,168,124,.2);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: .55rem 1.5rem;
  transition: all .25s var(--ease-out);
}
.btn-accent:hover {
  background: var(--brand-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,84,47,.3);
}

.btn-primary-premium {
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: .65rem 1.8rem;
  border-radius: 50px;
  font-size: .9rem;
  transition: all .3s var(--ease-out);
}
.btn-primary-premium:hover {
  background: var(--brand-accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,84,47,.35);
}

.btn-secondary-premium {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  font-weight: 500;
  padding: .65rem 1.8rem;
  border-radius: 50px;
  font-size: .9rem;
  transition: all .3s var(--ease-out);
  backdrop-filter: blur(5px);
}
.btn-secondary-premium:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,255,255,.15);
}

.btn-warm {
  background: var(--brand-warm);
  color: var(--brand-primary);
  border: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all .25s;
}
.btn-warm:hover {
  background: #b8955f;
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 0;
}
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

/* ---------- Cards (Modern) ---------- */
.card-premium {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.card-premium .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform .4s var(--ease-out);
}
.card-premium:hover .card-img-top {
  transform: scale(1.03);
}
.card-premium .card-body { padding: 1.25rem; }
.card-premium .card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: .35rem;
}
.card-meta {
  color: var(--brand-muted);
  font-size: .82rem;
}
.price-tag {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-accent);
}
.card-premium .card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--brand-border);
  background: var(--brand-white);
}

/* ---------- Step Cards ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.step-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all .3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.step-card:hover::before { transform: scaleX(1); }
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-accent);
  opacity: .3;
  line-height: 1;
  margin-bottom: .5rem;
}
.step-text { color: var(--brand-muted); font-size: .86rem; }

/* ---------- CTA Panels ---------- */
.cta-panel {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.cta-panel:hover { box-shadow: var(--shadow-md); }
.cta-panel-accent {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0f3460 100%);
  color: #fff;
  border: none;
}
.cta-panel-accent .heading, .cta-panel-accent h2 { color: #fff; }
.cta-panel-accent .muted { color: rgba(255,255,255,.7); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
  font-size: .88rem;
  transition: all .2s;
  background: var(--brand-white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(232,84,47,.1);
}
.form-label {
  font-weight: 500;
  font-size: .84rem;
  margin-bottom: .3rem;
  color: var(--brand-primary);
}

/* ---------- Badges ---------- */
.badge-soft {
  background: var(--brand-light);
  color: var(--brand-primary);
  font-weight: 500;
  font-size: .76rem;
  padding: .3rem .65rem;
  border-radius: 50px;
}
.badge-accent {
  background: rgba(232,84,47,.1);
  color: var(--brand-accent);
}
.badge-success-soft {
  background: rgba(46,204,113,.1);
  color: var(--brand-success);
}
.badge-info-soft {
  background: rgba(52,152,219,.1);
  color: var(--brand-info);
}
.badge-warning-soft {
  background: rgba(243,156,18,.1);
  color: var(--brand-warning);
}

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius-md); font-size: .88rem; }

/* ---------- Tables ---------- */
.table-clean {
  font-size: .85rem;
}
.table-clean th {
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-muted);
  border-bottom: 2px solid var(--brand-border);
}
.table-clean td {
  vertical-align: middle;
  border-bottom: 1px solid var(--brand-border);
}

/* ---------- Footer ---------- */
.footer-masti {
  background: var(--brand-primary);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 2rem;
}
.footer-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: .95rem;
}
.footer-link {
  color: rgba(255,255,255,.55);
  font-size: .84rem;
  text-decoration: none;
  display: inline-block;
  padding: .15rem 0;
  transition: color .2s;
}
.footer-link:hover { color: var(--brand-warm); }
.footer-masti .footer-desc {
  color: rgba(255,255,255,.5);
  font-size: .84rem;
  line-height: 1.6;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem;
  padding-top: 1rem;
}
.footer-bottom small { color: rgba(255,255,255,.35); }

/* Article body */
.article-body {
  font-size: .96rem;
  line-height: 1.9;
  color: var(--brand-text);
}
.article-body p { margin-bottom: 1.3rem; }
.article-body img { max-width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }

.article-body h4 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 2rem;
  margin-bottom: .75rem;
  padding-bottom: .45rem;
  border-bottom: 2px solid var(--brand-accent);
  display: inline-block;
}

.article-body ul, .article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.3rem;
}
.article-body li {
  margin-bottom: .5rem;
  line-height: 1.75;
}
.article-body li::marker {
  color: var(--brand-accent);
}

.article-body a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.article-body a:hover { color: #c43d1a; }

.article-body strong { color: var(--brand-primary); }

.article-body blockquote,
.article-body .article-highlight {
  background: linear-gradient(135deg, rgba(232,84,47,.06), rgba(201,168,124,.08));
  border-left: 4px solid var(--brand-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--brand-primary);
}

/* Article hero header */
.article-hero {
  background: linear-gradient(135deg, var(--brand-primary), #2a2a4a);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(232,84,47,.15), transparent 70%);
  border-radius: 50%;
}
.article-hero .eyebrow {
  color: var(--brand-accent);
  letter-spacing: .08em;
}
.article-hero h1 {
  color: #fff;
  font-size: 1.65rem;
  line-height: 1.3;
}
.article-hero .article-meta {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
}
.article-hero .article-excerpt {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  line-height: 1.6;
  margin-top: .75rem;
}

/* Article sidebar / CTA card */
.article-cta-card {
  background: linear-gradient(135deg, rgba(232,84,47,.06), rgba(201,168,124,.08));
  border: 1px solid rgba(232,84,47,.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}
.article-cta-card h4 {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: .75rem;
}

/* Article TOC */
.article-toc {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.article-toc h5 {
  font-family: var(--heading-font);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-muted);
  margin-bottom: .75rem;
}
.article-toc ol {
  padding-left: 1.2rem;
  margin-bottom: 0;
}
.article-toc li {
  margin-bottom: .35rem;
  font-size: .88rem;
}
.article-toc a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color .2s;
}
.article-toc a:hover { color: var(--brand-accent); }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--brand-accent);
  z-index: 9999;
  transition: width .1s linear;
}

/* ---------- Page Container ---------- */
.page-main {
  min-height: calc(100vh - 72px - 200px);
  padding-bottom: 3rem;
}

/* ---------- Content Panels ---------- */
.content-panel {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.content-panel-header {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--brand-border);
}

/* ---------- Property Detail Page ---------- */
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.gallery-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.gallery-thumb:hover, .gallery-thumb.active {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
}
.gallery-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}
.detail-spec-item {
  background: var(--brand-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.detail-spec-item .spec-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.detail-spec-item .spec-label {
  font-size: .75rem;
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.interest-card {
  background: linear-gradient(135deg, var(--brand-primary), #0f3460);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.right-sidebar-sticky {
  position: sticky;
  top: 90px;
}
.interest-card h3 { color: #fff; }
.interest-card .form-control {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.interest-card .form-control::placeholder { color: rgba(255,255,255,.5); }
.interest-card .form-control:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 3px rgba(201,168,124,.2);
  color: #fff;
}
.interest-card .btn-accent {
  background: var(--brand-warm);
  color: var(--brand-primary);
}
.interest-card .btn-accent:hover {
  background: #b8955f;
  box-shadow: 0 4px 16px rgba(201,168,124,.4);
}
.interest-card .muted { color: rgba(255,255,255,.6); }
.interest-card .invalid-feedback { color: #fbbf24; }

/* ---------- Map ---------- */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
}
.map-container #map { height: 320px; }

/* ---------- Price Drop ---------- */
.price-drop-badge { display: inline-flex; align-items: center; gap: .4rem; }
.price-previous {
  font-size: .88rem;
  color: var(--brand-muted);
  text-decoration: line-through;
}
.price-drop-badge .badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .5rem;
  border-radius: 50px;
}

/* ---------- Extras Badges ---------- */
.badge-extra {
  display: inline-flex;
  align-items: center;
  background: var(--brand-light);
  color: var(--brand-primary);
  font-size: .78rem;
  font-weight: 500;
  padding: .35rem .75rem;
  border-radius: 50px;
  border: 1px solid var(--brand-border);
}
.badge-extra i { color: var(--brand-accent); font-size: .7rem; }

/* ---------- Property Badge: Bajada ---------- */
.property-badge.badge-bajada {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  font-weight: 600;
}

/* ---------- Energy Certificate Colors ---------- */
.energy-cert-A { color: #00a651; font-weight: 800; }
.energy-cert-B { color: #4cb848; font-weight: 800; }
.energy-cert-C { color: #bdd62e; font-weight: 800; }
.energy-cert-D { color: #fee034; font-weight: 800; }
.energy-cert-E { color: #f9a825; font-weight: 800; }
.energy-cert-F { color: #ef6c00; font-weight: 800; }
.energy-cert-G { color: #e53935; font-weight: 800; }

/* ---------- Energy Label (Visual Certificate) ---------- */
.energy-label-container {
  border-top: 1px solid var(--brand-border);
  padding-top: 1rem;
}
.energy-label {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 1rem 1rem .75rem;
  max-width: 520px;
}
.energy-label-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e0e0e0;
}
.energy-label-title {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  letter-spacing: .02em;
}
.energy-label-cols {
  display: flex;
  gap: .75rem;
  text-align: center;
}
.energy-label-col-head {
  font-size: .6rem;
  font-weight: 600;
  color: #666;
  line-height: 1.2;
}
.energy-label-col-head small {
  font-weight: 400;
  color: #999;
}
.energy-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  min-height: 26px;
}
.energy-row--active {
  transform: scale(1.03);
  transform-origin: left center;
}
.energy-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 28px 0 8px;
  border-radius: 2px 0 0 2px;
  color: #fff;
  flex-shrink: 0;
}
.energy-row--active .energy-arrow {
  height: 30px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.energy-letter {
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
}
.energy-hint {
  font-size: .55rem;
  margin-left: .35rem;
  opacity: .85;
  white-space: nowrap;
}
.energy-arrow-tip {
  position: absolute;
  right: -12px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 12px solid;
}
.energy-row--active .energy-arrow-tip {
  border-top-width: 15px;
  border-bottom-width: 15px;
  border-left-width: 15px;
  right: -15px;
}
.energy-values {
  display: flex;
  gap: .5rem;
  margin-left: auto;
  padding-left: .75rem;
}
.energy-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 28px;
  padding: 0 .5rem;
  border-radius: 4px;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}
.energy-data-list {
  list-style: disc inside;
  font-size: .85rem;
  color: #444;
}
.energy-data-list li {
  margin-bottom: .25rem;
}

/* ---------- Address Autocomplete ---------- */
.address-autocomplete { position: relative; z-index: 700; }
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  padding: .35rem 0;
}
.address-suggestions.show { display: block; }
.address-suggestion {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  width: 100%;
  padding: .6rem 1rem;
  text-align: left;
  font-size: .84rem;
  line-height: 1.35;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
  color: var(--brand-text);
}
.address-suggestion i {
  color: var(--brand-accent);
  font-size: .9rem;
  margin-top: .12rem;
  flex-shrink: 0;
}
.address-suggestion span { display: flex; flex-direction: column; min-width: 0; }
.address-suggestion strong { font-weight: 600; font-size: .85rem; }
.address-suggestion small { color: var(--brand-muted); font-size: .76rem; margin-top: .1rem; }
.address-suggestion:hover,
.address-suggestion:focus {
  background: var(--brand-light);
}
.address-suggestion:hover strong { color: var(--brand-accent); }
.address-suggestion + .address-suggestion { border-top: 1px solid var(--brand-border); }

/* Custom map marker (SVG icon) */
.custom-map-marker { background: none !important; border: none !important; }
.custom-map-marker svg { filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }

/* ============================================================
   OWNER PANEL — Premium Dashboard
   ============================================================ */

/* Owner Header */
.owner-header {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #0f3460 100%);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.owner-header::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232,84,47,.15), transparent 70%);
  pointer-events: none;
}
.owner-header h1 { color: #fff; font-size: 1.5rem; }
.owner-header .muted { color: rgba(255,255,255,.6); }

.owner-nav-pills .nav-link {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 50px;
  transition: all .2s;
}
.owner-nav-pills .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.owner-nav-pills .nav-link.active {
  color: var(--brand-primary);
  background: #fff;
  font-weight: 600;
}

/* Owner Cards */
.owner-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease-out);
}
.owner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.owner-card-header {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--brand-border);
}
.owner-card-header i { color: var(--brand-accent); }

/* Owner Property Card in Dashboard */
.owner-property-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.owner-property-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.owner-property-body { padding: 1.25rem; }
.owner-property-stage {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(232,84,47,.08);
  color: var(--brand-accent);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
}

/* Progress Track (Owner) */
.progress-track-owner {
  background: var(--brand-light);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-fill-owner {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-warm));
  transition: width .6s var(--ease-out);
}

/* Progress Steps Visual */
.progress-stages {
  display: flex;
  gap: 0;
  align-items: flex-start;
  position: relative;
  margin: 1.5rem 0;
}
.progress-stage {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 2rem;
}
.progress-stage::before {
  content: '';
  position: absolute;
  top: .6rem;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-border);
}
.progress-stage:first-child::before { left: 50%; }
.progress-stage:last-child::before { right: 50%; }
.progress-stage.completed::before { background: var(--brand-success); }
.progress-stage.current::before { background: linear-gradient(90deg, var(--brand-success), var(--brand-accent)); }

.progress-stage-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--brand-border);
  border: 3px solid var(--brand-white);
  box-shadow: 0 0 0 2px var(--brand-border);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: all .3s;
}
.progress-stage.completed .progress-stage-dot {
  background: var(--brand-success);
  box-shadow: 0 0 0 2px var(--brand-success);
}
.progress-stage.current .progress-stage-dot {
  background: var(--brand-accent);
  box-shadow: 0 0 0 2px var(--brand-accent), 0 0 0 6px rgba(232,84,47,.15);
  animation: pulse-dot 2s infinite;
}
.progress-stage-label {
  font-size: .65rem;
  color: var(--brand-muted);
  font-weight: 500;
  line-height: 1.2;
  margin-top: .25rem;
}
.progress-stage.completed .progress-stage-label { color: var(--brand-success); }
.progress-stage.current .progress-stage-label {
  color: var(--brand-accent);
  font-weight: 700;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px var(--brand-accent), 0 0 0 6px rgba(232,84,47,.15); }
  50% { box-shadow: 0 0 0 2px var(--brand-accent), 0 0 0 10px rgba(232,84,47,.05); }
}

/* Chat / Messages */
.chat-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.chat-bubble {
  max-width: 80%;
  padding: .85rem 1.1rem;
  border-radius: var(--radius-lg);
  font-size: .86rem;
  line-height: 1.55;
  position: relative;
  animation: fadeInUp .3s var(--ease-out);
}
.chat-bubble-owner {
  background: var(--brand-accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: .25rem;
}
.chat-bubble-agency {
  background: var(--brand-white);
  color: var(--brand-primary);
  align-self: flex-start;
  border: 1px solid var(--brand-border);
  border-bottom-left-radius: .25rem;
}
.chat-time {
  font-size: .68rem;
  opacity: .6;
  margin-top: .25rem;
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Document Card */
.doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--brand-light);
  border-radius: var(--radius-md);
  transition: all .2s;
}
.doc-card:hover { background: var(--brand-white); box-shadow: var(--shadow-sm); }
.doc-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(232,84,47,.08);
  color: var(--brand-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.doc-name {
  font-weight: 500;
  font-size: .86rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-status { font-size: .75rem; font-weight: 600; }

/* Calendar / Appointments */
.calendar-shell {
  background: var(--brand-white);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.calendar-legend { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--brand-muted); }
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-appointment { background: var(--brand-info); }
.legend-visit { background: var(--brand-success); }

/* Owner Login Centered Card */
.auth-card {
  max-width: 440px;
  margin: 3rem auto;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-card-header {
  background: linear-gradient(135deg, var(--brand-primary), #0f3460);
  padding: 2rem;
  text-align: center;
  color: #fff;
}
.auth-card-header h1 { color: #fff; font-size: 1.35rem; margin-bottom: .25rem; }
.auth-card-header p { color: rgba(255,255,255,.6); font-size: .86rem; margin: 0; }
.auth-card-body { padding: 2rem; }

/* Owner Empty State */
.owner-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.owner-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--brand-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   UTILITY: About / Location Pages
   ============================================================ */
.about-value-card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all .3s var(--ease-out);
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-value-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,84,47,.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--brand-accent);
  margin-bottom: .75rem;
}

/* Contact page */
.contact-info-card {
  background: linear-gradient(135deg, var(--brand-primary), #0f3460);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #fff;
}
.contact-info-card h3 { color: #fff; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.contact-info-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-warm);
  flex-shrink: 0;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
  border: 1px solid var(--brand-border);
  color: var(--brand-primary);
  font-size: .84rem;
  padding: .4rem .75rem;
  transition: all .2s;
  border-radius: var(--radius-sm) !important;
  margin: 0 .15rem;
}
.pagination .page-link:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}
.pagination .page-item.active .page-link {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.6);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--brand-border);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-masti { padding: 3.5rem 0 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .progress-stages { flex-wrap: wrap; }
  .progress-stage { min-width: 4.5rem; }
}
/* Tablet: tighter navbar so items don't wrap */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-masti .nav-link {
    font-size: .76rem;
    padding: .45rem .5rem;
  }
  .navbar-masti .navbar-brand { font-size: 1.05rem; }
  .nav-cta { font-size: .72rem; padding: .35rem .75rem; }
}
@media (max-width: 767.98px) {
  .hero-masti { padding: 2.5rem 0 2rem; }
  .hero-masti h1 { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .content-panel { padding: 1.25rem; }
  .owner-header { padding: 1.25rem 1.5rem; }
  .detail-specs { grid-template-columns: repeat(2, 1fr); }
  .progress-stage-label { font-size: .58rem; }
  .chat-bubble { max-width: 90%; }
  .interest-card { position: static; }
  .right-sidebar-sticky { position: static; }
}

/* Coming Soon (alias for staff coming-soon-panel) */
.coming-soon-panel,
.coming-soon { text-align: center; padding: 3rem 1rem; color: var(--brand-muted); }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(37,211,102,.55);
  color: #fff;
}
.whatsapp-float:active { transform: scale(.95); }

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 1400;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--brand-accent); }

/* ============================================================
   SHARE BUTTONS
   ============================================================ */
.share-buttons { display: flex; align-items: center; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .9rem;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, opacity .2s ease;
}
.share-btn:hover { transform: scale(1.15); color: #fff; opacity: .85; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-facebook { background: #1877f2; }
.share-btn-twitter { background: #000; }
.share-btn-email { background: var(--brand-primary); }

/* ============================================================
   FOOTER SOCIAL ICONS
   ============================================================ */
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--brand-warm);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  margin-right: .4rem;
}
.footer-social-icon:hover {
  background: var(--brand-accent);
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   SKIP-LINK (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--brand-primary);
  color: #fff;
  padding: .5rem 1.5rem;
  border-radius: 0 0 .5rem .5rem;
  font-size: .85rem;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ============================================================
   TRUST / TESTIMONIALS SECTION
   ============================================================ */
.trust-section { background-color: var(--brand-light); }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border-left: 3px solid var(--brand-warm);
  height: 100%;
}
.testimonial-quote {
  font-style: italic;
  color: var(--brand-body);
  line-height: 1.7;
  font-size: .92rem;
  margin-bottom: 1rem;
}
.testimonial-author {
  font-weight: 600;
  font-size: .85rem;
  color: var(--brand-primary);
}
.testimonial-role {
  font-size: .78rem;
  color: var(--brand-muted);
}
.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
}
.trust-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.trust-badge-text {
  font-size: .78rem;
  color: var(--brand-muted);
  line-height: 1.3;
}
.trust-badge-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand-primary);
}

/* ============================================================
   REVIEW STARS (owner review form)
   ============================================================ */
.review-stars {
  display: flex;
  gap: .25rem;
}
.review-star {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-border);
  cursor: pointer;
  padding: .1rem;
  transition: color .15s ease, transform .15s ease;
}
.review-star.active { color: var(--brand-warm); }
.review-star:hover { transform: scale(1.2); color: var(--brand-accent); }

/* ============================================================
   SMOOTH SCROLL (global)
   ============================================================ */
html { scroll-behavior: smooth; }

/* ============================================================
   ANIMATIONS — Scroll Reveal
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Elements with .reveal start hidden, become visible when IntersectionObserver adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays for child elements */
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: .4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: .5s; }

/* Hero staggered entrance */
.hero-masti .eyebrow,
.hero-masti h1,
.hero-masti .lead-text,
.hero-masti .d-flex,
.hero-masti .link-soft,
.hero-masti .hero-search {
  animation: fadeInUp .7s var(--ease-out) both;
}
.hero-masti .eyebrow    { animation-delay: .1s; }
.hero-masti h1          { animation-delay: .25s; }
.hero-masti .lead-text  { animation-delay: .4s; }
.hero-masti .d-flex     { animation-delay: .55s; }
.hero-masti .link-soft  { animation-delay: .65s; }
.hero-masti .hero-search { animation-delay: .75s; }

/* Navbar padding transition on scroll */
.navbar-masti {
  transition: background .3s, box-shadow .3s, padding .3s;
}
.navbar-masti.scrolled {
  padding-top: .25rem;
  padding-bottom: .25rem;
}

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  z-index: 10001;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  z-index: 10001;
}

/* ============================================================
   PROPERTY BADGES
   ============================================================ */
.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: .2rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-nuevo {
  background: var(--brand-success);
  color: #fff;
}
.badge-reservado {
  background: var(--brand-warning);
  color: #fff;
}
.badge-rebajado {
  background: var(--brand-accent);
  color: #fff;
}

/* ============================================================
   MORTGAGE CALCULATOR
   ============================================================ */
.mortgage-card {
  background: var(--brand-light);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.mortgage-result {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-accent);
}
.mortgage-label {
  font-size: .78rem;
  color: var(--brand-muted);
}
.mortgage-card .form-range::-webkit-slider-thumb {
  background: var(--brand-accent);
}
.mortgage-card .form-range::-webkit-slider-runnable-track {
  background: var(--brand-border);
}

/* ============================================================
   FOCUS VISIBLE (accessibility)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.nav-link:focus-visible,
.page-link:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* ============================================================
   SUBMIT LOADING STATE
   ============================================================ */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: .75;
}
.btn-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* ============================================================
   SECTION BACKGROUND IMAGES  –  visible but tasteful
   Uses the image as actual background with a cream overlay.
   ============================================================ */

/* --- Sections (index) --- */
.section-bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;            /* parallax – one coherent image */
}
.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, .72);   /* cream overlay – lets ~28 % of image through */
  z-index: 0;
  pointer-events: none;
}
/* Mobile: fixed attachment not supported on iOS, fall back to scroll */
@media (max-width: 991.98px) {
  .section-bg { background-attachment: scroll; }
}
.section-bg > .container {
  position: relative;
  z-index: 1;
}
/* image variants */
.section-bg--content  { background-image: url('/static/img/bg-content.jpg'); }
.section-bg--detail   { background-image: url('/static/img/bg-detail.jpg'); }
.section-bg--home     { background-image: url('/static/img/bg-home.jpg'); }
.section-bg--forms    { background-image: url('/static/img/bg-forms.jpg'); }
.section-bg--listing  { background-image: url('/static/img/bg-listing.jpg'); }
.section-bg--legal    { background-image: url('/static/img/bg-legal.jpg'); }

/* --- Page Header Banners (interior pages) --- */
.page-header-bg {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2.5rem;
  margin: 0 0 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--brand-border, #e8e4df);
}
.page-header-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, .68);   /* slightly more image visible in headers */
  z-index: 0;
  pointer-events: none;
}
.page-header-bg > *,
.page-header-bg > .section-title {
  position: relative;
  z-index: 1;
}
.page-header-bg .section-title,
.page-header-bg .eyebrow,
.page-header-bg h1,
.page-header-bg h2,
.page-header-bg p {
  text-align: center;
}
.page-header-bg--forms    { background-image: url('/static/img/bg-forms.jpg'); }
.page-header-bg--listing  { background-image: url('/static/img/bg-listing.jpg'); }
.page-header-bg--content  { background-image: url('/static/img/bg-content.jpg'); }
.page-header-bg--detail   { background-image: url('/static/img/bg-detail.jpg'); }
.page-header-bg--home     { background-image: url('/static/img/bg-home.jpg'); }
.page-header-bg--legal    { background-image: url('/static/img/bg-legal.jpg'); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .navbar-masti,
  .whatsapp-float,
  .back-to-top,
  .footer-masti,
  #cookieBanner,
  .skip-link,
  .share-buttons,
  .interest-card form,
  .hero-search,
  .nav-cta { display: none !important; }

  body { font-size: 11pt; color: #000; background: #fff; }
  .page-main { padding: 0; }
  .content-panel { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  img { max-width: 100% !important; }
  .price-tag { color: #000; font-size: 14pt; }
}
