/* Real Estate — Midnight Aurora theme */
.re-wrap { max-width: 560px; margin: 0 auto; padding: 0 0 80px; }

/* Hero */
.re-hero { background: linear-gradient(135deg,#a855f7,#10b981);
  border-radius: 0 0 28px 28px; padding: 24px 20px 28px;
  text-align: center; color: #fff; }
.re-hero-icon { width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 26px; margin: 0 auto 12px; }
.re-hero h1 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.re-hero p  { font-size: 13px; opacity: .85; margin: 0; }

/* Tabs */
.re-tabs { display: flex; gap: 6px; padding: 14px 16px 8px;
  overflow-x: auto; scrollbar-width: none; }
.re-tabs::-webkit-scrollbar { display: none; }
.re-tab { flex-shrink: 0; padding: 8px 16px; border-radius: 20px; border: none;
  background: var(--border,#e2e8f0); color: var(--text,#1e293b);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.re-tab.active { background: linear-gradient(135deg,#a855f7,#10b981); color: #fff; }

/* Type pills */
.re-type-pills { display: flex; gap: 6px; padding: 0 16px 10px;
  overflow-x: auto; scrollbar-width: none; }
.re-type-pills::-webkit-scrollbar { display: none; }
.re-pill { flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--border,#e2e8f0); background: transparent;
  color: var(--text,#1e293b); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all .15s; }
.re-pill.active { background: linear-gradient(135deg,#a855f7,#10b981);
  border-color: transparent; color: #fff; }

/* Filters */
.re-filters { display: flex; gap: 8px; padding: 0 16px 8px; flex-wrap: wrap; }
.re-filters select { flex: 1; min-width: 120px; padding: 8px 10px;
  border-radius: 10px; border: 1px solid var(--border,#e2e8f0);
  background: var(--card-bg,#fff); font-size: 13px; color: var(--text,#1e293b); }
.re-search { display: flex; gap: 8px; padding: 0 16px 10px; }
.re-search input { flex: 1; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--border,#e2e8f0);
  background: var(--card-bg,#fff); font-size: 14px; color: var(--text,#1e293b); }
.re-search button { padding: 10px 16px; border-radius: 12px; border: none;
  background: linear-gradient(135deg,#a855f7,#10b981); color: #fff;
  font-size: 14px; cursor: pointer; }

/* Listing card */
.re-card { background: var(--card-bg,#fff); border-radius: 16px;
  padding: 16px; margin: 0 16px 10px;
  border: 1px solid var(--border,#e2e8f0); cursor: pointer;
  transition: transform .15s, box-shadow .15s; position: relative; }
.re-card:hover { transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168,85,247,.12); }
.re-card-top { display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 8px; gap: 8px; }
.re-card-title { font-size: 15px; font-weight: 800; flex: 1; line-height: 1.4; }
.re-card-price { font-size: 14px; font-weight: 900; white-space: nowrap;
  background: linear-gradient(135deg,#a855f7,#10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.re-card-meta { font-size: 12px; color: var(--muted,#64748b);
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.re-card-specs { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.re-spec { font-size: 12px; font-weight: 600; color: var(--muted,#64748b);
  display: flex; align-items: center; gap: 4px; }

/* Badges */
.re-badge { font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 10px; white-space: nowrap; }
.re-badge.sale    { background: rgba(16,185,129,.12); color: #10b981; }
.re-badge.rent    { background: rgba(59,130,246,.12); color: #3b82f6; }
.re-badge.lease   { background: rgba(245,158,11,.12); color: #f59e0b; }
.re-badge.jv      { background: rgba(168,85,247,.12); color: #a855f7; }
.re-badge.featured{ background: rgba(245,158,11,.12); color: #f59e0b; }
.re-badge.sold    { background: rgba(239,68,68,.12);  color: #ef4444; }
.re-badge.furnished{ background: rgba(16,185,129,.12); color: #10b981; }

/* Detail */
.re-detail { background: var(--card-bg,#fff); border-radius: 20px 20px 0 0;
  padding: 20px 20px 80px; min-height: 60vh; }
.re-detail-back { display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #a855f7; font-weight: 700;
  cursor: pointer; margin-bottom: 16px; background: none; border: none; }
.re-detail h2 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.re-detail-price { font-size: 22px; font-weight: 900; margin-bottom: 12px;
  background: linear-gradient(135deg,#a855f7,#10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.re-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.re-detail-cell { background: var(--bg,#f8fafc); border-radius: 12px;
  padding: 10px; border: 1px solid var(--border,#e2e8f0); }
.re-detail-label { font-size: 10px; font-weight: 700; color: var(--muted,#64748b);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.re-detail-val { font-size: 13px; font-weight: 700; }

/* Section heading */
.re-section-title { font-size: 11px; font-weight: 700; color: var(--muted,#64748b);
  text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 8px; }

/* Contact box */
.re-contact-box { background: rgba(168,85,247,.05);
  border: 1px solid rgba(168,85,247,.2); border-radius: 14px;
  padding: 14px; margin-bottom: 14px; }
.re-contact-name { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.re-contact-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Inquiry form */
.re-inquiry-form { background: var(--card-bg,#fff); border-radius: 14px;
  padding: 14px; border: 1px solid var(--border,#e2e8f0); margin-top: 14px; }
.re-inquiry-form h4 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }

/* Form */
.re-form-card { background: var(--card-bg,#fff); border-radius: 16px;
  padding: 18px; margin: 0 16px 12px;
  border: 1px solid var(--border,#e2e8f0); }
.re-form-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 700;
  color: var(--muted,#64748b); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border,#e2e8f0);
  background: var(--card-bg,#fff); font-size: 14px;
  color: var(--text,#1e293b); box-sizing: border-box; }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.optional { font-weight: 400; opacity: .6; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #a855f7; }
.checkbox-row label { font-size: 13px; font-weight: 600; margin: 0; text-transform: none;
  letter-spacing: 0; color: var(--text,#1e293b); }

/* My listing card */
.re-my-card { background: var(--card-bg,#fff); border-radius: 14px;
  padding: 14px; margin: 0 16px 10px;
  border: 1px solid var(--border,#e2e8f0); }
.re-my-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.re-my-meta  { font-size: 12px; color: var(--muted,#64748b);
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.re-status { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.re-status.active   { background: rgba(16,185,129,.1);  color: #10b981; }
.re-status.inactive { background: rgba(100,116,139,.1); color: #64748b; }
.re-status.sold     { background: rgba(239,68,68,.1);   color: #ef4444; }

/* Inquiry card */
.re-inq-card { background: var(--card-bg,#fff); border-radius: 14px;
  padding: 14px; margin: 0 16px 10px;
  border: 1px solid var(--border,#e2e8f0); }
.re-inq-card.unread { border-left: 3px solid #a855f7; }
.re-inq-sender { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.re-inq-listing { font-size: 11px; color: #a855f7; font-weight: 700;
  margin-bottom: 6px; }
.re-inq-msg { font-size: 13px; line-height: 1.6; color: var(--text,#1e293b); }
.re-inq-contact { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Stats */
.re-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 16px 14px; }
.re-stat-card { background: var(--card-bg,#fff); border-radius: 14px;
  padding: 14px; border: 1px solid var(--border,#e2e8f0); text-align: center; }
.re-stat-val { font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg,#a855f7,#10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.re-stat-label { font-size: 11px; color: var(--muted,#64748b); margin-top: 4px; }

/* Buttons */
.btn-primary { width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: linear-gradient(135deg,#a855f7,#10b981); color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 4px; }
.btn-secondary { padding: 9px 16px; border: 1.5px solid #a855f7;
  border-radius: 12px; background: transparent;
  color: #a855f7; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-save { background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--muted,#64748b);
  transition: color .15s; padding: 4px; }
.btn-save.saved { color: #a855f7; }
.btn-load-more { display: block; margin: 0 auto 16px; padding: 10px 28px;
  border: 1.5px solid #a855f7; border-radius: 20px; background: transparent;
  color: #a855f7; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-action { padding: 7px 14px; border-radius: 10px; font-size: 12px;
  font-weight: 700; cursor: pointer; border: 1.5px solid var(--border,#e2e8f0);
  background: transparent; color: var(--text,#1e293b); }
.btn-action.danger { border-color: #ef4444; color: #ef4444; }
.btn-action.success { border-color: #10b981; color: #10b981; }

/* Premium teaser */
.re-premium-teaser { text-align: center; padding: 24px 16px;
  background: rgba(168,85,247,.05); border-radius: 16px;
  margin: 0 16px 12px; border: 1px dashed rgba(168,85,247,.25); }

/* Empty / loading */
.re-empty { text-align: center; padding: 50px 16px; color: var(--muted,#64748b); }
.re-empty i { font-size: 40px; opacity: .3; margin-bottom: 12px; display: block; }

/* Toast */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 600; opacity: 0; transition: all .3s;
  z-index: 9999; white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error   { background: #ef4444; }
.toast.success { background: #10b981; }

/* Dark mode */
html.dark-mode .re-card,
html.dark-mode .re-form-card,
html.dark-mode .re-detail,
html.dark-mode .re-my-card,
html.dark-mode .re-inq-card,
html.dark-mode .re-stat-card,
html.dark-mode .re-inquiry-form { background: #1e293b; border-color: #334155; }
html.dark-mode .re-filters select,
html.dark-mode .re-search input,
html.dark-mode .form-group input,
html.dark-mode .form-group select,
html.dark-mode .form-group textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
html.dark-mode .re-tab { background: #1e293b; color: #e2e8f0; }
html.dark-mode .re-pill { border-color: #334155; color: #e2e8f0; }
html.dark-mode .re-detail-cell { background: #0f172a; border-color: #334155; }
html.dark-mode .re-contact-box { background: rgba(168,85,247,.08); }
