:root {
  --gold: #B8966E;
  --gold-light: #D4B896;
  --gold-400: #C9A87C;
  --gold-600: #A07850;
  --gold-700: #8A6340;
  --dark-900: #0A0A0A;
  --dark-800: #111111;
  --dark-700: #181818;
  --dark-600: #222222;
  --dark-500: #2A2A2A;
  --dark-400: #333333;
  --cream-100: #FAF7F2;
  --cream-200: #F5EFE4;
  --cream-300: #EDE3D3;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --brand-gold: var(--gold);
  --brand-black: var(--dark-900);
  --brand-blue: var(--dark-800);
  --brand-bg: var(--dark-900);
  --brand-text: var(--cream-100);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--dark-900);
  color: var(--cream-100);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(184, 150, 110, 0.3); color: var(--cream-100); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--dark-800); }
::-webkit-scrollbar-thumb { background: var(--gold); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container,
.page-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .container,
  .page-container {
    padding-inline: 1.75rem;
  }
}
@media (min-width: 1100px) {
  .container,
  .page-container {
    padding-inline: 2.5rem;
  }
}

/* —— Top bar (subtle legacy utility strip) —— */
.brand-topbar {
  background: var(--dark-800);
  color: rgba(250, 247, 242, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--dark-600);
}
.brand-topbar .inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding: 0.45rem 0;
}
.brand-topbar .left, .brand-topbar .right { display: flex; gap: 1rem; align-items: center; }
.brand-topbar a:hover { color: var(--gold); }

/* —— Glass navbar —— */
.brand-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(17, 17, 17, 0.82);
  border-bottom: 1px solid rgba(34, 34, 34, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand-nav .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0; min-height: 4.5rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--cream-100);
}
.logo-img {
  display: block;
  height: 2.35rem;
  width: auto;
  max-width: 12.5rem;
  object-fit: contain;
}
.logo-mark {
  width: 2rem; height: 2rem;
  border: 1px solid var(--gold);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.logo:hover .logo-mark { background: var(--gold); color: var(--dark-900); }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.nav-links a, .nav-links button {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--gold); }
.nav-links a.is-active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.35rem;
  height: 1px; background: var(--gold);
}
.nav-icon {
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--dark-500);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(250, 247, 242, 0.55);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-icon:hover { border-color: var(--gold); color: var(--gold); }

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary, .btn-gold {
  background: var(--gold); color: var(--dark-900);
}
.btn-primary:hover, .btn-gold:hover { background: var(--gold-light); }
.btn-dark {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn-dark:hover { background: var(--gold); color: var(--dark-900); }
.btn-outline {
  background: transparent;
  border-color: var(--dark-500);
  color: rgba(250, 247, 242, 0.7);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger {
  background: transparent;
  border-color: rgba(185, 28, 28, 0.45);
  color: #fca5a5;
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.65rem; }
.btn-block { width: 100%; }

/* —— Cards / surfaces —— */
.card {
  background: var(--dark-800);
  border: 1px solid var(--dark-600);
  border-radius: 0;
}
.tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(184, 150, 110, 0.4);
  color: var(--gold-400);
  font-family: var(--font-mono);
}
.gold-line {
  display: block; width: 3rem; height: 1px; background: var(--gold); margin-top: 1rem;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #D4B896 0%, #B8966E 50%, #8A6340 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* —— Hero —— */
.hero-banner {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 70vh, 720px);
  display: flex; align-items: center;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.25)),
    linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent 45%),
    var(--hero-image, url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=1600&q=80"));
  background-size: cover;
  background-position: center;
}
.hero-home {
  display: grid; gap: 1.5rem; align-items: end;
  padding: 5rem 0 3rem;
  width: 100%;
}
@media (min-width: 900px) {
  .hero-home { grid-template-columns: 1.35fr 1fr; }
}
.hero-home .eyebrow {
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--gold);
  font-family: var(--font-mono);
}
.hero-home .eyebrow::before {
  content: ""; width: 2.5rem; height: 1px; background: var(--gold);
}
.hero-home h1, .page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--cream-100);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: min(18ch, 100%);
  line-height: 1.05;
}
.hero-home p { color: rgba(250, 247, 242, 0.55); max-width: 32rem; margin: 1rem 0 0; font-size: 1.05rem; }
.page-hero {
  padding: 6rem 0 3.5rem;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.45)),
    var(--hero-image, url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80"));
  background-size: cover;
  background-position: center;
}
.page-hero .crumb {
  color: rgba(250, 247, 242, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}
.page-hero .crumb a:hover { color: var(--gold); }

.search-card { padding: 1.25rem; background: rgba(17, 17, 17, 0.85); backdrop-filter: blur(12px); }
.search-card label {
  display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.85rem; font-family: var(--font-mono);
}
.hero-search-inline {
  display: flex;
  width: 100%;
  max-width: 36rem;
  min-width: 0;
  margin-top: 2rem;
}
.hero-search-inline .field {
  flex: 1 1 auto;
  min-width: 0;
  border-right: 0;
}
.hero-search-inline .btn {
  flex: 0 0 auto;
  border-radius: 0;
}

.grid-2 { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field {
  width: 100%;
  border: 1px solid var(--dark-500);
  border-radius: 0;
  padding: 0.75rem 1rem;
  background: var(--dark-700);
  color: var(--cream-100);
}
.field::placeholder { color: rgba(250, 247, 242, 0.3); }
.field:focus { outline: none; border-color: var(--gold); }
.actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.label-field {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.section { padding: 3.5rem 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem;
}
.section-head h2, .section h2, .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  color: var(--cream-100);
  line-height: 1.15;
}
.text-center { text-align: center; }
.muted { color: rgba(250, 247, 242, 0.45); font-size: 0.875rem; }
.price {
  color: var(--gold-400);
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.badge {
  display: inline-block;
  border-radius: 0;
  padding: 0.25rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.badge-green { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-orange { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-blue { background: rgba(184, 150, 110, 0.12); color: var(--gold-light); border: 1px solid rgba(184, 150, 110, 0.35); }

/* —— Property cards —— */
.property-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.property-card {
  overflow: hidden;
  background: var(--dark-800);
  border: 1px solid var(--dark-600);
  transition: border-color 0.4s ease, transform 0.35s ease;
}
.property-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 150, 110, 0.35);
}
.property-card .media { position: relative; overflow: hidden; height: 16rem; }
.property-card img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover img { transform: scale(1.04); }
.property-card .media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.75), transparent 55%);
  opacity: 0; transition: opacity 0.35s ease;
}
.property-card:hover .media-overlay { opacity: 1; }
.property-card .fav-btn {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(17, 17, 17, 0.7);
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.property-card .fav-btn.is-saved { color: var(--gold); border-color: rgba(184, 150, 110, 0.5); }
.property-card .status-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
}
.property-card .body { padding: 1.25rem; display: grid; gap: 0.75rem; }
.property-card .type-label {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(184, 150, 110, 0.7); font-family: var(--font-mono);
}
.property-card h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream-100);
  line-height: 1.2;
}
.row-between { display: flex; justify-content: space-between; align-items: start; gap: 0.5rem; }
.property-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  font-size: 0.75rem; color: rgba(250, 247, 242, 0.45);
  font-family: var(--font-mono);
  border-top: 1px solid var(--dark-600);
  padding-top: 0.85rem;
}

.featured-spotlight { padding: 1.5rem; }
.featured-spotlight .layout { display: grid; gap: 1rem; }
@media (min-width: 768px) {
  .featured-spotlight .layout { grid-template-columns: 280px 1fr; }
}
.featured-spotlight .main-img { height: 220px; width: 100%; object-fit: cover; }
.featured-list { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .featured-list { grid-template-columns: 1fr 1fr; } }
.featured-item { border: 1px solid var(--dark-600); padding: 1rem; }
.featured-item .label {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin: 0; font-family: var(--font-mono);
}
.featured-item h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}

.location-tiles {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .location-tiles { grid-template-columns: repeat(5, 1fr); } }
.location-tiles a { position: relative; overflow: hidden; display: block; border: 1px solid var(--dark-600); }
.location-tiles img { height: 140px; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.location-tiles a:hover img { transform: scale(1.05); }

.map-section { display: grid; gap: 1rem; }
@media (min-width: 900px) { .map-section { grid-template-columns: 280px 1fr; } }
.map-section iframe {
  width: 100%; height: 300px; border: 1px solid var(--dark-600); background: var(--dark-700);
}

.testimonials { overflow: hidden; border: 1px solid var(--dark-600); }
.testimonials .layout { display: grid; }
@media (min-width: 768px) { .testimonials .layout { grid-template-columns: 1fr 1fr; } }
.testimonials img { height: 280px; width: 100%; object-fit: cover; }
.testimonials .copy { padding: 1.75rem; background: var(--dark-800); }
.testimonials .stars {
  color: var(--gold); font-size: 0.85rem; margin: 0.35rem 0;
  font-family: var(--font-mono);
}

.cta-banner {
  margin-top: 3rem;
  background:
    radial-gradient(circle at 80% 30%, rgba(184, 150, 110, 0.18), transparent 45%),
    linear-gradient(120deg, var(--dark-800) 0%, var(--dark-900) 100%);
  border: 1px solid var(--dark-600);
  border-radius: 0;
  padding: 3rem 2rem;
}
.cta-banner h2 {
  margin: 0;
  max-width: 22rem;
  color: var(--cream-100);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.site-footer {
  margin-top: 4rem;
  padding: 0 0 1.5rem;
  background: var(--dark-800);
  border-top: 1px solid var(--dark-600);
}
.footer-card {
  padding: 3.5rem 0 2rem;
  background: transparent;
  border: 0;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand {
  display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1rem;
}
.footer-brand .logo-img {
  height: 2.6rem;
  max-width: 14rem;
}
.footer-grid h3, .footer-grid h4 {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 500;
}
.footer-grid .brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream-100);
  letter-spacing: 0.04em;
  text-transform: none;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-grid li, .footer-grid p { color: rgba(250, 247, 242, 0.4); font-size: 0.875rem; margin: 0; }
.footer-grid a:hover { color: var(--cream-100); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ig-grid img { height: 56px; width: 100%; object-fit: cover; }
.copyright {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(250, 247, 242, 0.28);
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--dark-600);
  font-family: var(--font-mono);
}

.alert {
  border-radius: 0; padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.875rem;
}
.alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }
.alert-error { background: rgba(185, 28, 28, 0.12); border: 1px solid rgba(185, 28, 28, 0.4); color: #fca5a5; }
.alert-info { background: rgba(184, 150, 110, 0.1); border: 1px solid rgba(184, 150, 110, 0.35); color: var(--gold-light); }

.auth-card { max-width: 440px; margin: 0 auto; padding: 2rem; }
.auth-card h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
}
.stack { display: grid; gap: 0.85rem; }
.form-section { padding: 1.5rem; margin-bottom: 1rem; }
.form-section h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}
.form-grid { display: grid; gap: 0.75rem; }
@media (min-width: 768px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.check-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.check-grid label { display: flex; gap: 0.4rem; align-items: center; font-size: 0.875rem; color: rgba(250, 247, 242, 0.55); }

.dropzone {
  border: 1px dashed var(--dark-500);
  background: var(--dark-700);
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone.is-active { border-color: var(--gold); background: rgba(184, 150, 110, 0.08); }
.dropzone p { margin: 0; color: rgba(250, 247, 242, 0.55); font-size: 0.875rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.preview-grid img { height: 88px; width: 100%; object-fit: cover; border: 1px solid var(--dark-600); }

.detail-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 300px; } }
.carousel { position: relative; overflow: hidden; background: var(--dark-800); border: 1px solid var(--dark-600); }
.carousel img { width: 100%; height: min(460px, 55vh); object-fit: cover; }
.carousel-nav {
  position: absolute; inset: auto 0.75rem 0.75rem; display: flex; justify-content: space-between;
}
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  font-size: 0.8rem; color: rgba(250, 247, 242, 0.5); font-family: var(--font-mono);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--dark-600); text-align: left; vertical-align: middle;
}
.table th {
  background: var(--dark-700);
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.45); font-family: var(--font-mono);
}
.table-thumb { width: 96px; height: 72px; object-fit: cover; border: 1px solid var(--dark-600); }
.flex-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* —— Admin / Agent dashboard (legacy dark luxury) —— */
.admin-body { margin: 0; background: var(--dark-900); color: var(--cream-100); font-family: var(--font-body); }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 250px 1fr; } }
.admin-sidebar {
  background: var(--dark-800);
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--dark-600);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.admin-brand img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
}
.brand-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: #000;
  border: 1px solid var(--dark-600);
  max-width: 100%;
}
.brand-preview-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: min(100%, 18rem);
  object-fit: contain;
}
.brand-preview-icon img {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.admin-nav { display: grid; gap: 0.25rem; }
.admin-nav a {
  display: block; padding: 0.7rem 0.75rem;
  color: rgba(250, 247, 242, 0.5); font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.admin-nav a:hover, .admin-nav a.is-active {
  background: rgba(184, 150, 110, 0.12);
  color: var(--gold);
  border-left: 2px solid var(--gold);
}
.admin-main { background: var(--dark-900); color: var(--cream-100); }
.admin-top {
  background: var(--dark-800); border-bottom: 1px solid var(--dark-600);
  padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.admin-content { padding: 1.25rem; }
.admin-content .card,
.admin-content .field,
.admin-main .card { background: var(--dark-800); border-color: var(--dark-600); color: var(--cream-100); }
.admin-content .muted { color: rgba(250, 247, 242, 0.45); }
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 1.25rem; }
.stat-card { padding: 1.1rem; }
.stat-card .label {
  font-size: 0.65rem; color: rgba(250, 247, 242, 0.45);
  text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono);
}
.stat-card .value {
  font-size: 1.75rem; font-family: var(--font-display); margin-top: 0.25rem; color: var(--gold);
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2rem;
  margin-top: 2.5rem;
}
.hero-stats .stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cream-100);
}
.hero-stats .stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
  font-family: var(--font-mono);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fade-up 0.45s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--dark-500);
  background: transparent;
  color: var(--cream-100);
  cursor: pointer;
}

.hero-home h1 {
  max-width: 100%;
  word-wrap: break-word;
}

/* —— PWA mobile bottom nav —— */
.mobile-tabbar {
  display: none;
}

@media (max-width: 860px) {
  .brand-topbar { display: none; }

  .brand-nav {
    position: sticky;
    top: 0;
  }
  .brand-nav .inner {
    min-height: 3.5rem;
    padding: 0.65rem 0;
    flex-wrap: nowrap;
  }
  .logo-img {
    height: 2rem;
    max-width: 9.5rem;
  }

  .nav-toggle { display: none; }
  .nav-links { display: none !important; }

  main.animate-in {
    padding-bottom: 5.5rem;
  }
  .site-footer {
    padding-bottom: 5rem;
  }

  .hero-banner {
    min-height: auto;
  }
  .hero-home {
    padding: 2.5rem 0 2rem;
    grid-template-columns: 1fr;
  }
  .hero-home h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
  .hero-stats {
    gap: 1.25rem;
  }
  .hero-stats .stat-value {
    font-size: 1.35rem;
  }
  .search-card {
    width: 100%;
  }

  .mobile-tabbar {
    display: grid;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    height: 4rem;
    padding: 0 0.35rem;
    padding-bottom: env(safe-area-inset-bottom, 0);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.15rem;
    background: rgba(10, 10, 10, 0.96);
    border-top: 1px solid var(--dark-600);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    color: rgba(250, 247, 242, 0.45);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .mobile-tabbar a.is-active {
    color: var(--gold);
  }
  .mobile-tabbar .tab-icon {
    font-size: 1rem;
    line-height: 1;
  }
}

@media (min-width: 861px) {
  .mobile-tabbar { display: none !important; }
}
