/* =========================================================
   BalaiPH Design System
   Palette pinned by brief: Navy #1E3A8A / White / Gold #F59E0B / BG #F8FAFC
   Display: "Fraunces" (a house has a roofline — a serif with real weight
   contrast reads as architectural, not generic corporate-sans luxury).
   Body/UI: "Manrope" — geometric, calm, legible at small sizes.
   Signature: the "roofline" divider — a thin chevron pulled from a
   simplified gable silhouette, used as a section seam instead of a
   plain <hr> or icon row.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1E3A8A;
  --navy-deep: #14275e;
  --navy-tint: #EEF2FB;
  --white: #FFFFFF;
  --gold: #F59E0B;
  --gold-deep: #B97708;
  --bg: #F8FAFC;
  --ink: #10192E;
  --ink-soft: #4B5567;
  --line: #E3E8F1;
  --success: #1B8A5A;
  --danger: #C0392B;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, Segoe UI, sans-serif;

  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(16, 25, 46, 0.04), 0 8px 24px rgba(16, 25, 46, 0.06);
  --shadow-lift: 0 12px 32px rgba(30, 58, 138, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-deep); margin: 0 0 12px; line-height: 1.15; }
p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: var(--gold-deep); color: var(--white); box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-tint); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--navy-deep); }
.logo span { color: var(--gold-deep); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.main-nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 96px 0 130px;
  overflow: hidden;
}
.hero::after {
  /* faint skyline silhouette, purely decorative */
  content: "";
  position: absolute; inset: auto 0 0 0; height: 90px;
  background-image: linear-gradient(115deg, transparent 49.4%, rgba(245,158,11,0.14) 49.4% 50.6%, transparent 50.6%),
                     linear-gradient(65deg, transparent 74.4%, rgba(245,158,11,0.1) 74.4% 75.6%, transparent 75.6%);
  background-size: 140px 100%, 220px 100%;
  opacity: 0.5;
}
.hero-inner { max-width: 680px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); font-size: clamp(36px, 5vw, 54px); font-weight: 600; }
.hero p.lede { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 8px; }

.search-panel {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
}
.search-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.search-field label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.search-field input, .search-field select {
  border: 1.5px solid var(--line); border-radius: 7px; padding: 11px 12px;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--white);
}
.search-field input:focus, .search-field select:focus { border-color: var(--navy); outline: none; }
.search-panel .btn { align-self: end; }

/* ---------- Roofline divider (signature element) ---------- */
.roofline { display: flex; justify-content: center; margin: 0; height: 34px; }
.roofline svg { display: block; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; margin: 0; }
.section-head p { margin: 6px 0 0; max-width: 460px; }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.category-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: border-color 0.15s ease, transform 0.15s ease;
}
.category-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.category-card .cat-icon { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--navy); }
.category-card span { font-weight: 700; font-size: 14px; color: var(--navy-deep); }

/* ---------- Property Cards ---------- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.property-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column; position: relative;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.property-media { position: relative; aspect-ratio: 4/3; background: var(--navy-tint); overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.property-tag {
  position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--navy-deep);
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 5px;
}
.fav-form { margin: 0; position: absolute; top: 10px; right: 10px; z-index: 2; }
.fav-btn {
  position: static; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(16,25,46,0.45); display: flex; align-items: center; justify-content: center;
  color: var(--white); border: none; cursor: pointer;
}
.fav-btn.is-saved { background: var(--gold); color: var(--navy-deep); }
.property-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.property-price { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--navy-deep); margin-bottom: 4px; }
.property-title { font-weight: 700; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.property-loc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; display: flex; align-items: center; gap: 5px; }
.property-meta { display: flex; gap: 16px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; margin-bottom: 14px; }
.property-meta span { display: flex; align-items: center; gap: 5px; }
.property-footer { display: flex; align-items: center; justify-content: space-between; }
.seller-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.seller-chip .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }

/* ---------- Why Choose ---------- */
.why-section { background: var(--navy-tint); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-card); }
.why-card .why-icon { width: 42px; height: 42px; color: var(--gold-deep); margin-bottom: 16px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testimonial-quote { font-family: var(--font-display); font-style: italic; font-size: 16.5px; color: var(--ink); margin-bottom: 18px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.testimonial-person strong { display: block; font-size: 14px; color: var(--ink); }
.testimonial-person span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-deep); color: var(--white); padding: 64px 0; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 26px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid .logo { color: var(--white); }
.footer-grid .logo span { color: var(--gold); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ---------- Auth pages ---------- */
.auth-page { background: var(--navy-deep); min-height: 100vh; }
.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.auth-brand {
  display: flex; flex-direction: column; justify-content: center; padding: 64px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
}
.auth-brand h1 { color: var(--white); font-size: 34px; max-width: 380px; }
.auth-brand p { color: rgba(255,255,255,0.72); max-width: 380px; }
.auth-brand .logo { color: var(--white); margin-bottom: 40px; font-size: 26px; }
.auth-brand .logo span { color: var(--gold); }
.auth-card {
  background: var(--bg); display: flex; flex-direction: column; justify-content: center;
  padding: 64px; max-width: 460px; width: 100%; margin: 0 auto;
}
.auth-card h2 { font-size: 26px; }
.auth-sub { margin-bottom: 24px; }
.role-toggle { display: flex; gap: 10px; margin-bottom: 20px; }
.role-toggle label {
  flex: 1; text-align: center; padding: 12px; border-radius: 8px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: 13.5px; cursor: pointer; background: var(--white); color: var(--ink-soft);
  transition: all 0.15s ease;
}
.role-toggle label.active { border-color: var(--navy); background: var(--navy-tint); color: var(--navy-deep); }
.role-toggle input { display: none; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.form-group .optional { font-weight: 400; color: var(--ink-soft); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 7px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); outline: none; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: -10px; margin-bottom: 20px; }
.auth-footer { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.auth-footer a { color: var(--navy); font-weight: 700; }

.alert { border-radius: 8px; padding: 13px 16px; margin-bottom: 20px; font-size: 14px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #FDEDEB; color: var(--danger); border: 1px solid #F5C6BF; }
.alert-success { background: #E9F7F0; color: var(--success); border: 1px solid #BFE8D3; }

/* ---------- Dashboard shell (seller/admin) ---------- */
.dash-body { background: var(--bg); min-height: 100vh; }
.dash-topbar {
  background: var(--white); border-bottom: 1px solid var(--line);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; position: sticky; top: 0; z-index: 40;
}
.dash-topbar .logo { font-size: 20px; }
.dash-shell { display: flex; min-height: calc(100vh - 68px); }
.dash-sidebar {
  width: 236px; flex-shrink: 0; background: var(--navy-deep); color: rgba(255,255,255,0.85);
  padding: 24px 14px;
}
.dash-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600; margin-bottom: 4px; color: rgba(255,255,255,0.72);
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-sidebar a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.dash-sidebar a.active { background: var(--gold); color: var(--navy-deep); }
.dash-sidebar .side-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.4); padding: 18px 14px 6px; font-weight: 700; }
.dash-main { flex: 1; padding: 32px 36px; min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash-head h1 { font-size: 26px; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px 22px; box-shadow: var(--shadow-card); }
.stat-card .stat-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--navy-deep); }
.stat-card.gold .stat-value { color: var(--gold-deep); }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h2 { font-size: 17px; margin: 0; }
.panel-body { padding: 22px; }

table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
.row-thumb { width: 52px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--navy-tint); }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-gray { background: #EEF1F6; color: var(--ink-soft); }
.badge-blue { background: var(--navy-tint); color: var(--navy); }
.badge-green { background: #E9F7F0; color: var(--success); }
.badge-red { background: #FDEDEB; color: var(--danger); }
.badge-gold { background: #FEF3E0; color: var(--gold-deep); }
.badge-premium { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); }

.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); }

/* ---------- Promotion plan cards ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column;
}
.plan-card.plan-featured { border-color: var(--gold); box-shadow: 0 8px 24px rgba(245,158,11,0.14); }
.plan-card.plan-premium { border-color: var(--navy); background: linear-gradient(180deg, var(--navy-tint), var(--white)); }
.plan-name { font-family: var(--font-display); font-size: 20px; margin-bottom: 4px; }
.plan-price { font-size: 28px; font-weight: 800; color: var(--navy-deep); margin-bottom: 4px; }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.plan-features { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan-features li { font-size: 13.5px; color: var(--ink-soft); padding: 7px 0; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: "✓"; color: var(--gold-deep); font-weight: 800; }

/* Featured badge on property card (public-facing) */
.property-card.is-featured { border: 1.5px solid var(--gold); }
.property-card.is-premium { border: 1.5px solid var(--navy); }
.property-tag.tag-featured { background: var(--gold); color: var(--navy-deep); }
.property-tag.tag-premium { background: var(--navy-deep); color: var(--gold); }

.upload-drop {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 24px; text-align: center;
  background: var(--navy-tint); font-size: 13.5px; color: var(--ink-soft);
}

/* ---------- Messaging / Chat ---------- */
.chat-shell { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 68px - 64px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; background: var(--white); }
.conv-list-head { padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 800; font-family: var(--font-display); font-size: 17px; }
.conv-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: inherit; position: relative; }
.conv-item:hover { background: var(--navy-tint); }
.conv-item.active { background: var(--navy-tint); border-left: 3px solid var(--navy); }
.conv-item .avatar { width: 40px; height: 40px; flex-shrink: 0; font-size: 14px; position: relative; }
.conv-item .online-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #9CA3AF; border: 2px solid var(--white); }
.conv-item .online-dot.on { background: var(--success); }
.conv-item .conv-meta { min-width: 0; flex: 1; }
.conv-item .conv-name { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.conv-item .conv-preview { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-item .conv-time { font-size: 11px; color: var(--ink-soft); flex-shrink: 0; }
.conv-item .unread-dot { background: var(--gold); color: var(--navy-deep); font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.conv-item .conv-property { font-size: 11px; color: var(--navy); margin-top: 2px; }

.chat-window { display: flex; flex-direction: column; height: 100%; }
.chat-window-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-window-head .presence { font-size: 12px; color: var(--ink-soft); }
.chat-messages { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg-bubble { max-width: 62%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.msg-bubble.mine { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.msg-bubble.theirs { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-time { font-size: 10.5px; opacity: 0.65; margin-top: 4px; display: block; }
.chat-input-row { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--white); }
.chat-input-row textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; font-family: var(--font-body); font-size: 14px; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .property-grid, .why-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; padding: 12px; }
  .dash-sidebar .side-label { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 260px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .search-panel { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .property-grid, .why-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 100px; }
  .auth-card { padding: 40px 28px; }
}
/* ---------- Enhanced Property Form ---------- */
.property-form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.step.active .step-icon {
  background: var(--navy);
  color: var(--white);
}

.step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}

.step.active span {
  color: var(--navy);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--line);
  margin: 0 16px;
}

.property-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.form-section-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy-tint) 0%, var(--white) 100%);
}

.form-section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 4px;
}

.form-section-header p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.form-section-body {
  padding: 28px;
}

.form-help {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.4;
}

.input-prefix, .input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix input {
  padding-left: 32px;
}

.input-suffix input {
  padding-right: 42px;
}

.prefix, .suffix {
  position: absolute;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  pointer-events: none;
}

.prefix {
  left: 12px;
}

.suffix {
  right: 12px;
}

/* Enhanced Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.amenity-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  min-height: 48px;
}

.amenity-card:hover {
  border-color: var(--navy);
  background: var(--navy-tint);
  transform: translateY(-2px);
}

.amenity-card.selected {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.amenity-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amenity-text {
  text-align: center;
  line-height: 1.3;
  flex: 1;
}

.amenity-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.amenity-card.selected .amenity-check {
  opacity: 1;
  transform: scale(1);
}

/* Enhanced Upload Area */
.upload-area {
  margin-top: 12px;
}

.upload-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: var(--navy-tint);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-zone:hover {
  border-color: var(--navy);
  background: var(--white);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--navy);
}

.upload-zone h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 8px;
}

.upload-zone p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.upload-specs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.upload-specs span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--white);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.uploaded-images {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.uploaded-images h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0 0 16px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.image-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.upload-help {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

/* Form Actions */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--navy-tint) 0%, var(--white) 100%);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
}

.submit-help {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin: -16px 28px 0;
  padding-bottom: 28px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .property-form-steps {
    padding: 16px;
    margin-bottom: 20px;
  }
  
  .step-line {
    width: 30px;
    margin: 0 8px;
  }
  
  .step span {
    font-size: 11px;
  }
  
  .form-section-header,
  .form-section-body {
    padding: 20px;
  }
  
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .amenity-card {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 40px;
  }
  
  .upload-zone {
    padding: 24px 16px;
  }
  
  .upload-specs {
    flex-direction: column;
    gap: 8px;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-lg {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .property-form-steps .step span {
    display: none;
  }
  
  .step-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .amenities-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* ---------- Accessibility and UX Improvements ---------- */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.amenity-card:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.upload-zone:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Loading state for form submission */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Progress indicator styles */
@media (max-width: 640px) {
  .property-form-steps {
    overflow-x: auto;
    padding: 16px 12px;
  }
  
  .property-form-steps::-webkit-scrollbar {
    height: 4px;
  }
  
  .property-form-steps::-webkit-scrollbar-track {
    background: var(--line);
    border-radius: 2px;
  }
  
  .property-form-steps::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 2px;
  }
}
/* ---------- Amenity Counter and Header ---------- */
.amenity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.amenity-counter {
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
  background: var(--navy-tint);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.amenity-counter #amenity-count {
  color: var(--navy-deep);
  font-weight: 700;
}

/* Enhanced amenity card interactions */
.amenity-card {
  user-select: none;
  outline: none;
}

.amenity-card:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.amenity-card:active {
  transform: translateY(-1px) scale(0.98);
}

/* Animation for selection states */
.amenity-card.selected {
  animation: selectBounce 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes selectBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Better visual feedback */
.amenity-card:not(.selected):hover .amenity-check {
  opacity: 0.3;
  transform: scale(0.9);
}
/* Privacy consent checkbox (register.php) */
.form-check {
  margin: 6px 0 4px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checkbox-label a {
  color: var(--primary, #1e3a8a);
  text-decoration: underline;
}
