/* =========================================================
   1day1deaw Real Estate — Design System
   Premium luxury property theme
   ========================================================= */

:root {
  /* Brand palette — ink + warm gold */
  --ink-900: #0d1220;
  --ink-800: #141b2e;
  --ink-700: #1c2540;
  --ink-600: #2a3557;
  --slate-500: #64708f;
  --slate-400: #8a95b0;
  --slate-300: #b7bfd2;
  --mist-200: #e7eaf2;
  --mist-100: #f3f5fa;
  --paper: #fbfcff;
  --white: #ffffff;

  --gold-600: #b6892f;
  --gold-500: #d3a548;
  --gold-400: #e6bf6c;
  --gold-100: #f7ecd4;

  --emerald-600: #0f766e;
  --emerald-500: #14a08e;

  --danger: #d64545;
  --success: #2f9e6b;

  /* Semantic */
  --bg: var(--paper);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-soft: var(--slate-500);
  --line: var(--mist-200);
  --accent: var(--gold-500);

  /* Typography */
  --font-head: 'Playfair Display', 'Noto Serif Thai', Georgia, serif;
  --font-body: 'Prompt', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(13, 18, 32, .06), 0 1px 3px rgba(13, 18, 32, .04);
  --shadow-md: 0 6px 18px rgba(13, 18, 32, .08), 0 2px 6px rgba(13, 18, 32, .05);
  --shadow-lg: 0 20px 45px rgba(13, 18, 32, .14), 0 8px 18px rgba(13, 18, 32, .08);
  --shadow-gold: 0 12px 30px rgba(179, 137, 47, .28);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold-500); }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 14px 0 14px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.text-gold { color: var(--gold-600); }
.muted { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .96rem; padding: 13px 26px; border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(120deg, var(--gold-500), var(--gold-400)); color: var(--ink-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(179,137,47,.4); }
.btn-dark { background: var(--ink-900); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-900); background: var(--ink-900); color: var(--white); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; color: var(--ink-900); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  background: var(--mist-100); color: var(--text-soft);
}
.chip.gold { background: var(--gold-100); color: var(--gold-600); }
.chip.emerald { background: #dff2ee; color: var(--emerald-600); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header.scrolled { background: rgba(251,252,255,.86); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; color: var(--text); }
.brand .mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-600));
  color: var(--gold-400); font-size: 1.1rem; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.brand .mark::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 20%, rgba(230,191,108,.5), transparent 60%); }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .22em; color: var(--gold-600); font-weight: 600; text-transform: uppercase; margin-top:-2px; }
.site-header.on-dark .brand { color: #fff; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--text); position: relative; opacity: .85; transition: opacity .2s; }
.nav a:hover, .nav a.active { opacity: 1; }
.nav a::after { content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background: var(--gold-500); transition: width .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.site-header.on-dark .nav a { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text); border:1.5px solid var(--line); transition: .2s; }
.icon-btn:hover { border-color: var(--ink-900); }
.site-header.on-dark .icon-btn { color:#fff; border-color: rgba(255,255,255,.3); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(9,13,24,.72) 0%, rgba(9,13,24,.55) 45%, rgba(9,13,24,.85) 100%); }
.hero-inner { padding: 60px 0 130px; max-width: 760px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 22px 0 20px; }
.hero h1 em { color: var(--gold-400); font-style: normal; }
.hero p { font-size: 1.18rem; max-width: 560px; color: rgba(255,255,255,.82); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges { display:flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-badge b { font-family: var(--font-head); font-size: 2rem; display:block; color:#fff; }
.hero-badge span { font-size: .86rem; color: rgba(255,255,255,.7); }

/* Search bar */
.search-panel {
  position: relative; margin-top: 44px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-lg); padding: 10px;
  box-shadow: var(--shadow-lg);
}
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; }
.search-tab { padding: 8px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.75); }
.search-tab.active { background: #fff; color: var(--ink-900); }
.search-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 6px; background:#fff; border-radius: var(--radius); padding: 8px; }
.search-field { padding: 8px 16px; display:flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.search-field:last-of-type { border: none; }
.search-field label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.search-field select, .search-field input { border: none; outline: none; font-family: inherit; font-size: .96rem; font-weight: 500; color: var(--ink-900); background: transparent; width: 100%; }
.search-submit { align-self: stretch; }

/* ---------- Cards / Property ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.property-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.property-card:hover .property-media img { transform: scale(1.07); }
.property-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.tag { font-size: .74rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; color: #fff; backdrop-filter: blur(4px); }
.tag.rent { background: rgba(20,160,142,.92); }
.tag.sale { background: rgba(179,137,47,.95); }
.tag.hot { background: rgba(214,69,69,.92); }
.property-fav { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--slate-500); transition: .2s; }
.property-fav:hover, .property-fav.on { color: var(--danger); transform: scale(1.1); }
.property-price-badge { position: absolute; bottom: 14px; left: 14px; background: rgba(13,18,32,.82); backdrop-filter: blur(6px); color: #fff; padding: 8px 16px; border-radius: 12px; font-weight: 600; }
.property-price-badge small { display:block; font-size:.66rem; color: var(--gold-400); font-weight: 500; letter-spacing: .08em; }
.property-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.property-loc { font-size: .84rem; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.property-title { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; line-height: 1.4; }
.property-title a:hover { color: var(--gold-600); }
.property-features { display: flex; gap: 16px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-soft); }
.property-features span { display: flex; align-items: center; gap: 6px; }
.property-agent { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.property-agent img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.property-agent b { font-size: .84rem; font-weight: 600; }
.property-agent span { font-size: .74rem; color: var(--text-soft); }

/* Category tiles */
.cat-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-md); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.cat-tile::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 30%, rgba(9,13,24,.85)); }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile .cat-body { position: relative; padding: 24px; width: 100%; }
.cat-tile h3 { font-size: 1.35rem; }
.cat-tile span { font-size: .84rem; color: rgba(255,255,255,.75); }
.cat-tile .cat-arrow { position:absolute; top:20px; right:20px; width:40px; height:40px; border-radius:50%; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); display:grid; place-items:center; transition:.3s; }
.cat-tile:hover .cat-arrow { background: var(--gold-500); color: var(--ink-900); }

/* ---------- Feature / Why ---------- */
.feature { display: flex; flex-direction: column; gap: 14px; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: .3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature .f-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); font-size: 1.4rem; }
.feature h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; }
.feature p { color: var(--text-soft); font-size: .94rem; }

/* Stat band */
.stat-band { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.stat-band::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 15% 20%, rgba(211,165,72,.16), transparent 45%), radial-gradient(circle at 85% 90%, rgba(20,160,142,.14), transparent 45%); }
.stat-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stat b { font-family: var(--font-head); font-size: clamp(2.2rem,4vw,3.2rem); color: var(--gold-400); display:block; }
.stat span { color: rgba(255,255,255,.7); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; counter-reset: step; }
.step { padding: 30px 24px; border-radius: var(--radius-lg); border:1px solid var(--line); background: var(--surface); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.4rem; color: var(--mist-200); position:absolute; top: 16px; right: 22px; }
.step .s-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--ink-900); color: var(--gold-400); display:grid; place-items:center; font-size:1.2rem; margin-bottom: 16px; }
.step h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--text-soft); }

/* Testimonials */
.testi { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.testi .stars { color: var(--gold-500); margin-bottom: 14px; letter-spacing: 2px; }
.testi p { font-size: 1.02rem; line-height: 1.7; margin-bottom: 20px; }
.testi .who { display:flex; align-items:center; gap: 12px; }
.testi .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testi .who b { display:block; font-size:.95rem; }
.testi .who span { font-size:.82rem; color: var(--text-soft); }

/* CTA band */
.cta-band { border-radius: var(--radius-xl); overflow: hidden; position: relative; color: #fff; padding: 74px 60px; }
.cta-band img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.cta-band::after { content:""; position:absolute; inset:0; background: linear-gradient(115deg, rgba(13,18,32,.92), rgba(28,37,64,.7)); z-index:-1; }
.cta-band h2 { font-size: clamp(1.9rem,3.5vw,2.8rem); margin-bottom: 16px; max-width: 620px; }
.cta-band p { max-width: 540px; color: rgba(255,255,255,.8); margin-bottom: 30px; }

/* Pricing */
.price-card { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; display:flex; flex-direction:column; gap:20px; transition:.3s; position:relative; }
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.price-card.featured { background: var(--ink-900); color:#fff; border-color: var(--ink-900); box-shadow: var(--shadow-lg); }
.price-card.featured .muted, .price-card.featured .p-feat li { color: rgba(255,255,255,.78); }
.price-badge { position:absolute; top:-14px; left:50%; transform:translateX(-50%); background: var(--gold-500); color: var(--ink-900); font-size:.76rem; font-weight:700; padding:6px 16px; border-radius:999px; }
.price-card h3 { font-family: var(--font-body); font-size:1.2rem; font-weight:600; }
.p-amount { font-family: var(--font-head); font-size: 2.8rem; }
.p-amount small { font-family: var(--font-body); font-size: .9rem; font-weight:400; color: var(--text-soft); }
.p-feat { display:flex; flex-direction:column; gap:12px; }
.p-feat li { display:flex; align-items:center; gap:10px; font-size:.94rem; }
.p-feat li i { color: var(--emerald-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.72); padding-top: 80px; }
.footer-top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 54px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color:#fff; margin-bottom: 18px; }
.footer-col h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 20px; }
.footer-col a { display:block; padding: 6px 0; font-size:.94rem; transition:.2s; }
.footer-col a:hover { color:#fff; padding-left: 5px; }
.footer-news { display:flex; gap:8px; margin-top: 16px; }
.footer-news input { flex:1; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 12px 18px; color:#fff; outline:none; }
.footer-social { display:flex; gap:12px; margin-top: 22px; }
.footer-social a { width:40px; height:40px; border-radius:12px; background: rgba(255,255,255,.08); display:grid; place-items:center; transition:.3s; }
.footer-social a:hover { background: var(--gold-500); color: var(--ink-900); transform: translateY(-3px); }
.footer-bottom { display:flex; justify-content:space-between; gap:16px; padding: 26px 0; font-size:.85rem; flex-wrap:wrap; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: calc(var(--header-h) + 60px) 0 60px; background: var(--ink-900); color:#fff; position:relative; overflow:hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 10%, rgba(211,165,72,.18), transparent 45%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2rem,4vw,3.2rem); margin: 14px 0; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 560px; }
.breadcrumb { font-size:.85rem; color: rgba(255,255,255,.6); display:flex; gap:8px; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Listings layout ---------- */
.list-layout { display:grid; grid-template-columns: 300px 1fr; gap: 34px; align-items:start; }
.filter-panel { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); box-shadow: var(--shadow-sm); }
.filter-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border:none; }
.filter-group h4 { font-family: var(--font-body); font-size: .95rem; font-weight:600; margin-bottom: 14px; }
.filter-field { width:100%; padding: 11px 14px; border:1.5px solid var(--line); border-radius: 10px; font-family:inherit; font-size:.9rem; outline:none; transition:.2s; background:#fff; }
.filter-field:focus { border-color: var(--gold-500); }
.range-row { display:flex; gap:10px; }
.pill-select { display:flex; flex-wrap:wrap; gap:8px; }
.pill { padding: 8px 15px; border:1.5px solid var(--line); border-radius: 999px; font-size:.85rem; font-weight:500; transition:.2s; }
.pill:hover { border-color: var(--ink-900); }
.pill.active { background: var(--ink-900); color:#fff; border-color: var(--ink-900); }
.list-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 24px; gap: 16px; flex-wrap:wrap; }
.list-toolbar .count b { color: var(--ink-900); }
.view-toggle { display:flex; gap:6px; }
.view-toggle button { width:40px; height:40px; border-radius:10px; border:1.5px solid var(--line); color: var(--slate-500); }
.view-toggle button.active { background: var(--ink-900); color:#fff; border-color: var(--ink-900); }

.pagination { display:flex; gap:8px; justify-content:center; margin-top:44px; }
.pagination a { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; border:1.5px solid var(--line); font-weight:600; transition:.2s; }
.pagination a:hover, .pagination a.active { background: var(--ink-900); color:#fff; border-color: var(--ink-900); }

/* ---------- Property detail ---------- */
.gallery { display:grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 220px); gap: 12px; border-radius: var(--radius-lg); overflow:hidden; }
.gallery img { width:100%; height:100%; object-fit:cover; cursor:pointer; transition:.4s; }
.gallery img:hover { opacity:.9; }
.gallery .g-main { grid-row: span 2; }
.detail-layout { display:grid; grid-template-columns: 1fr 380px; gap: 40px; align-items:start; margin-top: 44px; }
.detail-main > * + * { margin-top: 30px; }
.detail-box { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.spec-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.spec { text-align:center; padding: 18px 10px; background: var(--mist-100); border-radius: var(--radius); }
.spec i { font-size: 1.3rem; color: var(--gold-600); }
.spec b { display:block; font-size: 1.15rem; margin-top: 6px; }
.spec span { font-size:.78rem; color: var(--text-soft); }
.amenity-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.amenity { display:flex; align-items:center; gap:10px; font-size:.92rem; }
.amenity i { color: var(--emerald-500); }
.booking-card { position: sticky; top: calc(var(--header-h) + 20px); }
.booking-price { font-family: var(--font-head); font-size: 2.2rem; }
.booking-price small { font-family: var(--font-body); font-size:.9rem; color: var(--text-soft); font-weight:400; }
.form-field { margin-bottom: 14px; }
.form-field label { display:block; font-size:.82rem; font-weight:600; margin-bottom:6px; }
.form-field input, .form-field select, .form-field textarea { width:100%; padding: 12px 15px; border:1.5px solid var(--line); border-radius: 10px; font-family:inherit; font-size:.92rem; outline:none; transition:.2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(211,165,72,.15); }
.map-embed { height: 320px; border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--line); background: var(--mist-100); position:relative; }

/* ---------- Dashboard ---------- */
.dash { display:grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.dash-side { background: var(--ink-900); color: rgba(255,255,255,.7); padding: 26px 20px; position: sticky; top:0; height:100vh; display:flex; flex-direction:column; }
.dash-side .brand { color:#fff; margin-bottom: 34px; font-size: 1.1rem; }
.dash-nav a { display:flex; align-items:center; gap:12px; padding: 12px 15px; border-radius: 12px; font-size:.94rem; margin-bottom:4px; transition:.2s; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color:#fff; }
.dash-nav a.active { background: linear-gradient(120deg, var(--gold-500), var(--gold-400)); color: var(--ink-900); font-weight:600; }
.dash-nav .nav-label { font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.4); margin: 22px 0 10px 15px; }
.dash-main { background: var(--mist-100); padding: 26px 34px; }
.dash-topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom: 28px; gap: 16px; }
.dash-search { flex:1; max-width: 420px; position:relative; }
.dash-search input { width:100%; padding: 12px 16px 12px 44px; border:1px solid var(--line); border-radius: 999px; background:#fff; outline:none; }
.dash-search i { position:absolute; left:16px; top:50%; transform:translateY(-50%); color: var(--slate-400); }
.kpi-grid { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 24px; }
.kpi { background:#fff; border-radius: var(--radius-lg); padding: 24px; border:1px solid var(--line); }
.kpi .k-top { display:flex; align-items:center; justify-content:space-between; }
.kpi .k-icon { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; font-size:1.15rem; }
.kpi b { font-family: var(--font-head); font-size: 2rem; display:block; margin-top: 12px; }
.kpi .k-label { font-size:.86rem; color: var(--text-soft); }
.kpi .k-trend { font-size:.8rem; font-weight:600; }
.k-trend.up { color: var(--success); }
.k-trend.down { color: var(--danger); }
.dash-panel { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.dash-panel h3 { font-family: var(--font-body); font-size:1.1rem; font-weight:600; margin-bottom: 4px; }
.chart-bars { display:flex; align-items:flex-end; gap: 14px; height: 220px; margin-top: 24px; }
.chart-bars .bar { flex:1; background: linear-gradient(180deg, var(--gold-400), var(--gold-600)); border-radius: 8px 8px 0 0; position:relative; transition: height 1s var(--ease); min-height: 6px; }
.chart-bars .bar span { position:absolute; bottom:-24px; left:0; right:0; text-align:center; font-size:.74rem; color: var(--text-soft); }
.data-table { width:100%; border-collapse: collapse; }
.data-table th { text-align:left; font-size:.76rem; letter-spacing:.06em; text-transform:uppercase; color: var(--slate-400); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size:.9rem; }
.data-table tr:hover td { background: var(--mist-100); }
.status-badge { font-size:.76rem; font-weight:600; padding: 4px 12px; border-radius: 999px; }
.status-badge.active { background:#dff2ee; color: var(--emerald-600); }
.status-badge.pending { background: var(--gold-100); color: var(--gold-600); }
.status-badge.sold { background:#fde8e8; color: var(--danger); }
.mini-prop { display:flex; align-items:center; gap: 12px; }
.mini-prop img { width: 48px; height: 48px; border-radius: 10px; object-fit:cover; }

/* ---------- Auth ---------- */
.auth-wrap { display:grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual { position: relative; color:#fff; display:flex; flex-direction:column; justify-content:flex-end; padding: 60px; overflow:hidden; }
.auth-visual img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.auth-visual::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(13,18,32,.4), rgba(13,18,32,.9)); z-index:-1; }
.auth-visual h2 { font-size: 2.2rem; margin-bottom: 14px; }
.auth-form { display:flex; align-items:center; justify-content:center; padding: 40px; }
.auth-form-inner { width:100%; max-width: 400px; }
.auth-tabs { display:flex; gap: 8px; background: var(--mist-100); padding: 5px; border-radius: 999px; margin-bottom: 28px; }
.auth-tabs a { flex:1; text-align:center; padding: 10px; border-radius: 999px; font-weight:600; font-size:.92rem; color: var(--text-soft); }
.auth-tabs a.active { background:#fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }
.social-row { display:flex; gap: 12px; }
.social-btn { flex:1; border:1.5px solid var(--line); border-radius: 12px; padding: 12px; display:flex; align-items:center; justify-content:center; gap:8px; font-weight:500; font-size:.9rem; transition:.2s; }
.social-btn:hover { border-color: var(--ink-900); }
.divider { display:flex; align-items:center; gap:14px; color: var(--slate-400); font-size:.82rem; margin: 22px 0; }
.divider::before, .divider::after { content:""; flex:1; height:1px; background: var(--line); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink-900); color:#fff; padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity:0; pointer-events:none; transition:.4s; z-index: 999; font-size:.92rem; display:flex; align-items:center; gap:10px; }
.toast.show { opacity:1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold-400); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: span 2; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { display:none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px; }
  .gallery .g-main { grid-column: span 2; }
  .auth-visual { display:none; }
  .auth-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav, .header-actions .btn-desktop { display:none; }
  .menu-toggle { display:grid; }
  .grid-3, .grid-4, .grid-2, .stat-grid, .steps, .spec-grid, .amenity-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .search-submit { grid-column: auto; }
  .cta-band { padding: 48px 26px; }
  .hero-badges { gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(3,180px); }
  .gallery .g-main { grid-column: auto; }
  .gallery img:nth-child(n+4) { display:none; }
}

/* ---------- Owner backend extras ---------- */
.lead-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.lead-row:last-child { border:none; }
.lead-ava { width:40px; height:40px; border-radius:50%; flex-shrink:0; display:grid; place-items:center; font-weight:600; color:#fff; background:linear-gradient(135deg, var(--ink-600), var(--gold-600)); }
.dash-section { animation: fadeIn .4s var(--ease); }
.dash-mobile-tabs { display:none; gap:8px; margin-bottom:20px; overflow-x:auto; padding-bottom:4px; }
.dash-mobile-tabs a { flex-shrink:0; padding:10px 18px; border-radius:999px; background:#fff; border:1px solid var(--line); font-weight:600; font-size:.9rem; color:var(--text-soft); display:flex; align-items:center; gap:8px; }
.dash-mobile-tabs a.active { background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
@media (max-width:1024px) { .dash-mobile-tabs { display:flex; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:none;} }

/* Modal */
.modal { position:fixed; inset:0; z-index:300; background:rgba(13,18,32,.55); backdrop-filter:blur(4px); display:none; align-items:flex-start; justify-content:center; padding:40px 20px; overflow-y:auto; }
.modal.open { display:flex; }
.modal-panel { background:var(--surface); border-radius:var(--radius-lg); width:100%; max-width:620px; box-shadow:var(--shadow-lg); animation:modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity:0; transform:translateY(20px) scale(.98);} to { opacity:1; transform:none;} }
.modal-head { display:flex; align-items:center; justify-content:space-between; padding:22px 26px; border-bottom:1px solid var(--line); }
.modal-head h3 { font-family:var(--font-body); font-weight:600; font-size:1.2rem; }
.modal-body { padding:26px; }
.img-picker { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.img-picker img { width:60px; height:46px; object-fit:cover; border-radius:8px; cursor:pointer; border:2px solid transparent; transition:.2s; }
.img-picker img:hover { border-color:var(--gold-500); transform:translateY(-2px); }
.switch-field { display:flex; align-items:center; gap:10px; padding:12px 14px; background:var(--mist-100); border-radius:10px; cursor:pointer; font-size:.9rem; }
.switch-field input { width:auto; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position:absolute; inset:0; background: rgba(13,18,32,.5); opacity:0; transition:.3s; }
.drawer.open .drawer-backdrop { opacity:1; }
.drawer-panel { position:absolute; top:0; right:0; bottom:0; width: min(320px, 85vw); background:#fff; padding: 26px; transform: translateX(100%); transition: transform .35s var(--ease); display:flex; flex-direction:column; gap: 8px; }
.drawer.open .drawer-panel { transform:none; }
.drawer-panel a { padding: 14px 12px; border-bottom: 1px solid var(--line); font-weight:500; }
.drawer-close { align-self:flex-end; font-size: 1.4rem; }
