/* LauxRent — Luxury Rental Platform */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark: #8B6914;
  --obsidian: #0A0A0A;
  --charcoal: #141414;
  --graphite: #1E1E1E;
  --slate: #2A2A2A;
  --mist: #404040;
  --silver: #8A8A8A;
  --pearl: #D4D0C8;
  --ivory: #F5F2EA;
  --white: #FAFAF8;
  --danger: #C0392B;
  --success: #1A7A4A;
  --info: #1A5276;
  --radius: 2px;
  --radius-lg: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 30px rgba(201,168,76,0.15);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--obsidian);
  color: var(--pearl);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; letter-spacing: 0.02em; color: var(--ivory); }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
p { line-height: 1.8; color: var(--silver); font-size: 0.9rem; font-weight: 300; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ─── UTILITY ─── */
.gold { color: var(--gold); }
.italic { font-style: italic; }
.serif { font-family: var(--font-serif); }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; letter-spacing: 0.15em; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

/* ─── DIVIDER ─── */
.divider {
  display: flex; align-items: center; gap: 1.5rem; margin: 2rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--mist));
}
.divider::after { background: linear-gradient(90deg, var(--mist), transparent); }
.divider span { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }

/* ─── GOLD LINE ─── */
.gold-line {
  width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem 0;
}
.gold-line.center { margin: 1rem auto; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: none; cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.05);
  transform: translateX(-100%);
  transition: transform var(--transition);
}
.btn:hover::before { transform: translateX(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--obsidian); font-weight: 600;
}
.btn-gold:hover { box-shadow: 0 8px 30px rgba(201,168,76,0.4); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(201,168,76,0.1); }
.btn-ghost {
  background: transparent; color: var(--pearl); border: 1px solid var(--mist);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.7rem; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── INPUTS ─── */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver);
}
.form-control {
  width: 100%;
  background: var(--graphite);
  border: 1px solid var(--mist);
  color: var(--pearl);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-control::placeholder { color: var(--mist); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238A8A8A'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: #e74c3c; font-size: 0.75rem; margin-top: 0.25rem; }

/* ─── CARD ─── */
.card {
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { border-color: rgba(201,168,76,0.3); box-shadow: var(--shadow-gold); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--slate); }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--slate); }

/* ─── LISTING CARD ─── */
.listing-card {
  background: var(--graphite);
  border: 1px solid var(--slate);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.listing-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-gold); }
.listing-card .card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--slate);
}
.listing-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.listing-card:hover .card-img img { transform: scale(1.05); }
.listing-card .category-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
  color: var(--gold); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 20px; border: 1px solid rgba(201,168,76,0.3);
}
.listing-card .card-content { padding: 1.2rem; }
.listing-card .listing-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; color: var(--ivory); margin-bottom: 0.3rem; }
.listing-card .listing-location { font-size: 0.75rem; color: var(--silver); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.3rem; }
.listing-card .listing-price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); }
.listing-card .listing-price span { font-size: 0.75rem; font-family: var(--font-sans); color: var(--silver); }
.listing-card .rating { display: flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--silver); }
.listing-card .stars { color: var(--gold); font-size: 0.7rem; }

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10,10,10,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0.8rem 3rem;
}
.navbar-logo {
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 300;
  color: var(--ivory); letter-spacing: 0.05em;
}
.navbar-logo span { color: var(--gold); }
.navbar-nav { display: flex; align-items: center; gap: 2rem; }
.navbar-nav a {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--pearl);
  transition: color var(--transition);
}
.navbar-nav a:hover { color: var(--gold); }
.navbar-actions { display: flex; align-items: center; gap: 1rem; }
.nav-badge {
  position: relative; display: inline-flex;
}
.nav-badge .badge-dot {
  position: absolute; top: -3px; right: -3px; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%; border: 1px solid var(--obsidian);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1208 50%, #0A0A0A 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; padding: 2rem; max-width: 900px; }
.hero-eyebrow { font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1rem; max-width: 560px; margin: 0 auto 3rem; color: var(--silver); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver);
  animation: bounce 2s infinite;
}
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ─── SECTION ─── */
.section { padding: 6rem 3rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.container { max-width: 1400px; margin: 0 auto; }

/* ─── GRID ─── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─── STATS BAR ─── */
.stats-bar {
  display: flex; justify-content: center; gap: 5rem;
  padding: 3rem; border-top: 1px solid var(--slate); border-bottom: 1px solid var(--slate);
  flex-wrap: wrap; gap: 3rem;
}
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: 2.5rem; color: var(--gold); font-weight: 300; }
.stat-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); margin-top: 0.3rem; }

/* ─── CATEGORY PILLS ─── */
.category-pills { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.pill {
  padding: 0.5rem 1.2rem; border: 1px solid var(--mist); border-radius: 20px;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver);
  cursor: pointer; transition: all var(--transition);
}
.pill:hover, .pill.active {
  border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08);
}

/* ─── FILTER BAR ─── */
.filter-bar {
  background: var(--graphite); border: 1px solid var(--slate); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 2rem;
  display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap;
}
.filter-bar .form-group { margin-bottom: 0; min-width: 180px; flex: 1; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.modal {
  background: var(--charcoal); border: 1px solid var(--slate);
  border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); animation: slideUp 0.3s forwards;
}
@keyframes slideUp { to { transform: translateY(0); } }
.modal-lg { max-width: 800px; }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--slate); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.4rem; }
.modal-body { padding: 2rem; }
.modal-close { background: none; border: none; color: var(--silver); font-size: 1.5rem; cursor: pointer; transition: color var(--transition); padding: 0.25rem; }
.modal-close:hover { color: var(--gold); }

/* ─── TABS ─── */
.tabs { display: flex; border-bottom: 1px solid var(--slate); margin-bottom: 2rem; }
.tab {
  padding: 1rem 1.5rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver); cursor: pointer; transition: all var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--gold); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }
.toast {
  background: var(--graphite); border: 1px solid var(--slate);
  color: var(--pearl); padding: 1rem 1.5rem;
  border-radius: var(--radius); font-size: 0.85rem;
  min-width: 280px; display: flex; align-items: center; gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  border-left: 3px solid var(--gold);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── BADGE ─── */
.badge {
  display: inline-block; padding: 0.3rem 0.75rem; border-radius: 20px;
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
}
.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.3); }
.badge-green { background: rgba(26,122,74,0.2); color: #2ecc71; }
.badge-red { background: rgba(192,57,43,0.2); color: #e74c3c; }
.badge-grey { background: var(--slate); color: var(--silver); }

/* ─── LISTING DETAIL PAGE ─── */
.listing-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.5rem; height: 500px; border-radius: var(--radius-lg); overflow: hidden; }
.listing-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity var(--transition); }
.listing-gallery img:hover { opacity: 0.85; }
.gallery-main { grid-row: span 2; }

/* ─── BOOKING WIDGET ─── */
.booking-widget {
  background: var(--graphite); border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg); padding: 2rem; position: sticky; top: 100px;
}
.booking-price { font-family: var(--font-serif); font-size: 2.2rem; color: var(--ivory); margin-bottom: 0.3rem; }
.booking-price span { font-family: var(--font-sans); font-size: 0.85rem; color: var(--silver); }
.price-breakdown { background: var(--charcoal); border-radius: var(--radius); padding: 1rem; margin: 1rem 0; }
.price-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 0.35rem 0; color: var(--silver); }
.price-row.total { color: var(--ivory); font-weight: 600; border-top: 1px solid var(--slate); margin-top: 0.5rem; padding-top: 0.75rem; }
.price-row .platform-note { font-size: 0.7rem; color: var(--mist); }

/* ─── DASHBOARD ─── */
.dashboard { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--charcoal); border-right: 1px solid var(--slate);
  padding: 2rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo { padding: 0 1.5rem 2rem; border-bottom: 1px solid var(--slate); margin-bottom: 1rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.5rem; color: var(--silver);
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all var(--transition); border-left: 2px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,168,76,0.05); }
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }
.main-content { padding: 3rem; background: var(--obsidian); }
.page-header { margin-bottom: 3rem; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 3rem; }
.stat-card { background: var(--graphite); border: 1px solid var(--slate); border-radius: var(--radius-lg); padding: 1.5rem; }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(201,168,76,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--gold); }
.stat-card .stat-value { font-family: var(--font-serif); font-size: 2rem; color: var(--ivory); font-weight: 300; }
.stat-card .stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver); margin-top: 0.3rem; }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--silver); padding: 1rem; text-align: left; border-bottom: 1px solid var(--slate); }
td { padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--pearl); }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── CHAT ─── */
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 200px); background: var(--graphite); border: 1px solid var(--slate); border-radius: var(--radius-lg); overflow: hidden; }
.chat-sidebar { border-right: 1px solid var(--slate); overflow-y: auto; }
.chat-sidebar-header { padding: 1.2rem; border-bottom: 1px solid var(--slate); font-family: var(--font-serif); font-size: 1.1rem; }
.convo-item {
  padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background var(--transition); display: flex; align-items: center; gap: 0.75rem;
}
.convo-item:hover, .convo-item.active { background: rgba(201,168,76,0.06); }
.convo-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--slate); object-fit: cover; flex-shrink: 0; }
.convo-info .name { font-size: 0.85rem; color: var(--ivory); }
.convo-info .preview { font-size: 0.75rem; color: var(--silver); margin-top: 0.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.unread-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.chat-main { display: flex; flex-direction: column; }
.chat-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--slate); display: flex; align-items: center; gap: 0.75rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.msg { display: flex; gap: 0.75rem; max-width: 70%; }
.msg.sent { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { background: var(--slate); border-radius: 12px 12px 12px 2px; padding: 0.75rem 1rem; font-size: 0.875rem; line-height: 1.5; color: var(--pearl); }
.msg.sent .msg-bubble { background: rgba(201,168,76,0.2); border-radius: 12px 12px 2px 12px; color: var(--ivory); }
.msg-time { font-size: 0.65rem; color: var(--mist); margin-top: 0.3rem; }
.msg.sent .msg-time { text-align: right; }
.chat-input-area { padding: 1rem 1.5rem; border-top: 1px solid var(--slate); display: flex; gap: 0.75rem; align-items: center; }
.chat-input { flex: 1; background: var(--charcoal); border: 1px solid var(--mist); border-radius: 25px; padding: 0.75rem 1.25rem; color: var(--pearl); font-family: var(--font-sans); font-size: 0.875rem; outline: none; transition: border-color var(--transition); }
.chat-input:focus { border-color: var(--gold); }
.chat-send-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); border: none; color: var(--obsidian); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.chat-send-btn:hover { background: var(--gold-light); transform: scale(1.05); }

/* ─── AVATAR ─── */
.avatar { border-radius: 50%; object-fit: cover; background: var(--slate); }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 80px; height: 80px; }

/* ─── STAR RATING ─── */
.star-rating { display: flex; gap: 0.3rem; }
.star-rating .star { font-size: 1.2rem; cursor: pointer; color: var(--mist); transition: color var(--transition); }
.star-rating .star.lit { color: var(--gold); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.empty-state p { max-width: 300px; margin: 0 auto 2rem; }

/* ─── LOADING ─── */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--mist); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite; margin: 2rem auto;
}
.spinner-sm { width: 18px; height: 18px; margin: 0; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: inherit; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
}
@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.75rem 1.5rem; }
  .navbar-nav { display: none; }
  .section { padding: 4rem 1.5rem; }
  .stat-cards { grid-template-columns: 1fr; }
  .listing-gallery { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .gallery-main { grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .main-content { padding: 1.5rem; }
  .filter-bar { flex-direction: column; }
  .stats-bar { gap: 2rem; }
}
