/* ========================================================================
   VANAPA LAND — Luxury Real Estate Portfolio
   Design: Louis Vuitton-inspired Dark Luxury with Gold Accents
   ======================================================================== */

/* ========================================================================
   1. CSS CUSTOM PROPERTIES
   ======================================================================== */
:root {
  /* Lighter LV palette — warm mocha & camel tones */
  --bg-primary: #FAF6F0;
  --bg-secondary: #F2EBE0;
  --bg-tertiary: #ECE2D2;
  --accent: #B8935A;
  --accent-hover: #A07C45;
  --accent-glow: rgba(184, 147, 90, 0.22);
  --on-accent: #2A1E12;
  --text-primary: #1A2620;
  --text-secondary: #5C6B62;
  --text-tertiary: #8B9189;
  --card-bg: #FFFFFF;
  --card-border: rgba(184, 147, 90, 0.22);
  --card-border-hover: rgba(184, 147, 90, 0.45);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Kanit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-card: 16px;
  --radius-btn: 100px;
  --radius-input: 12px;
  --section-pad: clamp(80px, 10vw, 140px);
  --max-w: 1340px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --z-nav: 100;
  --z-modal: 1000;
  --z-admin: 1100;
}

/* ========================================================================
   2. RESET & BASE
   ======================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
p { color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

/* LV monogram pattern overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 350px, rgba(212,169,78,0.015) 350px, rgba(212,169,78,0.015) 700px),
    repeating-linear-gradient(-45deg, transparent, transparent 350px, rgba(212,169,78,0.01) 350px, rgba(212,169,78,0.01) 700px);
  pointer-events: none; z-index: 1; mix-blend-mode: soft-light;
}

/* ========================================================================
   3. DECORATIVE OVERLAYS
   ======================================================================== */
.noise-overlay {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02; pointer-events: none; z-index: 1; mix-blend-mode: overlay;
}
.grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(212,169,78,0.01) 25%, rgba(212,169,78,0.01) 26%, transparent 27%, transparent 74%, rgba(212,169,78,0.01) 75%, rgba(212,169,78,0.01) 76%, transparent 77%),
    linear-gradient(90deg, transparent 24%, rgba(212,169,78,0.01) 25%, rgba(212,169,78,0.01) 26%, transparent 27%, transparent 74%, rgba(212,169,78,0.01) 75%, rgba(212,169,78,0.01) 76%, transparent 77%);
  background-size: 50px 50px;
  pointer-events: none; z-index: 1;
}

/* ========================================================================
   4. RIBBON ANIMATION — SIGNATURE LUXURY BACKGROUND
   ======================================================================== */
/* Ribbon animations — background-position keeps ribbons always visible */
@keyframes ribbon-drift-1 {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes ribbon-drift-2 {
  0%   { background-position: 100% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 100% 0%; }
}
@keyframes ribbon-sway-1 {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-30px) rotate(1deg); }
  50%  { transform: translateY(20px) rotate(-1deg); }
  75%  { transform: translateY(-15px) rotate(0.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes ribbon-sway-2 {
  0%   { transform: translateY(0) rotate(0deg); }
  33%  { transform: translateY(25px) rotate(-1.5deg); }
  66%  { transform: translateY(-20px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.ribbon-bg {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none; overflow: hidden;
}
/* Ribbon 1 — large warm gold sweep across top */
.ribbon-bg::before {
  content: '';
  position: absolute; top: -10%; left: -10%;
  width: 120%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(212,169,78,0.25) 0%, rgba(212,169,78,0.12) 40%, transparent 70%);
  background-size: 200% 200%;
  animation: ribbon-drift-1 12s ease-in-out infinite, ribbon-sway-1 18s ease-in-out infinite;
  filter: blur(40px);
}
/* Ribbon 2 — softer glow bottom-right */
.ribbon-bg::after {
  content: '';
  position: absolute; bottom: -10%; right: -10%;
  width: 120%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(232,195,110,0.2) 0%, rgba(212,169,78,0.1) 40%, transparent 70%);
  background-size: 200% 200%;
  animation: ribbon-drift-2 15s ease-in-out infinite, ribbon-sway-2 20s ease-in-out infinite;
  filter: blur(50px);
}
.ribbon--1, .ribbon--2, .ribbon--3, .ribbon--4 {
  position: absolute; pointer-events: none;
}
/* Ribbon 3 — diagonal gold band, always visible */
.ribbon--1 {
  top: 10%; left: -5%; width: 110%; height: 40%;
  background: linear-gradient(135deg, transparent 20%, rgba(212,169,78,0.18) 40%, rgba(232,195,110,0.12) 60%, transparent 80%);
  background-size: 300% 300%;
  animation: ribbon-drift-1 20s ease-in-out infinite;
  filter: blur(30px);
}
/* Ribbon 4 — counter-diagonal warm band */
.ribbon--2 {
  top: 40%; left: -5%; width: 110%; height: 45%;
  background: linear-gradient(-135deg, transparent 20%, rgba(180,150,90,0.15) 40%, rgba(160,140,80,0.1) 60%, transparent 80%);
  background-size: 300% 300%;
  animation: ribbon-drift-2 24s ease-in-out infinite;
  filter: blur(35px);
}
/* Ribbon 5 — subtle center accent */
.ribbon--3 {
  top: 25%; left: 10%; width: 80%; height: 50%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,169,78,0.15) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: ribbon-drift-1 16s ease-in-out infinite reverse;
  filter: blur(45px);
}
/* Ribbon 6 — bottom warm glow */
.ribbon--4 {
  bottom: 0; left: 0; width: 100%; height: 35%;
  background: radial-gradient(ellipse at 70% 80%, rgba(212,169,78,0.12) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: ribbon-drift-2 18s ease-in-out infinite reverse;
  filter: blur(40px);
}

/* ========================================================================
   5. NAVIGATION
   ======================================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px;
  display: flex; align-items: center;
  padding: 0 40px;
  z-index: var(--z-nav);
  background: transparent;
  transition: all var(--ease);
}
.nav--scrolled {
  background: rgba(250,246,240,0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(60,45,30,0.12);
  border-bottom: 1px solid rgba(212,169,78,0.1);
}
.nav__container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: 4px;
  color: var(--accent); text-transform: uppercase;
}
.nav__links {
  display: flex; gap: 48px;
}
.nav__link {
  font-size: 13px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--ease);
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--ease);
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }

.nav__lang-toggle {
  background: rgba(212,169,78,0.12);
  border: 1px solid rgba(212,169,78,0.25);
  color: var(--accent);
  padding: 6px 14px; border-radius: var(--radius-btn);
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; transition: all var(--ease);
}
.nav__lang-toggle:hover {
  background: var(--accent);
  color: var(--on-accent);
}

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav__links { gap: 20px; }
  .nav__link { font-size: 11px; letter-spacing: 1px; }
}
@media (max-width: 480px) {
  .nav__links a.nav__link { display: none; }
}

/* ========================================================================
   6. HERO SECTION
   ======================================================================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 40px 60px;
  position: relative; z-index: 2;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: -50%;
  width: 200%; height: 100%;
  background: radial-gradient(ellipse at 40% 30%, rgba(212,169,78,0.08) 0%, rgba(212,169,78,0.03) 30%, transparent 70%);
  animation: fade-pulse 8s ease-in-out infinite;
}
@keyframes fade-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.hero__content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px; margin: 0 auto 48px;
}
.hero__label {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 22px);
  color: var(--accent);
  letter-spacing: 6px; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 800; letter-spacing: 6px;
  line-height: 1.0; margin-bottom: 24px;
  background: linear-gradient(135deg, #C9A86A 0%, #B8935A 45%, #8A6A38 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-secondary);
  letter-spacing: 2px; font-weight: 300;
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 40px; min-height: 80vh; }
}

/* ========================================================================
   7. SEARCH PANEL
   ======================================================================== */
.search-panel {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212,169,78,0.15);
  border-radius: var(--radius-card);
  padding: 40px;
  width: 100%; max-width: var(--max-w);
  position: relative; z-index: 3;
}
.search-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; align-items: end;
}
.filter-group {
  display: flex; flex-direction: column; gap: 8px;
}
.filter-group--buttons {
  display: flex; flex-direction: row; gap: 12px; align-items: flex-end;
}
.filter-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-tertiary);
}
.filter-input,
.filter-select {
  background: rgba(212,169,78,0.04);
  border: 1px solid rgba(212,169,78,0.12);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px; color: var(--text-primary);
  transition: all var(--ease);
  width: 100%;
}
.filter-input:focus,
.filter-select:focus {
  background: rgba(212,169,78,0.08);
  border-color: rgba(212,169,78,0.35);
  box-shadow: 0 0 20px rgba(212,169,78,0.1);
  outline: none;
}
.filter-input::placeholder { color: var(--text-tertiary); }
.filter-select option { background: var(--bg-secondary); color: var(--text-primary); }
.search-result-count {
  margin-top: 16px; font-size: 14px; color: var(--accent);
  text-align: center; min-height: 20px;
}

@media (max-width: 768px) {
  .search-panel { padding: 24px; }
  .search-panel__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .search-panel__grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   8. STATS BAR
   ======================================================================== */
.stats-bar {
  background: rgba(242,235,224,0.75);
  border-top: 1px solid rgba(212,169,78,0.1);
  border-bottom: 1px solid rgba(212,169,78,0.1);
  padding: 48px 40px;
  position: relative; z-index: 2;
}
.stats-bar__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-w); margin: 0 auto;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700; color: var(--accent);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .stats-bar { padding: 32px 20px; }
  .stats-bar__container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ========================================================================
   9. PROPERTIES SECTION
   ======================================================================== */
.properties-section {
  padding: var(--section-pad) 40px;
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 600;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px; color: var(--text-primary);
}
.section-description {
  font-size: 16px; max-width: 600px; margin: 0 auto;
  color: var(--text-secondary);
}

/* ========================================================================
   10. PROPERTY CARDS (rendered by JS)
   ======================================================================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.property-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 28px;
  cursor: pointer;
  transition: all var(--ease);
  position: relative;
}
.property-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(60,45,30,0.12), 0 0 30px rgba(212,169,78,0.12);
}
.property-card__header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.property-card__location h3 {
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  color: var(--text-primary); letter-spacing: 0;
}
.property-card__status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 6px;
}
.property-card__details { margin-bottom: 20px; }
.property-card__detail-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212,169,78,0.06);
  font-size: 14px;
}
.property-card__detail-row .label { color: var(--text-tertiary); }
.property-card__detail-row .value { color: var(--accent); font-weight: 600; }
.property-card__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(212,169,78,0.08);
}
.property-card__badges { display: flex; gap: 8px; }
.property-card__owner {
  font-size: 13px; color: var(--text-tertiary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px;
}
.badge--doctype {
  background: rgba(212,169,78,0.15);
  color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin-top: 48px;
}
.pagination-info {
  font-size: 14px; color: var(--text-secondary);
}
.btn--pagination {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 10px 20px; border-radius: var(--radius-btn);
  font-size: 13px; font-weight: 500;
  transition: all var(--ease);
}
.btn--pagination:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--pagination:disabled {
  opacity: 0.3; cursor: not-allowed;
}

@media (max-width: 768px) {
  .properties-section { padding: 60px 20px; }
  .properties-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   11. BUTTONS
   ======================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none;
  font-weight: 600; font-size: 14px; letter-spacing: 0.5px;
  transition: all var(--ease); position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 28px;
  border-radius: var(--radius-btn);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(212,169,78,0.3);
}
.btn--secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: var(--radius-btn);
}
.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--sm {
  padding: 8px 16px; font-size: 12px;
  border-radius: var(--radius-btn);
  background: var(--accent); color: var(--on-accent);
}
.btn--sm:hover { background: var(--accent-hover); }
.btn--danger {
  background: #EF4444; color: white;
  padding: 6px 12px; font-size: 11px;
  border-radius: var(--radius-btn); border: none;
}
.btn--danger:hover { background: #DC2626; }

/* ========================================================================
   12. MODAL
   ======================================================================== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  align-items: center; justify-content: center;
  padding: 40px 20px;
}
.modal[style*="display: flex"],
.modal[style*="display:flex"] {
  animation: modal-fade-in 0.3s var(--ease);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal__overlay {
  position: absolute; inset: 0; z-index: 0;
}
.modal__content {
  background: var(--bg-secondary);
  border: 1px solid rgba(212,169,78,0.15);
  border-radius: var(--radius-card);
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative; z-index: 1;
  animation: modal-slide-up 0.4s var(--ease);
}
@keyframes modal-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal__header {
  padding: 32px 40px;
  border-bottom: 1px solid rgba(212,169,78,0.1);
  display: flex; justify-content: space-between; align-items: center;
}
.modal__title {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-primary);
}
.modal__close {
  background: none; border: none;
  font-size: 32px; color: var(--text-secondary);
  cursor: pointer; transition: color var(--ease);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { color: var(--accent); }
.modal__tabs {
  display: flex; gap: 0; overflow-x: auto;
  border-bottom: 1px solid rgba(212,169,78,0.1);
  padding: 0 40px;
}
.modal-tab {
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer;
  padding: 16px 20px;
  position: relative;
  transition: color var(--ease);
  white-space: nowrap;
}
.modal-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--ease);
}
.modal-tab:hover { color: var(--accent); }
.modal-tab.active { color: var(--accent); }
.modal-tab.active::after { width: 100%; }
.modal__body { padding: 32px 40px; }

/* Modal tab content */
.modal-tab-content { }
.info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.info-item {
  padding: 16px;
  background: rgba(212,169,78,0.03);
  border: 1px solid rgba(212,169,78,0.06);
  border-radius: 10px;
}
.info-item label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.info-item .value {
  font-size: 15px; color: var(--text-primary);
  font-weight: 500;
}

/* Tax table */
.tax-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.tax-table th, .tax-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid rgba(212,169,78,0.08);
}
.tax-table th {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-tertiary);
}
.tax-table td { color: var(--text-secondary); }

/* Notes */
.notes-content h4, .notes-content h5,
.tax-history h4, .tax-history h5,
.photo-gallery h5 {
  color: var(--text-primary);
  font-size: 16px; margin-bottom: 12px;
}
.notes-display p, .details-display p {
  color: var(--text-secondary); font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .modal { padding: 16px; }
  .modal__header, .modal__body { padding: 20px; }
  .modal__tabs { padding: 0 20px; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   13. ADVISOR REPORT
   ======================================================================== */
.advisor-report {
  padding: 24px;
  background: rgba(212,169,78,0.03);
  border: 1px solid rgba(212,169,78,0.08);
  border-radius: var(--radius-card);
  margin-top: 20px;
}
.advisor-report h3 { color: var(--accent); margin-bottom: 16px; }
.advisor-report h4 { color: var(--text-primary); margin-bottom: 8px; font-size: 15px; }
.advisor-report p { color: var(--text-secondary); font-size: 14px; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  border: 4px solid rgba(212,169,78,0.2);
  border-top: 4px solid var(--accent);
  border-radius: 50%;
  width: 40px; height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* ========================================================================
   14. ADMIN FLOATING BADGE
   ======================================================================== */
.admin-floating-badge {
  position: fixed; top: 90px; right: 20px;
  z-index: var(--z-admin);
  background: rgba(212,169,78,0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ========================================================================
   15. CONTACT SECTION
   ======================================================================== */
.contact-section {
  padding: var(--section-pad) 40px;
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 40px; text-align: center;
  transition: all var(--ease);
}
.contact-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
}
.contact-card__icon { font-size: 36px; margin-bottom: 16px; }
.contact-card h3 {
  font-size: 18px; margin-bottom: 8px;
  color: var(--text-primary);
}
.contact-card p { font-size: 14px; }

@media (max-width: 768px) {
  .contact-section { padding: 60px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   16. FOOTER
   ======================================================================== */
.footer {
  border-top: 1px solid rgba(212,169,78,0.1);
  padding: 60px 40px 30px;
  position: relative; z-index: 2;
}
.footer__container {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.footer__brand { }
.footer__logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: 3px;
  color: var(--accent); margin-bottom: 6px;
}
.footer__tagline { font-size: 13px; color: var(--text-tertiary); }
.footer__links {
  display: flex; gap: 32px;
}
.footer__links a {
  font-size: 13px; color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--accent); }
.footer__admin { }
.footer__lock {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  opacity: 0.3; transition: opacity var(--ease);
}
.footer__lock:hover { opacity: 0.8; }
.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(212,169,78,0.06);
}
.footer__bottom p { font-size: 12px; color: var(--text-tertiary); }

@media (max-width: 768px) {
  .footer { padding: 40px 20px 20px; }
  .footer__container { flex-direction: column; gap: 24px; text-align: center; }
  .footer__links { gap: 20px; }
}

/* ========================================================================
   17. SCROLL ANIMATIONS
   ======================================================================== */
/* Scroll-triggered animations — only for below-fold content */
[data-animate] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  /* Fallback: become visible after 2s even if JS hasn't triggered */
  animation: reveal-fallback 0.01s 2s forwards;
}
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
[data-animate].is-visible {
  opacity: 1; transform: translateY(0);
  animation: none; /* cancel fallback once JS has triggered */
}
[data-animate]:nth-child(2) { transition-delay: 0.1s; }
[data-animate]:nth-child(3) { transition-delay: 0.2s; }
[data-animate-child] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate-child].is-visible {
  opacity: 1; transform: translateY(0);
}

/* ========================================================================
   18. SCROLLBAR
   ======================================================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: rgba(212,169,78,0.2); border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212,169,78,0.35); }

/* ========================================================================
   19. PRINT STYLES
   ======================================================================== */
@media print {
  .ribbon-bg, .noise-overlay, .grid-overlay,
  .nav, .admin-floating-badge, .footer__lock,
  .search-panel, .pagination { display: none !important; }
  body { background: white; color: black; }
  .property-card { break-inside: avoid; border: 1px solid #ddd; }
  .modal__content { box-shadow: none; border: 1px solid #ddd; }
}

/* ========================================================================
   20. UTILITY
   ======================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
