/* ============================================================
   PrimaLand Realty — Agen Properti / Real Estate
   Arketipe: Marketplace Mega-Menu & Rekomendasi
   Palet: Luxury Navy & Gold ("PrimaLand Estate")
   ============================================================ */

:root {
  --color-primary: #1a2b4c;
  --color-primary-dark: #0d1830;
  --color-secondary: #c9a227;
  --color-accent: #a3462b;
  --color-bg: #f7f5ef;
  --color-surface: #ffffff;
  --color-border: #e5e0d3;
  --color-text: #22283a;
  --color-text-muted: #5c6478;
  --color-success: #2e7d5b;
  --color-warning: #c9a227;
  --color-danger: #b1362c;
  --color-info: #2b6fa3;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(26,43,76,0.08);
  --shadow-md: 0 8px 24px rgba(26,43,76,0.14);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
  --header-h: 148px;
}

:root[data-theme="dark"] {
  --color-primary: #c9a227;
  --color-primary-dark: #a3862a;
  --color-secondary: #e6c15a;
  --color-bg: #10182b;
  --color-surface: #182238;
  --color-border: #2a3552;
  --color-text: #edeef2;
  --color-text-muted: #a7aec2;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #c9a227;
    --color-primary-dark: #a3862a;
    --color-secondary: #e6c15a;
    --color-bg: #10182b;
    --color-surface: #182238;
    --color-border: #2a3552;
    --color-text: #edeef2;
    --color-text-muted: #a7aec2;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 .5em; color: var(--color-text); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: .95rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--color-secondary); color: #1a1608; box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline-gold { background: transparent; color: var(--color-secondary); border: 2px solid var(--color-secondary); width: 100%; }
.btn-block { width: 100%; }

/* ============= HEADER ============= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--color-surface); box-shadow: var(--shadow-sm); }
.topbar { background: var(--color-primary-dark); color: #f2eee0; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; flex-wrap: wrap; gap: 8px; }
.topbar-contact span { margin-right: 18px; }
.topbar-links { display: flex; align-items: center; gap: 14px; }
.topbar-links a:hover { color: var(--color-secondary); }
.theme-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #f2eee0; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}

.header-main { padding: 14px 0; }
.header-main-inner { display: flex; align-items: center; gap: 24px; }
.brand { flex-shrink: 0; }

.search-bar { flex: 1; display: flex; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; padding: 4px; gap: 4px; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 8px 14px; flex: 1; border-right: 1px solid var(--color-border); }
.search-field:last-of-type { border-right: none; }
.search-field i { color: var(--color-text-muted); }
.search-field input, .search-field select {
  border: none; background: transparent; font-family: var(--font-body); font-size: .9rem; width: 100%; color: var(--color-text);
}
.search-field input:focus, .search-field select:focus { outline: none; }
.search-submit { padding: 10px 18px; white-space: nowrap; }

.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--color-text); }

.mega-nav { background: var(--color-primary); }
.mega-nav-list { display: flex; align-items: center; }
.mega-nav-list > li > a, .mega-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 18px; color: #fff; font-weight: 500; font-size: .92rem;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.mega-nav-list > li > a:hover, .mega-trigger:hover { color: var(--color-secondary); }
.mega-item { position: relative; }
.mega-panel {
  position: absolute; top: 100%; left: 0; background: var(--color-surface); box-shadow: var(--shadow-md);
  border-radius: 0 0 12px 12px; display: none; grid-template-columns: repeat(4, 180px) 220px; gap: 24px;
  padding: 26px; z-index: 50;
}
.mega-item.open .mega-panel { display: grid; }
.mega-col h4 { font-size: .95rem; color: var(--color-primary); margin-bottom: 10px; }
.mega-col a { display: block; padding: 6px 0; color: var(--color-text-muted); font-size: .88rem; }
.mega-col a:hover { color: var(--color-secondary); }
.mega-promo img { border-radius: 8px; margin-bottom: 8px; }
.mega-promo p { font-size: .8rem; color: var(--color-text-muted); margin: 0; }

/* ============= HERO ============= */
.hero { position: relative; }
.hero-carousel { position: relative; height: 560px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 60px; max-width: 720px; background: linear-gradient(90deg, rgba(13,24,48,.82), rgba(13,24,48,.15));
  color: #fff;
}
.hero-caption .eyebrow { color: var(--color-secondary); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px; }
.hero-caption h1 { font-size: 2.6rem; color: #fff; margin-bottom: 14px; }
.hero-caption p { color: #e6e3d8; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.18); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1rem; backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--color-secondary); color: #1a1608; }
.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button.active { background: var(--color-secondary); width: 26px; border-radius: 6px; }

/* ============= MARQUEE ============= */
.marquee-section { background: var(--color-primary); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 44px; white-space: nowrap; animation: marquee 22s linear infinite; width: max-content; }
.marquee-track span { color: #f2eee0; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.marquee-track i { color: var(--color-secondary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============= SECTION HEADINGS ============= */
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow { color: var(--color-secondary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; display: block; margin-bottom: 8px; }
.eyebrow-light { color: var(--color-secondary); }
.section-heading h2 { font-size: 2rem; }

/* ============= LISTING ============= */
.listing-section { padding: 70px 0; }
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.facet-sidebar {
  position: sticky; top: calc(var(--header-h) + 16px); background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.facet-block { margin-bottom: 20px; }
.facet-block h3 { font-size: .95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.facet-block label { display: flex; align-items: center; gap: 8px; font-size: .88rem; margin-bottom: 8px; color: var(--color-text-muted); cursor: pointer; }
.facet-block input { accent-color: var(--color-secondary); }

.listing-rows { display: flex; flex-direction: column; gap: 40px; }
.row-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.row-heading h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.hscroll-nav { display: flex; gap: 8px; }
.hscroll-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface);
  cursor: pointer; color: var(--color-text);
}
.hscroll-btn:hover { background: var(--color-secondary); color: #1a1608; border-color: var(--color-secondary); }
.hscroll-row { display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.hscroll-row::-webkit-scrollbar { height: 6px; }
.hscroll-row::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.prop-card {
  flex: 0 0 280px; scroll-snap-align: start; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prop-card-media { position: relative; }
.prop-card-media img { width: 100%; height: 170px; object-fit: cover; }
.prop-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff;
}
.badge-Baru { background: var(--color-info); }
.badge-Nego { background: var(--color-success); }
.badge-Turun.Harga, .badge-Turun-Harga { background: var(--color-danger); }
.prop-trx-tag {
  position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: rgba(26,43,76,.85); color: #fff; text-transform: uppercase;
}
.prop-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prop-price { color: var(--color-secondary); font-weight: 800; font-size: 1.05rem; font-family: var(--font-heading); }
.prop-name { font-size: .98rem; font-weight: 600; font-family: var(--font-body); }
.prop-loc { font-size: .82rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.prop-specs { display: flex; gap: 12px; font-size: .78rem; color: var(--color-text-muted); margin-top: 4px; flex-wrap: wrap; }
.prop-specs span { display: flex; align-items: center; gap: 4px; }

/* ============= ADVISOR ============= */
.advisor-block { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-radius: 18px; padding: 34px; color: #fff; }
.advisor-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 30px; }
.advisor-text p { color: #d8d9e2; margin: 0; }
.advisor-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; background: rgba(255,255,255,.06); padding: 18px; border-radius: 12px; }
.advisor-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.advisor-field label { font-size: .8rem; color: #d8d9e2; }
.advisor-field select { padding: 10px; border-radius: 8px; border: none; font-family: var(--font-body); }
.advisor-row-heading h3 { color: #fff; }
.advisor-row-heading .hscroll-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }

/* ============= STATS ============= */
.stats-section { padding: 50px 0; background: var(--color-surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-card { padding: 20px; }
.stat-number { display: block; font-family: var(--font-heading); font-size: 2.4rem; color: var(--color-primary); font-weight: 800; }
:root[data-theme="dark"] .stat-number, @media (prefers-color-scheme: dark) { }
.stat-label { color: var(--color-text-muted); font-size: .9rem; }

/* ============= ABOUT ============= */
.about-section { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.about-media img { border-radius: 16px; box-shadow: var(--shadow-md); }
.about-checklist { margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.about-checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text-muted); }
.about-checklist i { color: var(--color-success); margin-top: 4px; }
.agent-strip { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.agent-card { display: flex; align-items: center; gap: 10px; }
.agent-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.agent-card strong { display: block; font-size: .88rem; }
.agent-card span { font-size: .76rem; color: var(--color-text-muted); }

/* ============= GALLERY ============= */
.gallery-section { padding: 70px 0; background: var(--color-surface); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.gallery-item img { height: 200px; width: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); color: #fff; padding: 10px 12px; font-size: .8rem; }

/* ============= BLOG ============= */
.blog-section { padding: 70px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .25s ease; }
.blog-card:hover { transform: translateY(-6px); }
.blog-card img { height: 170px; width: 100%; object-fit: cover; }
.blog-card-body { padding: 16px; }
.blog-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card-body p { font-size: .86rem; color: var(--color-text-muted); margin-bottom: 10px; }
.blog-read { color: var(--color-secondary); font-weight: 700; font-size: .85rem; }

/* ============= TESTIMONIALS ============= */
.testimonial-section { padding: 70px 0; background: var(--color-primary); color: #fff; text-align: center; }
.testimonial-rotator { max-width: 700px; margin: 0 auto; min-height: 140px; }
.testimonial-quote { font-family: var(--font-heading); font-size: 1.35rem; font-style: italic; margin-bottom: 18px; }
.testimonial-name { font-weight: 700; }
.testimonial-role { color: var(--color-secondary); font-size: .85rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testimonial-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; }
.testimonial-dots button.active { background: var(--color-secondary); }

/* ============= FAQ ============= */
.faq-section { padding: 70px 0; }
.faq-accordion { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 16px 20px; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: .96rem; display: flex; justify-content: space-between; align-items: center; color: var(--color-text);
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 20px; color: var(--color-text-muted); font-size: .9rem; }
.faq-item.open .faq-answer { max-height: 240px; padding: 0 20px 18px; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-question i { transition: transform .3s ease; }

/* ============= CONTACT ============= */
.contact-section { padding: 80px 0; background: var(--color-primary-dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info p { color: #d8d9e2; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.contact-list li { display: flex; gap: 10px; align-items: center; color: #eceef4; }
.contact-list i { color: var(--color-secondary); width: 18px; }
.contact-map img { border-radius: 12px; margin-top: 16px; }
.contact-form { background: var(--color-surface); color: var(--color-text); padding: 30px; border-radius: 16px; box-shadow: var(--shadow-md); }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: .85rem; font-weight: 600; }
.form-row input, .form-row select, .form-row textarea {
  padding: 11px 12px; border: 1px solid var(--color-border); border-radius: 8px; font-family: var(--font-body); background: var(--color-bg); color: var(--color-text);
}
.form-note { font-size: .76rem; color: var(--color-text-muted); text-align: center; margin-top: 10px; }

/* ============= FOOTER ============= */
.site-footer { background: var(--color-primary); color: #dcdee6; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 30px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; color: #b9bccb; font-size: .88rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--color-secondary); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-secondary); color: #1a1608; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 20px; text-align: center; font-size: .8rem; color: #9ba0b5; }

/* ============= FLOATING ============= */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-md);
  z-index: 60; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.back-to-top {
  position: fixed; bottom: 24px; right: 92px; width: 44px; height: 44px; background: var(--color-primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-md); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ============= MODAL ============= */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13,24,48,.6); backdrop-filter: blur(3px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--color-surface); border-radius: 16px; max-width: 600px; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative; padding: 30px; box-shadow: var(--shadow-md); animation: modalIn .25s ease;
}
.modal-box-lg { max-width: 920px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: var(--color-bg); border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--color-text); z-index: 5;
}
.modal-close:hover { background: var(--color-secondary); color: #1a1608; }

/* Property modal detail */
.pm-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.pm-gallery img { border-radius: 10px; height: 130px; width: 100%; object-fit: cover; }
.pm-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pm-price { color: var(--color-secondary); font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); }
.pm-specs { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0; padding: 14px; background: var(--color-bg); border-radius: 10px; }
.pm-specs div { text-align: center; font-size: .82rem; color: var(--color-text-muted); }
.pm-specs strong { display: block; font-size: 1.05rem; color: var(--color-text); font-family: var(--font-heading); }
.pm-fasilitas { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pm-fasilitas span { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; padding: 6px 12px; font-size: .78rem; }
.pm-floorplan img { border-radius: 10px; margin: 10px 0; }
.pm-agent { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px; background: var(--color-bg); border-radius: 12px; }
.pm-agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pm-agent-actions { margin-left: auto; display: flex; gap: 10px; }
.pm-agent-actions .btn { padding: 8px 16px; font-size: .85rem; }

/* Article modal */
.am-body img { border-radius: 12px; margin-bottom: 16px; height: 220px; width: 100%; object-fit: cover; }

/* Lightbox */
.modal-box-lightbox { max-width: 720px; text-align: center; background: var(--color-primary-dark); }
.modal-box-lightbox img { border-radius: 10px; max-height: 60vh; object-fit: contain; margin: 0 auto; }
.modal-box-lightbox p { color: #dcdee6; margin-top: 12px; }

/* Promo popup */
.modal-box-promo { max-width: 480px; padding: 0; overflow: hidden; }
.modal-box-promo img { width: 100%; height: 180px; object-fit: cover; }
.promo-body { padding: 24px; text-align: center; }

/* Toast */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--color-primary); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-md);
  font-size: .88rem; display: flex; align-items: center; gap: 10px; animation: toastIn .3s ease;
  max-width: 320px;
}
.toast i { color: var(--color-secondary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  .listing-layout { grid-template-columns: 1fr; }
  .facet-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 20px; }
  .facet-block { flex: 1 1 200px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .advisor-inner { grid-template-columns: 1fr; }
  .mega-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .search-bar { display: none; }
  .hamburger { display: block; }
  .mega-nav { position: fixed; top: 0; left: -100%; width: 82%; height: 100vh; overflow-y: auto; transition: left .3s ease; z-index: 150; }
  .mega-nav.open { left: 0; }
  .mega-nav-list { flex-direction: column; align-items: stretch; }
  .mega-panel { position: static; grid-template-columns: 1fr; display: none; box-shadow: none; border-radius: 0; }
  .mega-item.open .mega-panel { display: grid; }
  .stats-grid, .gallery-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-caption h1 { font-size: 1.8rem; }
  .hero-carousel { height: 460px; }
}

@media (max-width: 620px) {
  .topbar-contact span:last-child { display: none; }
  .stats-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-caption { padding: 0 24px; }
  .hero-caption h1 { font-size: 1.5rem; }
  .pm-gallery { grid-template-columns: repeat(2, 1fr); }
}
