/* ============================================================
   Cassemiro & Silva Construtora — Design System
   Inspirado em: Voyara / Luxury Travel (Aura.build)
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Variables — Voyara-inspired ---------- */
:root {
  --dark:       #F9F9F9;
  --card:       #FFFFFF;
  --card-hover: #F5F5F5;
  --gold:       #C9A961;
  --gold-light: #DEC48B;
  --gold-dark:  #9C8442;
  --border:     #E5E7EB;
  --muted:      #9CA3AF;
  --text:       #0F1117;
  --text-soft:  #64748B;
  --navy:       #0D1525;
  --black:      #0A0A0A;
}

/* Admin panel restores dark theme */
body.admin-page {
  --dark:       #0A0A0A;
  --card:       #141414;
  --card-hover: #1C1C1C;
  --border:     #2A2A2A;
  --text:       #FFFFFF;
  --text-soft:  #D1D5DB;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: #F9F9F9;
  background-color: var(--dark);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
body:not(.admin-page) {
  background-color: #F9F9F9;
  color: #0F1117;
}
body:not(.admin-page) .property-card {
  background: #FFFFFF;
  border-color: #E5E7EB;
}
body:not(.admin-page) .property-title  { color: #0F1117; }
body:not(.admin-page) .property-location { color: #64748B; }
body:not(.admin-page) .property-feature  { color: #64748B; }
body:not(.admin-page) .property-features { border-top-color: #E5E7EB; }
body:not(.admin-page) .differential-card { background: #FFFFFF; border-color: #E5E7EB; }
body:not(.admin-page) .differential-card h4 { color: #0F1117; }
body:not(.admin-page) .differential-card p  { color: #64748B; }
body:not(.admin-page) .testimonial-card { background: #FFFFFF; }
body:not(.admin-page) .testimonial-author { color: #0F1117; }

/* ---------- Typography ---------- */
.font-display { font-family: 'Playfair Display', serif; }

/* ---------- Gold / Amber Divider ---------- */
.gold-divider {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 12px 0 20px;
}

/* ============================================================
   HEADER / NAV — Voyara style
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s, box-shadow 0.35s;
}
#site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 24px rgba(0,0,0,0.08);
  backdrop-filter: blur(12px);
}
#site-header .nav-link {
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}
#site-header.scrolled .nav-link {
  color: rgba(15,17,23,0.7);
}
#site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s;
}
#site-header .nav-link:hover,
#site-header.scrolled .nav-link:hover { color: var(--gold); }
#site-header .nav-link:hover::after { width: 100%; }

/* Nav glass pill */
.nav-pill {
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 40px;
  padding: 10px 28px;
  transition: background 0.35s, border-color 0.35s;
}
#site-header.scrolled .nav-pill {
  background: rgba(15,17,23,0.05);
  border-color: rgba(15,17,23,0.1);
}

/* Hamburger */
#site-header.scrolled #menu-btn { color: var(--text); }

/* Mobile menu */
#mobile-menu {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
#mobile-menu a { color: rgba(15,17,23,0.7) !important; }
#mobile-menu a.btn-gold { color: var(--navy) !important; }

/* ============================================================
   HERO — Voyara style
   ============================================================ */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,30,0.80) 0%,
    rgba(10,10,30,0.55) 55%,
    rgba(10,10,30,0.72) 100%
  );
}
.hero-content { position: relative; z-index: 2; }

/* Voyara-style glassmorphism search bar */
.hero-search-bar {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.hero-search-bar select,
.hero-search-bar input {
  background: transparent;
  color: #fff;
  border: none;
  outline: none;
}
.hero-search-bar select option {
  background: #1a1a2e;
  color: #fff;
}

/* ============================================================
   PROPERTY CARDS — Voyara destination card style
   ============================================================ */
.property-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
  border-color: transparent;
}
.property-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.property-card:hover .property-card-image img {
  transform: scale(1.07);
}

/* Voyara-style pill badges */
.property-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.badge-venda   { background: var(--gold); color: #0F1117; }
.badge-locacao { background: #3B82F6; color: #fff; }
.badge-ambos   { background: #8B5CF6; color: #fff; }

/* tipo badge — positioned bottom-right, pill style */
.badge-tipo {
  position: absolute;
  bottom: 12px; right: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.property-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.property-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.property-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.4;
}
.property-title a { color: inherit; text-decoration: none; }
.property-title a:hover { color: var(--gold-dark); }
.property-location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.property-features {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.property-feature {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-soft);
  font-weight: 500;
}
.property-feature svg { color: var(--gold); flex-shrink: 0; }

/* Dark-section property cards (destaque on dark bg) */
.dark-section .property-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.dark-section .property-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,169,97,0.5);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.dark-section .property-price  { color: var(--gold); }
.dark-section .property-title  { color: #FFFFFF; }
.dark-section .property-title a { color: #FFFFFF; }
.dark-section .property-title a:hover { color: var(--gold); }
.dark-section .property-location { color: rgba(255,255,255,0.45); }
.dark-section .property-feature  { color: rgba(255,255,255,0.55); }
.dark-section .property-features { border-top-color: rgba(255,255,255,0.1); }

/* ============================================================
   SECTION LABELS — Voyara style (small amber uppercase)
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ============================================================
   BUTTONS — Voyara style
   ============================================================ */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 13px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,169,97,0.35);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 12px 27px;
  border-radius: 6px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,169,97,0.25);
}
.dark-section .btn-outline {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.dark-section .btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================================
   FORMS — Voyara clean style
   ============================================================ */
.form-input {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.12);
}
.form-input::placeholder { color: var(--muted); }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(15,17,23,0.5);
  margin-bottom: 6px;
}

body.admin-page .form-input  { background: #1a1a1a; border-color: #2a2a2a; color: #fff; }
body.admin-page .form-label  { color: rgba(255,255,255,0.6); }

/* ============================================================
   DIFFERENTIAL / FEATURE CARDS — Voyara standard style
   ============================================================ */
.differential-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.differential-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(201,169,97,0.12);
}

/* Voyara icon container — rounded square, amber tint */
.differential-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(201,169,97,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.differential-card h4 { color: var(--text); font-size: 0.9rem; font-weight: 700; }
.differential-card p  { color: var(--text-soft); font-size: 0.82rem; line-height: 1.6; }

/* Dark-section overrides for differential cards */
.dark-section .differential-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
.dark-section .differential-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(201,169,97,0.15);
}
.dark-section .differential-icon {
  background: rgba(201,169,97,0.18);
}
.dark-section .differential-card h4 { color: rgba(255,255,255,0.92); }
.dark-section .differential-card p  { color: rgba(255,255,255,0.45); }

/* ============================================================
   TESTIMONIALS — Voyara traveler stories style (light gray bg)
   ============================================================ */
.testimonial-card {
  background: var(--card);
  border: none;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }
.testimonial-text {
  font-size: 0.93rem;
  line-height: 1.75;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-author { font-weight: 700; font-size: 0.88rem; color: var(--text); }

/* Avatar initials — Voyara style */
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-photo {
  border-radius: 14px;
  border: 3px solid var(--gold);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#lightbox.active { display: flex; }
#lightbox img {
  max-height: 82vh; max-width: 92vw;
  object-fit: contain; border-radius: 6px;
}
#lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2rem; color: rgba(255,255,255,0.7);
  cursor: pointer; background: none; border: none; line-height: 1;
}
#lightbox-close:hover { color: var(--gold); }
#lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 16px; pointer-events: none;
}
.lb-nav-btn {
  pointer-events: all;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lb-nav-btn:hover { background: var(--gold); color: var(--navy); }
#lightbox-counter {
  position: absolute; bottom: 24px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ============================================================
   GALLERY THUMBNAILS
   ============================================================ */
.gallery-main img {
  width: 100%; height: 420px;
  object-fit: cover; border-radius: 10px;
  cursor: pointer; transition: opacity 0.2s;
}
.gallery-main img:hover { opacity: 0.9; }
.gallery-thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-top: 8px;
}
.gallery-thumb {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
}
.gallery-thumb:hover img { transform: scale(1.06); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 14px 20px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.45);
}
.whatsapp-float svg { flex-shrink: 0; }

/* ============================================================
   FOOTER — Voyara deep navy
   ============================================================ */
footer {
  background: #0A0A0A;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(201,169,97,0.14);
}
footer a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.875rem; transition: color 0.2s;
}
footer a:hover { color: var(--gold); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 0.875rem; text-decoration: none;
  color: var(--text); background: var(--card);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.pagination span.current { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }

/* ============================================================
   ADMIN PANEL — stays dark
   ============================================================ */
.admin-sidebar {
  width: 260px; background: #0d0d0d; border-right: 1px solid #2a2a2a;
  min-height: 100vh; position: fixed; left: 0; top: 0;
  overflow-y: auto; z-index: 50;
}
.admin-content { margin-left: 260px; min-height: 100vh; background: #0A0A0A; }
.admin-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: rgba(255,255,255,0.6);
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: background 0.2s, color 0.2s;
  border-radius: 6px; margin: 2px 10px;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(201,169,97,0.1); color: var(--gold);
}
.admin-stat-card { background: #141414; border: 1px solid #2a2a2a; border-radius: 8px; padding: 24px; }
.admin-stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gold); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: #0d0d0d; padding: 12px 16px; text-align: left;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #6B7280; border-bottom: 1px solid #2a2a2a;
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #1a1a1a; font-size: 0.875rem; vertical-align: middle; color: rgba(255,255,255,0.8); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* KANBAN */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; min-height: 70vh; }
.kanban-col { flex: 0 0 240px; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px; padding: 16px; min-height: 200px; }
.kanban-col-header { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); display: flex; align-items: center; justify-content: space-between; }
.kanban-card { background: #141414; border: 1px solid #2a2a2a; border-radius: 6px; padding: 14px; margin-bottom: 10px; cursor: grab; transition: border-color 0.2s, transform 0.15s; user-select: none; }
.kanban-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.kanban-card.dragging { opacity: 0.5; cursor: grabbing; }
.kanban-col.drag-over { border-color: var(--gold); background: rgba(201,169,97,0.04); }
.kanban-card-name  { font-weight: 600; font-size: 0.875rem; margin-bottom: 4px; color: #fff; }
.kanban-card-imovel{ font-size: 0.75rem; color: #6B7280; margin-bottom: 6px; }
.kanban-card-date  { font-size: 0.72rem; color: var(--gold); }

/* CALENDAR */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-day { aspect-ratio: 1; min-height: 72px; background: #141414; border: 1px solid #2a2a2a; border-radius: 6px; padding: 8px; cursor: pointer; transition: border-color 0.2s; color: rgba(255,255,255,0.7); }
.cal-day:hover { border-color: var(--gold); }
.cal-day.has-event { border-color: rgba(201,169,97,0.5); }
.cal-day.today { border-color: var(--gold); background: rgba(201,169,97,0.08); }
.cal-day.other-month { opacity: 0.3; }
.cal-day-num { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.cal-event { font-size: 0.65rem; background: var(--gold); color: var(--navy); border-radius: 3px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* NOTIF BADGE */
.notif-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 9px; background: #EF4444; font-size: 0.65rem; font-weight: 700; color: #fff; padding: 0 4px; }

/* ============================================================
   ADMIN LIGHT MODE
   ============================================================ */
body.admin-light { background: #F0F2F5 !important; }
body.admin-light .admin-sidebar { background: #FFFFFF; border-right-color: #E5E7EB; }
body.admin-light .admin-content { background: #F0F2F5; }
body.admin-light .admin-nav-link { color: rgba(15,17,23,0.55); }
body.admin-light .admin-nav-link:hover,
body.admin-light .admin-nav-link.active { background: rgba(201,169,97,0.1); color: #9C8442; }
body.admin-light .admin-stat-card { background: #FFFFFF; border-color: #E5E7EB; }
body.admin-light .admin-stat-value { color: #9C8442; }
body.admin-light .admin-table th { background: #F9FAFB; color: #6B7280; border-bottom-color: #E5E7EB; }
body.admin-light .admin-table td { color: rgba(15,17,23,0.8); border-bottom-color: #F3F4F6; }
body.admin-light .admin-table tr:hover td { background: rgba(0,0,0,0.02); }
body.admin-light .kanban-col { background: #FFFFFF; border-color: #E5E7EB; }
body.admin-light .kanban-col-header { color: rgba(15,17,23,0.6); }
body.admin-light .kanban-card { background: #F9FAFB; border-color: #E5E7EB; }
body.admin-light .kanban-card:hover { border-color: #C9A961; }
body.admin-light .kanban-card-name { color: #0F1117; }
body.admin-light .cal-day { background: #FFFFFF; border-color: #E5E7EB; color: rgba(15,17,23,0.7); }
body.admin-light .form-input { background: #F9FAFB; border-color: #E5E7EB; color: #0F1117; }
body.admin-light .form-label { color: #6B7280; }
/* Top bar */
body.admin-light .admin-content > div[style*="rgba(10,10,10"] { background: rgba(255,255,255,0.95) !important; border-bottom-color: #E5E7EB !important; }
body.admin-light h1.text-sm { color: rgba(15,17,23,0.8) !important; }
body.admin-light .text-white\/40 { color: rgba(15,17,23,0.4) !important; }
body.admin-light .text-white\/80 { color: rgba(15,17,23,0.8) !important; }
body.admin-light .text-white\/30 { color: rgba(15,17,23,0.3) !important; }
#theme-btn-top:hover { color: #C9A961 !important; }
body.admin-light #theme-btn-top { color: #9C8442 !important; }

/* Lead modal */
.lead-modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.lead-modal-overlay.open { opacity: 1; pointer-events: all; }
.lead-modal {
  background: #141414; border: 1px solid #2a2a2a; border-radius: 16px;
  width: 100%; max-width: 520px; padding: 32px;
  transform: translateY(16px); transition: transform 0.25s;
  max-height: 90vh; overflow-y: auto;
}
.lead-modal-overlay.open .lead-modal { transform: translateY(0); }
body.admin-light .lead-modal { background: #FFFFFF; border-color: #E5E7EB; }
.lead-modal-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 20px; }
body.admin-light .lead-modal-title { color: #0F1117; }
.lead-modal-row { display: flex; gap: 12px; margin-bottom: 14px; }
.lead-modal-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7280; margin-bottom: 3px; }
.lead-modal-value { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
body.admin-light .lead-modal-value { color: #0F1117; }
.lead-modal-field { flex: 1; background: #1a1a1a; border-radius: 8px; padding: 12px 14px; }
body.admin-light .lead-modal-field { background: #F9FAFB; border: 1px solid #E5E7EB; }
body.admin-light #lead-modal { background: #FFFFFF !important; border-color: #E5E7EB !important; }
body.admin-light #lead-modal h3 { color: #0F1117 !important; }
body.admin-light #lead-modal > div:last-child { border-top-color: #E5E7EB !important; }
body.admin-light #lead-modal div[style*="border-bottom:1px solid #2a2a2a"] { border-bottom-color: #E5E7EB !important; }
body.admin-light #lead-modal div[style*="border-top:1px solid #2a2a2a"] { border-top-color: #E5E7EB !important; }
body.admin-light #lead-modal #lm-email,
body.admin-light #lead-modal #lm-telefone,
body.admin-light #lead-modal #lm-data,
body.admin-light #lead-modal #lm-horario,
body.admin-light #lead-modal #lm-imovel,
body.admin-light #lead-modal #lm-mensagem { color: #0F1117 !important; }
body.admin-light #lead-modal #lm-criado { color: #9CA3AF !important; }

/* ============================================================
   UTILITY
   ============================================================ */
.section-pad { padding: 90px 0; }
@media (max-width: 768px) {
  .section-pad { padding: 60px 0; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-content { margin-left: 0; }
  .admin-sidebar.open { transform: translateX(0); }
  .kanban-board { flex-direction: column; }
  .kanban-col { flex: none; width: 100%; }
}

/* Scroll animations */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s, transform 0.65s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Loading spinner */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(201,169,97,0.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Alert boxes */
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.25); color: #166534; border-radius: 8px; padding: 14px 18px; font-size: 0.9rem; }
.alert-error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #991b1b; border-radius: 8px; padding: 14px 18px; font-size: 0.9rem; }
body.admin-page .alert-success { color: #86efac; }
body.admin-page .alert-error   { color: #fca5a5; }

/* ============================================================
   PUBLIC LIGHT — Tailwind text-white override
   ============================================================ */
body.public-light .text-white\/25 { color: rgba(15,17,23,0.25) !important; }
body.public-light .text-white\/30 { color: rgba(15,17,23,0.3)  !important; }
body.public-light .text-white\/40 { color: rgba(15,17,23,0.4)  !important; }
body.public-light .text-white\/50 { color: rgba(15,17,23,0.55) !important; }
body.public-light .text-white\/60 { color: rgba(15,17,23,0.6)  !important; }
body.public-light .text-white\/70 { color: rgba(15,17,23,0.7)  !important; }
body.public-light .text-white\/75 { color: rgba(15,17,23,0.75) !important; }
body.public-light .text-white\/80 { color: rgba(15,17,23,0.8)  !important; }

/* Restore white in dark sections */
body.public-light .dark-section .text-white\/25 { color: rgba(255,255,255,0.25) !important; }
body.public-light .dark-section .text-white\/30 { color: rgba(255,255,255,0.3)  !important; }
body.public-light .dark-section .text-white\/40 { color: rgba(255,255,255,0.4)  !important; }
body.public-light .dark-section .text-white\/50 { color: rgba(255,255,255,0.5)  !important; }
body.public-light .dark-section .text-white\/60 { color: rgba(255,255,255,0.6)  !important; }
body.public-light .dark-section .text-white\/70 { color: rgba(255,255,255,0.7)  !important; }
body.public-light .dark-section .text-white\/75 { color: rgba(255,255,255,0.75) !important; }
body.public-light .dark-section .text-white\/80 { color: rgba(255,255,255,0.8)  !important; }

/* Hero & footer exceptions */
body.public-light .hero-content .text-white\/70 { color: rgba(255,255,255,0.7) !important; }
body.public-light footer .text-white\/25 { color: rgba(255,255,255,0.25) !important; }
body.public-light footer .text-white\/40 { color: rgba(255,255,255,0.4)  !important; }
body.public-light footer .text-white\/50 { color: rgba(255,255,255,0.5)  !important; }

.dark-section { color: rgba(255,255,255,0.85); }

/* ============================================================
   HERO BADGE — "+230 imóveis entregues"
   ============================================================ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid rgba(201, 169, 97, 0.55);
  color: #DEC48B;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(201,169,97,0.18);
}
.hero-badge strong { color: #FFCB74; font-weight: 700; }

/* ============================================================
   SPEC CARDS — Padrão Construtivo (bloco preto institucional)
   ============================================================ */
.spec-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(201,169,97,0.18);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.spec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,169,97,0.55);
  background: linear-gradient(180deg, rgba(201,169,97,0.06) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,169,97,0.10);
}
.spec-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,169,97,0.18) 0%, rgba(201,169,97,0.05) 100%);
  border: 1px solid rgba(201,169,97,0.35);
  color: #DEC48B;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.spec-card-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.spec-card-desc {
  color: rgba(255,255,255,0.60);
  font-size: 0.90rem;
  line-height: 1.65;
  margin: 0;
}
/* Prevent public-light override making spec-card white */
body.public-light .spec-card-title { color: #FFFFFF !important; }
body.public-light .spec-card-desc  { color: rgba(255,255,255,0.60) !important; }

/* ============================================================
   BOTÃO "VER PLANTA"
   ============================================================ */
.btn-planta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 12px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.btn-planta:hover {
  background: var(--gold);
  color: #0D1525;
  box-shadow: 0 8px 24px rgba(201,169,97,0.28);
  transform: translateY(-1px);
}

/* ============================================================
   PLANTA MODAL (popup elegante do PDF)
   ============================================================ */
.planta-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: plantaFadeIn 0.25s ease-out;
}
.planta-modal.active { display: flex; }
.planta-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 21, 37, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.planta-modal-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 92vh;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: plantaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.planta-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid #E5E7EB;
  background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}
.planta-modal-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.planta-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #0F1117;
  margin: 0;
  line-height: 1.2;
}
.planta-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.planta-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: #0D1525;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}
.planta-btn-download:hover { background: var(--gold-dark); }
.planta-btn-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: #0F1117;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.planta-btn-close:hover {
  background: #0F1117;
  color: #fff;
  transform: rotate(90deg);
}
.planta-modal-body {
  flex: 1;
  overflow: hidden;
  background: #525659;
}
.planta-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@keyframes plantaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes plantaSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .planta-modal { padding: 8px; }
  .planta-modal-content { height: 96vh; border-radius: 14px; }
  .planta-modal-header { padding: 14px 16px; }
  .planta-modal-title { font-size: 1.05rem; }
  .planta-btn-download span { display: none; }
  .planta-btn-download { padding: 9px 12px; }
}
