/* Mystate — public pages: platform landing, property portal and agency websites */
:root {
  --s-primary: #0F4C5C;
  --s-accent: #E36414;
  --s-ink: #1B2430;
  --s-muted: #667085;
  --s-bg: #FFFFFF;
  --s-soft: #F6F3EE;
  --s-line: #E7E2D9;
  --s-radius: 14px;
  --s-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --s-display: "Fraunces", Georgia, serif;
  --bs-body-font-family: var(--s-font);
  --bs-body-color: var(--s-ink);
  --bs-link-color: var(--s-primary);
  --bs-link-color-rgb: 15, 76, 92;
  --bs-link-hover-color: var(--s-accent);
}
body { font-family: var(--s-font); color: var(--s-ink); background: var(--s-bg); }
h1, h2, h3, .display-font { font-family: var(--s-display); font-weight: 600; letter-spacing: -.015em; }
.text-muted { color: var(--s-muted) !important; }
.btn-brand { --bs-btn-color: #fff; --bs-btn-bg: var(--s-primary); --bs-btn-border-color: var(--s-primary); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--s-ink); --bs-btn-hover-border-color: var(--s-ink); --bs-btn-active-bg: var(--s-ink); --bs-btn-active-color: #fff; }
.btn-accent { --bs-btn-color: #fff; --bs-btn-bg: var(--s-accent); --bs-btn-border-color: var(--s-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--s-ink); --bs-btn-hover-border-color: var(--s-ink); --bs-btn-active-bg: var(--s-ink); --bs-btn-active-color: #fff; }
.btn-ghost { --bs-btn-color: var(--s-ink); --bs-btn-border-color: var(--s-line); --bs-btn-hover-bg: var(--s-soft); --bs-btn-hover-border-color: var(--s-line); }
.form-control, .form-select { border-color: var(--s-line); border-radius: 10px; }
.form-control:focus, .form-select:focus { border-color: var(--s-accent); box-shadow: 0 0 0 .2rem rgba(227,100,20,.15); }
.eyebrow { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--s-accent); }
.section { padding: 84px 0; }
.section-soft { background: var(--s-soft); }
@media (max-width: 767.98px) { .section { padding: 56px 0; } }

/* Header */
.s-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--s-line); }
.s-header .navbar { padding: .7rem 0; }
.s-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--s-ink); text-decoration: none; }
.s-brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.s-brand .mark { width: 36px; height: 36px; border-radius: 10px; background: var(--s-accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.s-header .nav-link { font-weight: 600; color: var(--s-ink); font-size: .93rem; }
.s-header .nav-link:hover, .s-header .nav-link.active { color: var(--s-accent); }

/* Hero */
.s-hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; background: var(--s-primary) center/cover no-repeat; }
.s-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,25,32,.82) 0%, rgba(10,25,32,.45) 55%, rgba(10,25,32,.15) 100%); }
.s-hero > .container { position: relative; }
.s-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.06; max-width: 760px; }
.s-hero p.lead { max-width: 600px; opacity: .9; }
.s-search { background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 18px 50px rgba(0,0,0,.25); max-width: 920px; }
.s-search .form-select, .s-search .form-control { border: 0; background-color: var(--s-soft); height: 52px; }
.s-search .btn { height: 52px; }

/* Template variations */
.tpl-classic .s-hero { min-height: 520px; background: var(--s-soft) !important; color: var(--s-ink); }
.tpl-classic .s-hero::before { display: none; }
.tpl-classic .s-hero .hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; background: center/cover no-repeat; border-bottom-left-radius: 120px; }
.tpl-classic .s-hero .hero-copy { max-width: 52%; }
.tpl-classic .s-hero p.lead { color: var(--s-muted); opacity: 1; }
@media (max-width: 991.98px) { .tpl-classic .s-hero .hero-photo { display: none; } .tpl-classic .s-hero .hero-copy { max-width: 100%; } }
.tpl-classic h1, .tpl-classic h2, .tpl-classic h3 { font-family: "Playfair Display", var(--s-display); }
.tpl-coastal { --s-soft: #EEF8FB; --s-line: #D9ECF2; }
.tpl-coastal .s-hero::before { background: linear-gradient(180deg, rgba(8,60,80,.35) 0%, rgba(8,60,80,.65) 100%); }
.tpl-coastal .s-hero { text-align: center; }
.tpl-coastal .s-hero h1, .tpl-coastal .s-hero p.lead, .tpl-coastal .s-search { margin-left: auto; margin-right: auto; }
.tpl-coastal .p-card { border-radius: 22px; }

/* Property cards */
.p-card { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; position: relative; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16,24,40,.10); }
.p-card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--s-soft); }
.p-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.p-card .tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.p-card .tag { background: rgba(255,255,255,.95); color: var(--s-ink); font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 99px; }
.p-card .tag.accent { background: var(--s-accent); color: #fff; }
.p-card .fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; color: var(--s-ink); z-index: 2; }
.p-card .fav.on { color: #E11D48; }
.p-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.p-card .price { font-weight: 800; font-size: 1.2rem; color: var(--s-ink); }
.p-card .title { font-weight: 700; color: var(--s-ink); text-decoration: none; line-height: 1.3; margin: 4px 0; }
.p-card .title::after { content: ""; position: absolute; inset: 0; }
.p-card .loc { color: var(--s-muted); font-size: .86rem; }
.p-card .facts { display: flex; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--s-line); color: var(--s-muted); font-size: .84rem; }
.p-card .facts i { color: var(--s-primary); }
.p-card .cmp { position: relative; z-index: 2; font-size: .78rem; }

/* Category tiles */
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--s-line); border-radius: var(--s-radius); text-decoration: none; color: var(--s-ink); background: #fff; font-weight: 600; transition: border-color .15s; }
.cat-tile:hover { border-color: var(--s-accent); color: var(--s-ink); }
.cat-tile i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--s-soft); color: var(--s-primary); font-size: 1.25rem; }

/* Agents & testimonials */
.agent-card { text-align: center; padding: 26px; border: 1px solid var(--s-line); border-radius: var(--s-radius); background: #fff; height: 100%; }
.agent-card img, .agent-card .ini { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.agent-card .ini { display: inline-grid; place-items: center; background: var(--s-soft); color: var(--s-primary); font-weight: 800; font-size: 1.8rem; }
.quote { background: #fff; border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 26px; height: 100%; }
.quote p { font-family: var(--s-display); font-size: 1.12rem; line-height: 1.55; }

/* Property detail */
.gallery-main { border-radius: var(--s-radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--s-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: none; }
.gallery-thumbs button.on { border-color: var(--s-accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fact { background: var(--s-soft); border-radius: 12px; padding: 12px 14px; }
.fact .k { font-size: .76rem; color: var(--s-muted); }
.fact .v { font-weight: 700; }
.side-card { border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 22px; background: #fff; position: sticky; top: 90px; }
.amen { display: inline-flex; gap: 6px; align-items: center; background: var(--s-soft); border-radius: 99px; padding: 6px 12px; font-size: .86rem; margin: 0 6px 8px 0; }

/* Filters / portal */
.filter-bar { background: var(--s-soft); border-radius: var(--s-radius); padding: 14px; }
#mapView { height: 560px; border-radius: var(--s-radius); }
.leaflet-popup-content a { font-weight: 700; }

/* Footer */
.s-footer { background: #10181F; color: #C9D2DA; padding: 64px 0 28px; }
.s-footer a { color: #E5ECF1; text-decoration: none; }
.s-footer a:hover { color: var(--s-accent); }
.s-footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-bottom: 14px; }
.s-footer .social a { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); margin-right: 6px; }

/* Floating WhatsApp & cookie bar & compare bar */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 28px rgba(37,211,102,.45); z-index: 1040; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; background: #10181F; color: #E5ECF1; border-radius: 14px; padding: 16px 18px; z-index: 1050; display: none; box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .88rem; }
.cookie-bar a { color: #FFD3B5; }
.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: var(--s-ink); color: #fff; border-radius: 99px; padding: 8px 8px 8px 20px; z-index: 1035; display: none; align-items: center; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }

/* Landing */
.l-hero { padding: 96px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, #FCE9DC 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #E2F0F2 0%, transparent 55%); }
.l-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.03; }
.l-hero .mock { border-radius: 18px; border: 1px solid var(--s-line); box-shadow: 0 30px 70px rgba(16,24,40,.16); overflow: hidden; background: #fff; }
.feature { padding: 26px; border: 1px solid var(--s-line); border-radius: var(--s-radius); height: 100%; background: #fff; }
.feature i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--s-soft); color: var(--s-accent); font-size: 1.3rem; margin-bottom: 14px; }
.price-card { border: 1px solid var(--s-line); border-radius: 18px; padding: 28px; height: 100%; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--s-accent); box-shadow: 0 20px 50px rgba(227,100,20,.12); }
.price-card .amount { font-size: 2.4rem; font-weight: 800; font-family: var(--s-font); }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p, .legal li { line-height: 1.7; color: #344054; }
.prose p { line-height: 1.75; }
