/* ============================================================
   John Gluch Scottsdale Real Estate — Luxury Editorial Real Estate
   Palette: Deep Charcoal + Warm Gold + Cream
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4-E007F;
  src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}
/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  --black: #0a0a0a;
  --charcoal: #141414;
  --charcoal-2: #1e1e1e;
  --charcoal-3: #282828;
  --charcoal-4: #333333;
  --gold: #c9a84c;
  --gold-light: #e2c278;
  --gold-pale: #f5e9c8;
  --cream: #f8f4ee;
  --cream-2: #f0ebe1;
  --white: #ffffff;
  --text-dim: #888888;
  --text-mid: #aaaaaa;
  --border: rgba(201, 168, 76, 0.15);
  --border-hard: rgba(201, 168, 76, 0.35);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.15);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 95px;

  /* Theme-specific shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ── Light Mode Overrides ─────────────────────────────────── */
body.light-mode {
  --black: #ffffff;
  --charcoal: #fdfcfb;
  --charcoal-2: #ffffff;
  --charcoal-3: #f8f4ee;
  --charcoal-4: #e0dbd1;
  --cream: #1a1a1a;
  --cream-2: #333333;
  --white: #0a0a0a;
  --text-dim: #777777;
  --text-mid: #444444;
  --border: rgba(201, 168, 76, 0.2);
  --border-hard: rgba(201, 168, 76, 0.4);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Ensure nav background in light mode */
body.light-mode .nav:not(.scrolled) {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

body.light-mode .nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
}

body.light-mode .nav-hamburger span {
  background: var(--cream);
}

/* Light mode nav link & action text */
body.light-mode .nav-links a {
  color: #1a1a1a;
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: #000000;
}

body.light-mode .nav-btn-outline {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-mode .nav-btn-outline:hover {
  color: var(--gold);
  border-color: var(--gold);
}

body.light-mode .nav-actions > span {
  color: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--charcoal);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.display-xl {
  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 300;
}

.display-lg {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
}

.display-md {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.display-sm {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
}

.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold {
  color: var(--gold);
}

.italic {
  font-style: italic;
}

.dim {
  color: var(--text-dim);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── Theme Toggle ─────────────────────────────────────────── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--charcoal-3);
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--charcoal-4);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .theme-toggle .sun {
  display: none;
}

body:not(.light-mode) .theme-toggle .moon {
  display: none;
}

/* ── Lucide Icon Utilities ─────────────────────────────────── */
.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn {
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.nav-btn-outline {
  border: 1px solid var(--border-hard);
  color: var(--cream);
}

.nav-btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-btn-solid {
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.nav-btn-solid:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-outline-cream {
  border: 1px solid rgba(248, 244, 238, 0.3);
  color: var(--cream);
}

.btn-outline-cream:hover {
  border-color: var(--cream);
  background: rgba(248, 244, 238, 0.1);
}

.btn-ghost {
  color: var(--text-mid);
  padding: 0.85rem 1rem;
}

.btn-ghost:hover {
  color: var(--cream);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.78rem;
}

.btn-full {
  width: 100%;
}

/* ── Cards ───────────────────────────────────────────────────── */
.house-card {
  background: var(--charcoal-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  position: relative;
  cursor: pointer;
}

.house-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hard);
}

.house-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.house-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.house-card:hover .house-card-image img {
  transform: scale(1.06);
}

.house-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-available {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.badge-rented {
  background: rgba(245, 158, 11, 0.9);
  color: white;
}

.badge-sold {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.badge-featured {
  background: var(--gold);
  color: var(--black);
}

.house-card-wishlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: var(--transition);
}

.house-card-wishlist:hover,
.house-card-wishlist.active {
  color: #ef4444;
}

.house-card-type {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14, 14, 14, 0.8);
  color: var(--gold);
  backdrop-filter: blur(10px);
}

.house-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.house-card-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.house-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.house-card-location {
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.house-card-meta {
  display: flex;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-mid);
}

.house-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.house-card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Section Layout ─────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header .label {
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--cream);
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--charcoal-4);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-select option {
  background: var(--charcoal-3);
  color: var(--cream);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Validation States ────────────────────────────────────────── */
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.03);
}

.form-group.has-error .form-input:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: slideDown 0.2s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ── Star Rating ────────────────────────────────────────────── */
.star-rating {
  display: flex;
  gap: 0.25rem;
}

.star-rating .star {
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.star-rating .star.active,
.star-rating .star:hover,
.star-rating .star.hover {
  color: var(--gold);
}

.stars-display {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ── Input Groups (Country Code Picker) ────────────────────── */
.input-group {
  display: flex;
  gap: 2px;
}

.input-group .form-select.country-code-select {
  width: 130px;
  flex-shrink: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  padding-left: 0.75rem;
  padding-right: 0.5rem;
  text-align: left;
  font-family: 'Twemoji Country Flags', var(--font-body);
}

.input-group .form-input.phone-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ── Validation Pulse ─────────────────────────────────────────── */
@keyframes errorPulse {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

.form-group.has-error .form-input,
.form-group.has-error .form-select {
  animation: errorPulse 0.3s ease;
}

/* ── Verification Code Input ─────────────────────────────────── */
.verification-code-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.code-input {
  width: 45px;
  height: 55px;
  border: 1px solid var(--charcoal-3);
  background: var(--charcoal-2);
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold-light);
  transition: all 0.2s;
}

.code-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
  outline: none;
}

.verification-status {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* ── Tags & Amenity Pills ────────────────────────────────────── */
.amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-mid);
  transition: var(--transition);
}

.amenity-pill.has {
  border-color: rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
}

.amenity-pill svg {
  width: 14px;
  height: 14px;
}

/* ── Loading & Skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--charcoal-3) 25%, var(--charcoal-4) 50%, var(--charcoal-3) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--charcoal-4);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover,
.pagination button.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.pagination button:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Toast notifications ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

.toast-success {
  border-left: 3px solid #10b981;
}

.toast-error {
  border-left: 3px solid #ef4444;
}

.toast-info {
  border-left: 3px solid var(--gold);
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--charcoal-2);
  border: 1px solid var(--border-hard);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--charcoal-3);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--cream);
  background: var(--charcoal-4);
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.divider-gold {
  height: 1px;
  width: 60px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1rem 0;
}

/* ── Animations ─────────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 4rem clamp(1.5rem, 5vw, 4rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Price Display ───────────────────────────────────────────── */
.price-display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
}

.price-display .currency {
  font-size: 1.2rem;
  vertical-align: top;
  margin-top: 0.4rem;
  display: inline-block;
}

/* ── Status colors ───────────────────────────────────────────── */
.status-available {
  color: #10b981;
}

.status-rented {
  color: #f59e0b;
}

.status-sold {
  color: #ef4444;
}

/* ── No results ──────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  color: var(--text-dim);
  margin: 0 auto 1.5rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--cream);
}

.empty-state p {
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Full screen mobile overlay wrapper */
  .nav-inner.open {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--charcoal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 2rem;
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: static;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin-bottom: 3rem;
  }

  .nav-links.open a {
    font-size: 1.5rem;
    color: var(--cream);
  }

  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    gap: 1.25rem;
    align-items: center;
  }
  
  .nav-actions.open > span {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
  }

  .nav-actions.open .theme-toggle {
    margin: 0 auto;
  }

  .nav-actions.open .nav-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}