/* =========================================================
   دامنه — سایت فروش ویلا و باغ‌ویلا اطراف تهران
   Design tokens
   ========================================================= */
@font-face {
  font-family: "Lalezar";
  src: url("fonts/Lalezar-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* رنگ‌ها — الهام از سرو، سنگ، خشت و برنج معماری ایرانی */
  --ink: #182019;
  --ink-soft: #263229;
  --stone: #efe8d8;
  --stone-2: #e4dac2;
  --cypress: #33513f;
  --cypress-light: #4a715a;
  --clay: #a8583a;
  --clay-light: #c17452;
  --brass: #c6a356;
  --mist: #92a496;
  --paper: #faf7ef;
  --ink-text: #20261f;

  --font-display: "Lalezar", "Vazirmatn", sans-serif;
  --font-body: "Vazirmatn", sans-serif;

  --radius-arch: 200px 200px 16px 16px;
  --shadow-soft: 0 20px 50px -20px rgba(24, 32, 25, 0.35);
  --shadow-card: 0 14px 34px -16px rgba(24, 32, 25, 0.28);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-text);
  direction: rtl;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brass);
  border-radius: 2px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.25; }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  margin-bottom: 10px;
}
.section-lead {
  font-size: 17px;
  color: #55604f;
  max-width: 560px;
  line-height: 1.9;
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 247, 239, 0.88);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 6px 24px -14px rgba(24,32,25,.35);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
}
.brand svg { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { position: relative; padding-bottom: 4px; }
.nav-links a::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 0;
  height: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-primary {
  background: var(--cypress);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); background: var(--cypress-light); }
.btn-ghost {
  border-color: rgba(24,32,25,.25);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(24,32,25,.05); }
.btn-small { padding: 9px 18px; font-size: 13px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--stone) 0%, var(--paper) 100%);
}


.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(44px, 6vw, 74px);
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-copy h1 span { color: var(--clay); }
.hero-copy p {
  font-size: 18px;
  color: #4c5645;
  max-width: 480px;
  line-height: 1.95;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 46px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 30px; color: var(--cypress); }
.hero-stats span { font-size: 13.5px; color: #6b7563; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}
.hero-arch {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid var(--paper);
  outline: 1px solid rgba(24,32,25,.08);
}
.hero-arch img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 16s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.12) translate(-1%, -2%); } }

.hero-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--paper);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-badge .dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cypress); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px;
}
.hero-badge div b { display: block; font-size: 14.5px; color: var(--ink); }
.hero-badge div span { font-size: 12.5px; color: #6b7563; }

/* =========================================================
   Listings
   ========================================================= */
.listings-section { padding: 0 0 60px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(24,32,25,.18);
  font-size: 13.5px;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
  transition: all .25s var(--ease);
}
.filter-chip:hover { border-color: var(--cypress); }
.filter-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--paper);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  position: relative;
  z-index: 1;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 3px;
  background: conic-gradient(
    from var(--neon-angle, 0deg),
    #ff0000, #ff8800, #ffff00, #00ff00, #00ffff, #0088ff, #8800ff, #ff00ff, #ff0000
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  animation: neonRotate 3s linear infinite;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 15px rgba(255,50,80,.2), 0 0 30px rgba(80,50,255,.15), 0 0 45px rgba(50,255,180,.1);
}

@keyframes neonRotate {
  0%   { --neon-angle: 0deg; }
  100% { --neon-angle: 360deg; }
}
@property --neon-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.08); }
.card-region {
  position: absolute; top: 14px; right: 14px;
  background: rgba(24,32,25,.72);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  backdrop-filter: blur(4px);
}
.card-dist {
  position: absolute; top: 14px; left: 14px;
  background: var(--brass);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.card-body { padding: 22px 22px 24px; }
.card-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.card-price { color: var(--clay); font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.card-specs { display: flex; gap: 16px; font-size: 13px; color: #6b7563; border-top: 1px dashed rgba(24,32,25,.15); padding-top: 14px; }
.card-specs span { display: flex; align-items: center; gap: 6px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7563;
  grid-column: 1 / -1;
}

/* =========================================================
   Route / Signature section — مسیر دامنه
   ========================================================= */
.route-section {
  padding: 130px 0;
  background: var(--ink);
  color: var(--stone);
  position: relative;
  overflow: hidden;
}
.route-section .eyebrow { color: var(--brass); }
.route-section .section-title { color: var(--paper); }
.route-section .section-lead { color: var(--mist); }
.route-head { margin-bottom: 60px; }

.route-map { position: relative; width: 100%; }
.route-map svg { width: 100%; height: auto; }
.route-path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2.5;
  stroke-dasharray: 4 10;
  stroke-linecap: round;
}
.route-path.drawn {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2.4s var(--ease);
}
.route-path.drawn.in-view { stroke-dashoffset: 0; }

.route-pin { transform-origin: center; }
.route-pin circle.core { fill: var(--clay); }
.route-pin circle.ring { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: .5; }
.route-label {
  fill: var(--stone);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
}
.route-time {
  fill: var(--mist);
  font-family: var(--font-body);
  font-size: 12px;
}
.route-origin circle { fill: var(--brass); }
.route-origin text { fill: var(--ink); font-family: var(--font-display); font-size: 16px; }

/* =========================================================
   Why us
   ========================================================= */
.why-section { padding: 130px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.why-card {
  padding: 34px 28px;
  border-radius: 22px;
  background: var(--stone);
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.why-card:hover { transform: translateY(-6px); background: var(--stone-2); }
.why-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--cypress);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.why-card p { font-size: 14.5px; color: #5c6653; line-height: 1.85; margin: 0; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  margin: 0 28px;
  max-width: 1124px;
  margin-inline: auto;
  background: var(--clay);
  border-radius: 32px;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(250,247,239,.25);
  top: -120px; left: -80px;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); max-width: 480px; }
.cta-band .btn-primary { background: var(--ink); }

/* =========================================================
   Contact
   ========================================================= */
.contact-section { padding: 130px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}
.contact-info ul { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.contact-info li { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.contact-info .ic {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--stone); color: var(--cypress);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-form {
  background: var(--stone);
  border-radius: 26px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form input, .contact-form textarea {
  border: 1px solid rgba(24,32,25,.18);
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink-text);
  outline: none;
  transition: border-color .25s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cypress); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-msg { font-size: 13.5px; color: var(--cypress); min-height: 18px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,239,.12);
}
.footer-top .brand { color: var(--paper); }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links h4 { color: var(--paper); font-size: 14px; margin-bottom: 14px; font-weight: 700; font-family: var(--font-body); }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: var(--brass); }

/* =========================================================
   Lightbox
   ========================================================= */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(24,32,25,.92);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  padding: 30px;
  overflow-y: auto;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-content { max-width: 900px; width: 100%; margin: auto; }
.lightbox-content img { width: 100%; border-radius: 18px; max-height: 72vh; object-fit: cover; }
.lightbox-info {
  background: rgba(24,32,25,.85);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 24px;
  margin-top: 18px;
  color: var(--stone);
}
.lightbox-info h3 { font-family: var(--font-body); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.lightbox-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.lightbox-tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(250,247,239,.12);
  color: var(--stone);
  border: 1px solid rgba(250,247,239,.15);
}
.lightbox-tag.tag-accent {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}
.lightbox-close {
  position: absolute; top: 26px; left: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: none; font-size: 18px;
}
.lightbox-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.lightbox-thumbs img { width: 70px; height: 52px; object-fit: cover; border-radius: 8px; opacity: .55; transition: opacity .25s; }
.lightbox-thumbs img.active, .lightbox-thumbs img:hover { opacity: 1; }

/* =========================================================
   Accordions — Luxury Style with Neon
   ========================================================= */
.accordion {
  margin: 0 28px;
  border-bottom: 1px solid rgba(24,32,25,.06);
  position: relative;
}
.accordion:last-child { border-bottom: none; }

.accordion-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  background: none; border: none;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--ink); cursor: pointer;
  transition: color .25s var(--ease);
}
.accordion-toggle:hover { color: var(--clay); }
.acc-arrow {
  font-size: 14px; color: var(--mist);
  transition: transform .35s var(--ease);
}
.accordion-toggle.open .acc-arrow { transform: rotate(180deg); }

.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height .45s var(--ease), padding .45s var(--ease);
  padding: 0;
}
.accordion-content.open { max-height: 2000px; padding-bottom: 20px; }

/* =========================================================
   Detail Button
   ========================================================= */
.btn-detail {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.btn-detail:hover { background: var(--ink-soft); }

/* =========================================================
   Publisher (Card)
   ========================================================= */
.card-publisher {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; margin-top: 12px;
  border-top: 1px dashed rgba(24,32,25,.12);
}
.publisher-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.publisher-name { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.publisher-role { display: block; font-size: 11.5px; color: var(--mist); }

/* =========================================================
   Detail Panel (Slide-in) — Full Redesign
   ========================================================= */
body.panel-open { overflow: hidden; }
.panel-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24,32,25,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  backdrop-filter: blur(4px);
}
.panel-overlay.open { opacity: 1; pointer-events: all; }

.detail-panel {
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 210;
  width: 100%; max-width: 620px;
  background: var(--paper);
  transform: translateX(-100%);
  transition: transform .45s var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-panel.open { transform: translateX(0); }

.panel-close {
  position: fixed; top: 18px; left: 18px; z-index: 220;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250,247,239,.9); backdrop-filter: blur(8px);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: none; font-size: 18px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .2s, background .2s;
}
.panel-close:hover { transform: scale(1.1); background: var(--paper); }

.panel-body { padding: 0 0 60px; }

/* --- Hero Image --- */
.panel-hero { position: relative; }
.panel-hero > img {
  width: 100%; height: 420px; object-fit: cover;
  display: block;
}
.panel-thumbs {
  position: absolute; bottom: 16px; left: 16px;
  display: flex; gap: 8px;
}
.panel-thumbs img {
  width: 60px; height: 44px; object-fit: cover;
  border-radius: 10px; opacity: .55;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer; transition: opacity .25s, border-color .25s;
}
.panel-thumbs img.active, .panel-thumbs img:hover {
  opacity: 1; border-color: var(--paper);
}

/* --- Title Section --- */
.panel-title-section { padding: 28px 28px 0; }
.panel-title-section h2 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 22px; color: var(--ink); margin-bottom: 8px;
}
.panel-price { color: var(--clay); font-weight: 700; font-size: 20px; margin-bottom: 16px; }

/* --- Publisher --- */
.detail-publisher {
  display: flex; align-items: center; gap: 14px;
  background: var(--stone); border-radius: 16px;
  padding: 14px 18px;
}
.detail-publisher-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.detail-publisher-name { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.detail-publisher-role { display: block; font-size: 12.5px; color: var(--mist); }

/* --- Description --- */
.panel-desc {
  padding: 20px 28px 0;
  font-size: 15px; color: #55604f; line-height: 1.9;
}

/* =========================================================
   Info Cards Grid (Details, Amenities, Nearby)
   ========================================================= */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--stone);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  z-index: 1;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(24,32,25,.18);
}
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: conic-gradient(
    from var(--card-angle, 0deg),
    #ff000040, #ff880040, #ffff0040, #00ff0040, #00ffff40, #0088ff40, #8800ff40, #ff00ff40, #ff000040
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.info-card:hover::after { opacity: 1; animation: cardNeonRotate 3s linear infinite; }

@keyframes cardNeonRotate {
  0%   { --card-angle: 0deg; }
  100% { --card-angle: 360deg; }
}
@property --card-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.info-card .card-icon {
  font-size: 22px; margin-bottom: 6px;
}
.info-card .card-label {
  font-size: 12px; font-weight: 500; color: var(--mist);
  margin-bottom: 2px;
}
.info-card .card-value {
  font-size: 15px; font-weight: 700; color: var(--ink);
}

.info-card.card-green .card-value { color: #2d7a4f; }
.info-card.card-blue .card-value { color: #2563a8; }
.info-card.card-purple .card-value { color: #7c3aed; }
.info-card.card-orange .card-value { color: #c2410c; }
.info-card.card-red .card-value { color: #dc2626; }
.info-card.card-teal .card-value { color: #0d9488; }
.info-card.card-pink .card-value { color: #db2777; }
.info-card.card-indigo .card-value { color: #4f46e5; }

/* =========================================================
   Nearby Cards
   ========================================================= */
.nearby-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--stone);
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  z-index: 1;
}
.nearby-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(24,32,25,.18);
}
.nearby-card .nearby-icon { font-size: 28px; margin-bottom: 8px; }
.nearby-card .nearby-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.nearby-card .nearby-dist { font-size: 12px; color: var(--clay); font-weight: 700; }

/* =========================================================
   Mortgage Calculator
   ========================================================= */
.mortgage-calc { display: flex; flex-direction: column; gap: 14px; }
.calc-row { display: flex; flex-direction: column; gap: 6px; }
.calc-row label { font-size: 13px; font-weight: 600; color: var(--mist); }
.calc-row input {
  border: 1px solid rgba(24,32,25,.15);
  border-radius: 12px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 14px;
  background: var(--paper); color: var(--ink-text);
  outline: none; transition: border-color .2s;
}
.calc-row input:focus { border-color: var(--cypress); }

.calc-results {
  background: var(--stone); border-radius: 16px; padding: 20px;
  margin-top: 6px;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid rgba(24,32,25,.06);
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-row span:first-child { color: var(--mist); }
.calc-result-row span:last-child { color: var(--ink); }
.calc-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; margin-top: 6px;
  border-top: 2px solid rgba(24,32,25,.1);
}
.calc-total span:first-child { font-weight: 700; color: var(--ink); font-size: 15px; }
.calc-total span:last-child { font-weight: 700; color: var(--clay); font-size: 17px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .listings-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; }
  .hero-stats { flex-wrap: wrap; gap: 22px; }
  .detail-panel { max-width: 100%; }
  .panel-body { padding: 0 0 40px; }
  .panel-title-section { padding: 20px 20px 0; }
  .panel-desc { padding: 16px 20px 0; }
  .accordion { margin: 0 20px; }
  .panel-hero > img { height: 280px; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .info-card { padding: 14px 14px; }
  .nearby-card { padding: 14px 12px; }
  .calc-results { padding: 16px; }
  .detail-publisher { padding: 12px 14px; }
  .detail-publisher-avatar { width: 38px; height: 38px; }
}
