/* ==========================================================================
   NexusPlot — Design System
   Production-ready, light-mode stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --accent: #4f46e5;
  --np-accent: #4f46e5;
  --np-accent-soft: #6366f1;
  --np-accent-strong: #4338ca;

  /* Light surfaces */
  --bg: #f8fafc;
  --np-bg: #f8fafc;
  --np-bg-alt: #f1f5f9;
  --np-card: #ffffff;
  --np-card-alt: #f8fafc;
  --card: #ffffff;

  /* Text */
  --text: #1e293b;
  --np-text: #1e293b;
  --np-text-muted: #64748b;
  --np-text-soft: #94a3b8;
  --muted: #64748b;

  /* Borders */
  --np-border-subtle: rgba(0,0,0,0.08);
  --np-border-strong: rgba(0,0,0,0.15);

  /* Status */
  --danger: #ef4444;
  --success: #10b981;
  --np-danger: #ef4444;
  --np-danger-soft: rgba(239,68,68,0.18);
  --np-success: #10b981;
  --np-success-soft: rgba(16,185,129,0.18);
  --np-warning: #f59e0b;
  --np-warning-soft: rgba(245,158,11,0.18);
  --np-info: #0ea5e9;
  --np-info-soft: rgba(14,165,233,0.18);

  /* Radius */
  --np-radius-sm: 8px;
  --np-radius: 12px;
  --np-radius-lg: 16px;
  --np-radius-pill: 999px;

  /* Shadows */
  --np-shadow-soft: 0 16px 40px rgba(0,0,0,0.08);
  --np-shadow-card: 0 8px 24px rgba(0,0,0,0.06);

  /* Font */
  --np-font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  font-family: var(--np-font-sans);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background:
    radial-gradient(900px 600px at 12% 0%, rgba(99,102,241,0.04) 0%, transparent 55%),
    radial-gradient(1200px 800px at 80% -10%, rgba(59,130,246,0.03) 0%, transparent 60%),
    var(--np-bg);
  color: var(--np-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(79,70,229,0.2);
  color: #1e293b;
}

h1, h2, h3, h4 {
  color: var(--np-text);
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 0.75rem;
  color: var(--np-text-soft);
}

a {
  color: inherit;
}

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

/* --------------------------------------------------------------------------
   3. Layout Containers
   -------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.np-page-wrap,
.np-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

/* --------------------------------------------------------------------------
   4. Navbar — Floating Glass
   -------------------------------------------------------------------------- */
.np-navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 12px 16px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03) inset;
  transition: margin 0.4s cubic-bezier(0.16,1,0.3,1),
              border-radius 0.4s cubic-bezier(0.16,1,0.3,1),
              background 0.4s ease,
              box-shadow 0.4s ease;
}

.np-navbar.scrolled {
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.np-navbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.np-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--np-text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.np-navbar-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(79,70,229,0.3), 0 4px 12px rgba(0,0,0,0.1);
}

.np-navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.np-navbar-link {
  color: var(--np-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}

.np-navbar-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #818cf8, #4f46e5);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}

.np-navbar-link:hover {
  color: var(--np-text);
}

.np-navbar-link:hover::after {
  transform: scaleX(1);
}

.np-navbar-link.active {
  color: var(--np-text);
}

.np-navbar-link.active::after {
  transform: scaleX(1);
}

.np-navbar-link--primary {
  padding: 7px 18px;
  border-radius: var(--np-radius-pill);
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.np-navbar-link--primary::after {
  display: none;
}

.np-navbar-link--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(79,70,229,0.5), 0 0 40px rgba(79,70,229,0.2);
  background: linear-gradient(135deg, #818cf8, #6366f1);
}

/* Mobile nav toggle */
.np-navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--np-text);
  cursor: pointer;
  padding: 4px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.np-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--np-radius-pill);
  border: none;
  font-family: var(--np-font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.np-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.np-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}

.np-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.5), 0 0 40px rgba(79,70,229,0.15);
}

.np-btn--secondary {
  color: var(--np-text);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.1);
}

.np-btn--secondary:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(0,0,0,0.15);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.np-btn--ghost {
  color: var(--np-text-muted);
  background: transparent;
}

.np-btn--ghost:hover:not(:disabled) {
  background: rgba(0,0,0,0.04);
}

.np-btn--danger {
  color: #ffffff;
  background: linear-gradient(135deg, #f97373, var(--np-danger));
  box-shadow: 0 4px 16px rgba(248,113,113,0.4);
}

.np-btn--danger:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--np-danger), #b91c1c);
  transform: translateY(-2px);
}

.np-btn--sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

.np-btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. Alerts
   -------------------------------------------------------------------------- */
.np-alert {
  border-radius: var(--np-radius);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.np-alert__title {
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--np-text);
}

.np-alert__body {
  color: var(--np-text-soft);
}

.np-alert--success { background: #f0fdf4; border-color: rgba(22,163,74,0.2); color: #16a34a; }
.np-alert--danger  { background: #fef2f2; border-color: rgba(220,38,38,0.2); color: #dc2626; }
.np-alert--warning { background: #fffbeb; border-color: rgba(217,119,6,0.2); color: #d97706; }
.np-alert--info    { background: #eff6ff; border-color: rgba(37,99,235,0.2); color: #2563eb; }

/* --------------------------------------------------------------------------
   7. Badges
   -------------------------------------------------------------------------- */
.np-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.6rem;
  border-radius: var(--np-radius-pill);
  font-size: 0.75rem;
  border: 1px solid rgba(79,70,229,0.15);
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
}

.np-badge--muted   { color: var(--np-text-soft); background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
.np-badge--success  { color: #16a34a; border-color: rgba(22,163,74,0.2);  background: rgba(22,163,74,0.08); }
.np-badge--danger   { color: #dc2626; border-color: rgba(220,38,38,0.2); background: rgba(220,38,38,0.08); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.np-card {
  background:
    radial-gradient(circle at 0 0, rgba(79,70,229,0.04), transparent 45%),
    radial-gradient(circle at 100% 0, rgba(6,182,212,0.03), transparent 55%),
    var(--np-card);
  border-radius: var(--np-radius-lg);
  border: 1px solid var(--np-border-subtle);
  box-shadow: var(--np-shadow-card);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}

.np-card__header { margin-bottom: 0.6rem; }
.np-card__title  { font-size: 1rem; font-weight: 600; color: var(--np-text); }
.np-card__meta   { font-size: 0.78rem; color: var(--np-text-muted); }
.np-card__body   { font-size: 0.9rem; color: var(--np-text-soft); margin-top: 0.4rem; }
.np-card__footer { margin-top: 0.75rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }

/* Grids */
.np-grid { display: grid; gap: 1rem; }

@media (min-width: 720px) {
  .np-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .np-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   9. Tables
   -------------------------------------------------------------------------- */
.np-table-wrap {
  margin-top: 0.75rem;
  border-radius: var(--np-radius);
  border: 1px solid var(--np-border-subtle);
  overflow: hidden;
  background: #ffffff;
}

.np-table { width: 100%; border-collapse: collapse; }
.np-table th, .np-table td { padding: 0.55rem 0.75rem; font-size: 0.86rem; text-align: left; }
.np-table th { background: #f8fafc; color: #475569; border-bottom: 1px solid rgba(0,0,0,0.08); font-weight: 600; }
.np-table td { border-top: 1px solid rgba(0,0,0,0.06); color: var(--np-text-soft); }
.np-table tr:nth-child(odd) td  { background: #ffffff; }
.np-table tr:nth-child(even) td { background: #f8fafc; }
.np-table tr:hover td { background: rgba(79,70,229,0.04); }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.np-form {
  max-width: 480px;
  margin: 1.75rem auto;
  background: radial-gradient(circle at 0 0, rgba(79,70,229,0.04), transparent 55%), #ffffff;
  border-radius: var(--np-radius-lg);
  border: 1px solid var(--np-border-subtle);
  box-shadow: var(--np-shadow-soft);
  padding: 1.4rem 1.5rem 1.2rem;
}

.np-form-group { margin-bottom: 0.9rem; }
.np-form-label { display: block; font-size: 0.85rem; color: var(--np-text-muted); margin-bottom: 0.25rem; }

.np-input,
.np-textarea,
.np-select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--np-radius);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--np-text);
  font-family: var(--np-font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.np-input:focus,
.np-textarea:focus,
.np-select:focus {
  border-color: var(--np-accent-soft);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: #ffffff;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.np-footer {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(99,102,241,0.03), transparent),
    #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin-top: 0;
  padding: 56px 0 28px;
}

.np-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--np-text-muted);
  font-size: 0.85rem;
}

.np-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.np-footer-brand { flex-shrink: 0; }

.np-footer-tagline {
  font-size: 0.85rem;
  color: var(--np-text-soft);
  margin-top: 8px;
}

.np-footer-nav-group {
  display: flex;
  gap: 48px;
}

.np-footer-nav-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--np-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.np-footer-nav-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--np-text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.np-footer-nav-col a:hover {
  color: var(--np-text);
  transform: translateX(3px);
}

.np-footer-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.np-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--np-text-muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
}

.np-social-link:hover {
  background: rgba(79,70,229,0.15);
  border-color: rgba(79,70,229,0.3);
  color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,70,229,0.2);
}

.np-social-link svg {
  width: 18px;
  height: 18px;
}

.np-footer-disclaimer {
  text-align: center;
  font-size: 0.76rem;
  color: var(--np-text-soft);
  line-height: 1.7;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}

.np-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

.np-footer-copy,
.np-footer-address {
  font-size: 0.8rem;
  color: var(--np-text-soft);
}

.np-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.np-footer-link {
  color: var(--np-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.np-footer-link:hover {
  color: var(--np-accent);
}

/* --------------------------------------------------------------------------
   12. Legacy Support (admin/member pages use these selectors)
   -------------------------------------------------------------------------- */

/* Old grid & cards (dark mode) */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width:720px){ .grid { grid-template-columns: repeat(3,1fr); } }

.card {
  background: linear-gradient(180deg, var(--card), #f1f5f9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.card.form { max-width: 505px; padding: 16px; }
.card img { width: 100%; height: 170px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.card h2, .card h3 { margin: 8px 0; }
.meta { font-size: 14px; color: var(--muted); }

/* Brand block */
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand .logo { width: 36px; height: 36px; border-radius: 8px; background: var(--accent); box-shadow: 0 8px 20px rgba(79,70,229,0.5); }
.brand h1 { font-size: 20px; margin: 0; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(79,70,229,0.06); border: 1px solid rgba(79,70,229,0.15); color: #4f46e5; font-size: 12px; }

/* Legacy forms (admin/member pages with bare <form>) */
.form-group { margin-bottom: 14px; }
label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--np-font-sans);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
input[readonly] { opacity: 0.9; }

/* Legacy buttons */
button, .btn {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: var(--np-font-sans);
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(79,70,229,0.18);
}
button:disabled, .btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn.secondary { background: #f1f5f9; color: var(--text); }
.btn.danger { background: var(--danger); }
.btn.success { background: var(--success); }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Legacy layout helpers */
.row { display: flex; gap: 12px; }
.row .col { flex: 1; }

/* Messages */
.msg { border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.msg.error { background: #fef2f2; border: 1px solid rgba(220,38,38,0.2); color: #dc2626; }
.msg.success { background: #f0fdf4; border: 1px solid rgba(22,163,74,0.2); color: #16a34a; }

/* Legacy tables */
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { padding: 10px; border-bottom: 1px solid #e2e8f0; text-align: left; font-size: 14px; }
th { color: #475569; }
.role { display: inline-block; padding: 4px 8px; border-radius: 999px; background: rgba(79,70,229,0.06); border: 1px solid rgba(79,70,229,0.15); color: #4f46e5; font-size: 12px; }

/* Legacy footer */
.site-footer { border-top: 1px solid #e2e8f0; margin-top: 24px; padding: 16px 0; color: var(--muted); }
.site-footer .wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Footer small */
.footer { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Image Gallery
   -------------------------------------------------------------------------- */
.image-gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  max-width: 100%;
}

.image-strip img {
  height: 260px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.gallery-btn {
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.gallery-btn:hover { background: rgba(0,0,0,0.6); }

/* --------------------------------------------------------------------------
   14. Property Cards (admin/legacy property list pages)
   -------------------------------------------------------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  display: flex;
  flex-direction: column;
  background: var(--np-card);
  border: 1px solid var(--np-border-subtle);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  height: 100%;
}

.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

.property-card .card-body { flex: 1; display: flex; flex-direction: column; }
.property-card .card-body .details { flex: 1; }

.property-card h2 { font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }

.property-card .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  background: var(--np-accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 16px;
}

.property-card .btn:hover {
  background: var(--np-accent-strong);
}

/* --------------------------------------------------------------------------
   15. Description Text
   -------------------------------------------------------------------------- */
.desc-text {
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

@media (min-width: 720px)  { .desc-text { font-size: 16px; line-height: 1.5; max-width: 600px; } }
@media (min-width: 1024px) { .desc-text { font-size: 18px; line-height: 1.6; max-width: 800px; } }

/* --------------------------------------------------------------------------
   16. Input Error Shake
   -------------------------------------------------------------------------- */
.input-error {
  border: 2px solid #e74c3c !important;
  animation: shake 0.2s ease-in-out 0s 2;
}

@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-4px); }
  50%  { transform: translateX(4px); }
  75%  { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   17. Scroll Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.np-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.np-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.np-animate[data-delay="1"] { transition-delay: 0.1s; }
.np-animate[data-delay="2"] { transition-delay: 0.2s; }
.np-animate[data-delay="3"] { transition-delay: 0.3s; }
.np-animate[data-delay="4"] { transition-delay: 0.4s; }
.np-animate[data-delay="5"] { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Navbar mobile */
  .np-navbar {
    margin: 8px 10px 0;
    border-radius: 14px;
  }

  .np-navbar.scrolled {
    margin: 0;
    border-radius: 0;
  }

  .np-navbar-toggle {
    display: block;
  }

  .np-navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 0 0 16px 16px;
    gap: 2px;
  }

  .np-navbar-nav.open {
    display: flex;
  }

  .np-navbar-link {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .np-navbar-link:hover {
    background: rgba(0,0,0,0.04);
  }

  .np-navbar-link::after {
    display: none;
  }

  .np-navbar-link--primary {
    text-align: center;
    margin-top: 4px;
  }

  /* Footer mobile */
  .np-footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .np-footer-nav-group {
    flex-wrap: wrap;
    gap: 24px;
  }

  .np-footer-nav-col {
    min-width: 120px;
  }

  .np-footer-bottom {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  /* Legacy */
  .grid { grid-template-columns: 1fr; }
  .image-strip img { height: 200px; }
}

@media (max-width: 480px) {
  .gallery-btn { display: none; }
  .property-card img { height: 160px; }
}
