/* ==========================================================================
   DESIGN SYSTEM - SITE CONTABILIDADE E IMOBILIÁRIA (VANILLA CSS)
   ========================================================================== */

:root {
  /* Dark Theme Variables (Default) */
  --bg-primary: #0b0d13;
  --bg-secondary: #121520;
  --bg-surface: #191e2e;
  --bg-surface-hover: #22293e;
  --bg-glass: rgba(18, 21, 32, 0.75);
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --border-focus: #3b82f6;
  
  --text-primary: #f3f4f6;
  --text-secondary: #a1a8c0;
  --text-muted: #626980;
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-rgb: 59, 130, 246;
  
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-rgb: 245, 158, 11;
  
  --success: #10b981;
  --error: #ef4444;
  --info: #06b6d4;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  
  --glass-blur: blur(14px);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --container-width: 1200px;
}

body.light-theme {
  /* Light Theme Overrides */
  --bg-primary: #f4f6fa;
  --bg-secondary: #ffffff;
  --bg-surface: #f9fafb;
  --bg-surface-hover: #f3f4f6;
  --bg-glass: rgba(255, 255, 255, 0.85);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --border-focus: #2563eb;
  
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

#app-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-hover);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 30%;
  right: 30%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.accent-text {
  color: var(--accent) !important;
}

.primary-text {
  color: var(--primary) !important;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   BUTTONS & FORM CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--text-muted);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff !important;
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--error);
  color: #ffffff !important;
  border: 1px solid var(--error);
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

/* Form Inputs */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-inset);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a8c0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

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

.validation-error {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

/* ==========================================================================
   APP HEADER & NAVIGATION
   ========================================================================== */

.top-bar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 20px;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-actions {
  display: flex;
  gap: 15px;
}

.top-link {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-link:hover {
  color: var(--primary);
}

.main-header {
  background-color: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  transition: background-color var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Design */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

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

/* In dark mode, if the logo contains dark text, add a subtle outline to make it readable */
body.dark-theme .logo-img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
}

/* Navigation Links */
.desktop-nav {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item {
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.08);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 10;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.dropdown-menu li a:hover {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.08);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Header Actions & Theme Toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.05);
}

.light-icon {
  display: none;
}

body.light-theme .dark-icon {
  display: none;
}

body.light-theme .light-icon {
  display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 9px;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  transition: right var(--transition-normal);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav-item {
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.05);
}

.mobile-collapsible-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
}

.mobile-sublinks {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-fast) ease-out;
  padding-left: 20px;
}

.mobile-sublinks a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 10px;
}

.mobile-sublinks a:hover {
  color: var(--primary);
}

.mobile-collapsible.active .mobile-sublinks {
  max-height: 200px;
}

.mobile-collapsible.active .mobile-collapsible-btn {
  color: var(--primary);
}

.mobile-collapsible.active .mobile-collapsible-btn i {
  transform: rotate(180deg);
}

.drawer-footer {
  margin-top: auto;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 105;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO / HOME PAGE
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 13, 19, 0.85) 0%, rgba(11, 13, 19, 0.6) 100%);
}

body.light-theme .hero-overlay {
  background: linear-gradient(135deg, rgba(244, 246, 250, 0.9) 0%, rgba(244, 246, 250, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.hero-subtitle {
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::before {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Search Box Container */
.search-container {
  background-color: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}

.search-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.search-tab-btn {
  flex-shrink: 0;
}

.search-tab-btn {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-tab-btn:hover, .search-tab-btn.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.08);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 15px;
  align-items: end;
}

/* Statistics Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 80px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Sector Grid (Accounting + Real Estate Cards) */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 80px;
}

.sector-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sector-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
}

.sector-card.imobiliaria-card::before {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
}

.sector-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 25px;
}

.imobiliaria-card .sector-icon {
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.sector-card h3 {
  font-size: 1.75rem;
  margin-bottom: 15px;
}

.sector-features {
  margin: 20px 0 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sector-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sector-features li i {
  color: var(--success);
}

/* Featured Properties section */
.properties-section {
  background-color: var(--bg-secondary);
}

.section-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Property Card */
.property-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.property-img-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.property-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.property-card:hover .property-img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.badge-venda {
  background-color: var(--accent);
  color: #ffffff;
}

.badge-locacao {
  background-color: var(--primary);
  color: #ffffff;
}

.badge-locacao-venda {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #ffffff;
}

.badge-sold {
  background-color: var(--error);
  color: #ffffff;
}

.property-bonus-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--success);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-clicks {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(11, 13, 19, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.property-location {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.property-neighborhood {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.property-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.property-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-footer {
  padding: 15px 24px 24px 24px;
  border-top: 1px solid var(--border-color);
  background-color: rgba(var(--primary-rgb), 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

/* Links Interessantes Section */
.links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.link-item-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all var(--transition-fast);
}

.link-item-card:hover {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: var(--shadow-sm);
}

.link-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.link-text-details {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.link-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ABOUT / TIMELINE / STRUCTURE
   ========================================================================== */

.about-hero {
  text-align: center;
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.about-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.about-content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-history p {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-slider-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  height: 380px;
  background-color: var(--bg-secondary);
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-normal) ease-in-out;
}

.about-slide.active {
  opacity: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 30px;
  color: #ffffff;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(11, 13, 19, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: background-color var(--transition-fast);
}

.slider-nav-btn:hover {
  background-color: var(--primary);
}

.slider-nav-prev { left: 15px; }
.slider-nav-next { right: 15px; }

/* Timeline Section */
.timeline-container {
  max-width: 800px;
  margin: 50px auto 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5px;
  width: 2px;
  height: 100%;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transition: all var(--transition-fast);
}

.timeline-item:hover::before {
  background-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.timeline-date {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Core Values Cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.value-card i {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   TEAM / TEAM MEMBERS
   ========================================================================== */

.team-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.team-list-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.team-member-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--transition-fast);
}

.team-member-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.team-avatar-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(var(--primary-rgb), 0.1);
  background-color: var(--bg-surface);
  flex-shrink: 0;
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-details h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.team-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.team-philosophy {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  height: fit-content;
}

.team-philosophy h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.team-quote {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  margin: 20px 0;
}

/* ==========================================================================
   PROPERTIES SEARCH / ADVANCED FILTERS
   ========================================================================== */

.properties-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.filters-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.filters-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.properties-listing-container h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.listing-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
  user-select: none;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pagination-btn:hover, .pagination-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   PROPERTY DETAIL PAGE
   ========================================================================== */

.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.detail-layout > div {
  min-width: 0;
}

.detail-gallery-container {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0px;
  position: relative;
}

.detail-main-img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background-color: var(--bg-surface);
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Carousel Controls & Thumbnails */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(11, 13, 19, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 5;
  transition: all var(--transition-fast);
}

.gallery-nav-btn:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.gallery-nav-prev { left: 15px; }
.gallery-nav-next { right: 15px; }

.detail-thumbnails-strip {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 5px;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.detail-thumb-img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  opacity: 0.7;
}

.detail-thumb-img:hover, .detail-thumb-img.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Admin Gallery Preview lists */
.admin-gallery-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.admin-thumb-preview {
  position: relative;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.admin-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-thumb-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--error);
  color: #fff;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.admin-thumb-delete:hover {
  background-color: #d32f2f;
}

/* Admin Dropzone for Multiple Images */
.admin-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: var(--bg-primary);
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.admin-dropzone:hover, .admin-dropzone.dragover {
  border-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.02);
}

.detail-header-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.detail-title-section h1 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.detail-address {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.detail-price-section {
  text-align: right;
}

.detail-price-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.detail-specs-bar {
  display: flex;
  gap: 30px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.detail-spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-spec-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.detail-spec-details {
  display: flex;
  flex-direction: column;
}

.detail-spec-val {
  font-weight: 700;
  color: var(--text-primary);
}

.detail-spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.detail-description h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.detail-description p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Sidebar Elements (Lead Form, QR Code, Bonus Card) */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.lead-form-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.lead-form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.lead-form-card p {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.bonus-box-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 25px;
  text-align: center;
}

.bonus-title {
  font-family: 'Outfit', sans-serif;
  color: var(--success);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bonus-box-card p {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.qrcode-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px;
  text-align: center;
}

.qrcode-card h4 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.qrcode-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 15px auto;
  background-color: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-svg {
  width: 100%;
  height: 100%;
}

.qrcode-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   AUDITORIUM & CALENDAR SYSTEM
   ========================================================================== */

.auditorio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.auditorio-desc-card h2 {
  font-size: 2.25rem;
  margin-bottom: 20px;
}

.auditorio-img-wrapper {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: var(--shadow-md);
}

.auditorio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auditorio-specs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.auditorio-specs-list li {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.auditorio-specs-list li i {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 3px;
}

.calendar-booking-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.calendar-booking-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.calendar-booking-card p {
  font-size: 0.88rem;
  margin-bottom: 25px;
}

/* Calendar Element Grid Styles */
.calendar-wrapper {
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.calendar-month-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.calendar-nav-btn:hover {
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 10px;
}

.calendar-weekday {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.day-empty {
  cursor: default;
  opacity: 0;
}

.day-available {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.day-available:hover {
  background-color: var(--success);
  color: #ffffff;
}

.day-booked {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.day-booked::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--error);
}

.day-selected {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   CONTACT PAGE & MAP EMBED
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
}

.contact-form-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-info-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-map-wrapper {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-map {
  width: 100%;
  height: 100%;
  filter: grayscale(0.8) contrast(1.1) invert(0.9);
}

body.light-theme .contact-map {
  filter: none;
}

/* ==========================================================================
   CLIENT PORTAL (ACESSO RESTRITO)
   ========================================================================== */

.portal-login-card {
  max-width: 450px;
  margin: 80px auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.portal-login-card h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.portal-login-card p {
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.portal-toggle {
  display: flex;
  background-color: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  box-shadow: var(--shadow-inset);
}

.portal-toggle-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.portal-toggle-btn.active {
  background-color: var(--bg-surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Portal Dashboard Layout */
.portal-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  min-height: 550px;
}

.portal-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
}

.portal-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 25px;
}

.portal-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.portal-user-info {
  display: flex;
  flex-direction: column;
}

.portal-user-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.portal-user-type {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}

.portal-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-menu-item {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition-fast);
}

.portal-menu-item:hover, .portal-menu-item.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.05);
}

.portal-logout-btn {
  margin-top: auto;
  color: var(--error);
}

.portal-logout-btn:hover {
  background-color: rgba(239, 110, 110, 0.08);
}

/* Dashboard Body & Content Tabs */
.portal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-sm);
}

.portal-content-header {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.portal-content-header h2 {
  font-size: 1.75rem;
  margin: 0;
}

/* Document Table and Dropzone */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.portal-table th, .portal-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.portal-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.portal-table tbody tr:hover {
  background-color: var(--bg-surface);
}

.dropzone-card {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--bg-primary);
}

.dropzone-card:hover, .dropzone-card.dragover {
  border-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.02);
}

.dropzone-card i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-progress-container {
  margin-top: 30px;
  background-color: var(--bg-primary);
  padding: 15px;
  border-radius: var(--radius-sm);
  display: none;
  text-align: left;
}

.progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--success);
  transition: width 0.2s ease-out;
}

/* ==========================================================================
   RELATIONSHIP CENTER & CHAT WIDGET
   ========================================================================== */

.faq-section {
  margin-bottom: 50px;
}

.accordion-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-align: left;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-icon {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal) ease-out;
  padding: 0 25px;
  color: var(--text-secondary);
}

.accordion-item.active .accordion-body {
  padding-bottom: 20px;
  max-height: 300px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Live Support Widget styling */
.helpdesk-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.chat-widget-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.chat-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--success);
}

.chat-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.msg-bot {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.msg-user {
  background-color: var(--primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-input-wrapper {
  border-top: 1px solid var(--border-color);
  padding: 15px;
  display: flex;
  gap: 10px;
  background-color: var(--bg-surface);
}

/* ==========================================================================
   GLOBAL TOAST & MODALS (FROSTED GLASS)
   ========================================================================== */

.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  color: var(--text-primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  font-weight: 600;
  font-size: 0.92rem;
  pointer-events: auto;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--error); }
.toast-info { border-left-color: var(--info); }

/* Frosted Glass Overlay Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 13, 19, 0.6);
  backdrop-filter: var(--glass-blur);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--error);
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */

.main-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 70px 0 0 0;
  color: var(--text-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.links-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-col ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
}

.links-col ul a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.contact-col p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-col p i {
  color: var(--primary);
  margin-top: 4px;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.footer-badge {
  background-color: rgba(var(--primary-rgb), 0.08);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-badge i {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 25px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

.animate-fade {
  animation: fadeIn var(--transition-normal) ease-out forwards;
}

.animate-zoom {
  animation: zoomIn var(--transition-fast) cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(var(--primary-rgb), 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 100px auto 20px auto;
}

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

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE STYLES)
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 968px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .search-grid .btn {
    grid-column: span 2;
  }
  
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .properties-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: static;
    margin-bottom: 30px;
  }
  
  .detail-layout, .auditorio-layout, .contact-layout, .portal-dashboard, .helpdesk-layout, .about-content-section, .team-layout {
    grid-template-columns: 1fr;
  }
  
  .about-content-section {
    gap: 30px;
  }
  
  .about-slider-container {
    height: 320px;
  }
  
  .team-layout {
    gap: 30px;
  }
  
  .portal-dashboard {
    min-height: auto;
  }
  
  .detail-price-section {
    text-align: left;
    margin-top: 15px;
  }
  
  .detail-header-panel {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  h1 { font-size: 2.25rem; }
  .hero-title { font-size: 2.25rem; }
  
  .search-grid {
    grid-template-columns: 1fr;
  }
  
  .search-grid .btn {
    grid-column: span 1;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-specs-bar {
    flex-direction: column;
    gap: 15px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }

  .slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .about-slide-caption {
    padding: 15px;
  }

  .about-slide-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .about-slide-caption p {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .team-avatar-wrapper {
    width: 75px;
    height: 75px;
  }

  .team-member-card {
    gap: 15px;
    padding: 15px;
  }
}

/* ==========================================================================
   LIGHTBOX GALERIA DE IMÓVEIS (PREMIUM EXPERIENCE)
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 13, 19, 0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.lightbox-overlay.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 510;
}

.lightbox-close-btn:hover {
  background-color: var(--error);
  color: #fff;
  border-color: var(--error);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 505;
}

.lightbox-nav-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.lightbox-nav-prev { left: 40px; }
.lightbox-nav-next { right: 40px; }

.detail-main-img {
  cursor: zoom-in;
  transition: filter var(--transition-fast);
}

.detail-main-img:hover {
  filter: brightness(0.95);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .about-slider-container {
    height: 260px;
  }

  .lightbox-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  .lightbox-nav-prev { left: 15px; }
  .lightbox-nav-next { right: 15px; }
  .lightbox-close-btn {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   BOTÃO ANUNCIAR IMÓVEL & GRID DE FORMULÁRIO DO CLIENTE
   ========================================================================== */
.nav-btn-anunciar {
  color: var(--accent) !important;
  border: 1px solid rgba(var(--accent-rgb), 0.3) !important;
  background-color: rgba(var(--accent-rgb), 0.05);
  transition: all var(--transition-fast);
}

.nav-btn-anunciar:hover, .nav-btn-anunciar.active {
  background-color: var(--accent) !important;
  color: #0b0d13 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

@media (max-width: 991px) {
  .mobile-grid-1 {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   RESPONSIVE PORTAL & ADMIN DASHBOARD ADJUSTMENTS
   ========================================================================== */

/* Portal and Admin Stats Grids */
.portal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

@media (max-width: 1200px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-stats-grid {
    grid-template-columns: 1fr;
  }
  
  /* Sidebar and menu items on mobile */
  .portal-sidebar {
    padding: 15px;
    margin-bottom: 10px;
  }
  
  .portal-user-badge {
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  
  .portal-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
  }
  
  .portal-menu-item {
    padding: 10px 12px;
    font-size: 0.85rem;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 8px;
  }
  
  .portal-logout-btn {
    margin-top: 0 !important;
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .portal-menu {
    grid-template-columns: 1fr;
  }
}

/* Responsive Tables optimization */
.table-responsive {
  -webkit-overflow-scrolling: touch;
}

.table-responsive .portal-table {
  min-width: 700px; /* Ensure content is readable and wraps properly */
}

/* ==========================================================================
   MOBILE & RESPONSIVE GENERAL ADJUSTMENTS (TEXT OVERFLOW, PADDING & COLLAPSE)
   ========================================================================== */

/* Universal word wrapping to prevent horizontal text overflow */
h1, h2, h3, h4, h5, h6, p, span, a, label, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Hide top info bar on mobile and tablet to declutter screens */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

/* Ensure sections have smaller vertical padding and retain horizontal container padding */
@media (max-width: 768px) {
  .section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .portal-content {
    padding: 20px 15px !important;
  }
  .portal-table th, .portal-table td {
    padding: 10px 8px !important;
    font-size: 0.85rem !important;
  }
  .about-hero h1 {
    font-size: 2.25rem !important;
  }
  .detail-main-img {
    height: 280px !important;
  }
  .section-header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .modal-card {
    padding: 20px !important;
    width: 95% !important;
  }
  .portal-content-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .search-container {
    padding: 20px 15px !important;
    margin-top: -30px !important;
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: 1.85rem !important;
  }
  .portal-menu {
    grid-template-columns: 1fr !important;
  }
  .portal-menu-item {
    font-size: 0.82rem !important;
    padding: 12px 15px !important;
  }
}

/* Fix for flex layouts using class mobile-grid-1 to stack correctly on mobile */
@media (max-width: 991px) {
  .mobile-grid-1 {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .mobile-grid-1 > img {
    width: 100% !important;
    height: auto !important;
    max-height: 200px;
  }
}

/* Quick Central Button on mobile header, hidden on desktop */
.mobile-header-central-btn {
  display: flex !important;
}

@media (min-width: 769px) {
  .mobile-header-central-btn {
    display: none !important;
  }
}


