/* Daniel Diaz Avila — Real Estate Empire Group Inc. */
:root {
  --navy: #0B1F3A; --navy-deep: #061427; --navy-soft: #142B4D;
  --gold: #C9A227; --gold-light: #E3C565; --gold-dark: #A8851B;
  --cream: #F7F4EE; --paper: #FFFFFF; --ink: #1B2432; --muted: #6B7280; --line: #E6E1D6;
  --ok: #1F8A5B; --bad: #B42318;
  --radius: 14px; --shadow: 0 10px 30px rgba(6, 20, 39, .12);
  --font-head: "Playfair Display", Georgia, serif; --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-deep); box-shadow: 0 6px 18px rgba(201, 162, 39, .35); }
.btn-gold:hover { box-shadow: 0 10px 24px rgba(201, 162, 39, .45); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline.light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline:hover { background: rgba(11,31,58,.06); }
.btn-outline.light:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); color: var(--navy); border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(6,20,39,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 86px; width: auto; }
.brand .wordmark { display: none; flex-direction: column; line-height: 1.05; }
.brand .wordmark b { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .04em; color: var(--navy); }
.brand .wordmark span { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold-dark); }
.brand.no-logo img { display: none; } .brand.no-logo .wordmark { display: flex; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 500; }
.nav a { color: var(--navy); position: relative; padding: 6px 0; }
.nav a:hover, .nav a.active { color: var(--gold-dark); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); color: var(--navy); border-radius: 10px; width: 44px; height: 40px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 16px 20px; gap: 6px; display: none; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(6,20,39,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 8px; }
  .nav .btn { margin: 8px 0 0; }
  .brand img { height: 62px; }
}

/* hero */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #1E3A66 0%, var(--navy) 45%, var(--navy-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; padding: 64px 0 76px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 54ch; }
.hero .eyebrow { color: var(--gold-light); } .hero .eyebrow::before { background: var(--gold-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-light); }
.hero-stats span { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.portrait { position: relative; justify-self: end; width: min(340px, 100%); }
.portrait .frame { border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); aspect-ratio: 4/4.6; background: #0a1a33; }
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 24px; z-index: 0; opacity: .7; }
.portrait .frame { position: relative; z-index: 1; }
.portrait .card { position: absolute; left: -24px; bottom: 34px; z-index: 2; background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.portrait .card b { display: block; font-size: .95rem; color: var(--navy); }
.portrait .card span { font-size: .78rem; color: var(--muted); }
.portrait .card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31,138,91,.15); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 44px 0 56px; }
  .portrait { justify-self: center; order: -1; width: min(260px, 100%); }
  .portrait .card { left: 8px; bottom: 16px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
}

/* sections */
section.band { padding: 84px 0; }
section.band.alt { background: var(--paper); }
section.band.navy { background: var(--navy); color: #fff; }
section.band.navy h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin: 0 auto 42px; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service .ico { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--navy), var(--navy-soft)); display: grid; place-items: center; color: var(--gold-light); margin-bottom: 18px; font-size: 1.3rem; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* listing cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card-l { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(6,20,39,.06); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card-l:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-l .media { position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #0f2544, #1d3b66); overflow: hidden; }
.card-l .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-l:hover .media img { transform: scale(1.04); }
.card-l .media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 2.4rem; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; font-weight: 600; }
.badge.gold { background: var(--gold); color: var(--navy-deep); }
.badge.right { left: auto; right: 12px; }
.card-l .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-l .price { font-family: var(--font-head); font-size: 1.45rem; color: var(--navy); }
.card-l .price small { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 500; }
.card-l .title { font-weight: 600; font-size: 1rem; }
.card-l .addr { color: var(--muted); font-size: .88rem; }
.specs { display: flex; gap: 16px; color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.specs b { color: var(--ink); }
.locked { position: absolute; inset: 0; backdrop-filter: blur(6px); background: rgba(11,31,58,.35); display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.locked .lock { font-size: 1.6rem; margin-bottom: 6px; }
.locked small { font-size: .8rem; opacity: .85; }
.price-locked { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 1px dashed var(--gold); color: var(--navy); padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* about */
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/4.4; object-fit: cover; object-position: 50% 10%; box-shadow: var(--shadow); }
.about-media .brokerage { position: absolute; right: -14px; bottom: -14px; background: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.about-media .brokerage b { display: block; color: var(--navy); font-size: .9rem; }
.about-media .brokerage span { font-size: .75rem; color: var(--muted); }
.about ul.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.about ul.points li { display: flex; gap: 12px; align-items: flex-start; }
.about ul.points li::before { content: "✓"; color: var(--gold-dark); font-weight: 700; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .82rem; color: var(--navy); }
.navy .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.2rem; color: var(--gold-light); display: block; margin-bottom: 10px; }
.step h3 { color: #fff; }
.step p { color: rgba(255,255,255,.75); margin: 0; font-size: .95rem; }

/* contact */
.contact-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 34px; display: grid; gap: 18px; }
.contact-card h3 { color: #fff; }
.contact-card a { color: var(--gold-light); font-weight: 600; }
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-card .row .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; flex: none; }
.contact-card .row small { display: block; color: rgba(255,255,255,.6); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

/* forms */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
label.f { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy); }
input, select, textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,.18); }
textarea { min-height: 120px; resize: vertical; }
.help { font-size: .8rem; color: var(--muted); }
.msg { padding: 12px 14px; border-radius: 10px; font-size: .9rem; display: none; }
.msg.show { display: block; }
.msg.ok { background: #E8F5EE; color: var(--ok); border: 1px solid #BFE3CF; }
.msg.err { background: #FDECEC; color: var(--bad); border: 1px solid #F4C2C2; }

/* auth pages */
.auth { min-height: calc(100vh - 104px); display: grid; grid-template-columns: 1fr 1fr; }
.auth .side { background: var(--navy); color: #fff; padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth .side::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(201,162,39,.25); right: -200px; bottom: -220px; }
.auth .side h2 { color: #fff; }
.auth .side p { color: rgba(255,255,255,.78); max-width: 46ch; }
.auth .side .perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth .side .perks li { display: flex; gap: 12px; }
.auth .side .perks li::before { content: "◆"; color: var(--gold-light); font-size: .7rem; margin-top: 6px; }
.auth .panel { display: grid; place-items: center; padding: 48px 20px; }
.auth .box { width: min(460px, 100%); background: #fff; border-radius: 18px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.auth .box h1 { font-size: 1.9rem; }
.auth .box .sub { color: var(--muted); margin-bottom: 22px; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); }
.link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; font: inherit; padding: 0; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .side { padding: 40px 24px; } }

/* members listings */
.page-head { background: var(--navy); color: #fff; padding: 44px 0 34px; }
.page-head h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 4px; }
.page-head p { color: rgba(255,255,255,.75); margin: 0; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto; gap: 12px; margin: -28px 0 34px; box-shadow: var(--shadow); align-items: end; position: relative; z-index: 2; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .btn { grid-column: span 2; } }
.segment { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.segment button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--muted); }
.segment button.on { background: var(--navy); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.empty b { display: block; color: var(--navy); font-size: 1.2rem; margin-bottom: 6px; font-family: var(--font-head); }

/* listing detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 260px 260px; gap: 10px; border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.gallery .g { background: #0f2544; overflow: hidden; cursor: pointer; position: relative; }
.gallery .g:first-child { grid-row: span 2; }
.gallery .g img, .gallery .g video { width: 100%; height: 100%; object-fit: cover; }
.gallery .g .more { position: absolute; inset: 0; background: rgba(6,20,39,.55); color: #fff; display: grid; place-items: center; font-weight: 600; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 280px; } .gallery .g:not(:first-child) { display: none; } }
.detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; margin: 34px 0 70px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail .price-big { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.fact small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.fact b { font-size: 1.1rem; color: var(--navy); }
.desc { white-space: pre-line; color: #333; }
.feature-list { columns: 2; gap: 24px; padding-left: 18px; color: #333; }
@media (max-width: 600px) { .feature-list { columns: 1; } }
.sticky { position: sticky; top: 120px; }
.agent-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.agent-box .who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.agent-box .who img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--gold); }
.agent-box .who b { display: block; color: var(--navy); }
.agent-box .who span { font-size: .8rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(6,20,39,.95); display: none; place-items: center; z-index: 100; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.lightbox .nav-btn { top: 50%; transform: translateY(-50%); right: auto; left: 18px; } .lightbox .nav-btn.next { left: auto; right: 18px; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 28px; margin-top: auto; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-head); margin: 0 0 12px; font-size: 1.05rem; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .78rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer .eho { display: inline-flex; gap: 8px; align-items: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transition: .25s; z-index: 200; font-size: .92rem; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.skeleton { background: linear-gradient(90deg, #eee, #f6f6f6, #eee); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); min-height: 320px; }
@keyframes sh { to { background-position: -200% 0; } }

.site-footer .foot-logo { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; margin-bottom: 14px; }
.site-footer .foot-logo img { height: 70px; width: auto; }

/* MLS / IDX embeds */
.idx-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.idx-frame iframe { width: 100%; height: 820px; border: 0; display: block; }
.idx-frame.tall iframe { height: calc(100vh - 220px); min-height: 700px; }

.cards.four { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards.four .card-l .price { font-size: 1.25rem; }
.cards.four .card-l .body { padding: 14px 14px 16px; }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }
