/* ═══════════════════════════════════════════════════════════════
   NEWPORT BEACH VACATIONS — npbvluxerentals.info
   Main Stylesheet · 2026 Edition v3
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800;9..40,900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f0f2f7;
  color: #1e293b;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ═══ DESIGN TOKENS 2026 ═══════════════════════════════════════ */
:root {
  /* Core palette */
  --navy:        #0c1f30;
  --navy-mid:    #152d44;
  --navy-light:  #1e3d5c;
  --ocean:       #1b5e8a;
  --teal:        #14b8a6;
  --teal-dark:   #0f766e;
  --teal-light:  #5eead4;
  --teal-pale:   #f0fdfa;
  --sand:        #f2e8d9;
  --sand-light:  #faf6f0;
  --cream:       #fafbfc;
  --white:       #ffffff;
  --gold:        #c89b3c;
  --gold-light:  #e2b96e;
  --gold-pale:   #fef9ec;

  /* Status */
  --green:       #22c55e;
  --green-pale:  #f0fdf4;
  --red:         #ef4444;
  --red-pale:    #fef2f2;
  --amber:       #f59e0b;
  --amber-pale:  #fffbeb;
  --blue:        #3b82f6;
  --blue-pale:   #eff6ff;
  --purple:      #8b5cf6;
  --purple-pale: #f5f3ff;

  /* Text */
  --text:        #0f172a;
  --text-mid:    #334155;
  --text-light:  #64748b;
  --text-faint:  #94a3b8;

  /* Borders */
  --border:      #e2e8f0;
  --border-light:#f1f5f9;
  --border-dark: #cbd5e1;

  /* Fonts */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'DM Sans', -apple-system, sans-serif;

  /* Radius */
  --r-sm:    6px;
  --r:       10px;
  --r-md:    14px;
  --r-lg:    18px;
  --r-xl:    24px;
  --r-2xl:   32px;
  --r-full:  9999px;

  /* Shadows — glassmorphism-inspired */
  --shadow-xs: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.05);
  --shadow:    0 4px 16px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
  --shadow-md: 0 8px 28px rgba(15,23,42,.12), 0 4px 10px rgba(15,23,42,.07);
  --shadow-lg: 0 16px 48px rgba(15,23,42,.14), 0 6px 18px rgba(15,23,42,.08);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.18), 0 12px 32px rgba(15,23,42,.10);

  /* Transitions */
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.7,.3,1);
  --t-fast:   .12s;
  --t:        .22s;
  --t-slow:   .36s;

  /* Layout */
  --max-w: 1400px;
  --sidebar-w: 260px;
}

/* ═══ SCROLLBAR ═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100,116,139,.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,.5); }

/* ═══ TYPOGRAPHY ═══════════════════════════════════════════════ */
.display-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--navy);
}
.display-title em { font-style: italic; color: var(--ocean); }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }

/* ═══ LAYOUT UTILITIES ═══════════════════════════════════════ */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.section      { padding: 96px 0; }
.section-sm   { padding: 64px 0; }
.text-center  { text-align: center; }
.sr-only      { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ═══ BUTTONS 2026 ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .015em;
  border: 1.5px solid transparent;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97) !important; }

.btn-primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(12,31,48,.2);
}
.btn-primary:hover {
  background: var(--navy-mid);
  box-shadow: 0 6px 20px rgba(12,31,48,.3);
  transform: translateY(-1px);
}
.btn-teal {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(20,184,166,.25);
}
.btn-teal:hover {
  background: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(20,184,166,.35);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(200,155,60,.25);
}
.btn-gold:hover { background: #b08a2e; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-dark);
}
.btn-outline:hover { background: var(--border-light); border-color: var(--navy); }
.btn-outline-white {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-outline-white:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.btn-ghost { background: transparent; color: var(--text-light); border-color: transparent; }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-danger { background: var(--red-pale); color: #dc2626; border-color: #fca5a5; }
.btn-danger:hover { background: #fee2e2; }

.btn-sm  { padding: 7px 16px; font-size: .76rem; }
.btn-lg  { padding: 14px 32px; font-size: .92rem; }
.btn-xl  { padding: 17px 40px; font-size: 1rem; letter-spacing: .03em; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--r); }
.btn-icon-lg { width: 44px; height: 44px; padding: 0; border-radius: var(--r-md); }

/* ═══ BADGES / PILLS ═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-teal   { background: rgba(20,184,166,.12); color: var(--teal-dark); }
.badge-green  { background: var(--green-pale); color: #15803d; }
.badge-red    { background: var(--red-pale); color: #dc2626; }
.badge-amber  { background: var(--amber-pale); color: #b45309; }
.badge-blue   { background: var(--blue-pale); color: #1d4ed8; }
.badge-purple { background: var(--purple-pale); color: #6d28d9; }
.badge-navy   { background: rgba(12,31,48,.08); color: var(--navy); }
.badge-gray   { background: var(--border-light); color: var(--text-light); }
.badge-gold   { background: var(--gold-pale); color: #92400e; }

/* ═══ FORMS ═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 11px 14px;
  font-size: .88rem;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-faint); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20,184,166,.14);
}
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: .72rem; color: var(--text-faint); margin-top: 5px; }
.form-error-msg { font-size: .72rem; color: var(--red); margin-top: 5px; }

/* ═══ CARDS ═══════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h2 { font-size: .88rem; font-weight: 700; }

/* ═══ ALERTS ═══════════════════════════════════════════════════ */
.alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid;
}
.alert-error   { background: var(--red-pale);    color: #991b1b; border-color: var(--red); }
.alert-success { background: var(--green-pale);  color: #166534; border-color: var(--green); }
.alert-warn    { background: var(--amber-pale);  color: #92400e; border-color: var(--amber); }
.alert-info    { background: var(--blue-pale);   color: #1e40af; border-color: var(--blue); }

/* ═══ TABLES ═══════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--border); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.admin-table th {
  background: #f8fafc;
  padding: 11px 16px;
  text-align: left;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
  color: var(--text-mid);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background var(--t-fast); }
.admin-table tbody tr:hover td { background: #f8fafc; }

/* ═══ PROGRESS BARS ═══════════════════════════════════════════ */
.progress-bar-wrap {
  height: 7px;
  background: var(--border-light);
  border-radius: var(--r-full);
  overflow: hidden;
  min-width: 60px;
  flex: 1;
}
.progress-bar {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--teal);
  transition: width .6s var(--ease-out);
}
.progress-bar--crit { background: var(--red); }
.progress-bar--warn { background: var(--amber); }

/* ═══ STATUS BADGES ═══════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-active    { background: rgba(20,184,166,.1); color: #0f766e; }
.status-inactive  { background: var(--border-light); color: var(--text-faint); }
.status-warn      { background: var(--amber-pale);   color: #b45309; }
.status-danger    { background: var(--red-pale);      color: #dc2626; }
.status-info      { background: var(--blue-pale);     color: #1d4ed8; }

/* ═══════════════════════════════════════════════════════════════
   ADMIN PORTAL LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.admin-layout {
  display: block;
  min-height: 100vh;
  background: #f0f2f7;
}

/* ── Admin Sidebar ── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: #0c1f30;       /* hardcoded — don't use var here, avoids cascade failures */
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 600;              /* high enough to beat everything */
  transition: transform .28s var(--ease);
  display: block;            /* MUST be block, not flex — hard rule */
  border-right: 1px solid rgba(255,255,255,.06);
}
/* Desktop collapse */
.admin-sidebar.desk-closed { transform: translateX(calc(-1 * var(--sidebar-w))) !important; }
.admin-main { margin-left: var(--sidebar-w); }
.admin-main.desk-expanded { margin-left: 0 !important; }

/* ── Topbar ── */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-wrap: wrap;
  box-shadow: var(--shadow-xs);
}
.admin-topbar h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}

/* ── Admin Main ── */
.admin-main {
  flex: 1;
  min-height: 100vh;
  padding: 28px;
  transition: margin-left .28s var(--ease);
}

/* ── KPI Cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  opacity: 0;
  transition: opacity var(--t);
}
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card:hover::before { opacity: 1; }
.kpi-card--good::before { opacity: 1; background: var(--green); }
.kpi-card--warn::before { opacity: 1; background: var(--amber); }
.kpi-card--danger::before { opacity: 1; background: var(--red); }
.kpi-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.kpi-value {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -.02em;
}
.kpi-card--good .kpi-value { color: #15803d; }
.kpi-card--warn .kpi-value { color: #d97706; }
.kpi-card--danger .kpi-value { color: #dc2626; }
.kpi-sub {
  font-size: .74rem;
  color: var(--text-faint);
  margin-top: 6px;
}
.kpi-sub a { color: var(--teal); font-weight: 600; }

/* ── Admin Card ── */
.admin-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  margin-bottom: 20px;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafbfc;
}
.admin-card-header h2 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Admin Nav ── */
.admin-nav { padding: 4px 12px 8px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r);
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
  margin-bottom: 1px;
  -webkit-tap-highlight-color: transparent;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.admin-nav a.active {
  background: rgba(20,184,166,.2);
  color: var(--teal-light);
  font-weight: 700;
}
.admin-nav-section {
  padding: 14px 14px 5px;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.28);
}

/* ── Mobile hamburger (admin toggle) ── */
#adminDeskToggle {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top,0px));
  left: 12px;
  width: 44px; height: 44px;
  background: #0c1f30;
  border: 1.5px solid rgba(200,155,60,.4);
  border-radius: var(--r);
  display: none; /* hidden by default; shown by JS or nbv-view.css */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 701;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
  transition: left .28s var(--ease);
}
#adminDeskToggle span { width: 16px; height: 2px; background: rgba(255,255,255,.85); border-radius: 1px; display: block; }
/* NOTE: Mobile/tablet responsive behavior for admin sidebar is handled by
   nbv-view.css using body[data-view] selectors — NOT @media queries.
   @media queries were removed because nbv-view.js rewrites the viewport
   meta tag (to 480/768px), which would cause @media rules to fire on desktop. */

/* ── Overlay ── */
#adminMobOverlay {
  display: none;
  pointer-events: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 599;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#adminMobOverlay.open { display: block !important; pointer-events: auto !important; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD PORTALS (Maintenance, Inspector, Cleaner, etc.)
   ═══════════════════════════════════════════════════════════════ */
/* These use .dash-sidebar, .p-topbar, .portal-main */
.dash-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ═══════════════════════════════════════════════════════════════
   PUBLIC SITE NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: background var(--t), padding var(--t), box-shadow var(--t);
}
#navbar.scrolled, #navbar.nav-solid {
  background: rgba(12,31,48,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 48px;
  box-shadow: 0 2px 32px rgba(0,0,0,.22);
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg,var(--teal),var(--ocean)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-main { font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: white; letter-spacing: -.01em; }
.nav-logo-sub  { font-size: .58rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-links a { padding: 8px 14px; border-radius: 6px; font-size: .84rem; font-weight: 400; letter-spacing: .03em; color: rgba(255,255,255,.8); transition: all var(--t) var(--ease); }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: white; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-phone-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.nav-phone-label { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.nav-phone-num   { font-size: .84rem; font-weight: 600; color: rgba(255,255,255,.9); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 8px;
  padding: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media(max-width:1100px){ .hamburger { display: flex !important; } }
.hamburger span { display: block; width: 26px; height: 2px; background: white; border-radius: 2px; transition: var(--t) var(--ease); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: auto;
  width: min(320px,85vw);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
  overflow-y: auto;
  padding-top: max(20px, env(safe-area-inset-top,20px));
  padding-bottom: max(20px, env(safe-area-inset-bottom,20px));
}
.mobile-nav.open { transform: translateX(0) !important; }
.mobile-nav a { font-size: .96rem; font-weight: 600; color: rgba(255,255,255,.75); padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; min-height: 52px; transition: background .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.mobile-nav a:hover { background: rgba(255,255,255,.07); color: white; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 999; display: none; pointer-events: none; backdrop-filter: blur(2px); }
.mobile-nav-overlay.open { display: block; pointer-events: auto; }

/* ═══ HERO ═══════════════════════════════════════════════════ */
#hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-layer { position: absolute; inset: 0; background: linear-gradient(170deg,#061520 0%,#0d2a42 30%,#113456 55%,#1a5070 75%,#1e6878 100%); }
.hero-bg-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 90% 60% at 65% 45%,rgba(20,184,166,.22) 0%,transparent 60%),radial-gradient(ellipse 50% 70% at 15% 80%,rgba(200,155,60,.1) 0%,transparent 55%); }
.hero-content { position: relative; z-index: 3; padding: 160px 0 120px; color: white; max-width: 740px; }
.hero-title { font-family: var(--display); font-size: clamp(3rem,7.5vw,7rem); font-weight: 300; line-height: 1.0; letter-spacing: -.02em; margin-bottom: 28px; }
.hero-title em { font-style: italic; color: rgba(255,255,255,.6); }
.hero-title strong { font-weight: 600; color: white; }
.hero-sub { font-size: 1.08rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.65); margin-bottom: 44px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stat-num { font-family: var(--display); font-size: 2rem; font-weight: 600; color: white; line-height: 1; }
.hero-stat-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: 4px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 2; }
.hero-wave svg { width: 100%; display: block; }
.hero-bubble { position: absolute; right: 8%; top: 28%; z-index: 4; background: rgba(255,255,255,.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 22px 26px; text-align: center; color: white; animation: bubbleFloat 6s ease-in-out infinite; }
@keyframes bubbleFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-bubble-num { font-family: var(--display); font-size: 3.2rem; font-weight: 600; line-height: 1; color: var(--gold-light); }
.hero-bubble-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ═══ SEARCH BAR ════════════════════════════════════════════ */
.search-wrap { background: white; border-radius: var(--r-xl); box-shadow: var(--shadow-xl); overflow: hidden; position: relative; z-index: 10; margin-top: -52px; }
.search-inner { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: stretch; }
.search-field { padding: 22px 24px; border-right: 1px solid var(--border-light); }
.search-field:last-of-type { border-right: none; }
.search-field label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.search-field select, .search-field input { width: 100%; border: none; outline: none; font-size: .95rem; color: var(--text); background: transparent; -webkit-appearance: none; }
.search-btn-wrap { background: var(--navy); display: flex; align-items: center; justify-content: center; min-width: 160px; gap: 10px; border: none; color: white; font-size: .88rem; font-weight: 500; cursor: pointer; transition: background var(--t); padding: 0 28px; }
.search-btn-wrap:hover { background: var(--navy-mid); }

/* ═══ PROPERTY CARDS ════════════════════════════════════════ */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(340px,1fr)); gap: 28px; }
.prop-card { background: white; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--t) var(--ease); border: 1px solid var(--border); }
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prop-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.prop-body { padding: 20px 22px; }
.prop-name { font-family: var(--display); font-size: 1.3rem; font-weight: 500; color: var(--navy); line-height: 1.2; margin-bottom: 6px; }
.prop-location { font-size: .76rem; color: var(--text-light); letter-spacing: .03em; }
.prop-meta { display: flex; gap: 14px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.prop-meta-item { font-size: .76rem; color: var(--text-mid); display: flex; align-items: center; gap: 5px; }
.prop-price { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.prop-price-label { font-size: .72rem; color: var(--text-light); font-weight: 400; }

/* ═══ SECTION HEADINGS ══════════════════════════════════════ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.eyebrow::before, .eyebrow::after { content:''; width:20px; height:1px; background:var(--teal); opacity:.5; }
.section-title { font-family: var(--display); font-size: clamp(2rem,3.5vw,3.2rem); font-weight: 400; line-height: 1.1; color: var(--navy); letter-spacing: -.01em; }
.section-title em { font-style: italic; color: var(--ocean); }
.section-lead { font-size: 1.02rem; color: var(--text-mid); line-height: 1.8; max-width: 560px; font-weight: 300; }
.text-center .section-lead { margin: 0 auto; }

/* ═══ FOOTER ════════════════════════════════════════════════ */
#footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { font-size: .84rem; line-height: 1.8; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col a { display: block; font-size: .84rem; padding: 4px 0; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 32px; display: flex; align-items: center; justify-content: space-between; font-size: .74rem; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-full); padding: 5px 14px; font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ═══ UTILITIES ════════════════════════════════════════════ */
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.p-4   { padding: 16px; }
.p-5   { padding: 20px; }
.p-6   { padding: 24px; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.fs-sm  { font-size: .82rem; }
.fs-xs  { font-size: .72rem; }
.c-teal { color: var(--teal); }
.c-navy { color: var(--navy); }
.c-gold { color: var(--gold); }
.c-light{ color: var(--text-light); }
.bg-teal-pale { background: var(--teal-pale); }
.bg-navy { background: var(--navy); }
.rounded { border-radius: var(--r); }
.rounded-lg { border-radius: var(--r-lg); }
.rounded-xl { border-radius: var(--r-xl); }
.border { border: 1px solid var(--border); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ═══ CHAT / TUTOR WIDGET ═══════════════════════════════════ */
.chat-bubble-user { background: var(--teal); color: white; border-radius: 18px 18px 4px 18px; padding: 10px 14px; font-size: .84rem; max-width: 80%; margin-left: auto; }
.chat-bubble-ai   { background: white; border: 1px solid var(--border); color: var(--text); border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-size: .84rem; max-width: 85%; box-shadow: var(--shadow-xs); }

/* ═══ MOBILE OPTIMIZATIONS ══════════════════════════════════ */
@media(max-width:768px){
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .prop-grid { grid-template-columns: 1fr; gap: 16px; }
  .search-inner { grid-template-columns: 1fr; }
  .search-btn-wrap { min-width: auto; padding: 16px 24px; }
  .hero-content { padding: 120px 0 80px; }
  .hero-stats { gap: 24px; }
  .hero-bubble { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  #navbar { padding: 14px 16px; }
  #navbar.scrolled, #navbar.nav-solid { padding: 10px 16px; }
  .nav-links, .nav-phone-wrap { display: none; }
}

@media(max-width:480px){
  h1 { font-size: 1.3rem; }
  .hero-title { font-size: 2.4rem; }
  .btn-xl { padding: 14px 28px; font-size: .9rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN DARK THEME OVERRIDES — S62
   Forces dark bg everywhere, eliminates white edges
   ═══════════════════════════════════════════════════════════════ */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}
/* Only apply dark to admin pages via body style or class */
body[style*="#06101e"],
.admin-body {
  background: #06101e !important;
}
.admin-layout {
  background: #06101e !important;
  min-height: 100vh;
}
.admin-main {
  background: #06101e !important;
}
/* Kill the light admin-topbar when on dark admin pages */
body[style*="#06101e"] .admin-topbar,
.admin-body .admin-topbar {
  background: #0b1929 !important;
  border-bottom: 1px solid #1a3554 !important;
}
body[style*="#06101e"] .admin-topbar h1,
.admin-body .admin-topbar h1 { color: #14b8a6 !important; }


/* ═══════════════════════════════════════════════════════════════════
   UNIVERSAL MOBILE SCROLL — Added S79
   All tables/matrices/grids get horizontal scroll on mobile
   ═══════════════════════════════════════════════════════════════════ */

/* Scrollbar styling — all admin pages */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0b1929; }
::-webkit-scrollbar-thumb { background: #14b8a6; border-radius: 3px; }
::-webkit-scrollbar-corner { background: #0b1929; }
* { scrollbar-width: thin; scrollbar-color: #14b8a6 #0b1929; }

/* Tables — always scrollable */
.dt, table.dt, .matrix-table { width: 100%; }
.table-scroll-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* Admin main content — never clip horizontally */
.admin-main {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Matrix / Tracker wraps */
.mat-wrap, .tr-wrap, #matWrap, #trWrap {
  overflow: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100vw;
}

@media (max-width: 900px) {
  /* Force sidebar to collapse on mobile */
  .admin-sidebar { width: 0; overflow: hidden; }
  .admin-main { margin-left: 0 !important; }
  
  /* All data tables scroll horizontally */
  table {
    display: block;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    max-width: 100vw;
  }
  
  /* Matrix specific */
  #matWrap, .tr-wrap {
    overflow: auto !important;
    max-height: calc(100vh - 180px);
    max-width: 100vw;
  }
  
  /* Units grid — single column on mobile */
  .units-grid {
    grid-template-columns: 1fr !important;
    padding: 0 12px;
  }
  
  /* Cards full-width */
  .u-card, .dash-card {
    margin: 0;
  }
  
  /* Filters bar — horizontal scroll */
  .filters-bar, .fi-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .filters-bar::-webkit-scrollbar, .fi-bar::-webkit-scrollbar { display: none; }

  /* KPI grids — 2 col on mobile */
  .kpi-row, [class*="kpi-grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Tab strip — horizontal scroll no-bar */
  .tab-strip { overflow-x: auto; scrollbar-width: none; }
  .tab-strip::-webkit-scrollbar { display: none; }
  
  /* Property intel tabs */
  .tab-bar { overflow-x: auto; scrollbar-width: none; }
  .tab-bar::-webkit-scrollbar { display: none; }
  
  /* Forms — full width */
  .fi, .fi-select, .fi-search, select, input[type="text"] {
    max-width: 100%;
  }
  
  /* Hide non-essential columns on mobile tables */
  .hide-mobile { display: none !important; }
}

@media (max-width: 600px) {
  /* Hero text smaller */
  .hero-h1 { font-size: 1.8rem !important; }
  .hero-sub { font-size: .85rem !important; }
  
  /* KPI single column */
  .kpi-row { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* Historian card — stack vertically */
  .historian-card { flex-direction: column !important; }
  .historian-portrait { width: 80px !important; height: 80px !important; }
}

/* Touch scrolling bounce effect */
html { -webkit-overflow-scrolling: touch; }

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}
