/* ============================================================
   Nick Jeff The Realtor — Main Stylesheet
   Brand: Deep Purple #1a0a2e | Gold #c9a84c | White
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ────────────────────────────────────────────── */
:root {
  --purple-darkest: #0d0518;
  --purple-dark:    #1a0a2e;
  --purple-mid:     #2d1654;
  --purple-light:   #4a2580;
  --gold:           #c9a84c;
  --gold-light:     #e2c97e;
  --gold-pale:      #f5ead0;
  --white:          #ffffff;
  --off-white:      #f8f5ff;
  --text-primary:   #1a0a2e;
  --text-muted:     #6b5f80;
  --border:         #ddd4f0;
  --success:        #2d6a4f;
  --error:          #9b2226;
  --warning-bg:     #fff8e1;
  --shadow-sm:      0 1px 3px rgba(26,10,46,.08);
  --shadow-md:      0 4px 16px rgba(26,10,46,.12);
  --shadow-lg:      0 8px 32px rgba(26,10,46,.16);
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--purple-dark);
}

a { color: var(--purple-light); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--purple-darkest) 0%, var(--purple-dark) 60%, var(--purple-mid) 100%);
  border-bottom: 1px solid rgba(201,168,76,.25);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 68px;
}

.nav-brand {
  display: inline-flex !important;
  align-items: flex-start !important;
  text-decoration: none;
  margin-top: 5px; 
  width: 200px
}

.nav-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-left: auto;
  margin-right: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: center;
  align-self: flex-start; 
}

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}

.broker-logo {height: 100px; margin-left:auto; margin-right:auto; }
.broker-text-1 {color: #fff; font-weight: 700;}
.broker-text-2 {color: #c7aa5f; font-weight: 700;}

.nav-brand-sub {
  font-size: .7rem;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: background .2s, color .2s;
  letter-spacing: .01em;
}

.nav-links a:hover,
.nav-links a.active { background: rgba(201,168,76,.18); color: var(--gold-light); }

.nav-links .btn-nav {
  background: var(--gold);
  color: var(--purple-darkest);
  font-weight: 600;
  margin-left: 6px;
}
.nav-links .btn-nav:hover { background: var(--gold-light); color: var(--purple-darkest); }

/* Hamburger (mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 4px 0;
  transition: transform .25s, opacity .25s;
}

.profile-request-section {
  margin-top:  60px
}

/* ── Layout ───────────────────────────────────────────────── */
.page-wrap  { max-width: 1200px; margin: 0 auto; padding: 36px 24px 64px; }
.page-wrap-sm { max-width: 680px; margin: 0 auto; padding: 48px 24px; }

/* ── Flash messages ───────────────────────────────────────── */
.flash-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flash {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; margin: 12px 0;
}
.flash-success { background: #edf7f0; border-left: 4px solid #2d6a4f; color: #1b4332; }
.flash-error   { background: #fde8e8; border-left: 4px solid #9b2226; color: #6b0f12; }
.flash-info    { background: #e8eeff; border-left: 4px solid var(--purple-light); color: var(--purple-dark); }
.flash-default { background: var(--warning-bg); border-left: 4px solid var(--gold); color: #5c4a00; }

/* ── Hero (home page) ─────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--purple-darkest) 0%, var(--purple-dark) 50%, #2a0e4a 100%);
  padding: 80px 24px 64px;
  text-align: center;
  overflow: hidden;
}

p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin: 0 auto 36px;
  line-height: 1.7;
  padding: 1px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 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.04'%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-inner { position: relative; max-width: 800px; margin: 0 auto; }

.hero-logo {
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,.35);
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  margin-bottom: 16px;
}

.hero h1 span { color: var(--gold); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; line-height: 1;
}

.btn-primary {
  background: var(--gold); color: var(--purple-darkest);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  color: var(--purple-darkest); box-shadow: 0 4px 16px rgba(201,168,76,.4);
}

.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white);
}

.btn-purple {
  background: var(--purple-mid); color: var(--white);
  border-color: var(--purple-mid);
}
.btn-purple:hover {
  background: var(--purple-light); border-color: var(--purple-light); color: var(--white);
}

.btn-ghost {
  background: transparent; color: var(--purple-light);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--off-white); color: var(--purple-dark); }

.btn-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-danger:hover { background: #7b181b; border-color: #7b181b; color: var(--white); }

.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--purple-dark);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Filter ──────────────────────────────────────────── */

.neighborhood-filter-form {
  display: flex;
  flex-direction: column; /* Stacks rows vertically */
  gap: 12px;
  width: 100%;
}

.filter-row {
  display: flex;
  flex-wrap: wrap; /* Allows internal wrapping if screens get too small */
  gap: 12px;
  width: 100%;
  align-items: center;
}

.filter-collapse-container {
  width: 100%;
}

/* Hidden state utility class */
.filter-collapse-container.is-hidden {
  display: none !important;
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.page-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-header p  { color: var(--text-muted); margin-top: 6px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(74,37,128,.12);
}

textarea { min-height: 100px; resize: vertical; }

.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

.form-error{ font-size: .8rem; color: var(--error); margin-top: 4px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.form-grid .wide { grid-column: 1 / -1; }

/* Checkbox groups */
.check-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: background .15s, border-color .15s;
}

.check-item:hover { background: var(--off-white); border-color: var(--purple-light); }
.check-item input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--purple-light);
  flex-shrink: 0;
}

.error_description h3{color:#6b0f12; font-weight: 900; font-size: 24px}
.error_description p{color:#6b0f12; font-size: 18px}


/* ── Tables ───────────────────────────────────────────────── */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table { width: 100%; border-collapse: collapse; }

thead { background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid)); }

th {
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  color: var(--white);
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--off-white); }

/* ── Section divider ──────────────────────────────────────── */
.section-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin: 28px 0 16px;
}

/* ── Neighborhood list ────────────────────────────────────── */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.neighborhood-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.neighborhood-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-mid), var(--gold));
}

.neighborhood-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--purple-light);
  color: inherit;
}

.neighborhood-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--purple-dark);
}

.neighborhood-card .location {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Report page ──────────────────────────────────────────── */
.report-header {
  background: linear-gradient(135deg, var(--purple-darkest), var(--purple-dark) 60%, #2a0e4a);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 28px;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.report-header-logo { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--gold); }

.report-header-info { flex: 1; min-width: 200px; }
.report-header-info h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 4px; }
.report-header-info .subtitle { color: var(--gold-light); font-size: .88rem; margin-bottom: 2px; }

.report-header-date {
  text-align: right;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

.report-header-date strong { display: block; color: var(--gold); font-size: 1rem; }

.report-top-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}

.chip-green { background: #edf7f0; color: #1b4332; border: 1px solid #a8d5b5; }
.chip-grey  { background: #f0edf7; color: var(--text-muted); border: 1px solid var(--border); }

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.score-row:last-child { border-bottom: none; }
.score-label { flex: 1; color: var(--text-primary); }
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-weight: 700;
  font-size: .9rem;
  color: var(--white);
}
.score-10,.score-9  { background: #2d6a4f; }
.score-8,.score-7   { background: #457b5a; }
.score-6,.score-5   { background: #a07000; }
.score-4,.score-3   { background: #7b2d00; }
.score-2,.score-1   { background: var(--error); }
.score-none { background: var(--border); color: var(--text-muted); }

.nicks-take {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-style: italic;
  line-height: 1.7;
}

.nicks-take .byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-style: normal;
  font-weight: 600;
  font-size: .85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Auth pages ───────────────────────────────────────────── */
.auth-logo { width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--gold); margin: 0 auto 20px; }
.auth-page { text-align: center; }
.auth-page h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-page .subtitle { color: var(--text-muted); margin-bottom: 28px; }

/* ── Pill badge ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge-gold   { background: var(--gold-pale); color: #5c3d00; border: 1px solid var(--gold); }
.badge-green  { background: #edf7f0; color: #1b4332; }
.badge-muted  { background: var(--off-white); color: var(--text-muted); border: 1px solid var(--border); }
.badge-purple { background: #ede8f7; color: var(--purple-mid); }

/* ── Search bar ───────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.search-bar input,
.search-bar select {
  flex: 1;
  min-width: 160px;
  margin: 0;
}

/* ── About page ───────────────────────────────────────────── */
.about-hero, .about-section {
  background: linear-gradient(135deg, var(--purple-darkest) 0%, var(--purple-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.about-logo {
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,.3);
  flex-shrink: 0;
}

.about-text h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.about-text .tagline { color: var(--gold); font-size: .95rem; font-weight: 600; margin: 8px 0 16px; letter-spacing: .04em; }
.about-text p { color: rgba(255,255,255,.85); line-height: 1.75; }

.service-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.highlight-card {
  text-align: center;
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
}

.highlight-card .icon { font-size: 2rem; margin-bottom: 10px; }
.highlight-card h3 { font-size: .95rem; margin-bottom: 6px; }
.highlight-card p { font-size: .83rem; color: var(--text-muted); }

/* ── Contact page ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.contact-form {
  background: linear-gradient(135deg,var(--purple-dark),var(--purple-mid));
  color:var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}

.contact-form-label { 
  color: var(--white); 
  font-size: .85rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 6px; 
  font-family: 'Inter', sans-serif;
}


.contact-card .icon { font-size: 2rem; margin-bottom: 12px; color:#212529}
.contact-card h3 { font-size: .9rem; color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .08em; }
.contact-card p { font-size: .95rem; color: var(--purple-dark); font-weight: 600; }

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 25%;
  color: var(--purple-darkest);
  font-size: 1.2rem;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--purple-darkest);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 28px 24px;
  font-size: .8rem;
  margin-top: auto;
  border-top: 1px solid rgba(201,168,76,.2);
}

.site-footer a { color: var(--gold); }

.footer-disclaimer {font-size: 8pt; text-align: left; color:rgba(255,255,255,.4)}

/* ── Utility ──────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }   .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px;} .mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 28px;} .mb-3 { margin-bottom: 28px; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }
.gap-2       { gap: 10px; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.w-full      { width: 100%; }

/* ── Admin sidebar layout ─────────────────────────────────── */
.admin-layout { display: flex; gap: 0; min-height: calc(100vh - 68px); }

.admin-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--purple-darkest);
  border-right: 1px solid rgba(201,168,76,.15);
  padding: 28px 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
}

.sidebar-section { padding: 0 16px; margin-bottom: 24px; }
.sidebar-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.35); font-weight: 600; padding: 8px 12px 4px; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7); font-size: .88rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(201,168,76,.15); color: var(--gold-light);
}

.admin-content { flex: 1; padding: 32px 36px; overflow: auto; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
  .sidebar-label { display: none; }
  .sidebar-link { padding: 7px 12px; font-size: .82rem; }
  .admin-content { padding: 20px 16px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--purple-darkest); padding: 12px; border-bottom: 1px solid rgba(201,168,76,.2); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .site-nav { position: relative; }

  .hero { padding: 48px 20px 40px; }
  .about-hero { padding: 32px 24px; text-align: center; }
  .about-logo { width: 110px; height: 110px; margin: 0 auto; }
  .report-header { padding: 24px 20px; }
  .form-panel { padding: 20px; }
  .page-wrap, .admin-content { padding: 20px 16px 48px; }
}

@media print {
    /* Main container forces content to opposite edges on the same row line */
    .print-nav-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important; /* Strictly aligns both icon tops perfectly */
        width: 100% !important;
        border-bottom: 2px solid #e0e0e0 !important; /* Clean separator line */
        padding-bottom: 15px !important;
        margin-bottom: 25px !important;
    }

    /* Arranges the branding components to stack cleanly: Logo on top, Text below */
    .brand-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Horizontal centering within its column block */
        max-width: 45% !important;
    }
    
    .text-start { align-items: flex-start !important; }
    .text-end { align-items: flex-end !important; }

    /* Controls the print canvas size of the logos */
    .print-logo {
        height: 75px !important; /* Adjust height uniformly to keep scales balanced */
        width: auto !important;
        display: block !important;
        margin-bottom: 8px !important;
    }

    /* Text wrapper formatting */
    .brand-text-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    /* GREC Prominence Check: Make sure the broker text size beats or matches agent text */
    .agent-name {
        font-size: 14pt !important;
        font-weight: 600 !important;
        color: #000000 !important;
    }
    .agent-sub {
        font-size: 10pt !important;
        color: #555555 !important;
    }

    .broker-firm-title {
        font-size: 15pt !important; /* Slightly larger to satisfy GREC visual prominence */
        font-weight: 800 !important;
        color: #000000 !important;
    }
    .broker-phone-number {
        font-size: 13pt !important;
        font-weight: 700 !important;
        color: #000000 !important;
    }
}