/* ============================================================
   SPb-Rent Engine 2026 — Main Stylesheet
   ============================================================ */

:root {
  --bg:        #0e0f14;
  --surf1:     #15161d;
  --surf2:     #1c1d27;
  --surf3:     #232430;
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.14);
  --text:      #e8e9f0;
  --text2:     #9a9bb0;
  --text3:     #5a5b70;
  --gold:      #c9a55a;
  --gold2:     #e0b96a;
  --teal:      #3ecfcf;
  --red:       #e05a5a;
  --green:     #4ecb71;
  --blue:      #5a9de0;
  --shadow:    0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.6);
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Container ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ── Section ── */
.section { padding: 64px 0; }
.section-dark { background: var(--surf1); }
.section-title {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text);
}
.page-title {
  font-family: var(--font-d);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: var(--r-sm);
  font-family: var(--font-b);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #1a1400; }
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-success { background: var(--green); color: #001a08; }
.btn-teal { background: var(--teal); color: #001a1a; }
.btn-sm { padding: .35rem .8rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }

/* ── Inputs ── */
.input-field {
  width: 100%;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .65rem .9rem;
  font-family: var(--font-b);
  font-size: .9rem;
  transition: border-color .2s;
  appearance: none;
}
.input-field:focus { outline: none; border-color: var(--gold); }
.input-field option { background: var(--surf2); }
textarea.input-field { resize: vertical; }

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .8rem; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.check-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .875rem; color: var(--text2); }
.check-label input { accent-color: var(--gold); width: 15px; height: 15px; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 500;
  background: var(--surf3);
  color: var(--text2);
  white-space: nowrap;
}
.badge-gold  { background: rgba(201,165,90,.15); color: var(--gold); }
.badge-teal  { background: rgba(62,207,207,.12); color: var(--teal); }
.badge-red   { background: rgba(224,90,90,.15);  color: var(--red);  }
.badge-green { background: rgba(78,203,113,.15); color: var(--green);}
.badge-blue  { background: rgba(90,157,224,.15); color: var(--blue); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,15,20,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo em { color: var(--gold); font-style: normal; }
.nav-links { display: flex; gap: 1.5rem; flex: 1; }
.nav-links a { font-size: .875rem; color: var(--text2); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: .5rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(201,165,90,.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 60%, rgba(62,207,207,.04) 0%, transparent 60%),
              var(--bg);
  padding: 80px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: .75rem;
}
.hero-copy h1 {
  font-family: var(--font-d);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-sub { color: var(--text2); max-width: 480px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat strong { display: block; font-family: var(--font-d); font-size: 1.8rem; color: var(--gold); }
.stat span   { font-size: .8rem; color: var(--text3); }

/* Search card */
.search-card {
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.search-tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.stab {
  flex: 1;
  padding: .5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text2);
  font-size: .8rem;
  cursor: pointer;
  transition: all .2s;
}
.stab.active, .stab:hover { background: var(--gold); color: #1a1400; border-color: var(--gold); }
.search-form { display: flex; flex-direction: column; gap: .8rem; }

/* ============================================================
   CATALOG
   ============================================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.obj-card {
  display: flex;
  flex-direction: column;
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.obj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,165,90,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(201,165,90,.1);
}
.obj-photo { position: relative; height: 180px; overflow: hidden; background: var(--surf2); }
.obj-photo img { width: 100%; height: 100%; object-fit: cover; }
.obj-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 4rem; }
.obj-badges { position: absolute; bottom: .5rem; left: .5rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.obj-body { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.obj-metro { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text2); }
.metro-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.obj-title { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.obj-addr  { font-size: .78rem; color: var(--text3); }
.obj-feats { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .75rem; color: var(--text2); margin-top: .2rem; }
.obj-price { margin-top: auto; padding-top: .75rem; font-size: .9rem; color: var(--text2); }
.obj-price strong { color: var(--gold); font-size: 1.1rem; }

/* ============================================================
   OBJECT DETAIL
   ============================================================ */
.back-link { color: var(--text2); font-size: .875rem; display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--gold); }

.obj-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}
.obj-gallery { display: flex; flex-direction: column; gap: .75rem; }
.gallery-img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r-md); }
.gallery-placeholder {
  height: 300px;
  background: var(--surf2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.obj-info h1 { font-family: var(--font-d); font-size: 1.9rem; margin-bottom: 1rem; }
.obj-meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.obj-desc { color: var(--text2); line-height: 1.7; margin: 1rem 0; }

.price-grid { display: flex; gap: 1rem; margin: 1.5rem 0; }
.price-item { flex: 1; background: var(--surf2); border-radius: var(--r-sm); padding: 1rem; text-align: center; }
.price-val { font-family: var(--font-d); font-size: 1.6rem; color: var(--gold); }
.price-lbl { font-size: .75rem; color: var(--text2); margin-top: .2rem; }

.ai-prompt-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(62,207,207,.06);
  border: 1px solid rgba(62,207,207,.15);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  margin: 1rem 0;
  font-size: .85rem;
  color: var(--teal);
}

.booking-box {
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.booking-box h3 { font-family: var(--font-d); font-size: 1.4rem; }

/* ============================================================
   DISTRICTS
   ============================================================ */
.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}
.district-card {
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.2rem;
  text-align: center;
  font-size: .85rem;
  transition: all .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.district-card:hover { border-color: var(--gold); background: var(--surf3); }
.dist-icon { font-size: 1.8rem; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar { display: flex; flex-direction: column; gap: 1rem; }
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  background: var(--surf2);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all .2s;
  cursor: pointer;
}
.chip.active, .chip:hover { background: var(--gold); color: #1a1400; border-color: var(--gold); }
.filter-selects { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.filter-selects .input-field { width: auto; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-family: var(--font-d); font-size: 2rem; margin-bottom: 1.5rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-footer { text-align: center; margin-top: 1rem; font-size: .875rem; color: var(--text2); }
.auth-footer a { color: var(--gold); }
.alert { padding: .75rem 1rem; border-radius: var(--r-sm); font-size: .875rem; }
.alert-error { background: rgba(224,90,90,.1); border: 1px solid rgba(224,90,90,.2); color: var(--red); }
.alert-success { background: rgba(78,203,113,.1); border: 1px solid rgba(78,203,113,.2); color: var(--green); }

/* ============================================================
   CABINET
   ============================================================ */
.cabinet-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.booking-card {
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.booking-info h4 { margin-bottom: .25rem; }
.booking-info p  { font-size: .83rem; color: var(--text2); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surf1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-d);
  font-size: 1.2rem;
}
.admin-brand em { color: var(--gold); font-style: normal; }
.admin-brand small { display: block; font-family: var(--font-b); font-size: .7rem; color: var(--text3); font-weight: 400; margin-top: .1rem; }

.admin-user {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.admin-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.admin-user-name { font-size: .85rem; font-weight: 500; }
.admin-user-role { font-size: .72rem; color: var(--text3); }

.admin-nav { padding: .75rem .5rem; flex: 1; }
.admin-nav-group { margin-bottom: .5rem; }
.admin-nav-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  padding: .5rem .6rem .25rem;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .7rem;
  border-radius: var(--r-sm);
  font-size: .83rem;
  color: var(--text2);
  transition: all .2s;
}
.admin-nav a:hover { background: var(--surf2); color: var(--text); }
.admin-nav a.active { background: rgba(201,165,90,.12); color: var(--gold); }
.admin-nav a .icon { width: 16px; text-align: center; }

.admin-sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); }

/* Admin main */
.admin-main { flex: 1; overflow: auto; }
.admin-topbar {
  background: var(--surf1);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 { font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; }
.admin-topbar small { display: block; font-family: var(--font-b); font-size: .78rem; color: var(--text3); font-weight: 400; }
.admin-actions { display: flex; gap: .5rem; }

.admin-content { padding: 1.5rem; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
}
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.stat-card .stat-val { font-family: var(--font-d); font-size: 1.8rem; color: var(--gold); line-height: 1; }
.stat-card .stat-lbl { font-size: .75rem; color: var(--text3); margin-top: .3rem; }

/* Tables */
.admin-table-wrap { background: var(--surf1); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text3);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surf2);
}
.admin-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.td-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Forms in admin */
.admin-form { display: flex; flex-direction: column; gap: 1rem; }
.admin-section {
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-section h3 { font-family: var(--font-d); font-size: 1.2rem; margin-bottom: 1rem; color: var(--gold); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.toggle-wrap input { display: none; }
.toggle-track {
  width: 40px; height: 22px;
  background: var(--surf3);
  border-radius: 100px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text3);
  border-radius: 50%;
  transition: all .2s;
}
.toggle-wrap input:checked + .toggle-track { background: var(--gold); }
.toggle-wrap input:checked + .toggle-track::after { left: 21px; background: #fff; }
.toggle-label { font-size: .875rem; }

/* ── Log levels ── */
.log-info   { color: var(--teal); }
.log-update { color: var(--gold); }
.log-warn   { color: var(--red); }
.log-error  { color: var(--red); font-weight: 600; }

/* ── Booking request badge ── */
.req-new { background: rgba(201,165,90,.12); color: var(--gold); }

/* ============================================================
   CHAT WIDGET
   ============================================================ */
#chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1400;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(201,165,90,.4);
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
#chat-fab:hover { transform: scale(1.08); box-shadow: 0 6px 30px rgba(201,165,90,.55); }
.chat-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: var(--red);
  color: #fff;
  font-size: .65rem;
  font-family: var(--font-b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 360px;
  height: 520px;
  background: var(--surf1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column;
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surf2);
  flex-shrink: 0;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.chat-name   { font-size: .9rem; font-weight: 600; }
.chat-status { font-size: .72rem; color: var(--green); }
.chat-close  { margin-left: auto; background: none; border: none; color: var(--text2); font-size: 1rem; cursor: pointer; }
.chat-close:hover { color: var(--text); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.chat-bubble {
  max-width: 82%;
  padding: .6rem .9rem;
  border-radius: var(--r-md);
  font-size: .85rem;
  line-height: 1.5;
}
.chat-bubble.user { background: var(--gold); color: #1a1400; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble.bot  { background: var(--surf2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }

.chat-quick {
  padding: .5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.chat-quick button {
  background: var(--surf3);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text2);
  font-size: .72rem;
  padding: .25rem .7rem;
  cursor: pointer;
  transition: all .2s;
}
.chat-quick button:hover { border-color: var(--gold); color: var(--gold); }

.chat-input-row {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: .5rem .8rem;
  font-size: .875rem;
  font-family: var(--font-b);
}
.chat-input-row input:focus { outline: none; border-color: var(--gold); }
.chat-input-row button {
  background: var(--gold);
  color: #1a1400;
  border: none;
  border-radius: var(--r-sm);
  width: 36px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity .2s;
}
.chat-input-row button:hover { opacity: .85; }

/* Typing indicator */
.typing { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing span {
  width: 6px; height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%,80%,100% { transform: translateY(0); }
  40%          { transform: translateY(-6px); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surf1);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid strong { display: block; margin-bottom: .75rem; font-size: .85rem; }
.footer-grid ul li { margin-bottom: .4rem; }
.footer-grid ul li a { font-size: .85rem; color: var(--text2); }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-grid p { font-size: .85rem; color: var(--text2); line-height: 1.6; }
.footer-copy { font-size: .78rem; color: var(--text3); border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid    { grid-template-columns: 1fr; }
  .search-card  { max-width: 100%; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .obj-detail-grid { grid-template-columns: 1fr; }
  .chat-window  { width: calc(100vw - 2rem); right: 1rem; }
}

@media (max-width: 640px) {
  .hero-copy h1 { font-size: 2.1rem; }
  .section      { padding: 40px 0; }
  .footer-grid  { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { width: 200px; }
  .nav-links    { display: none; }
}
