/* ==== Team Smith brand palette (from logos) ==== */
:root{
  /* Core brand */
  --navy:#0b1220;        /* deep navy (logo background) */
  --navy-600:#0f1d34;    /* mid navy for headings/links hover */
  --gold:#caa24e;        /* metallic gold (logo mark) */
  --gold-700:#b8903f;    /* darker hover state */
  --cream:#f7f4ec;       /* light paper (logo light version) */

  /* UI neutrals */
  --ink:#0b1220;
  --text:#1f2733;        /* body copy on light background */
  --muted:#6b7280;
  --panel:#ffffff;

  /* tokens */
  --radius:14px;
  --radius-lg:18px;
  --shadow:0 1px 6px rgba(0,0,0,.06);
  --shadow-lg:0 12px 30px rgba(0,0,0,.16);
  --line:#e8ecf3;
}

/* =========================
   Base, layout, sticky footer
   ========================= */
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  min-height:100vh; display:flex; flex-direction:column;
  font-family:system-ui,-apple-system,Segoe UI,Inter,Roboto,sans-serif;
  color:var(--text); background:#fff; overflow-x:hidden;
}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.section{margin:28px 0}
main.container{flex:1 0 auto}

/* Type helpers */
.h2{font-size:clamp(22px,3.2vw,34px);margin:.2rem 0 1rem;color:var(--navy)}
.muted{color:var(--muted)}
/* Screen-reader-only */
.sr-only{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* =========================
   Navbar
   ========================= */
.nav{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:50}
.nav-inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:.5rem;text-decoration:none}
.brand-mark{color:var(--gold);font-weight:800;letter-spacing:.2px}
.brand-sub{color:var(--navy);opacity:.8;font-weight:700}
.brand-logo{height:44px;width:auto;display:block}
@media (max-width:480px){ .brand-logo{height:36px} }

.nav-links{display:flex;gap:14px;align-items:center}
.nav-link{color:var(--navy);text-decoration:none;font-weight:600;padding:8px 10px;border-radius:10px;transition:background .15s, color .15s}
.nav-link:hover{background:rgba(12,18,32,.06)}
.nav-link.is-active{color:var(--gold);background:rgba(202,162,78,.1)}

.btn-cta{background:var(--gold);color:var(--navy);border-radius:999px;padding:10px 16px;font-weight:800}
.btn-cta:hover{background:var(--gold-700)}

/* Language pills (optional) */
.lang-switch{display:flex;gap:6px;margin-left:8px}
.lang-btn{border:1px solid var(--line);background:#fff;color:var(--navy);padding:6px 8px;border-radius:999px;font-weight:700;cursor:pointer}
.lang-btn:hover{border-color:var(--gold);color:var(--navy)}
.lang-btn.active{background:rgba(202,162,78,.14);border-color:var(--gold);color:var(--navy)}

/* =========================
   Buttons & links
   ========================= */
.btn{display:inline-block;padding:12px 18px;border-radius:999px;text-decoration:none;font-weight:700;line-height:1}
.btn.sm{padding:8px 12px;border-radius:999px}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{background:var(--gold-700)}
.btn-ghost{background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.38);backdrop-filter:saturate(140%) blur(4px)}
.btn-ghost:hover{background:rgba(255,255,255,.25)}
.link-more{color:var(--muted);text-decoration:none;font-weight:600}
.link-more:hover{color:var(--navy)}
/* Focus ring in gold */
:focus-visible{outline:3px solid color-mix(in oklab, var(--gold) 70%, #fff);outline-offset:2px}

/* =========================
   Hero (full-bleed)
   ========================= */
.fullbleed{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.hero{position:relative;overflow:hidden;color:#fff;margin-bottom:24px}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:brightness(.75)}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.55))}
.hero-inner{position:relative;max-width:1100px;margin:0 auto;padding:96px 16px 120px;text-align:center}
.hero h1{font-size:clamp(36px,6vw,60px);line-height:1.08;margin:0 0 10px}
.hero-sub{opacity:.95;margin:0 0 18px}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center}

/* =========================
   Intro split — warm cream panel
   ========================= */
.split{background:var(--cream);border-radius:var(--radius-lg);padding:18px;margin:16px 0}
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}
.split-media img{width:100%;height:auto;border-radius:12px;display:block;box-shadow:var(--shadow)}
.split-text h2{color:var(--navy);font-size:clamp(24px,4vw,36px);margin:.2rem 0 .5rem}
.split-text p{margin:.3rem 0;color:#374151}
.split-text .meta{color:var(--muted);font-size:.95rem}

/* =========================
   Sections & grids
   ========================= */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}

/* Cards */
.card{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:transform .18s ease, box-shadow .18s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(11,18,32,.18)}
.card-link{color:inherit;text-decoration:none;display:block}
.card-imgwrap{background:#e5e7eb;height:200px}               /* fixed height for consistency */
.card-img{width:100%;height:100%;object-fit:cover;display:block}
.card-body{padding:12px}
.card-title{margin:0 0 4px;font-size:1.05rem;color:var(--navy)}
.card-meta{margin:0 0 6px;color:var(--muted)}
.card-price{margin:0 0 6px;font-weight:800;color:var(--navy)}
.card-specs{margin:0;color:#475569}

/* Featured badge in brand gold */
.badge{
  position:absolute;top:10px;left:10px;
  background:var(--gold);color:var(--navy);
  padding:.35rem .6rem;border-radius:999px;font-weight:800;font-size:.8rem;
  box-shadow:var(--shadow);
}

/* Optional: clamp long titles to 2 lines */
.card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* =========================
   Listings page header + filter bar
   ========================= */
.listings-head{display:flex;align-items:center;justify-content:space-between;margin:10px 0 8px}
.listings-head h1{margin:0;color:var(--navy)}
.tools{display:flex;gap:12px;align-items:center}
.currency select,
.currency-picker{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--navy)}

.filterbar{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 16px}
.filterbar input{
  padding:10px 12px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;min-width:180px
}
.filterbar .btn{padding:10px 16px;border-radius:999px}
.link-clear{align-self:center}

/* Empty state */
.empty-state{background:#f8fafc;border:1px dashed #e5e7eb;border-radius:12px;padding:18px;text-align:center}

/* Pager */
.pager{display:flex;gap:12px;justify-content:center;align-items:center;margin:16px 0}
.pager a{color:var(--navy);text-decoration:none;font-weight:600}
.pager a:hover{text-decoration:underline}

/* =========================
   CTA strip — navy with gold button
   ========================= */
.cta-strip{background:var(--navy);color:#fff;border-radius:16px;margin:26px 0}
.cta-inner{max-width:1100px;margin:0 auto;padding:20px 16px;display:flex;gap:18px;justify-content:space-between;align-items:center}
.cta-inner h3{margin:0 0 6px 0}
.cta-inner p{margin:0;color:#cbd5e1}

/* =========================
   Footer
   ========================= */
.site-footer{margin-top:0;color:#d9e4ff;background:var(--navy)}
.site-footer a{color:var(--gold);text-decoration:none}
.site-footer a:hover{color:#e0c27a;text-decoration:underline}

.footer-cta{background:linear-gradient(180deg, rgba(11,18,32,.0), rgba(11,18,32,.12));border-bottom:1px solid rgba(255,255,255,.06)}
.footer-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:18px 16px}
.footer-cta-title{margin:0;color:#fff}
.footer-cta-sub{margin:2px 0 0;color:#c7d2fe}
.footer-cta-actions{display:flex;gap:10px;align-items:center}

.footer-grid{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin:16px auto 10px}
.footer-heading{margin:.2rem 0 .6rem;color:#fff;font-size:1rem}
.foot-list{list-style:none;margin:.25rem 0 0;padding:0}
.foot-list li{margin:.35rem 0}

.social{margin-top:.6rem;display:flex;gap:10px}
.social-link{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none}
.social-link:hover{background:rgba(255,255,255,.14)}
.icon-wa{display:inline-flex}

.footer-bottom{border-top:1px solid rgba(255,255,255,.12)}
.footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 0}
.to-top{color:var(--gold)}
.to-top:hover{color:#e0c27a}

/* =========================
   Property Detail (SCOPED)
   ========================= */
.property-detail .pd-head{
  display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between;
  gap:12px; margin:4px 0 10px;
}
.property-detail .pd-title{
  margin:0; font-size:clamp(22px,3.6vw,36px); line-height:1.18; color:var(--navy);
}
.property-detail .pd-sub{
  flex-basis:100%; margin:.25rem 0 0; color:#666;
}
.property-detail .pd-price{
  display:flex; align-items:center; gap:10px;
  font-weight:800; font-size:clamp(16px,2.6vw,22px); color:var(--navy); white-space:nowrap;
}
.property-detail .pd-price .currency-picker,
.property-detail .currency-picker{
  padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--navy);
}
.property-detail #map{ border:1px solid var(--line); border-radius:12px; }

/* =========================
   Responsive
   ========================= */
@media (max-width:900px){
  .split{grid-template-columns:1fr}
  .hero-inner{padding:72px 16px 96px}
  .footer-bottom-inner{flex-direction:column;align-items:flex-start;gap:.5rem}
}

/* ========= Font Themes ========= */
:root{
  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --tracking: 0;
}

body{ font-family: var(--font-body); letter-spacing: var(--tracking); }
h1,h2,h3,.h2,.pd-title,.card-title{ font-family: var(--font-head); }

/* --- Theme: Editorial (Playfair headings, Inter body) --- */
.theme-editorial{
  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  --tracking: .1px;
}
.theme-editorial .h2, .theme-editorial h1, .theme-editorial h2{
  letter-spacing: .2px;
}
.theme-editorial .split{ background: #faf7f0; } /* softer cream */

/* --- Theme: Modern Sans (Outfit headings, Inter body) --- */
.theme-modern{
  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Outfit", Inter, system-ui, sans-serif;
  --tracking: .2px;
}
.theme-modern .btn-gold{ border-radius:12px; font-weight:700; }
.theme-modern .card{ border-radius:12px; }

/* --- Theme: Luxury (Cinzel headings, Source Sans body) --- */
.theme-luxury{
  --font-body: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: "Cinzel", Georgia, serif;
  --tracking: .3px;
}
.theme-luxury .h2, .theme-luxury h1, .theme-luxury h2{
  letter-spacing: .4px; text-transform: none;
}
.theme-luxury .btn-gold{ box-shadow: 0 8px 24px rgba(202,162,78,.25); }
.theme-luxury .split{ background: #f6f2e8; }

/* put in static/css/style.css */
code{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:2px 6px;font-family:ui-monospace, SFMono-Regular, Menlo, monospace}
