/*
   PropertyLanka — Global Stylesheet
   Supports Dark Mode (default) + Light Mode
   Toggle controlled by  data-theme="light"
   on the <html> element via theme-toggle.js
   */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

/*
   THEME VARIABLES
   Dark mode = default (:root)
   Light mode = html[data-theme="light"]
 */
:root {
  /* backgrounds */
  --bg:        #0c0c0e;
  --surface:   #141416;
  --card:      #1a1a1e;
  --card2:     #202026;
  /* purple accent — same in both modes */
  --pur:       #8b5cf6;
  --pur2:      #6d28d9;
  --pur3:      #5b21b6;
  --purglow:   rgba(139,92,246,0.18);
  --pursoft:   rgba(139,92,246,0.08);
  --purborder: rgba(139,92,246,0.30);
  /* text */
  --txt:       #f0f0f3;
  --txt2:      #9090a0;
  --txt3:      #55555f;
  /* borders */
  --bdr:       #252530;
  --bdr2:      #32323e;
  /* status */
  --green:     #22c55e;
  --red:       #ef4444;
  --amber:     #f59e0b;
  /* fonts */
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* radii */
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  /* hero card gradient */
  --card-grad-1: #14142a;
  --card-grad-2: #1e1040;
  --card-grad-c2a: #0a1628;
  --card-grad-c2b: #1a2a4a;
  --card-grad-c3a: #1a0a28;
  --card-grad-c3b: #2d0d50;
  --card-grad-c4a: #0a1a14;
  --card-grad-c4b: #0d3020;
  /* status pill */
  --status-avail-bg:  #052e16;
  --status-avail-txt: #4ade80;
  --status-rented-bg: #1e1b4b;
  --status-rented-txt:#a78bfa;
  --status-sold-bg:   #1c1917;
  --status-sold-txt:  #78716c;
}

/* ── LIGHT THEME OVERRIDES ── */
html[data-theme="light"] {
  --bg:        #f5f5f7;
  --surface:   #ffffff;
  --card:      #ffffff;
  --card2:     #f0f0f5;
  --purglow:   rgba(139,92,246,0.10);
  --pursoft:   rgba(139,92,246,0.07);
  --purborder: rgba(139,92,246,0.25);
  --txt:       #0c0c0e;
  --txt2:      #555560;
  --txt3:      #9090a0;
  --bdr:       #e0e0ea;
  --bdr2:      #d0d0de;
  --card-grad-1: #ede8ff;
  --card-grad-2: #d8ccff;
  --card-grad-c2a: #dce8ff;
  --card-grad-c2b: #c2d6ff;
  --card-grad-c3a: #efe8ff;
  --card-grad-c3b: #d4bbff;
  --card-grad-c4a: #ddf2ea;
  --card-grad-c4b: #b8e8d4;
  --status-avail-bg:  #dcfce7;
  --status-avail-txt: #16a34a;
  --status-rented-bg: #ede9fe;
  --status-rented-txt:#7c3aed;
  --status-sold-bg:   #f5f5f4;
  --status-sold-txt:  #57534e;
}

/* smooth transition when switching themes */
*, *::before, *::after {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.18s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }


/*
   THEME TOGGLE BUTTON (sun/moon switch)
*/
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-track {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--card2);
  border: 1px solid var(--bdr2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  transition: background 0.25s;
}

html[data-theme="light"] .theme-track {
  background: #e8e0ff;
  border-color: var(--purborder);
}

/* moon icon (left side) */
.theme-track .icon-moon {
  font-size: 12px;
  line-height: 1;
  z-index: 1;
  transition: opacity 0.2s;
}

/* sun icon (right side) */
.theme-track .icon-sun {
  font-size: 12px;
  line-height: 1;
  z-index: 1;
  transition: opacity 0.2s;
}

/* sliding thumb */
.theme-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pur);
  transition: transform 0.25s cubic-bezier(.34,1.5,.64,1);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* move thumb to the right in light mode */
html[data-theme="light"] .theme-thumb {
  transform: translateX(28px);
}


/*
   navigation */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--bdr);
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  margin-right: 8px;
}
.nav-logo span { color: var(--pur); }

.nav-links { display: flex; gap: 2px; flex: 1; }

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--txt2);
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--txt); background: var(--card); }
.nav-link.active { color: var(--pur); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  border: 1px solid var(--bdr2);
  cursor: pointer;
  transition: border-color 0.15s;
}
.user-pill:hover { border-color: var(--pur); }

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--pur);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 500; }


/*
   buttons */
.btn-primary {
  background: var(--pur); color: #fff; border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--pur2); }
.btn-primary:active { transform: scale(0.98); }

.btn-primary-lg {
  background: var(--pur); color: #fff; border: none;
  border-radius: var(--radius-md);
  padding: 13px 30px;
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary-lg:hover { background: var(--pur2); }
.btn-primary-lg:active { transform: scale(0.98); }

.btn-outline {
  background: transparent; color: var(--txt);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-md);
  padding: 10px 22px; font-size: 14px;
  transition: all 0.15s; white-space: nowrap;
}
.btn-outline:hover { border-color: var(--pur); color: var(--pur); }

.btn-outline-lg {
  background: transparent; color: var(--txt);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-md);
  padding: 13px 30px; font-size: 16px;
  transition: all 0.15s;
}
.btn-outline-lg:hover { border-color: var(--pur); color: var(--pur); }

.btn-ghost {
  background: transparent; color: var(--txt2);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-md);
  padding: 8px 18px; font-size: 13px;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--pur); color: var(--pur); }

.btn-danger {
  background: transparent; color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius-md);
  padding: 8px 18px; font-size: 13px;
  transition: all 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,0.1); }

.btn-full { width: 100%; padding: 12px; font-size: 15px; border-radius: var(--radius-md); }


/* form elements */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block; font-size: 12px;
  color: var(--txt2); margin-bottom: 6px;
  font-weight: 500; letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--txt); font-size: 14px;
  outline: none; transition: border-color 0.15s; resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pur);
  box-shadow: 0 0 0 3px var(--pursoft);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--txt3); }
.form-group select option { background: var(--card); color: var(--txt); }

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.form-section-bar {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: var(--pur);
  text-transform: uppercase;
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 16px; margin-top: 10px;
}

.upload-zone {
  border: 2px dashed var(--bdr2);
  border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 16px;
}
.upload-zone:hover { border-color: var(--pur); background: var(--pursoft); }
.upload-zone .upload-icon {
  width: 32px; height: 32px; stroke: var(--txt3);
  fill: none; stroke-width: 1.5;
  margin: 0 auto 10px; display: block;
}
.upload-zone p { font-size: 13px; color: var(--txt2); }
.upload-zone span { color: var(--pur); }
.upload-zone small { font-size: 11px; color: var(--txt3); display: block; margin-top: 4px; }


/* property cards */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.prop-card {
  background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
  text-decoration: none; color: inherit; display: block;
}
.prop-card:hover { border-color: var(--pur); transform: translateY(-3px); }

.prop-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative;
  background: linear-gradient(135deg, var(--card-grad-1), var(--card-grad-2));
}
.prop-card-img.c2 { background: linear-gradient(135deg, var(--card-grad-c2a), var(--card-grad-c2b)); }
.prop-card-img.c3 { background: linear-gradient(135deg, var(--card-grad-c3a), var(--card-grad-c3b)); }
.prop-card-img.c4 { background: linear-gradient(135deg, var(--card-grad-c4a), var(--card-grad-c4b)); }

.listing-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 11px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-rent { background: rgba(139,92,246,0.9);  color: #e9d5ff; }
.badge-sale { background: rgba(34,197, 94,0.85); color: #dcfce7; }

.prop-card-body { padding: 16px 18px; }

.prop-card-name {
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  margin-bottom: 5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.prop-card-loc {
  font-size: 12px; color: var(--txt2);
  display: flex; align-items: center; gap: 4px; margin-bottom: 12px;
}
.prop-card-loc svg { width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2;flex-shrink:0; }

.prop-card-footer { display: flex; align-items: center; justify-content: space-between; }

.prop-price {
  font-family: var(--font-head); font-size: 17px;
  font-weight: 800; color: var(--pur);
}

.prop-tags { display: flex; gap: 6px; }

.prop-tag {
  font-size: 10px;
  background: var(--card2);
  border: 1px solid var(--bdr);
  border-radius: 5px; padding: 3px 8px; color: var(--txt2);
}

.prop-card-lister {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--bdr);
}

.lister-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pur);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0;
}

.lister-name { font-size: 12px; color: var(--txt2); }


/* ══════════════════════════════════════
   STATUS PILLS
══════════════════════════════════════ */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.status-available { background: var(--status-avail-bg);  color: var(--status-avail-txt); }
.status-rented    { background: var(--status-rented-bg); color: var(--status-rented-txt); }
.status-sold      { background: var(--status-sold-bg);   color: var(--status-sold-txt); }


/* selection */
.page-section { padding: 36px 40px; }

.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}

.section-title { font-family: var(--font-head); font-size: 20px; font-weight: 700; }

.section-link { font-size: 13px; color: var(--pur); cursor: pointer; }
.section-link:hover { text-decoration: underline; }

.page-title { font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--txt2); margin-bottom: 28px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }


/* filter */
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--bdr); color: var(--txt2);
  font-size: 12px; background: transparent;
  cursor: pointer; transition: all 0.15s;
}
.chip:hover, .chip.active {
  background: var(--purglow);
  border-color: var(--purborder);
  color: var(--pur);
}


/* auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 60px);
}

.auth-left {
  background: var(--surface);
  border-right: 1px solid var(--bdr);
  padding: 60px 52px;
  display: flex; flex-direction: column; justify-content: center;
}

.auth-right {
  padding: 60px 52px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
}

.auth-form-box { width: 100%; max-width: 360px; }

.auth-heading {
  font-family: var(--font-head); font-size: 28px;
  font-weight: 800; line-height: 1.25; margin-bottom: 12px;
}
.auth-heading span { color: var(--pur); }

.auth-subtext {
  font-size: 14px; color: var(--txt2);
  line-height: 1.7; margin-bottom: 36px; max-width: 320px;
}

.auth-stats {
  display: flex; gap: 28px;
  margin-top: auto; padding-top: 28px;
  border-top: 1px solid var(--bdr);
}

.auth-stat-num { font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.auth-stat-lbl { font-size: 11px; color: var(--txt2); margin-top: 2px; }

.auth-switch { font-size: 13px; color: var(--txt2); margin-bottom: 24px; }
.auth-switch a { color: var(--pur); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

.divider { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background: var(--bdr); }
.divider span { font-size: 11px; color: var(--txt3); }


/* search */
.search-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}

.filter-panel {
  background: var(--surface);
  border-right: 1px solid var(--bdr);
  padding: 28px 22px;
}

.filter-panel h3 {
  font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 20px;
}

.filter-section { margin-bottom: 22px; }

.filter-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--txt3); margin-bottom: 8px;
}

.filter-input {
  width: 100%; background: var(--card);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-sm);
  padding: 8px 12px; color: var(--txt);
  font-size: 13px; outline: none; transition: border-color 0.15s;
}
.filter-input:focus { border-color: var(--pur); }
.filter-input option { background: var(--card); color: var(--txt); }

.price-range-row { display: flex; gap: 8px; }
.price-range-row .filter-input { min-width: 0; }

.results-area { padding: 24px 28px; }

.results-topbar {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 18px;
}

.results-count { font-size: 13px; color: var(--txt2); }
.results-count strong { color: var(--txt); }

.sort-select {
  background: var(--card); border: 1px solid var(--bdr);
  border-radius: var(--radius-sm);
  padding: 6px 12px; color: var(--txt); font-size: 12px; outline: none;
}


/* listing  */
.my-listing-card {
  background: var(--card); border: 1px solid var(--bdr);
  border-radius: var(--radius-md);
  padding: 16px 20px; display: flex; align-items: center;
  gap: 16px; margin-bottom: 12px; transition: border-color 0.15s;
}
.my-listing-card:hover { border-color: var(--bdr2); }

.my-listing-thumb {
  width: 58px; height: 58px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--card-grad-1), var(--card-grad-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}

.my-listing-info { flex: 1; min-width: 0; }

.my-listing-name {
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.my-listing-meta { font-size: 12px; color: var(--txt2); }

.my-listing-price {
  font-family: var(--font-head); font-size: 15px;
  font-weight: 700; color: var(--pur); margin-right: 14px; white-space: nowrap;
}

.action-btn-group { display: flex; gap: 8px; }

.action-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--bdr); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--txt2); transition: all 0.15s;
}
.action-btn:hover { border-color: var(--pur); color: var(--pur); }
.action-btn.danger:hover { border-color: var(--red); color: var(--red); }
.action-btn svg { width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2; }


/* property detail */
.detail-layout { max-width: 820px; margin: 0 auto; padding: 32px 24px; }

.detail-img {
  width: 100%; height: 280px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--card-grad-1), var(--card-grad-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}

.detail-back {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px); transition: background 0.15s;
}
.detail-back:hover { background: rgba(0,0,0,0.8); }

.detail-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 16px; margin-bottom: 8px; flex-wrap: wrap;
}

.detail-title { font-family: var(--font-head); font-size: 24px; font-weight: 800; }

.detail-price {
  font-family: var(--font-head); font-size: 26px;
  font-weight: 800; color: var(--pur); white-space: nowrap;
}

.detail-loc {
  font-size: 14px; color: var(--txt2);
  display: flex; align-items: center; gap: 6px; margin-bottom: 18px;
}
.detail-loc svg { width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.detail-tag {
  padding: 6px 14px; border-radius: 8px;
  background: var(--card2); border: 1px solid var(--bdr);
  font-size: 12px; color: var(--txt2);
}

.detail-desc { font-size: 14px; color: var(--txt2); line-height: 1.75; margin-bottom: 24px; }

.contact-card {
  background: var(--card); border: 1px solid var(--bdr2);
  border-radius: var(--radius-lg); padding: 22px 24px;
}

.contact-card h3 {
  font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 16px;
}

.contact-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.contact-row:last-child { margin-bottom: 0; }

.contact-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--purglow);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width:16px;height:16px;stroke:var(--pur);fill:none;stroke-width:2; }

.contact-label { font-size: 11px; color: var(--txt3); margin-bottom: 1px; }
.contact-value { font-size: 14px; font-weight: 500; color: var(--txt); }

.owner-actions { display: flex; gap: 10px; margin-top: 18px; }



.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--card2); border: 1px solid var(--bdr2);
  border-radius: var(--radius-md); padding: 12px 20px;
  font-size: 13px; color: var(--txt); z-index: 9999;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }



.hero {
  position: relative;
  padding: 90px 40px 70px;
  text-align: center; overflow: hidden;
}

#particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pursoft); border: 1px solid var(--purborder);
  border-radius: 20px; padding: 6px 16px;
  font-size: 12px; color: var(--pur);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite; flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 800; line-height: 1.12; margin-bottom: 18px;
  animation: fadeUp 0.6s 0.1s ease both;
  opacity: 0; animation-fill-mode: forwards;
}
.hero h1 span { color: var(--pur); }

.hero-subtitle {
  font-size: 17px; color: var(--txt2);
  max-width: 540px; margin: 0 auto 38px; line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
  opacity: 0; animation-fill-mode: forwards;
}

.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
  opacity: 0; animation-fill-mode: forwards;
}

.hero-stats {
  display: flex; justify-content: center;
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  overflow: hidden; max-width: 540px;
  margin: 56px auto 0;
  background: var(--surface);
  animation: fadeUp 0.6s 0.45s ease both;
  opacity: 0; animation-fill-mode: forwards;
}

.hero-stat {
  flex: 1; padding: 20px 12px; text-align: center;
  border-right: 1px solid var(--bdr);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-num {
  font-family: var(--font-head); font-size: 26px;
  font-weight: 800; color: var(--pur);
}

.hero-stat-lbl { font-size: 11px; color: var(--txt2); margin-top: 3px; }

.quick-search {
  padding: 0 40px; margin-top: -24px;
  position: relative; z-index: 10;
}

.quick-search-inner {
  background: var(--surface); border: 1px solid var(--bdr2);
  border-radius: var(--radius-lg); padding: 18px 22px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}

.qs-field { display: flex; flex-direction: column; flex: 1; min-width: 130px; }

.qs-field label {
  font-size: 10px; color: var(--txt3);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 5px;
}

.qs-field input,
.qs-field select {
  background: transparent; border: none;
  color: var(--txt); font-size: 14px;
  font-family: var(--font-body); outline: none;
}
.qs-field select option { background: var(--card); color: var(--txt); }

.qs-divider { width: 1px; height: 34px; background: var(--bdr); flex-shrink: 0; }


/* admin */
.admin-badge {
  background: var(--pur); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  vertical-align: middle; margin-left: 6px;
}

.admin-header {
  background: var(--surface); border-bottom: 1px solid var(--bdr);
  padding: 28px 0 24px;
}
.admin-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-title   { font-size: 24px; font-weight: 700; color: var(--txt); margin: 0 0 4px; }
.admin-subtitle{ color: var(--txt2); font-size: 14px; margin: 0; }

.admin-stats-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.admin-stat-card {
  flex: 1; min-width: 140px;
  background: var(--surface); border: 1px solid var(--bdr);
  border-radius: 14px; padding: 20px 18px; text-align: center;
  transition: transform .18s;
}
.admin-stat-card:hover { transform: translateY(-2px); }
.admin-stat-icon { font-size: 28px; margin-bottom: 8px; }
.admin-stat-num  { font-size: 28px; font-weight: 700; color: var(--pur); }
.admin-stat-lbl  { font-size: 12px; color: var(--txt2); margin-top: 4px; }

.admin-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--bdr); margin-bottom: 24px;
}
.admin-tab {
  background: none; border: none; padding: 10px 20px;
  font-size: 14px; font-weight: 600; color: var(--txt2);
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; border-radius: 6px 6px 0 0; transition: color .15s;
}
.admin-tab:hover  { color: var(--pur); }
.admin-tab.active { color: var(--pur); border-bottom-color: var(--pur); }

.admin-tab-content.hidden { display: none; }

.admin-table-toolbar {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}

.admin-table-wrap { overflow-x: auto; border: 1px solid var(--bdr); border-radius: 12px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table thead tr { background: var(--surface); border-bottom: 2px solid var(--bdr); }
.admin-table th {
  padding: 12px 16px; text-align: left;
  font-weight: 600; color: var(--txt2);
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; white-space: nowrap;
}
.admin-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--bdr);
  color: var(--txt); vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(139,92,246,.04); }

.status-chip {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: capitalize;
}
.status-chip.status-available { background: rgba(16,185,129,.12); color: #059669; }
.status-chip.status-rented    { background: rgba(245,158,11,.12);  color: #d97706; }
.status-chip.status-sold      { background: rgba(139,92,246,.12);  color: #7c3aed; }

.role-chip {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
}
.role-admin { background: rgba(139,92,246,.15); color: var(--pur); }
.role-user  { background: rgba(100,116,139,.12); color: #64748b; }

.admin-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-btn-view, .admin-btn-edit, .admin-btn-delete {
  border: none; border-radius: 6px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity .15s;
}
.admin-btn-view   { background: rgba(139,92,246,.12); color: var(--pur); }
.admin-btn-edit   { background: rgba(245,158,11,.12);  color: #d97706; }
.admin-btn-delete { background: rgba(239,68,68,.12);   color: #dc2626; }
.admin-btn-view:hover, .admin-btn-edit:hover, .admin-btn-delete:hover { opacity: .75; }
.admin-btn-delete:disabled { opacity: .35; cursor: not-allowed; }


/* animation */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity:.5; transform:scale(1); }
  50%     { opacity:1;  transform:scale(1.2); }
}


/* response */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 56px 20px 48px; }
  .quick-search { padding: 0 16px; }
  .quick-search-inner { gap: 10px; }
  .qs-divider { display: none; }
  .qs-field { min-width: 100%; }
  .page-section { padding: 24px 20px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; align-items: stretch; }
  .auth-form-box { max-width: 100%; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-panel { border-right: none; border-bottom: 1px solid var(--bdr); }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .detail-layout { padding: 20px 16px; }
  .detail-title { font-size: 20px; }
  .detail-price { font-size: 20px; }
  .my-listing-card { flex-wrap: wrap; }
  .my-listing-price { margin-right: 0; }
  .admin-header-inner { padding: 0 20px; }
  .admin-stats-row { gap: 10px; }
  .admin-stat-card { min-width: 120px; padding: 14px 12px; }
}

@media (max-width: 480px) {
  .prop-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--bdr); }
  .hero-stat:last-child { border-bottom: none; }
}

/* ================================================================
   NestVault — Extended Styles
   ================================================================ */

/* Logo flex */
.nav-logo { display: flex; align-items: center; gap: 6px; }

/* Auth message boxes */
.msg-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
  font-size: 13px; color: #ef4444;
}
.msg-success {
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3);
  border-radius: 8px; padding: 10px 14px; margin-bottom: 16px;
  font-size: 13px; color: #22c55e;
}

/* Danger button */
.btn-danger {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3);
  color: #ef4444; padding: 10px 20px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; font-weight: 600; transition: opacity .15s;
  font-family: var(--font-body);
}
.btn-danger:hover { opacity: .75; }

/* ── Chat ─────────────────────────────────────────────────── */
.chat-layout {
  max-width: 720px; margin: 0 auto; padding: 24px;
  display: flex; flex-direction: column; height: calc(100vh - 72px);
}
.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--bdr); margin-bottom: 0;
}
.chat-header-info { flex: 1; }
.chat-header-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.chat-header-sub   { font-size: 12px; color: var(--txt2); margin-top: 2px; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px 0; display: flex;
  flex-direction: column; gap: 4px;
}
.msg-row { display: flex; }
.msg-row.mine   { justify-content: flex-end; }
.msg-row.theirs { justify-content: flex-start; }
.msg-bubble {
  max-width: 68%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.msg-bubble.mine   { background: var(--pur); color: #fff; border-bottom-right-radius: 3px; }
.msg-bubble.theirs { background: var(--card2); color: var(--txt); border-bottom-left-radius: 3px; }
.msg-time { font-size: 10px; opacity: .55; margin-top: 4px; display: block; }
.chat-input-bar {
  display: flex; gap: 10px; padding: 14px 0 0;
  border-top: 1px solid var(--bdr);
}
.chat-input-bar input {
  flex: 1; background: var(--card); border: 1px solid var(--bdr2);
  border-radius: var(--radius-sm); padding: 10px 14px;
  color: var(--txt); font-size: 14px; outline: none;
  font-family: var(--font-body);
}
.chat-input-bar input:focus { border-color: var(--pur); }

/* ── Inquiry cards ───────────────────────────────────────── */
.inquiry-card {
  background: var(--card); border: 1px solid var(--bdr);
  border-radius: var(--radius-md); padding: 16px 20px;
  margin-bottom: 10px; cursor: pointer; transition: border-color .15s;
  display: flex; align-items: center; gap: 16px;
}
.inquiry-card:hover     { border-color: var(--pur); }
.inquiry-card.unread    { border-left: 3px solid var(--pur); }
.badge-unread {
  display: inline-block; background: var(--pur); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; margin-left: 6px; vertical-align: middle;
}

/* ── Image previews ──────────────────────────────────────── */
.img-preview-box {
  width: 110px; height: 88px; border-radius: var(--radius-sm);
  border: 1px solid var(--bdr2); object-fit: cover;
  display: none; margin-top: 8px;
}
.img-preview-box.visible { display: block; }

/* ── Property image gallery ──────────────────────────────── */
.prop-gallery {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.prop-gallery img {
  flex: 1; height: 200px; object-fit: cover;
  border-radius: var(--radius-md); min-width: 0;
}

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(139,92,246,.3); border-top-color: var(--pur);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading overlay for pages */
.page-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 300px; gap: 14px;
  color: var(--txt2); font-size: 14px;
}

/* ── Property detail two-col layout ─────────────────────── */
.detail-two-col {
  display: flex; gap: 32px; flex-wrap: wrap; margin-top: 24px;
}
.detail-main { flex: 2; min-width: 280px; }
.detail-side { flex: 1; min-width: 240px; }

/* Status pills in detail */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-available { background: var(--status-avail-bg); color: var(--status-avail-txt); }
.status-rented    { background: var(--status-rented-bg); color: var(--status-rented-txt); }
.status-sold      { background: var(--status-sold-bg);   color: var(--status-sold-txt); }

/* ── Terms / Privacy ─────────────────────────────────────── */
.legal-body { line-height: 1.85; }
.legal-body h2 {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  margin: 28px 0 8px; color: var(--pur);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p   { font-size: 14px; color: var(--txt2); margin-bottom: 12px; }
.legal-body ul  { font-size: 14px; color: var(--txt2); padding-left: 22px; margin-bottom: 12px; }
.legal-body li  { margin-bottom: 6px; }

/* ── Mobile fixes ────────────────────────────────────────── */
@media (max-width: 768px) {
  .chat-layout { padding: 16px; height: calc(100vh - 60px); }
  .prop-gallery { flex-direction: column; }
  .prop-gallery img { height: 200px; flex: unset; width: 100%; }
  .detail-two-col { flex-direction: column; }
}
