/* ═══════════════════════════════════════════════════════════════
   BahayKo — UI Enhancement Layer v3
   Elevation: Warm-Modern Editorial — refined typography,
   glassmorphism, layered depth, fluid micro-animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Enhanced Root Variables ────────────────────────────────── */
:root {
  --cream:    #faf8f4;
  --warm-50:  #f4ede2;
  --warm-100: #e8d9c4;
  --accent:   #c4622d;
  --accent-d: #a34e21;
  --accent-l: #e07a48;
  --green:    #3d6b4f;
  --text:     #1c1710;
  --text-2:   #5a4f3e;
  --text-3:   #9e8f7a;
  --border:   #e0d5c5;
  --white:    #ffffff;
  --shadow-sm: 0 1px 4px rgba(28,23,16,.06);
  --shadow:    0 4px 20px rgba(28,23,16,.10);
  --shadow-lg: 0 16px 48px rgba(28,23,16,.15);
  --radius: 14px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(255,255,255,0.5);
}

/* ══════════════════ NAVBAR ENHANCEMENT ══════════════════════ */
#navbar {
  height: 68px;
  padding: 0 48px;
  background: rgba(250,248,244,.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(224,213,197,.6);
  box-shadow: 0 1px 0 rgba(196,98,45,.06), 0 2px 12px rgba(28,23,16,.04);
}

.brand {
  gap: 10px;
  font-size: 1.35rem;
  letter-spacing: -.01em;
}
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #e07a48);
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(196,98,45,.35);
}

.nav-links a {
  position: relative;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-auth { gap: 8px; }
.btn { border-radius: 9px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  box-shadow: 0 2px 8px rgba(196,98,45,.28);
  border-radius: 9px;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(196,98,45,.36);
}

/* ══════════════════ HOMEPAGE HERO ══════════════════════════ */
#page-home {
  overflow-x: hidden;
}

.hero {
  position: relative;
  max-width: 100%;
  padding: 0;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  margin: 0;
  overflow: hidden;
}

/* Left panel — text content */
.hero-content {
  position: relative;
  padding: 84px 56px 80px 56px;
  background: var(--cream);
  z-index: 2;
  max-width: none;
}

/* Decorative line accent */
.hero-content::before {
  content: '';
  position: absolute;
  top: 0; left: 56px; right: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 0 0 4px 4px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,98,45,.08);
  border: 1px solid rgba(196,98,45,.2);
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .6; }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.07;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  color: var(--text);
}
.hero-title em {
  color: var(--accent);
  font-style: italic;
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(196,98,45,0));
  border-radius: 2px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 400px;
  margin-bottom: 36px;
}

/* ── Hero Search Bar ── */
.hero-search {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(28,23,16,.09);
  overflow: hidden;
  max-width: 520px;
  transition: box-shadow .2s, border-color .2s;
}
.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(196,98,45,.16), 0 0 0 3px rgba(196,98,45,.08);
}
.hero-search input {
  border: none;
  border-radius: 0;
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text);
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-search select {
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  background: var(--warm-50);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  outline: none;
  cursor: pointer;
  min-width: 120px;
}
.hero-search .btn {
  border-radius: 0;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  box-shadow: none;
  flex-shrink: 0;
}
.hero-search .btn:hover {
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  transform: none;
  box-shadow: none;
}

/* Right panel — graphic */
.hero-graphic {
  position: relative;
  height: auto;
  min-height: 500px;
  border-radius: 0;
  background: linear-gradient(160deg, #1c1710 0%, #2d1f14 40%, #3d2d1a 70%, #2a3d30 100%);
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-graphic::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,98,45,.35) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orb-drift 8s ease-in-out infinite alternate;
}
.hero-graphic::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,107,79,.3) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  animation: orb-drift 10s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,-20px) scale(1.1); }
}

/* House illustration */
.hero-graphic .house-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 140px;
  opacity: .12;
  filter: grayscale(1);
  z-index: 1;
}

/* Floating cards — glassmorphism */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
}
.floating-card strong { color: #fff; font-weight: 700; }
.fc-icon { font-size: 22px; }

.card-1 { top: 52px; left: 28px; }
.card-2 { top: 60px; right: 24px; }
.card-3 { bottom: 60px; left: 36px; }

/* Hero stats strip */
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 32px;
}
.hero-stat {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  margin-right: 24px;
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.03em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 500;
}

/* ── Homepage Listings Section ── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 64px;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.section-header h2 {
  font-size: 2rem;
  letter-spacing: -.02em;
  position: relative;
}
.section-header h2::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 36px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: 1.5px solid rgba(196,98,45,.25);
  border-radius: 20px;
  transition: all .2s;
  text-decoration: none;
}
.see-all:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Features strip */
.features-strip {
  background: var(--warm-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px;
}
.features-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(28,23,16,.06);
}
.feature-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.feature-text span {
  font-size: 12px;
  color: var(--text-3);
}

/* ══════════════════ LISTING CARDS ENHANCED ══════════════════ */
/* Enhance existing .lc cards */
.lc {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(28,23,16,.06);
  transition: transform .28s cubic-bezier(.23,1,.32,1), box-shadow .28s cubic-bezier(.23,1,.32,1);
}
.lc:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 24px 60px rgba(28,23,16,.16);
  border-color: rgba(196,98,45,.2);
}
.lc-img-wrap { height: 220px; border-radius: 16px 16px 0 0; }

/* Also enhance old .listing-card format */
.listing-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: transform .28s cubic-bezier(.23,1,.32,1), box-shadow .28s cubic-bezier(.23,1,.32,1);
}
.listing-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: 0 24px 60px rgba(28,23,16,.16);
}

/* ══════════════════ FIND ROOMS PAGE ════════════════════════ */
/* Search Banner */
.search-banner {
  background: linear-gradient(160deg, #1c1710 0%, #2a2018 35%, #1e3a2f 70%, #2d5240 100%);
  padding: 68px 48px 72px;
  position: relative;
  overflow: hidden;
}
/* Animated mesh */
.search-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 600px 400px at 10% 60%, rgba(196,98,45,.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 600px at 90% 20%, rgba(61,107,79,.2) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 50% 90%, rgba(255,255,255,.03) 0%, transparent 60%);
  animation: mesh-shift 15s ease-in-out infinite alternate;
}
@keyframes mesh-shift {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: .85; transform: scale(1.04); }
}
.search-banner::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 56px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.search-banner-inner { position: relative; z-index: 1; }
.search-banner h2 {
  font-size: 2.8rem;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
}
.search-banner h2 em {
  color: #a8d5b5;
  font-style: italic;
}
.search-banner p {
  color: rgba(255,255,255,.55);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* Search layout */
.search-layout {
  gap: 32px;
  padding: 44px 48px 80px;
}

/* Filter panel */
.filter-panel {
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(28,23,16,.08);
  overflow: hidden;
  border: 1px solid var(--border);
}
.filter-panel-head {
  background: linear-gradient(135deg, #1c1710 0%, #2d2018 50%, #1e3a2f 100%);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}
.filter-panel-head::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(196,98,45,.25) 0%, transparent 60%);
}
.filter-panel-head h3 {
  color: #fff;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  margin: 0 0 3px;
}
.filter-panel-head p {
  color: rgba(255,255,255,.45);
  font-size: 12px;
  position: relative;
  z-index: 1;
  margin: 0;
}
.filter-panel-body { padding: 22px; }

.filter-group label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.filter-group input,
.filter-group select {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  background: var(--warm-50);
  transition: all .18s;
}
.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,98,45,.1);
}

.toggle-btn {
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 12px;
  transition: all .18s;
}
.toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(196,98,45,.3);
}

.filter-actions .btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .01em;
}

.filter-divider { margin: 4px 0 22px; }

/* Results header */
.results-header {
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 14px 20px;
  box-shadow: 0 1px 6px rgba(28,23,16,.05);
  margin-bottom: 24px;
}
#resultsCount { font-weight: 600; color: var(--text); }
#sortSelect {
  border-radius: 8px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  cursor: pointer;
  color: var(--text-2);
  transition: border-color .18s;
}
#sortSelect:focus { border-color: var(--accent); outline: none; }

/* Pagination */
.page-btn {
  border-radius: 10px;
  font-weight: 600;
  height: 40px;
  min-width: 40px;
  transition: all .18s;
}

/* ══════════════════ DASHBOARD ENHANCED ══════════════════════ */
.dashboard-layout { gap: 0; }

.dash-content {
  padding: 48px 52px;
}

/* Stat cards */
.stat-card {
  border-radius: 16px;
  padding: 26px 24px 22px;
  transition: transform .22s, box-shadow .22s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }

.stat-card .stat-num {
  font-size: 2.6rem;
  letter-spacing: -.03em;
  margin: 4px 0;
}
.stat-card-icon { font-size: 20px; opacity: .8; margin-bottom: 10px; }
.stat-card .stat-label { font-size: 11px; letter-spacing: .08em; margin-top: 4px; }

/* Booking rows */
.booking-row {
  border-radius: 14px;
  padding: 20px 22px;
  transition: all .2s;
}

/* Listing management cards */
.listing-mgmt-card { border-radius: 14px; }

/* Empty state */
.empty-state {
  border-radius: 16px;
  padding: 72px 32px;
}
.empty-state .es-icon { font-size: 56px; margin-bottom: 18px; opacity: .7; }
.empty-state h3 { font-size: 1.35rem; margin-bottom: 10px; }

/* Overview activity section */
.activity-feed {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(28,23,16,.05);
}
.activity-feed-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.activity-feed-header h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}

/* Quick action buttons */
.quick-actions {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.quick-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  background: var(--white); border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--text-2); cursor: pointer;
  transition: all .18s; text-decoration: none;
}
.quick-action-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(196,98,45,.04);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Dash tab header */
.dash-tab-header { margin-bottom: 32px; }

/* ══════════════════ MESSAGES PAGE ENHANCED ══════════════════ */
.messages-layout {
  max-width: 1160px;
  margin: 40px auto;
  height: 700px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(28,23,16,.12), 0 2px 12px rgba(28,23,16,.08);
  border: 1px solid rgba(224,213,197,.7);
}

/* Conversation sidebar */
.conversations-list {
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.conv-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--warm-50);
}
.conv-header-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.conv-header-count {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Conversation list search */
.conv-search {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.conv-search input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  background: var(--warm-50);
  outline: none;
  transition: all .18s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239e8f7a' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}
.conv-search input:focus { border-color: var(--accent); background-color: var(--white); }

/* Conversation items */
.conv-item {
  padding: 14px 18px;
  gap: 13px;
  border-bottom: 1px solid rgba(224,213,197,.5);
  transition: all .18s;
  position: relative;
}
.conv-item:hover { background: var(--warm-50); }
.conv-item.active {
  background: linear-gradient(135deg, rgba(196,98,45,.06), rgba(196,98,45,.03));
  border-left: 3px solid var(--accent);
}

.conv-avatar {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--warm-100), var(--warm-50));
  border: 1.5px solid var(--border);
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
}

/* Online dot */
.conv-avatar.online::after {
  content: '';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.conv-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.conv-preview {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.conv-time { font-size: 10px; color: var(--text-3); flex-shrink: 0; }
.conv-info { flex: 1; min-width: 0; }
.conv-info-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.conv-info-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; }

.conv-unread {
  background: var(--accent);
  color: #fff;
  font-size: 10px; font-weight: 800;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Chat area */
.chat-area {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(28,23,16,.05);
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--warm-100), var(--warm-50));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 700; font-size: 14px; color: var(--text); }
.chat-header-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.chat-header-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
}
.chat-header-status.online { color: #22c55e; }
.chat-header-status.online::before {
  content: '';
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .7; }
}

/* Chat messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--cream);
}

/* Background pattern for chat */
.chat-messages::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

/* Chat message wrapper */
.chat-msg-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.chat-msg-wrap.mine { align-items: flex-end; }
.chat-msg-wrap.theirs { align-items: flex-start; }

.chat-msg-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 3px;
  padding: 0 4px;
}

/* Chat bubbles */
.chat-bubble {
  max-width: 68%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  word-break: break-word;
}
.chat-bubble.mine {
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 4px 16px rgba(196,98,45,.28);
}
.chat-bubble.theirs {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 8px rgba(28,23,16,.07);
}
.chat-bubble .time {
  font-size: 10px;
  opacity: .65;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.chat-bubble.mine .time { justify-content: flex-end; }

/* Date separator */
.chat-date-sep {
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 8px 0;
}
.chat-date-sep span {
  display: inline-block;
  background: var(--warm-100);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 12px;
  letter-spacing: .04em;
}

/* Chat input */
.chat-input-row {
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  gap: 12px;
  display: flex;
  align-items: flex-end;
}

.chat-input-row input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  background: var(--warm-50);
  transition: all .18s;
  color: var(--text);
  outline: none;
}
.chat-input-row input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,98,45,.09);
}
.chat-input-row input::placeholder { color: var(--text-3); }

.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-l));
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: all .18s;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(196,98,45,.3);
}
.chat-send-btn:hover {
  background: linear-gradient(135deg, var(--accent-d), var(--accent));
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 5px 18px rgba(196,98,45,.38);
}

/* Chat placeholder */
.chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  color: var(--text-3);
  background: var(--cream);
}
.chat-placeholder-icon {
  font-size: 48px;
  opacity: .4;
}
.chat-placeholder p {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
}
.chat-placeholder small {
  font-size: 13px;
  color: var(--text-3);
  opacity: .7;
}

/* ══════════════════ TOAST ENHANCEMENT ══════════════════════ */
#toast {
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(28,23,16,.2);
  bottom: 32px; right: 32px;
}
#toast.toast-success { background: var(--green); }
#toast.toast-error   { background: #c0392b; }

/* ══════════════════ MODALS ENHANCEMENT ══════════════════════ */
.modal {
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 80px rgba(28,23,16,.2);
}
.modal h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.modal-overlay { background: rgba(28,23,16,.55); }

/* ══════════════════ SKELETON ANIMATIONS ════════════════════ */
.skeleton-card {
  background: linear-gradient(90deg, var(--warm-50) 25%, var(--warm-100) 50%, var(--warm-50) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.6s ease infinite;
  border-radius: 16px;
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════ SCROLL ANIMATIONS ══════════════════════ */
.lc, .listing-card, .stat-card, .booking-row, .listing-mgmt-card {
  animation: fade-up .4s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger children */
.listings-grid .lc:nth-child(1),
.listings-grid .listing-card:nth-child(1) { animation-delay: .05s; }
.listings-grid .lc:nth-child(2),
.listings-grid .listing-card:nth-child(2) { animation-delay: .1s; }
.listings-grid .lc:nth-child(3),
.listings-grid .listing-card:nth-child(3) { animation-delay: .15s; }
.listings-grid .lc:nth-child(4),
.listings-grid .listing-card:nth-child(4) { animation-delay: .2s; }
.listings-grid .lc:nth-child(5),
.listings-grid .listing-card:nth-child(5) { animation-delay: .25s; }
.listings-grid .lc:nth-child(6),
.listings-grid .listing-card:nth-child(6) { animation-delay: .3s; }

.stat-cards .stat-card:nth-child(1) { animation-delay: .06s; }
.stat-cards .stat-card:nth-child(2) { animation-delay: .12s; }
.stat-cards .stat-card:nth-child(3) { animation-delay: .18s; }
.stat-cards .stat-card:nth-child(4) { animation-delay: .24s; }
.stat-cards .stat-card:nth-child(5) { animation-delay: .3s; }
.stat-cards .stat-card:nth-child(6) { animation-delay: .36s; }

/* ══════════════════ RESPONSIVE UPDATES ════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-graphic { min-height: 280px; }
  .hero-content { padding: 56px 32px 48px; }
  .hero-content::before { left: 32px; right: 32px; }
  .hero-title { font-size: 2.8rem; }
  .features-strip { padding: 24px 32px; }
  .features-strip-inner { grid-template-columns: 1fr; gap: 20px; }
  .feature-item { padding: 0; border-right: none; }
  .section-container { padding: 40px 32px 52px; }
  .search-layout { padding: 32px 32px 60px; }
  .messages-layout { margin: 24px 24px; height: auto; min-height: 600px; }
  .chat-messages::before { display: none; }
}

@media (max-width: 640px) {
  .hero-content { padding: 44px 24px 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-search { flex-direction: column; }
  .hero-search input,
  .hero-search select,
  .hero-search .btn { border-radius: 0; border-left: none; border-right: none; }
  .hero-search { border-radius: 12px; overflow: hidden; }
  .hero-search input { border-radius: 12px 12px 0 0 !important; }
  .hero-search .btn { border-radius: 0 0 12px 12px !important; }
  .section-container { padding: 32px 20px 44px; }
  .search-layout { padding: 24px 20px 48px; }
  .messages-layout { margin: 16px; }
  .dash-content { padding: 28px 20px; }
  .search-banner { padding: 48px 24px 52px; }
  .search-banner h2 { font-size: 1.8rem; }
}
