:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* Danger colors */
  --color-danger: var(--color-red-500);
  --color-danger-light: var(--color-red-400);
  --color-danger-dark: rgba(155, 17, 38, 1);

  /* Notification colors */
  --color-success: var(--color-teal-500);
  --color-error: var(--color-red-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;
  --color-primary-rgb: 33, 128, 141;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Theme is now forced to light mode - dark mode detection removed */

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

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

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-16);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text-secondary);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  font-size: var(--font-size-sm);
  touch-action: manipulation;
  /* Remove 300ms delay on mobile and improves touch responsiveness */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  /* Subtle tap highlight on mobile */
  font-weight: var(--font-weight-medium);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  user-select: none;
  white-space: nowrap;
}

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

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary);
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover:not(:disabled) {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-border);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(var(--color-primary-rgb, 30, 54, 94), 0.35);
  font-weight: var(--font-weight-semibold);
  box-shadow: none;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--color-primary-dark, #1b365c);
  border-color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb, 30, 54, 94), 0.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(var(--color-primary-rgb, 30, 54, 94), 0.08);
}

.btn--ghost:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(var(--color-primary-rgb, 30, 54, 94), 0.1);
}

/* Google Maps button - styled to match brand identity */
.btn--maps {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  border: 1px solid var(--color-primary);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-weight: var(--font-weight-medium);
}

.btn--maps:hover:not(:disabled) {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
  color: var(--color-btn-primary-text);
}

.btn--maps:active:not(:disabled) {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
  transform: translateY(0);
}

.btn--maps svg {
  flex-shrink: 0;
}

/* Video button - styled to match brand identity */
.btn--video {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  color: white;
  border: 1px solid #cc0000;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  font-weight: var(--font-weight-medium);
}

.btn--video:hover:not(:disabled) {
  background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
  border-color: #990000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
  color: white;
}

.btn--video:active:not(:disabled) {
  background: linear-gradient(135deg, #990000 0%, #660000 100%);
  border-color: #990000;
  transform: translateY(0);
}

.btn--video svg {
  flex-shrink: 0;
}

/* Property video button container */
.property-video-button {
  margin-bottom: var(--space-24);
}

.property-video-button.hidden {
  display: none;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--outline:hover:not(:disabled) {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-primary);
}

/* Ensure modal buttons have consistent sizing */
.modal-actions .btn {
  min-width: auto !important;
  width: auto !important;
  padding: var(--space-8) var(--space-16) !important;
  font-size: var(--font-size-sm) !important;
}

/* Ensure outline buttons in modals have proper border */
.modal-actions .btn--outline {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-base) !important;
}

.btn--sm {
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: var(--space-12) var(--space-24);
  font-size: var(--font-size-lg);
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.form-control:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

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

/* Public Page */
.public-page {
  min-height: 100vh;
  background-color: var(--color-background);
}

/* Public Header */
.public-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-16) 0;
}

.logo h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: 0;
}

.logo span {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

.logo-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.logo-link:hover {
  color: var(--color-accent);
  text-shadow: 2px 2px 8px rgba(52, 152, 219, 0.3);
}

.logo-image {
  height: 72px;
  width: auto;
  margin-right: 26px;
  vertical-align: middle;
  display: inline-block;
  object-fit: contain;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav-link {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--duration-fast) var(--ease-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 9999;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger {
  display: flex;
  flex-direction: column;
  width: 24px;
  height: 18px;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle:hover .hamburger-line {
  background-color: var(--color-accent);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  pointer-events: auto;
}

.mobile-menu.show {
  display: block;
}

.mobile-menu-link {
  display: block;
  padding: var(--space-16);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-fast) var(--ease-standard);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1001;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-white);
  padding: var(--space-32) 0;
  text-align: center;
}

.hero-content h1 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  color: var(--color-white);
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-24);
  color: var(--color-white);
  opacity: 0.9;
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: var(--space-20);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-search .btn {
  white-space: nowrap;
}

.hero-search-fields {
  display: flex;
  gap: var(--space-12);
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-search-fields .form-control {
  flex: 1 1 240px;
  min-width: 220px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: 46px;
}

.hero-search-actions {
  display: flex;
  gap: var(--space-12);
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.hero-search-actions .btn {
  min-width: 160px;
  border-radius: var(--radius-lg);
}

.hero-search-actions .btn.btn--ghost {
  justify-content: center;
}

.hero-search-actions .btn.btn--primary {
  box-shadow: 0 10px 25px rgba(var(--color-primary-rgb, 30, 54, 94), 0.18);
}

.hero-search-actions .btn.btn--primary:hover {
  box-shadow: 0 12px 28px rgba(var(--color-primary-rgb, 30, 54, 94), 0.22);
}

.hero-search-actions .btn.btn--ghost {
  justify-content: center;
}

@media (max-width: 640px) {
  .hero-search-fields {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-10);
  }

  .hero-search-fields .form-control {
    flex: none;
    min-width: 0;
    width: 100%;
    height: 46px;
  }

  .hero-search-actions {
    flex-direction: column;
  }

  .hero-search-actions .btn {
    width: 100%;
  }
}

/* Sections */
.public-section {
  padding: var(--space-32) 0;
}

#home .container>section {
  padding: var(--space-32) 0;
  margin: 0;
}

#home .container>section+section {
  margin-top: var(--space-48);
}

.search-results .no-results {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 40px 0;
}

/* Social Media Links */
.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.social-links .icon-content {
  margin: 0 10px;
  position: relative;
}

.social-links .icon-content .tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
  z-index: 1000;
}

.social-links .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: -50px;
}

.social-links .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.social-links .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}

.social-links .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}

.social-links .icon-content a:hover {
  color: white;
}

.social-links .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}

.social-links .icon-content a:hover .filled {
  height: 100%;
}

.social-links .icon-content a[data-social="whatsapp"] .filled,
.social-links .icon-content a[data-social="whatsapp"]~.tooltip {
  background-color: #128c7e;
}

.social-links .icon-content a[data-social="facebook"] .filled,
.social-links .icon-content a[data-social="facebook"]~.tooltip {
  background-color: #3b5998;
}

.social-links .icon-content a[data-social="instagram"] .filled,
.social-links .icon-content a[data-social="instagram"]~.tooltip {
  background: linear-gradient(45deg,
      #405de6,
      #5b51db,
      #b33ab4,
      #c135b4,
      #e1306c,
      #fd1f1f);
}

.social-links .icon-content a[data-social="tiktok"] .filled,
.social-links .icon-content a[data-social="tiktok"]~.tooltip {
  background-color: #000000;
}

.social-links .icon-content a[data-social="youtube"] .filled,
.social-links .icon-content a[data-social="youtube"]~.tooltip {
  background-color: #ff0000;
}

/* Header layout adjustments */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.public-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .social-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }

  .header-content {
    flex-direction: column;
    align-items: center;
  }

  .public-nav {
    order: 2;
    justify-content: center;
  }
}

.featured-properties h2,
.services-preview h2,
.testimonials h2 {
  text-align: center;
  margin-bottom: var(--space-24);
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-24);
}

.properties-pagination {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
  margin: var(--space-32) auto 0;
  max-width: 600px;
}

.properties-pagination-meta {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  text-align: center;
}

.properties-pagination .btn {
  min-width: 220px;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #1b365c) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}

.properties-pagination .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, var(--color-primary-dark, #1b365c) 0%, var(--color-primary) 100%);
}

.properties-pagination .btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.properties-pagination .btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.no-results {
  text-align: center;
  padding: var(--space-40) 0;
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.property-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-sm);
}

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

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.property-content {
  padding: var(--space-16);
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.property-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0 0 0.35rem 0;
  color: var(--color-text);
}

.property-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 56px;
}

.property-card-ref {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.property-agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  flex-shrink: 0;
}

.property-agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-location {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-sm);
}

.property-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-16);
}

.property-actions {
  display: flex;
  gap: var(--space-8);
}

/* Property Card Skeleton Loading */
.property-card-skeleton {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg,
      var(--color-bg-1) 0%,
      var(--color-bg-2) 50%,
      var(--color-bg-1) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
  padding: var(--space-16);
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg,
      var(--color-bg-1) 0%,
      var(--color-bg-2) 50%,
      var(--color-bg-1) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-12);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  margin-bottom: var(--space-16);
}

.skeleton-price {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-12);
}

.skeleton-location {
  height: 14px;
  width: 70%;
  margin-bottom: var(--space-12);
}

.skeleton-specs {
  height: 14px;
  width: 90%;
}

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

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

@keyframes skeleton-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
}

.service-card {
  text-align: center;
  padding: var(--space-20);
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-16);
}

.service-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
}

.testimonial {
  background-color: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  text-align: center;
}

.testimonial p {
  font-style: italic;
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.testimonial cite {
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  font-style: normal;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-overlay.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-12);
  }

  .header-content {
    padding: var(--space-12) 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .public-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .public-header {
    position: relative;
  }

  .hero-content h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-search {
    flex-direction: column;
    gap: var(--space-8);
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Content */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-top: var(--space-24);
}

.contact-info h3 {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.contact-details {
  margin-top: var(--space-16);
}

.contact-item {
  margin-bottom: var(--space-12);
  color: var(--color-text-secondary);
}

.contact-form {
  background-color: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
}

.contact-form h3 {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.form-group {
  margin-bottom: var(--space-16);
}

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

/* Form sections */
.form-section {
  margin-top: var(--space-24);
  padding: var(--space-16);
  background: var(--color-gray-200);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.form-section h4 {
  margin: 0 0 var(--space-16) 0;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

/* Read-only form fields */
.form-group.readonly {
  opacity: 0.8;
}

.form-group.readonly .form-label {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.form-group.readonly .form-control {
  background-color: var(--color-gray-200);
  border: 1px solid var(--color-gray-300);
  color: var(--color-text-secondary);
  cursor: not-allowed;
}

.form-group.readonly .form-control:focus {
  border-color: var(--color-gray-300);
  box-shadow: none;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
  justify-items: center;
}

.team-member {
  text-align: center;
  padding: var(--space-24);
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
}

.team-member:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.team-member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto var(--space-16);
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
}

.team-member h3 {
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.team-member p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-24);
}

.blog-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  height: 200px;
  background-color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
}

.blog-card-content {
  padding: var(--space-16);
}

.blog-card h3 {
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.blog-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-12);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Recruitment Section */
.recruitment-intro {
  text-align: center;
  margin-bottom: var(--space-32);
  padding: var(--space-32) 0;
  background: var(--color-bg-1);
  border-radius: var(--radius-lg);
}

.recruitment-intro h2 {
  margin-bottom: var(--space-16);
}

.recruitment-intro .section-subtitle {
  max-width: 800px;
  line-height: var(--line-height-normal);
}

.job-openings {
  margin-bottom: var(--space-32);
}

.job-openings h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-24);
  text-align: center;
}

.job-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-24);
}

.job-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-400));
}

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

.job-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.job-location {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.job-location::before {
  content: '📍';
}

.job-description {
  color: var(--color-text);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-base);
}

.job-requirements {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-20);
}

.job-requirements li {
  padding: var(--space-4) 0;
  color: var(--color-text);
  position: relative;
  padding-left: var(--space-20);
  font-size: var(--font-size-sm);
}

.job-requirements li::before {
  content: "✓";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-weight: var(--font-weight-bold);
}

.application-form {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin-top: var(--space-32);
}

.application-form h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-24);
  text-align: center;
}

/* Simulations Section */
.simulation-intro {
  text-align: center;
  margin-bottom: var(--space-32);
  padding: var(--space-32) 0;
  background: var(--color-bg-2);
  border-radius: var(--radius-lg);
}

.simulation-intro h2 {
  margin-bottom: var(--space-16);
}

.simulation-intro .section-subtitle {
  max-width: 800px;
  line-height: var(--line-height-normal);
}

.simulation-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.simulation-card {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.simulation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-teal-400));
}

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

.simulation-icon {
  font-size: 3rem;
  margin-bottom: var(--space-16);
  display: block;
}

.simulation-card h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.simulation-card p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-base);
}

.simulator {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  margin-top: var(--space-24);
}

.simulator.hidden {
  display: none;
}

.simulator h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-24);
  text-align: center;
}

.simulation-result {
  margin-top: var(--space-24);
  padding: var(--space-24);
  background: var(--color-bg-1);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.simulation-result h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-16);
  text-align: center;
}

.simulation-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
}

.simulation-detail {
  text-align: center;
  padding: var(--space-16);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-card-border);
}

.simulation-detail .label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
}

.simulation-detail .value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

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

.admin-only {
  display: none;
}

.admin-only.show {
  display: block !important;
}

/* Admin section when on /admin route */
body.admin-route .admin-only {
  display: block !important;
  visibility: visible !important;
}

body.admin-route .public-page {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Force admin section to be visible when body has admin-route class */
body.admin-route #app {
  display: grid !important;
  visibility: visible !important;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  margin: 0;
  color: var(--color-primary);
}

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

.modal-close:hover {
  color: var(--color-text-primary);
}

.modal-open {
  overflow: hidden;
}

/* Blog Post Modal Styles */
.blog-post-modal {
  animation: fadeIn 0.3s ease-out;
}

.blog-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.blog-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  height: auto;
  overflow: visible;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: slideUp 0.4s ease-out;
  position: relative;
}

.blog-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
  border-radius: 24px 24px 0 0;
}

.blog-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-modal-category {
  flex: 1;
}

.blog-category-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blog-modal-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  margin-left: 1rem;
}

.blog-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #334155;
  transform: scale(1.05);
}

.blog-modal-body {
  padding: 0 1rem 2rem 1rem;
  overflow-y: visible;
  height: auto;
}

.blog-modal-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-modal-content .blog-content-full {
  line-height: 1.8;
  color: #374151;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  height: auto;
  overflow: visible;
}

.blog-modal-title {
  margin-bottom: 1.5rem;
}

.blog-modal-title h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e293b;
  margin: 0;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-meta-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.blog-modal-content .blog-content-full {
  line-height: 1.7;
  color: #334155;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
  position: relative;
}

.blog-modal-content .blog-content-full::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: -1rem;
  right: -1rem;
  bottom: -1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  z-index: -1;
  opacity: 0.5;
}

.blog-modal-content .blog-content-full h1,
.blog-modal-content .blog-content-full h2,
.blog-modal-content .blog-content-full h3,
.blog-modal-content .blog-content-full h4,
.blog-modal-content .blog-content-full h5,
.blog-modal-content .blog-content-full h6 {
  color: #1f2937;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.blog-modal-content .blog-content-full h1 {
  font-size: 1.5rem;
}

.blog-modal-content .blog-content-full h2 {
  font-size: 1.25rem;
}

.blog-modal-content .blog-content-full h3 {
  font-size: 1.125rem;
}

.blog-modal-content .blog-content-full p {
  margin-bottom: 1rem;
}

.blog-modal-content .blog-content-full p:first-child {
  margin-top: 0;
}

.blog-modal-content .blog-content-full p:last-child {
  margin-bottom: 0;
}

.blog-modal-content .blog-content-full ul,
.blog-modal-content .blog-content-full ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.blog-modal-content .blog-content-full li {
  margin-bottom: 0.25rem;
}

.blog-modal-content .blog-content-full blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #6b7280;
}

.blog-modal-content .blog-content-full img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.blog-modal-content .blog-content-full a {
  color: var(--color-primary);
  text-decoration: underline;
}

.blog-modal-content .blog-content-full a:hover {
  text-decoration: none;
}

.blog-modal-content .blog-content-full strong {
  font-weight: 600;
}

.blog-modal-content .blog-content-full em {
  font-style: italic;
}

.blog-modal-content .blog-content-full code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
  color: #dc2626;
}

.blog-modal-content .blog-content-full pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.blog-modal-content .blog-content-full pre code {
  background: none;
  padding: 0;
  color: #374151;
  font-size: 0.875rem;
}

.blog-modal-content .blog-content-full hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 1.5rem 0;
}

.blog-modal-content .blog-content-full table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.blog-modal-content .blog-content-full th,
.blog-modal-content .blog-content-full td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.blog-modal-content .blog-content-full th {
  background: #f9fafb;
  font-weight: 600;
  color: #1f2937;
}

.blog-modal-content .blog-content-full tr:hover {
  background: #f9fafb;
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

/* Responsive Design for Blog Modal */
@media (max-width: 768px) {
  .blog-modal-overlay {
    padding: 1rem;
  }

  .blog-modal-content {
    border-radius: 16px;
    max-height: 95vh;
  }

  .blog-modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }

  .blog-modal-body {
    padding: 0 0.5rem 1.5rem 0.5rem;
  }

  .blog-modal-content {
    padding: 1rem;
    margin-top: 1rem;
    height: auto;
    overflow: visible;
  }

  .blog-modal-title h1 {
    font-size: 1.75rem;
  }

  .blog-modal-meta {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .blog-modal-content {
    margin-top: 1rem;
  }
}

/* New Blog Modal Styles - Completely Refactored */
.blog-modal-new {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.blog-modal-new.show {
  opacity: 1;
  visibility: visible;
}

.blog-modal-backdrop-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.blog-modal-wrapper-new {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.blog-modal-card-new {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.blog-modal-new.show .blog-modal-card-new {
  transform: scale(1) translateY(0);
}

.blog-modal-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: white;
}

.blog-modal-category-new {
  display: flex;
  align-items: center;
}

.blog-category-badge-new {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.blog-modal-close-new {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.blog-modal-close-new:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.blog-modal-content-new {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

.blog-modal-title-new {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.blog-modal-meta-new {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.blog-meta-item-new {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-meta-item-new svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.blog-modal-text-new {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.blog-modal-text-new h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.blog-modal-text-new h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.75rem 0 0.75rem 0;
  line-height: 1.3;
}

.blog-modal-text-new h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 0.5rem 0;
  line-height: 1.3;
}

.blog-modal-text-new h4,
.blog-modal-text-new h5,
.blog-modal-text-new h6 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.25rem 0 0.5rem 0;
  line-height: 1.3;
}

.blog-modal-text-new p {
  margin: 0 0 1.25rem 0;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
}

.blog-modal-text-new ul,
.blog-modal-text-new ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-modal-text-new li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.blog-modal-text-new blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}

.blog-modal-text-new img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-modal-text-new a {
  color: #3b82f6;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.blog-modal-text-new a:hover {
  text-decoration-color: #3b82f6;
}

.blog-modal-text-new strong {
  font-weight: 600;
  color: #1f2937;
}

.blog-modal-text-new em {
  font-style: italic;
  color: #4b5563;
}

.blog-modal-text-new code {
  background: #f1f5f9;
  color: #e11d48;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
}

.blog-modal-text-new pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.blog-modal-text-new pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.blog-modal-text-new hr {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 2rem 0;
}

.blog-modal-text-new table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.blog-modal-text-new th,
.blog-modal-text-new td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.blog-modal-text-new th {
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
}

/* Responsive New Blog Modal */
@media (max-width: 768px) {
  .blog-modal-wrapper-new {
    width: 95%;
    max-height: 95vh;
  }

  .blog-modal-header-new {
    padding: 1rem 1.5rem;
  }

  .blog-modal-content-new {
    padding: 1.5rem;
  }

  .blog-modal-title-new {
    font-size: 1.5rem;
  }

  .blog-modal-meta-new {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .blog-modal-text-new h1 {
    font-size: 1.5rem;
  }

  .blog-modal-text-new h2 {
    font-size: 1.25rem;
  }

  .blog-modal-text-new h3 {
    font-size: 1.125rem;
  }
}

body.admin-route #publicPage {
  display: none !important;
  visibility: hidden !important;
}

/* Ensure body doesn't have extra margins/padding */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Login Page Styles */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 2rem;
}

.login-container {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.login-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text-primary);
}

.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.login-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login-form .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.btn--full {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* App Layout */
.app {
  display: grid;
  grid-template-areas:
    "header header"
    "sidebar main";
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}

.app-header {
  grid-area: header;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-16) var(--space-24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.header-left h1 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  margin: 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: var(--font-size-lg);
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-8);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-standard);
  min-width: 44px;
  min-height: 44px;
  display: none;
  /* Escondido por padrão (desktop) */
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.sidebar-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: scale(1.05);
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

.sidebar-toggle .hamburger-icon,
.sidebar-toggle .close-icon {
  transition: all var(--duration-fast) var(--ease-standard);
  font-size: var(--font-size-lg);
}

.sidebar-toggle.open .hamburger-icon {
  display: none;
}

.sidebar-toggle.open .close-icon {
  display: inline !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.user-welcome {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.sidebar {
  grid-area: sidebar;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: var(--space-24) 0;
  overflow-y: auto;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  z-index: 100;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-24);
  color: var(--color-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
}

.sidebar .nav-link:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.sidebar .nav-link.active {
  background: var(--color-bg-1);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.sidebar .nav-link span {
  font-size: var(--font-size-lg);
}

.main-content {
  grid-area: main;
  padding: var(--space-24);
  overflow-y: auto;
  background: var(--color-background);
}

/* Content Sections */
.content-section {
  max-width: 1200px;
}

.section-title {
  display: inline-block;
  font-size: clamp(2rem, 1.8vw + 1.4rem, 2.6rem);
  font-weight: var(--font-weight-bold);
  text-align: center;
  line-height: 1.2;
  padding-bottom: 4px;
  margin: 0 auto var(--space-16);
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-teal-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header,
.section-header-modern {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header h1,
.section-header h2,
.section-header-modern h1,
.section-header-modern h2 {
  margin-bottom: var(--space-12);
}

.section-header p,
.section-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
  display: block;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-20);
  margin-bottom: var(--space-32);
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  display: flex;
  align-items: center;
  gap: var(--space-16);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  font-size: var(--font-size-4xl);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-1);
  border-radius: var(--radius-lg);
}

.stat-content h3 {
  color: var(--color-text);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-4) 0;
}

.stat-content p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.dashboard-chart {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
}

.dashboard-chart h3 {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

/* Activity List */
.recent-activity {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
}

.recent-activity h3 {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
}

.form-group {
  margin-bottom: var(--space-16);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form-hint {
  display: block;
  margin-top: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-12);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-sm);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-12);
  padding: var(--space-20);
  border-top: 1px solid var(--color-border);
}

.modal-body {
  padding: var(--space-20);
}

/* Admin Actions */
.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
  gap: var(--space-16);
}

.admin-actions .form-control {
  flex: 1;
  max-width: 300px;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-20);
}

.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.property-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.property-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

.property-actions {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-20);
}

.client-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  text-align: center;
}

.client-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.client-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

/* Leads Grid */
.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-20);
}

.lead-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
  border-left: 4px solid var(--color-primary);
}

.lead-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.lead-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

/* Team Grid */
/* Removed duplicate team styles - using main team-grid above */

/* Reports Grid */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-24);
}

.report-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
}

.report-card h3 {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

.chart-container {
  position: relative;
  height: 300px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-20);
}

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  border: 1px solid var(--color-card-border);
}

.blog-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.blog-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-12);
}

/* Settings Tabs */
.settings-tabs {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border);
}

.settings-tab {
  background: none;
  border: none;
  padding: var(--space-12) var(--space-16);
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
}

.settings-tab:hover {
  color: var(--color-text);
}

.settings-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.settings-content {
  display: none;
}

.settings-content.active {
  display: block;
}

/* Reports Tabs */
.reports-tabs {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  border-bottom: 1px solid var(--color-border);
}

.reports-tab {
  background: none;
  border: none;
  padding: var(--space-12) var(--space-16);
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
}

.reports-tab:hover {
  color: var(--color-text);
}

.reports-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.reports-content {
  display: none;
}

.reports-content.active {
  display: block;
}

/* Time Selector */
.report-time-selector {
  display: flex;
  gap: var(--space-8);
  margin-bottom: var(--space-24);
  justify-content: center;
}

.time-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.time-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.time-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Admin List */
.admin-list {
  display: grid;
  gap: var(--space-12);
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-card-border);
}

.admin-list-item span {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.admin-list-actions {
  display: flex;
  gap: var(--space-8);
}

/* Admin Tables */
.table-container {
  margin-top: var(--space-20);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.admin-table th {
  background: var(--color-bg-1);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-semibold);
  text-align: left;
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border);
  position: relative;
}

.admin-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.admin-table th.sortable:hover {
  background: var(--color-bg-2);
}

.sort-arrow {
  position: absolute;
  right: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xs);
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.admin-table th.sortable:hover .sort-arrow {
  opacity: 1;
}

.admin-table th.sort-asc .sort-arrow::after {
  content: '↑';
  color: var(--color-primary);
}

.admin-table th.sort-desc .sort-arrow::after {
  content: '↓';
  color: var(--color-primary);
}

.admin-table th.sort-asc .sort-arrow,
.admin-table th.sort-desc .sort-arrow {
  opacity: 1;
}

/* Data table sorting styles */
.data-table th.sortable {
  position: relative;
  cursor: pointer !important;
  user-select: none;
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* Blog Admin Styles */
.post-title-cell {
  max-width: 200px;
}

.post-title {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.post-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.badge-category {
  background: var(--color-secondary);
  color: white;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Blog Public Styles */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  background: var(--color-bg-2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-32);
  margin-bottom: var(--space-48);
  box-shadow: var(--shadow-md);
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.featured-category {
  background: var(--color-primary);
  color: white;
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
}

.featured-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-16);
  line-height: 1.2;
}

.featured-excerpt {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  line-height: 1.6;
}

.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-24);
}

.featured-author {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-text-secondary);
}

.author-avatar {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.featured-stats {
  display: flex;
  gap: var(--space-16);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-btn {
  align-self: flex-start;
}

.featured-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--color-bg-3);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.loading-placeholder {
  font-size: 3rem;
  color: var(--color-text-tertiary);
}

/* Blog Search */
.blog-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-32);
}

.search-input-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.blog-search-input {
  width: 100%;
  padding: var(--space-12) var(--space-16) var(--space-12) 48px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-base);
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: var(--space-16);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

/* Blog Categories */
.blog-categories {
  display: flex;
  gap: var(--space-12);
  margin-bottom: var(--space-32);
  flex-wrap: wrap;
  justify-content: center;
}

/* Lead Metrics Styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
  margin-bottom: var(--space-32);
}

.metric-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--space-20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.metric-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-12);
}

.metric-icon {
  font-size: 1.5rem;
  margin-right: var(--space-12);
}

.metric-info h4 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.metric-info p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.conversion-metrics {
  margin-bottom: var(--space-32);
}

.conversion-metrics h4 {
  margin-bottom: var(--space-16);
  color: var(--color-text-primary);
}

.metrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-16);
}

.metrics-header h4 {
  margin: 0;
}

.info-button {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.info-button:hover {
  background: var(--color-primary-dark);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

.info-button svg {
  width: 16px;
  height: 16px;
}

.conversion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
}

.conversion-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--space-20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.3s ease;
}

.conversion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.conversion-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.conversion-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: var(--space-8);
}

.conversion-description {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-4);
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-sources {
  margin-bottom: var(--space-32);
}

.lead-sources h4 {
  margin-bottom: var(--space-16);
  color: var(--color-text-primary);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-16);
}

.source-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: var(--space-20);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.source-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.source-icon {
  font-size: 1.5rem;
  margin-right: var(--space-12);
}

.source-info {
  flex: 1;
}

.source-name {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.source-count {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
}

.section-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-base);
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

/* Info Modal Styles */
.info-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.info-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.info-modal-content {
  background: white;
  border-radius: var(--border-radius-lg);
  max-width: 1000px;
  width: 98%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-24);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.info-modal-header h3 {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.info-modal-close {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 2px solid white !important;
  color: white !important;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
}

.info-modal-close:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1);
  border-color: #ff6b6b !important;
}

.info-modal-body {
  padding: var(--space-24);
}

.info-section {
  margin-bottom: var(--space-24);
}

.info-section h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-12);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.info-section p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.pipeline-simple {
  margin: var(--space-24) 0;
  padding: var(--space-24);
  background: #f8fafc;
  border-radius: var(--border-radius-lg);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
}

.pipeline-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-16);
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16);
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  transition: all 0.3s ease;
}

.pipeline-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.step-new {
  background: #3b82f6;
}

.step-contacted {
  background: #8b5cf6;
}

.step-qualified {
  background: #f59e0b;
}

.step-converted {
  background: #10b981;
}

.step-closed {
  background: #ef4444;
}

.step-info {
  flex: 1;
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.step-desc {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: bold;
}

.flow-split {
  display: flex;
  gap: var(--space-24);
  margin: var(--space-8) 0;
}

.split-arrow-left,
.split-arrow-right {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: bold;
}

.pipeline-final {
  display: flex;
  gap: var(--space-16);
  margin-top: var(--space-8);
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.step-success {
  border-left: 4px solid #10b981;
}

.step-danger {
  border-left: 4px solid #ef4444;
}

.pipeline-formula {
  background: var(--color-background-light);
  padding: var(--space-16);
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--color-primary);
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  text-align: center;
  margin-top: var(--space-16);
}

.rate-explanation {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.rate-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-12);
  background: var(--color-background-light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
}

.rate-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.rate-formula {
  font-family: 'Courier New', monospace;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
}

.rate-meaning {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-style: italic;
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantages-list li {
  padding: var(--space-8) 0;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.interpretation-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.interpretation-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.color-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-indicator.success {
  background: var(--color-success);
}

.color-indicator.warning {
  background: var(--color-warning);
}

.color-indicator.danger {
  background: var(--color-danger);
}

.interpretation-text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Responsive adjustments for info modal */
@media (max-width: 768px) {
  .info-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .info-modal-header {
    padding: var(--space-16);
  }

  .info-modal-body {
    padding: var(--space-16);
  }

  .rate-item {
    padding: var(--space-8);
  }

  .pipeline-simple {
    padding: var(--space-16);
    margin: var(--space-16) 0;
  }

  .pipeline-step {
    min-width: 180px;
    padding: var(--space-12);
  }

  .pipeline-final {
    flex-direction: column;
    gap: var(--space-16);
    justify-content: center;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }

  .step-title {
    font-size: var(--font-size-base);
  }

  .step-desc {
    font-size: var(--font-size-xs);
  }

  .flow-split {
    gap: var(--space-16);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .conversion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .conversion-value {
    font-size: 1.5rem;
  }
}

.category-btn {
  padding: var(--space-8) var(--space-16);
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.category-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Blog Category Badge */
.blog-category {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-right: var(--space-8);
}

/* Blog Grid Modern */
.blog-grid-modern {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32);
  margin-bottom: var(--space-48);
}

.blog-card-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.blog-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card-modern:hover::before {
  opacity: 1;
}

.blog-card-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Novo header quando não usamos imagem */
.blog-card--noimage .blog-card-image {
  display: none;
}

.blog-card--noimage .blog-card-header {
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: relative;
}

.blog-card--noimage .blog-card-meta {
  margin: 0;
  color: white;
}

.blog-card--noimage .blog-card-date {
  color: white;
  font-weight: 500;
}

.blog-card--noimage .blog-card-views-inline {
  color: rgba(255, 255, 255, 0.8);
}

.blog-card--noimage .blog-card-category-badge {
  position: static;
  margin: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  box-shadow: none;
  animation: none;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  opacity: 0.9;
}

.blog-card-category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.blog-card--noimage .blog-card-icon {
  display: none;
}

.blog-card-icon {
  font-size: 4rem;
  opacity: 0.3;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.blog-card-modern:hover .blog-card-icon {
  opacity: 0.6;
  transform: scale(1.1);
}

.blog-card-content {
  padding: 28px 28px 0 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  gap: var(--space-16);
  margin-bottom: var(--space-16);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.blog-card-date,
.blog-card-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.blog-card-date svg,
.blog-card-views svg {
  opacity: 0.7;
}

/* Blog card views inline (after date) */
.blog-card-views-inline {
  margin-left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-card-views-inline svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.blog-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-16);
  line-height: 1.4;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
  flex-grow: 0;
}

.blog-card-modern:hover .blog-card-title {
  color: var(--color-primary);
}

.blog-card-excerpt {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-12);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

.blog-card-author {
  display: flex !important;
  align-items: center;
  gap: var(--space-8);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.blog-card-author svg {
  opacity: 0.7;
}

.read-more-btn {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  cursor: pointer;
}

.read-more-btn:hover {
  background: var(--color-primary-dark);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.read-more-btn svg {
  transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
  transform: translateX(2px);
}

/* Animations and Effects */
@keyframes cardFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-2px);
  }
}

.blog-card-modern {
  animation: cardFloat 6s ease-in-out infinite;
}

.blog-card-modern:nth-child(2n) {
  animation-delay: -2s;
}

.blog-card-modern:nth-child(3n) {
  animation-delay: -4s;
}

/* Gradient backgrounds for different categories */
.blog-card-modern[data-category="Geral"] .blog-card-image {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-modern[data-category="Dicas"] .blog-card-image {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-card-modern[data-category="Mercado"] .blog-card-image {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.blog-card-modern[data-category="Notícias"] .blog-card-image {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.blog-card-modern[data-category="Investimento"] .blog-card-image {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.blog-card-modern[data-category="Curiosidades"] .blog-card-image {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

/* Pulse effect for category badge */
.blog-card-category-badge {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  50% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  }

  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
}

/* Loading States */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-48);
  color: var(--color-text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-16);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Blog Actions */
.blog-actions {
  text-align: center;
  margin-top: var(--space-32);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
}

@media (max-width: 768px) {
  .featured-article {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .blog-grid-modern {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .blog-card-modern {
    margin: 0 var(--space-16);
  }

  .blog-card-content {
    padding: 24px;
  }

  .blog-card-title {
    font-size: 1.25rem;
  }

  .blog-categories {
    justify-content: center;
  }
}

.data-table th.sortable:hover {
  background-color: var(--color-bg-2);
}

.data-table th.sortable .sort-arrow {
  position: absolute;
  right: var(--space-12);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.data-table th.sortable:hover .sort-arrow {
  opacity: 1;
}

.data-table th.sort-asc .sort-arrow::after {
  content: '↑';
  color: var(--color-primary);
}

.data-table th.sort-desc .sort-arrow::after {
  content: '↓';
  color: var(--color-primary);
}

.data-table th.sort-asc .sort-arrow,
.data-table th.sort-desc .sort-arrow {
  opacity: 1;
}

/* Force clickable headers */
.data-table th.sortable * {
  pointer-events: none !important;
}

.data-table th.sortable {
  pointer-events: auto !important;
}

.admin-table td {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border);
  vertical-align: middle;
}

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

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Action Buttons */
.table-actions .btn--save {
  background: #10b981;
  color: white;
  border: 1px solid #10b981;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: var(--space-8);
}

.table-actions .btn--save:hover {
  background: #059669;
  border-color: #059669;
  transform: translateY(-1px);
}

.table-actions .btn--cancel {
  background: #6b7280;
  color: white;
  border: 1px solid #6b7280;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: var(--space-8);
}

.table-actions .btn--cancel:hover {
  background: #4b5563;
  border-color: #4b5563;
  transform: translateY(-1px);
}

.table-actions .btn--delete {
  background: #ef4444;
  color: white;
  border: 1px solid #ef4444;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-actions .btn--delete:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.table-actions .btn--edit {
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: var(--space-8);
}

.table-actions .btn--edit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.table-actions {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.table-actions .btn {
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-xs);
}

.edit-input {
  background: transparent;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  width: 100%;
  max-width: 200px;
}

.edit-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
}

.usage-count {
  background: var(--color-bg-1);
  color: var(--color-text-secondary);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.usage-count.zero {
  background: var(--color-bg-2);
  color: var(--color-text-muted);
}

/* Activity List Items */
.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-card-border);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
}

.activity-content h4 {
  color: var(--color-text);
  margin: 0 0 var(--space-4) 0;
  font-size: var(--font-size-sm);
}

.activity-content p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: var(--font-size-xs);
}

/* Responsive Design for Admin */
@media (max-width: 1024px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1002;
    /* Maior que o botão (1001) para ficar por cima */
    width: 280px;
    transition: left var(--duration-normal) var(--ease-standard);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .sidebar.open {
    left: 0;
  }

  /* Overlay for mobile sidebar */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-standard);
  }

  .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* Hide creation date column on mobile */
  .hide-mobile {
    display: none !important;
  }

  .dashboard-grid,
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: var(--space-16);
  }

  .app-header {
    padding: var(--space-12) var(--space-16);
  }

  .header-left h1 {
    font-size: var(--font-size-lg);
  }

  .sidebar-toggle {
    display: flex !important;
    /* Mostrar apenas no mobile */
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Team Member Cards */
/* Team Member Card - New Design */
.card {
  width: 280px;
  height: 280px;
  background: white;
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: #604b4a30 0px 70px 30px -50px;
  transition: all 0.5s ease-in-out;
}

.card .mail {
  position: absolute;
  right: 2rem;
  top: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.card .mail svg {
  stroke: #21808D;
  stroke-width: 3px;
}

.card .mail svg:hover {
  stroke: #1A6873;
}

.card .profile-pic {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid #21808D;
  overflow: hidden;
  transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.card .profile-pic img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  object-position: 0px 0px;
  transition: all 0.5s ease-in-out 0s;
}

.card .profile-pic svg {
  width: 50%;
  height: 50%;
  object-fit: cover;
  object-position: 0px 0px;
  transform-origin: 45% 20%;
  transition: all 0.5s ease-in-out 0s;
  fill: #ccc;
}

.card .bottom {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: #21808D;
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(33, 128, 141, 0.1882352941) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.card .bottom .content {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 3.5rem;
  overflow: hidden;
}

.card .bottom .content .name {
  display: block;
  font-size: 1rem;
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.card .bottom .content .about-me {
  display: block;
  font-size: 0.85rem;
  color: white;
  margin-top: 0.5rem;
  line-height: 1.4;
  max-height: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  display: box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  box-orient: vertical;
}

.card .bottom .bottom-bottom {
  position: absolute;
  bottom: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card .bottom .bottom-bottom .member-name-bottom {
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
}

.card .bottom .bottom-bottom .social-links-container {
  display: flex;
  gap: 1rem;
}

.card .bottom .bottom-bottom .social-links-container svg {
  height: 20px;
  fill: white;
  filter: drop-shadow(0 5px 5px rgba(33, 128, 141, 0.1333333333));
  transition: all 0.3s ease;
}

.card .bottom .bottom-bottom .social-links-container svg:hover {
  fill: #1A6873;
  transform: scale(1.2);
}

.card .bottom .bottom-bottom .button {
  background: white;
  color: #21808D;
  border: none;
  border-radius: 20px;
  font-size: 0.6rem;
  padding: 0.4rem 0.6rem;
  box-shadow: rgba(33, 128, 141, 0.1333333333) 0px 5px 5px 0px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card .bottom .bottom-bottom .button:hover {
  background: #1A6873;
  color: white;
}

.card:hover {
  border-top-left-radius: 55px;
}

.card:hover .bottom {
  top: 20%;
  border-radius: 80px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.card:hover .bottom .content {
  top: 3.25rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  transition: top 0.3s ease;
}

.card:hover .bottom .content::-webkit-scrollbar {
  width: 6px;
}

.card:hover .bottom .content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
}

.card:hover .bottom .content::-webkit-scrollbar-track {
  background: transparent;
}

.card:hover .bottom .content .about-me {
  max-height: none;
  overflow: visible;
  text-overflow: initial;
  display: block;
  white-space: normal;
  word-break: break-word;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: initial;
  box-orient: initial;
}

.card:hover .profile-pic {
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  z-index: 3;
  border: 7px solid #21808D;
  box-shadow: rgba(33, 128, 141, 0.1882352941) 0px 5px 5px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.card:hover .profile-pic:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.card:hover .profile-pic img {
  transform: scale(2.5);
  object-position: 0px 25px;
  transition: all 0.5s ease-in-out 0.5s;
}

.card:hover .profile-pic svg {
  transform: scale(2.5);
  transition: all 0.5s ease-in-out 0.5s;
}

/* Advanced Property Filter - Modern Design */
.advanced-filter {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: none;
  border-radius: 16px;
  padding: 0;
  margin-bottom: var(--space-24);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  position: relative;
}

.advanced-filter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
  border-radius: 20px 20px 0 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.filter-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 1px;
}

.filter-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.filter-title::before {
  content: '🔍';
  font-size: var(--font-size-lg);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.filter-toggle {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-10) var(--space-16);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  min-width: 140px;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--duration-normal) var(--ease-standard);
}

.filter-toggle:hover {
  background: var(--color-secondary-hover);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-toggle:hover::before {
  left: 100%;
}

.filter-toggle .icon {
  transition: transform var(--duration-normal) var(--ease-standard);
  font-size: var(--font-size-sm);
}

.filter-toggle.expanded .icon {
  transform: rotate(180deg);
}

.filter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  gap: var(--space-12);
  padding: var(--space-12);
  max-height: 0;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(248, 250, 252, 0.4) 100%);
  align-items: start;
}

/* Filter grid layout for admin (2 columns) */
.filter-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}


.filter-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-self: start;
}

/* Characteristics section with scroll if needed */
.filter-section-characteristics .filter-checkbox-group {
  max-height: 120px;
  overflow-y: auto;
}

/* Grid positioning for proper alignment (OLD - kept for compatibility) */
.filter-section:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.filter-section:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.filter-section:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

.filter-section:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.filter-section:nth-child(5) {
  grid-column: 1;
  grid-row: 2;
}

.filter-section:nth-child(6) {
  grid-column: 1;
  grid-row: 4;
}

.filter-section:nth-child(7) {
  grid-column: 2;
  grid-row: 3 / 6;
}

.filter-section:nth-child(8) {
  grid-column: 1;
  grid-row: 5;
}


/* Remove specific heights - let cards flow naturally */

.filter-content.expanded {
  max-height: none;
}


.filter-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all var(--duration-fast) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary), var(--color-primary-light));
  border-radius: 16px 16px 0 0;
}

.filter-section:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.05);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.filter-section-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.1);
  position: relative;
}

.filter-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.filter-row {
  display: flex;
  gap: var(--space-12);
  align-items: end;
}

.filter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}

.filter-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.filter-input {
  padding: var(--space-14) var(--space-16);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  font-size: var(--font-size-sm);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  transition: all var(--duration-fast) var(--ease-standard);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
}

.filter-input::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 4px rgba(var(--color-primary-rgb), 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  background: white;
  transform: translateY(-1px);
}

.filter-input:hover {
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.filter-select {
  padding: var(--space-14) var(--space-16);
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  font-size: var(--font-size-sm);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 4px rgba(var(--color-primary-rgb), 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
  background-color: white;
  transform: translateY(-1px);
}

.filter-select:hover {
  border-color: rgba(var(--color-primary-rgb), 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.filter-checkbox-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-height: 120px;
  overflow-y: auto;
  padding: var(--space-8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.filter-checkbox-group::-webkit-scrollbar {
  width: 6px;
}

.filter-checkbox-group::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.3);
  border-radius: 3px;
}

.filter-checkbox-group::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-8) var(--space-12);
  border-radius: 8px;
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  background: rgba(255, 255, 255, 0.5);
}

.filter-checkbox:hover {
  background: rgba(var(--color-primary-rgb), 0.05);
  border-color: rgba(var(--color-primary-rgb), 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  border-radius: 4px;
}

.filter-checkbox input[type="checkbox"]:checked {
  background: var(--color-primary);
}

.filter-checkbox label {
  margin: 0;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  color: var(--color-text);
}

.filter-checkbox input[type="checkbox"]:checked+label {
  color: var(--color-primary);
  font-weight: 600;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding: var(--space-12);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.6) 100%);
  border-radius: 0 0 16px 16px;
  position: relative;
}

.filter-actions::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  border-radius: 1px;
}

.filter-results-count {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  background: rgba(var(--color-primary-rgb), 0.05);
  border-radius: 50px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.filter-results-count::before {
  content: '📊';
  font-size: var(--font-size-sm);
}

.filter-buttons {
  display: flex;
  gap: var(--space-12);
  align-items: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 1px solid;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  text-decoration: none;
  min-width: 120px;
  gap: var(--space-6);
}

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

.filter-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary);
}

.filter-btn--primary:hover:not(:disabled) {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.filter-btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
  border-color: var(--color-border);
}

.filter-btn--secondary:hover:not(:disabled) {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-border);
  transform: translateY(-1px);
}

.filter-btn--clear {
  background-color: #6b7280;
  color: white;
  border-color: #6b7280;
}

.filter-btn--clear:hover:not(:disabled) {
  background-color: #4b5563;
  border-color: #4b5563;
  transform: translateY(-1px);
}

/* Filter collapsed state */
.advanced-filter.collapsed .filter-content {
  display: none;
}

.advanced-filter.collapsed .filter-actions {
  display: none;
}

.advanced-filter.collapsed {
  padding-bottom: 0;
}

.advanced-filter.collapsed .filter-header {
  border-radius: 20px;
  border-bottom: none;
}

/* Admin route overrides */
html.admin-route #publicPage {
  display: none !important;
}

html.admin-route #mobileOverlay {
  display: none !important;
}

html.admin-route:not(.admin-auth) #loginPage {
  display: flex !important;
}

html.admin-route:not(.admin-auth) #app {
  display: none !important;
}

html.admin-route.admin-auth #loginPage {
  display: none !important;
}

html.admin-route.admin-auth #app {
  display: block;
}

/* Mobile responsive for filters */
@media (max-width: 768px) {
  .advanced-filter {
    margin: 0 var(--space-12) var(--space-32);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: visible;
    padding-bottom: var(--space-16);
  }

  .filter-header {
    padding: var(--space-16);
    flex-direction: column;
    gap: var(--space-12);
    text-align: center;
  }

  /* Reset text alignment for form elements */
  .filter-content {
    text-align: left;
  }

  /* Force all form elements to be left-aligned */
  .filter-section,
  .filter-section * {
    text-align: left !important;
  }

  /* Ensure all filter elements take full width */
  .filter-section .filter-row,
  .filter-section .filter-group,
  .filter-section .filter-group label,
  .filter-section .filter-group select,
  .filter-section .filter-group input {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Specific overrides for form elements */
  .filter-section input,
  .filter-section select,
  .filter-section label,
  .filter-section .filter-group,
  .filter-section .filter-row,
  .filter-section .filter-group label,
  .filter-section .filter-group input,
  .filter-section .filter-group select {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  /* Force specific elements that might be inheriting center alignment */
  .filter-section .filter-group label {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .filter-section .filter-group input,
  .filter-section .filter-group select {
    text-align: left !important;
    text-align-last: left !important;
  }

  /* Keep section titles centered but override for content */
  .filter-section-title {
    text-align: center !important;
  }

  .filter-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
  }

  .filter-toggle {
    padding: var(--space-12) var(--space-20);
    font-size: var(--font-size-base);
    border-radius: 12px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 500;
  }

  .filter-content {
    grid-template-columns: 1fr !important;
    grid-template-rows: none !important;
    gap: var(--space-16);
    padding: var(--space-16) var(--space-16) var(--space-24);
    overflow: visible;
    min-height: auto;
  }


  /* Reset all specific grid positioning for mobile */
  .filter-section {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: var(--space-16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-8);
    overflow: visible;
  }

  /* Ensure sorting section is always visible */
  .filter-section:last-child {
    margin-bottom: var(--space-16);
  }

  .filter-section-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }

  .filter-row {
    flex-direction: column;
    gap: var(--space-12);
    width: 100%;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
  }

  .filter-group label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
  }

  .filter-input,
  .filter-select {
    padding: var(--space-12);
    font-size: var(--font-size-base);
    border-radius: 8px;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    transition: all 0.2s ease;
    text-align: left !important;
    text-align-last: left !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .filter-input:focus,
  .filter-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
  }

  .filter-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    padding: var(--space-8);
    max-height: 180px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .filter-checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-8);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
  }

  .filter-checkbox-group label:hover {
    background: rgba(99, 102, 241, 0.05);
  }

  .filter-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
  }

  .filter-actions {
    flex-direction: column;
    gap: var(--space-16);
    align-items: stretch;
    padding: var(--space-16);
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    border-top: 3px solid var(--color-primary);
  }

  .filter-results-count {
    text-align: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: 8px;
    border: 1px solid var(--color-border);
  }

  .filter-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
  }

  .filter-btn {
    width: 100%;
    min-width: auto;
    padding: var(--space-14) var(--space-20);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
  }

  .filter-btn--primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
  }

  .filter-btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }

  .filter-btn--clear {
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-border);
  }

  .filter-btn--clear:hover {
    background: var(--color-danger-light);
    color: var(--color-danger);
    border-color: var(--color-danger);
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .advanced-filter {
    margin: 0 var(--space-8) var(--space-24);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding-bottom: var(--space-12);
  }

  .filter-header {
    padding: var(--space-12);
    gap: var(--space-8);
  }

  .filter-content {
    text-align: left;
  }

  /* Force all form elements to be left-aligned */
  .filter-section,
  .filter-section * {
    text-align: left !important;
  }

  /* Ensure all filter elements take full width */
  .filter-section .filter-row,
  .filter-section .filter-group,
  .filter-section .filter-group label,
  .filter-section .filter-group select,
  .filter-section .filter-group input {
    width: 100% !important;
    box-sizing: border-box;
  }

  /* Specific overrides for form elements */
  .filter-section input,
  .filter-section select,
  .filter-section label,
  .filter-section .filter-group,
  .filter-section .filter-row,
  .filter-section .filter-group label,
  .filter-section .filter-group input,
  .filter-section .filter-group select {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  /* Force specific elements that might be inheriting center alignment */
  .filter-section .filter-group label {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .filter-section .filter-group input,
  .filter-section .filter-group select {
    text-align: left !important;
    text-align-last: left !important;
  }

  /* Keep section titles centered but override for content */
  .filter-section-title {
    text-align: center !important;
  }

  .filter-title {
    font-size: var(--font-size-base);
  }

  .filter-toggle {
    padding: var(--space-10) var(--space-16);
    font-size: var(--font-size-sm);
  }

  .filter-content {
    padding: var(--space-12) var(--space-12) var(--space-20);
    gap: var(--space-12);
    grid-template-columns: 1fr !important;
    overflow: visible;
    min-height: auto;
    grid-template-rows: none !important;
  }


  /* Ensure single column layout for very small screens */
  .filter-section {
    grid-column: 1 !important;
    grid-row: auto !important;
    padding: var(--space-12);
    border-radius: 10px;
    margin-bottom: var(--space-6);
    overflow: visible;
  }

  /* Ensure sorting section is always visible */
  .filter-section:last-child {
    margin-bottom: var(--space-12);
  }

  .filter-section-title {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
  }

  .filter-group {
    gap: var(--space-4);
    width: 100%;
  }

  .filter-group label {
    font-size: var(--font-size-xs);
    text-align: left;
  }

  .filter-input,
  .filter-select {
    padding: var(--space-10);
    font-size: var(--font-size-sm);
    border-radius: 6px;
    text-align: left !important;
    text-align-last: left !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .filter-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-8);
    max-height: 180px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .filter-checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-text);
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    text-align: left;
  }

  .filter-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }

  .filter-actions {
    padding: var(--space-12);
    gap: var(--space-12);
  }

  .filter-btn {
    padding: var(--space-12) var(--space-16);
    font-size: var(--font-size-sm);
  }
}

/* Medium mobile screens - prevent overlap */
@media (max-width: 600px) {
  .advanced-filter {
    margin-bottom: var(--space-40);
    padding-bottom: var(--space-20);
  }

  .filter-content {
    padding-bottom: var(--space-32);
  }

  .filter-actions {
    margin-top: var(--space-20);
    padding-bottom: var(--space-20);
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .filter-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-8);
    max-height: 180px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .filter-section {
    padding: var(--space-10);
  }

  .filter-content {
    padding: var(--space-12);
    gap: var(--space-10);
  }
}

/* Admin mode layout - 10 sections */
.advanced-filter.admin-mode .filter-content {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto auto auto;
}

.advanced-filter.admin-mode .filter-section:nth-child(1) {
  /* Pesquisa */
  grid-column: 1;
  grid-row: 1;
}

.advanced-filter.admin-mode .filter-section:nth-child(2) {
  /* Informações Básicas */
  grid-column: 2;
  grid-row: 1;
}

.advanced-filter.admin-mode .filter-section:nth-child(3) {
  /* Preço */
  grid-column: 1;
  grid-row: 2;
}

.advanced-filter.admin-mode .filter-section:nth-child(5) {
  /* Área */
  grid-column: 1;
  grid-row: 3;
}

.advanced-filter.admin-mode .filter-section:nth-child(6) {
  /* Estatísticas */
  grid-column: 1;
  grid-row: 4;
}

.advanced-filter.admin-mode .filter-section:nth-child(7) {
  /* Data de Criação */
  grid-column: 2;
  grid-row: 2;
}

.advanced-filter.admin-mode .filter-section:nth-child(8) {
  /* Agente */
  grid-column: 1;
  grid-row: 5;
}

.advanced-filter.admin-mode .filter-section:nth-child(9) {
  /* Características */
  grid-column: 2;
  grid-row: 4 / 7;
}

.advanced-filter.admin-mode .filter-section:nth-child(10) {
  /* Ordenação */
  grid-column: 1;
  grid-row: 6;
}

/* Enhanced Property Cards */
.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-xs);
}

/* Admin Property Cards - Consistent with main property cards */
.admin-property-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  padding: var(--space-20);
  margin-bottom: var(--space-16);
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

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

.admin-property-card h3 {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: 0;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.admin-property-card p {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.admin-property-card .property-actions {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.admin-property-card .property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-8);
}

.admin-property-card .property-title {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.admin-property-card .featured-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-warning-light);
  color: var(--color-warning);
  font-size: 14px;
  box-shadow: var(--shadow-xs);
}

.admin-property-card .property-price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  white-space: nowrap;
}

.admin-property-card .property-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.admin-property-card .property-type-info {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.admin-property-card .property-type-badge {
  background: var(--color-bg-1);
  color: var(--color-primary);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.admin-property-card .property-reference-badge {
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.2px;
  background: rgba(33, 128, 141, 0.12);
  color: var(--color-primary);
}

.admin-property-card .property-location {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.admin-property-card .property-sold-date {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.admin-property-card .sold-icon {
  font-size: var(--font-size-sm);
}

.admin-property-card .property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

.admin-property-card .spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.admin-property-card .spec-icon {
  font-size: var(--font-size-sm);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.property-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-sm);
}

.property-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-1);
  font-size: var(--font-size-4xl);
  color: var(--color-text-secondary);
}

.property-price-badge {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-md);
}

.featured-badge {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  background: var(--color-warning);
  color: var(--color-white);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  box-shadow: var(--shadow-md);
}

.sold-badge {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  background: #ef4444;
  color: var(--color-white);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.property-image .featured-badge+.sold-badge {
  top: calc(var(--space-12) + 2.5rem);
}

.property-card.sold .featured-badge {
  display: none;
}

.property-card.sold {
  opacity: 0.7;
  position: relative;
}

.property-card.sold::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
}

.property-card.sold .btn.disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.property-content {
  padding: var(--space-20);
}

.property-reference-badge {
  padding: var(--space-4) var(--space-10);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.2px;
  background: rgba(33, 128, 141, 0.12);
  color: var(--color-primary);
}

.property-location {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-12);
}

.location-icon {
  font-size: var(--font-size-sm);
}

.property-type-info {
  margin-bottom: var(--space-16);
}

.property-type-badge {
  display: inline-block;
  background: var(--color-bg-1);
  color: var(--color-primary);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

/* Status badges with colors */
.status-badge {
  display: inline-block;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.status-badge.active,
.status-badge.active.status-badge {
  background: rgba(33, 128, 141, 0.1);
  color: #21808d;
}

.status-badge.inactive,
.status-badge.inactive.status-badge {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.status-badge.sold,
.status-badge.sold.status-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.spec-icon {
  font-size: var(--font-size-sm);
}

.property-actions {
  display: flex;
  gap: var(--space-8);
  position: relative;
  z-index: 2;
  /* Ensure actions are above any overlays */
}

.property-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  position: relative;
  z-index: 2;
  /* Ensure button is above any overlays */
  pointer-events: auto !important;
  /* Ensure buttons are always clickable */
}

/* Mobile responsiveness for property cards */
@media (max-width: 768px) {
  .property-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .property-specs {
    flex-direction: column;
    gap: var(--space-8);
  }

  .property-actions {
    flex-direction: column;
  }
}

/* Property Details Page */
.property-details-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-background);
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.property-details-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-24);
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ===== HEADER DA PÁGINA DE DETALHES - DESIGN MODERNO ===== */

.property-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 16px;
  border: 1px solid rgba(74, 144, 226, 0.1);
  backdrop-filter: blur(10px);
  gap: var(--space-16);
}

.header-navigation {
  flex: 1;
}

.header-status {
  min-width: 160px;
  text-align: center;
}

.property-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.18);
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.2));
  color: #0f766e;
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.property-status-badge.sold {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.22));
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.18);
}

.property-status-badge.sold::before {
  content: '🏠';
  font-size: 1.05rem;
}

.property-status-badge.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.22));
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.property-status-badge.active::before {
  content: '✨';
  font-size: 1.05rem;
}

.property-status-badge.inactive {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.12), rgba(156, 163, 175, 0.22));
  color: #4b5563;
  border-color: rgba(156, 163, 175, 0.35);
  box-shadow: 0 12px 24px rgba(156, 163, 175, 0.18);
}

.property-status-badge.inactive::before {
  content: '⏳';
  font-size: 1.05rem;
}

.property-status-badge.reserved::before {
  content: '📌';
  font-size: 1.05rem;
}

.property-status-badge.reserved {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.22));
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.18);
}

.property-status-badge.hidden {
  display: none;
}

.header-navigation {
  flex: 1;
}

/* Botão Voltar - Alinhado com design do site */
#backToPropertiesBtn {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
  transition: all 0.3s ease;
}

#backToPropertiesBtn:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.4);
}

#backToPropertiesBtn svg {
  transition: transform 0.3s ease;
}

#backToPropertiesBtn:hover svg {
  transform: translateX(-3px);
}

/* Ações do Header */
.header-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-action:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

.btn-action svg {
  transition: transform 0.3s ease;
}

.btn-action:hover svg {
  transform: scale(1.1);
}

/* Botão Partilhar */
.btn-share:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

/* Responsividade do Header */
@media (max-width: 768px) {
  .property-details-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .header-navigation {
    width: 100%;
  }

  #backToPropertiesBtn {
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-action {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
}

.property-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-bottom: var(--space-32);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.property-details-layout>* {
  min-width: 0;
  /* Prevent grid items from overflowing */
}

/* Image Carousel */
.property-images-section {
  position: sticky;
  top: var(--space-24);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  min-width: 0;
  /* Prevent grid item from overflowing */
  max-width: 100%;
}

.image-carousel {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.carousel-track {
  display: flex;
  transition: transform var(--duration-normal) var(--ease-standard);
  height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.carousel-slide {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  background-color: var(--color-bg-1);
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(var(--color-white), 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast) var(--ease-standard);
}

.carousel-btn:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn--prev {
  left: var(--space-16);
}

.carousel-btn--next {
  right: var(--space-16);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-16);
  background: var(--color-surface);
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}

.carousel-indicator.active {
  background: var(--color-primary);
}

/* Lightbox Styles */
.property-image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.property-image-lightbox:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: var(--space-24);
  box-sizing: border-box;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.lightbox-image:hover {
  transform: scale(1.02);
}

.lightbox-info {
  margin-top: var(--space-16);
  color: var(--color-white);
  text-align: center;
}

.lightbox-counter {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.5);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-full);
}

.lightbox-close {
  position: absolute;
  top: var(--space-24);
  right: var(--space-24);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav--prev {
  left: var(--space-24);
}

.lightbox-nav--next {
  right: var(--space-24);
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
  .lightbox-container {
    padding: var(--space-16);
  }

  .lightbox-image {
    max-height: calc(90vh - 80px);
  }

  .lightbox-close {
    top: var(--space-16);
    right: var(--space-16);
    width: 40px;
    height: 40px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-nav--prev {
    left: var(--space-12);
  }

  .lightbox-nav--next {
    right: var(--space-12);
  }

  .lightbox-nav svg {
    width: 20px;
    height: 20px;
  }

  .lightbox-counter {
    font-size: var(--font-size-sm);
    padding: var(--space-6) var(--space-12);
  }
}

/* Property Info Section */
.property-info-section {
  width: 100%;
  min-width: 0;
  /* Prevent grid item from overflowing */
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.property-main-info {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
}

.property-details-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
  line-height: var(--line-height-tight);
}

.property-price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-16);
}

.property-price-large {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.property-reference-badge {
  background: rgba(33, 128, 141, 0.12);
  color: var(--color-primary);
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.property-location-info {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

.property-characteristics,
.property-specs-detailed,
.property-description {
  background: var(--color-surface);
  padding: var(--space-20);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  margin-bottom: var(--space-32);
}

.property-location-card {
  background: var(--color-surface);
  padding: var(--space-20);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  margin-bottom: var(--space-32);
  width: 100%;
  /* Card is outside the grid, so it spans full width */
}

.property-characteristics h3,
.property-specs-detailed h3,
.property-description h3,
.property-location-card h3 {
  color: var(--color-text);
  margin-bottom: var(--space-16);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.property-description p {
  margin-bottom: var(--space-12);
  line-height: 1.6;
  color: var(--color-text);
}

.property-description p:last-child {
  margin-bottom: 0;
}

.property-description p.description-spacing {
  margin-bottom: var(--space-8);
  margin-top: 0;
  min-height: 0;
  line-height: 0.5;
  height: var(--space-8);
}

.property-description-list {
  margin: var(--space-12) 0;
  padding-left: var(--space-24);
  list-style-type: disc;
  color: var(--color-text);
}

.property-description-list li {
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

/* Location Card Styles */
.location-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.location-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  flex: 1;
  min-width: 200px;
}

.location-label {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.location-coordinates {
  display: flex;
  gap: var(--space-12);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.location-type-badge {
  display: inline-block;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.location-type-badge.exact {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.location-type-badge.approximate {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.location-map-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-12);
}

.location-map-container iframe,
#propertyMapContainer,
#propertyMapDiv {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius-lg);
}

/* Leaflet map container styles */
#propertyMapContainer .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
}

/* Estilizar a atribuição do Leaflet para ficar mais discreta */
#propertyMapContainer .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#propertyMapContainer .leaflet-control-attribution a {
  color: var(--color-primary);
  text-decoration: none;
}

#propertyMapContainer .leaflet-control-attribution a:hover {
  text-decoration: underline;
}

.map-overlay-info {
  position: absolute;
  top: var(--space-12);
  left: var(--space-12);
  z-index: 1000;
  pointer-events: none;
}

.map-overlay-info .info-badge {
  display: inline-block;
  padding: var(--space-8) var(--space-12);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

/* Map overlay badge - top right corner */
.map-overlay-badge {
  position: absolute;
  top: var(--space-12);
  right: var(--space-12);
  z-index: 1000;
  pointer-events: none;
}

.map-overlay-badge .overlay-badge-text {
  display: inline-block;
  padding: var(--space-8) var(--space-12);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.map-overlay-badge--exact .overlay-badge-text {
  border-left: 3px solid #21808d;
}

.map-overlay-badge--approximate .overlay-badge-text {
  border-left: 3px solid #ff9800;
}

/* Custom marker styles */
.custom-marker-exact,
.custom-marker-approximate {
  background: transparent !important;
  border: none !important;
}

.marker-pin-exact,
.marker-pin-approximate {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.marker-pin-exact svg,
.marker-pin-approximate svg {
  width: 32px;
  height: 32px;
}

/* Leaflet popup styling */
#propertyMapContainer .leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

#propertyMapContainer .leaflet-popup-content {
  margin: var(--space-12);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

#propertyMapContainer .leaflet-popup-content strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
  .location-info {
    flex-direction: column;
  }

  .location-map-container iframe,
  #propertyMapContainer,
  #propertyMapDiv {
    height: 300px;
  }
}

.characteristics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-12);
}

.characteristic-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-12);
  background: var(--color-bg-1);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-16);
}

.spec-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-12);
  background: var(--color-bg-1);
  border-radius: var(--radius-sm);
}

.spec-detail-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.spec-detail-value {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.description-content {
  white-space: pre-wrap;
  /* Preserve whitespace and line breaks */
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
}

/* Loan Simulator */
.loan-simulator-section {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  margin-bottom: var(--space-32);
}

.loan-simulator-section h2 {
  color: var(--color-text);
  margin-bottom: var(--space-24);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  text-align: center;
}

.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
}

.simulator-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.simulator-card {
  background: var(--color-bg-1);
  padding: var(--space-20);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.simulator-card h3 {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-16);
  text-align: center;
}

.property-value-display {
  background: #e8e8e8;
  border: 2px solid #ccc;
  padding: var(--space-16);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  text-align: center;
  cursor: not-allowed;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.percentage-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  background: var(--color-surface);
  padding: var(--space-12);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.percentage-input-group .form-control {
  width: 80px;
  text-align: center;
  font-weight: var(--font-weight-bold);
}

.percentage-symbol {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.percentage-result {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-left: auto;
}

.percentage-result span {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
}

.simulator-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.simulator-results h3 {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  margin-bottom: var(--space-16);
}

.results-grid {
  display: grid;
  gap: var(--space-16);
}

.result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-12);
  transition: all var(--duration-fast) var(--ease-standard);
}

.result-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.result-card.highlight {
  background: var(--color-bg-1);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.result-icon {
  font-size: var(--font-size-2xl);
  width: 40px;
  text-align: center;
}

.result-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.result-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.result-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.result-card.highlight .result-value {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
}

/* ===== CARD DO CONSULTOR - DESIGN MODERNO ===== */

/* Header da Secção */
.agent-info-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.agent-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.agent-header-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.agent-header-content h2 {
  color: var(--color-text);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.agent-header-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Card Principal */
.agent-card {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.agent-card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  opacity: 0.1;
}

.agent-card-content {
  position: relative;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Perfil do Agente */
.agent-main-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.agent-profile {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 0;
}

.agent-avatar-wrapper {
  position: relative;
}

.agent-avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.agent-avatar:hover {
  transform: scale(1.05);
}

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

.agent-status-badge {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}

.agent-info {
  flex: 1;
  padding-top: 0.5rem;
}

.agent-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
}

.agent-position {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  margin: 0 0 0.75rem 0;
}

.agent-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-rating .stars {
  font-size: 1rem;
  letter-spacing: 2px;
}

.agent-rating .rating-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Secção de Contacto */
.agent-contact-section {
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.agent-contact-section .contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  min-width: 200px;
  max-width: 100%;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.agent-contact-section {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
}

.agent-contact-section .contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.contact-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
  transform: scale(1.1);
}

.contact-icon-wrapper.email {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.contact-icon-wrapper.phone {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.contact-icon-wrapper.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
}

.contact-details {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: visible;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  white-space: nowrap;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

/* Contact cards as links (like contact page) */
.agent-contact-section .contact-card--email,
.agent-contact-section .contact-card--whatsapp,
.agent-contact-section .contact-card--phone {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  min-width: auto;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.agent-contact-section .contact-card--email:hover {
  background: white;
  border-color: #f093fb;
  box-shadow: 0 8px 20px rgba(240, 147, 251, 0.2);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.agent-contact-section .contact-card--phone:hover {
  background: white;
  border-color: #667eea;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.agent-contact-section .contact-card--whatsapp:hover {
  background: white;
  border-color: #25D366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.agent-contact-section .contact-card--email:hover .contact-icon-wrapper,
.agent-contact-section .contact-card--whatsapp:hover .contact-icon-wrapper,
.agent-contact-section .contact-card--phone:hover .contact-icon-wrapper {
  transform: scale(1.1);
}

.agent-contact-section .contact-card--email .contact-value,
.agent-contact-section .contact-card--whatsapp .contact-value,
.agent-contact-section .contact-card--phone .contact-value {
  color: var(--color-text);
  font-weight: 500;
}

.agent-contact-section .contact-card--email:hover .contact-value,
.agent-contact-section .contact-card--whatsapp:hover .contact-value,
.agent-contact-section .contact-card--phone:hover .contact-value {
  color: var(--color-text);
}

/* Ações do Agente */
.agent-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.btn--large {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn--large svg {
  transition: transform 0.3s ease;
}

.btn--large:hover svg {
  transform: translateX(3px);
}

.btn--primary:hover svg {
  transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .agent-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .agent-avatar {
    width: 100px;
    height: 100px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .agent-actions {
    grid-template-columns: 1fr;
  }

  .agent-header-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .agent-header-content h2 {
    font-size: 1.4rem;
  }
}

/* Mobile Responsiveness for Property Details */
@media (max-width: 768px) {
  .property-details-layout {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .property-images-section {
    position: static;
  }

  .carousel-container {
    height: 300px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .carousel-track {
    width: 100%;
    max-width: 100%;
  }

  .carousel-slide {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }

  .simulator-container {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }

  .percentage-input-group {
    flex-direction: column;
    gap: var(--space-8);
    text-align: center;
  }

  .agent-card {
    flex-direction: column;
    text-align: center;
  }

  .agent-card-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .agent-main-info {
    flex-direction: column;
    text-align: center;
  }

  .agent-contact-section {
    width: 100%;
    flex-direction: column;
  }

  .contact-card--email,
  .contact-card--whatsapp {
    min-width: auto;
    width: 100%;
    flex: none;
  }

  .agent-actions {
    justify-content: center;
  }


  .input-group {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .input-group .form-control {
    min-width: auto;
  }

  .input-separator {
    display: none;
  }
}

/* ===== SIMULADOR DE CRÉDITO - ÍCONE DE INFORMAÇÃO ===== */

/* Header do Simulador com Ícone de Informação */
.simulator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.simulator-header h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
}

.info-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
  border: 3px solid white;
  position: relative;
  user-select: none;
}

.info-icon::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid rgba(74, 144, 226, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-icon:hover {
  background: linear-gradient(135deg, #357abd 0%, #2a5f8f 100%);
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 5px 20px rgba(74, 144, 226, 0.6);
}

.info-icon:hover::before {
  opacity: 1;
  animation: pulse-ring 1.5s ease-out infinite;
}

.info-icon:active {
  transform: scale(1.05);
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Modal de Informação */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.info-modal.show {
  opacity: 1;
  visibility: visible;
}

.info-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.info-modal.show .info-modal-content {
  transform: scale(1);
}

.info-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--primary-color);
  color: white;
  border-radius: 12px 12px 0 0;
}

.info-modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-modal-close {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 2px solid white !important;
  color: white !important;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.info-modal-close:hover {
  background: rgba(0, 0, 0, 0.5) !important;
  transform: scale(1.1);
  border-color: #ff6b6b !important;
}

.info-modal-body {
  padding: 1.5rem;
}

.info-modal-body h4 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-modal-body h4:first-child {
  margin-top: 0;
}

.formula-box {
  background: var(--light-bg);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.formula-box code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  background: none;
  padding: 0;
}

.formula-explanation {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.formula-explanation ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.formula-explanation li {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.calculation-steps {
  background: var(--light-bg);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.calculation-steps ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.calculation-steps li {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.note-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0 0 0;
}

.note-box p {
  margin: 0;
  color: #856404;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsividade do Modal e Ícone */
@media (max-width: 768px) {
  .simulator-header {
    margin-bottom: 1.5rem;
  }

  .simulator-header h2 {
    font-size: 1.4rem;
  }

  .info-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-width: 2px;
  }

  .info-modal-content {
    width: 95%;
    margin: 1rem;
  }

  .info-modal-header {
    padding: 1rem;
  }

  .info-modal-body {
    padding: 1rem;
  }

  .formula-box code {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .simulator-header h2 {
    font-size: 1.2rem;
  }

  .info-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

/* Investment Simulator Enhanced Results */
.result-values {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-row:last-child {
  border-bottom: none;
}

.result-period {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.result-row .result-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.result-card.highlight .result-row .result-value {
  color: var(--color-primary);
}

/* Responsive adjustments for enhanced results */
@media (max-width: 768px) {
  .result-values {
    gap: 0.25rem;
  }

  .result-row {
    padding: 0.2rem 0;
  }

  .result-period {
    font-size: 0.8rem;
  }

  .result-row .result-value {
    font-size: 0.85rem;
  }
}

/* Image Preview Styles */
.image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding: var(--space-12);
  background: var(--color-bg-1);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.image-preview-item {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: move;
  user-select: none;
}

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

.image-preview-item.dragging {
  opacity: 0.5;
  transform: rotate(5deg) scale(1.05);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.image-preview-item.drag-over {
  border-color: var(--color-primary);
  background: var(--color-bg-2);
}

.preview-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.preview-video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.remove-image-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 24px;
  height: 24px;
  background: var(--color-error);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-standard);
  box-shadow: var(--shadow-sm);
}

.remove-image-btn:hover {
  background: var(--color-red-400);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.video-preview {
  background: var(--color-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.video-preview::before {
  content: "▶";
  font-size: 24px;
  margin-right: var(--space-4);
  color: var(--color-primary);
}

.image-order-number {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-white);
  border-radius: var(--radius-full);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  z-index: 5;
}

.image-preview-item.loading {
  background: var(--color-bg-1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-item.loading::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Drag and Drop Visual Feedback */
.image-preview-container.drag-over {
  background: var(--color-bg-2);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
}

/* Form text styles */
.form-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  line-height: var(--line-height-normal);
}

/* File Upload Area Styles */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  text-align: center;
  background: var(--color-bg-1);
  transition: all var(--duration-normal) var(--ease-standard);
  cursor: pointer;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-upload-area:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.file-upload-area.dragover {
  border-color: var(--color-primary);
  background: var(--color-bg-3);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.upload-placeholder {
  pointer-events: none;
  width: 100%;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: var(--space-12);
  display: block;
  opacity: 0.6;
}

.upload-placeholder p {
  margin: var(--space-8) 0;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
}

.upload-placeholder small {
  color: var(--color-text-tertiary);
  font-size: var(--font-size-sm);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* File input styles */
input[type="file"] {
  padding: var(--space-8);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}

input[type="file"]:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-1);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

/* Mobile responsiveness for image preview */
@media (max-width: 768px) {
  .image-preview-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-8);
    padding: var(--space-8);
  }

  .preview-image,
  .preview-video {
    height: 100px;
  }

  .remove-image-btn {
    width: 20px;
    height: 20px;
    font-size: var(--font-size-xs);
  }
}

/* Error Modal Styles */
.error-modal {
  max-width: 500px;
  border-left: 4px solid var(--color-error);
}

.error-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  padding: var(--space-16);
  background: var(--color-bg-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-red-400);
}

.error-icon {
  font-size: var(--font-size-3xl);
  flex-shrink: 0;
  margin-top: var(--space-4);
}

.error-message {
  flex: 1;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
}

.error-message br {
  margin-bottom: var(--space-8);
}

/* Success Notification */
/* Notifications Container */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
}

/* Individual Notification */
.notification {
  position: relative;
  background: var(--color-success);
  color: white;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-12);
  max-width: 400px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* Notification Types */
.notification--success {
  background: var(--color-success);
}

.notification--error {
  background: var(--color-error);
}

.notification--warning {
  background: var(--color-warning);
}

.notification--info {
  background: var(--color-info);
}

/* Notification Content */
.notification-icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.notification-message {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: var(--font-size-lg);
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.notification-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Legacy support */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--color-success);
  color: white;
  padding: var(--space-16) var(--space-24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.notification-icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

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

/* Mobile responsiveness for error modal */
@media (max-width: 768px) {
  .error-modal {
    max-width: 90%;
    margin: var(--space-16);
  }

  .error-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-12);
  }

  .success-notification {
    right: var(--space-12);
    left: var(--space-12);
    max-width: none;
  }
}

/* ================================================= */
/* PHONE INPUT COMPONENT WITH COUNTRY SELECTOR      */
/* ================================================= */

.phone-input-wrapper {
  --phone-width: 100%;
  --phone-height: 50px;
  --phone-background: var(--color-surface);
  --phone-text-color: var(--color-text);
  --phone-border-color: var(--color-border);
  --phone-border-focus-color: var(--color-primary);
  --phone-shadow-color: rgba(0, 0, 0, 0.1);
  --phone-shadow-focus-color: var(--color-primary-rgb);
  --phone-dropdown-button-color: var(--color-gray-200);
  --phone-dropdown-button-hover-color: var(--color-teal-300);
}

.phone-input-wrapper *,
.phone-input-wrapper *::before,
.phone-input-wrapper *::after {
  box-sizing: border-box;
  color: var(--phone-text-color);
}

.phone-input-wrapper {
  width: var(--phone-width);
  height: var(--phone-height);
  display: inline-flex;
  border-radius: 10px;
  position: relative;
  border: 1px solid var(--phone-border-color);
  background-color: var(--phone-background);
  justify-content: space-between;
  padding-right: 10px;
  box-shadow: 0px 2px 5px 0px var(--phone-shadow-color);
  transition: 0.4s;
  user-select: none;
}

.phone-input-wrapper>input[type="radio"],
.phone-input-wrapper>input[type="checkbox"] {
  appearance: none;
  margin: 0;
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  left: -9999px;
}

.phone-dropdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 8px;
  cursor: pointer;
  border-radius: 9px 0 0 9px;
  background-color: var(--phone-dropdown-button-color);
  transition: background-color 0.2s;
  height: 100%;
  align-self: stretch;
  gap: 4px;
  flex-direction: row;
  flex-shrink: 0;
}

.phone-dropdown-container::before {
  content: "";
  font-size: 20px;
  background: none !important;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-dropdown-container::after {
  content: "";
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'24'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23494949'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6%209l6%206%206-6'%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  width: 16px;
  height: 16px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-select-wrapper {
  width: var(--phone-width);
  position: absolute;
  top: calc(var(--phone-height) + 5px);
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 1000;
}

.phone-select-wrapper ul {
  width: 100%;
  background-color: var(--phone-background);
  border-radius: 10px;
  padding: 10px;
  margin: 0;
  list-style: none;
  max-height: 300px;
  display: inline-flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  white-space: nowrap;
}

.phone-select-wrapper ul li {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.phone-select-wrapper ul li label {
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.phone-select-wrapper ul li:hover {
  background: var(--phone-dropdown-button-color);
}

.phone-select-wrapper ul li span {
  display: inline-block;
  margin-right: 15px;
  font-size: 20px;
}

.phone-input-container {
  width: 100%;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 2px;
  height: 100%;
}

.phone-input-container legend {
  font-size: 11px;
  color: var(--phone-text-color);
  opacity: 0.7;
}

.phone-input-container {
  width: 100%;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 2px;
  height: 100%;
}

.phone-input-container .phone-textfield {
  width: 100%;
  display: flex;
  align-items: center;
}

.phone-input-container .phone-textfield::before {
  content: "+351";
  margin-right: 5px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--phone-text-color);
}

.phone-input-container .phone-textfield input {
  width: 100%;
  font-size: 16px;
  outline: none;
  border: none;
  background: none;
  color: var(--phone-text-color);
}

.phone-invalid-msg {
  font-size: 12px;
  position: absolute;
  color: var(--color-red-500);
  top: calc(100% + 5px);
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

/* Actions */

.phone-input-wrapper input:invalid+.phone-textfield+.phone-invalid-msg,
.phone-input-wrapper .phone-textfield input:invalid~.phone-invalid-msg {
  opacity: 1;
  visibility: visible;
}

.phone-input-wrapper:focus-within {
  border-color: var(--phone-border-focus-color);
  box-shadow: 0px 2px 8px 0px rgba(var(--phone-shadow-focus-color), 0.3);
}

.phone-dropdown-container:hover {
  background-color: var(--phone-dropdown-button-hover-color);
}

.phone-dropdown-checkbox:checked~.phone-select-wrapper {
  top: calc(var(--phone-height) + 5px);
  opacity: 1;
  visibility: visible;
}

.phone-dropdown-checkbox:checked+.phone-dropdown-container::after {
  transform: rotate(180deg);
}

/* Country-specific styles */
.phone-input-wrapper input#phone-Portugal:checked~.phone-dropdown-container::before {
  content: "🇵🇹";
}

.phone-input-wrapper input#phone-Portugal:checked~.phone-select-wrapper li.phone-Portugal {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Portugal:checked~.phone-input-container .phone-textfield::before {
  content: "+351";
}

.phone-input-wrapper input#phone-Spain:checked~.phone-dropdown-container::before {
  content: "🇪🇸";
}

.phone-input-wrapper input#phone-Spain:checked~.phone-select-wrapper li.phone-Spain {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Spain:checked~.phone-input-container .phone-textfield::before {
  content: "+34";
}

.phone-input-wrapper input#phone-Germany:checked~.phone-dropdown-container::before {
  content: "🇩🇪";
}

.phone-input-wrapper input#phone-Germany:checked~.phone-select-wrapper li.phone-Germany {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Germany:checked~.phone-input-container .phone-textfield::before {
  content: "+49";
}

.phone-input-wrapper input#phone-UK:checked~.phone-dropdown-container::before {
  content: "🇬🇧";
}

.phone-input-wrapper input#phone-UK:checked~.phone-select-wrapper li.phone-UK {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-UK:checked~.phone-input-container .phone-textfield::before {
  content: "+44";
}

.phone-input-wrapper input#phone-Netherlands:checked~.phone-dropdown-container::before {
  content: "🇳🇱";
}

.phone-input-wrapper input#phone-Netherlands:checked~.phone-select-wrapper li.phone-Netherlands {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Netherlands:checked~.phone-input-container .phone-textfield::before {
  content: "+31";
}

.phone-input-wrapper input#phone-Belgium:checked~.phone-dropdown-container::before {
  content: "🇧🇪";
}

.phone-input-wrapper input#phone-Belgium:checked~.phone-select-wrapper li.phone-Belgium {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Belgium:checked~.phone-input-container .phone-textfield::before {
  content: "+32";
}

.phone-input-wrapper input#phone-Switzerland:checked~.phone-dropdown-container::before {
  content: "🇨🇭";
}

.phone-input-wrapper input#phone-Switzerland:checked~.phone-select-wrapper li.phone-Switzerland {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Switzerland:checked~.phone-input-container .phone-textfield::before {
  content: "+41";
}

.phone-input-wrapper input#phone-Austria:checked~.phone-dropdown-container::before {
  content: "🇦🇹";
}

.phone-input-wrapper input#phone-Austria:checked~.phone-select-wrapper li.phone-Austria {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Austria:checked~.phone-input-container .phone-textfield::before {
  content: "+43";
}

.phone-input-wrapper input#phone-Ireland:checked~.phone-dropdown-container::before {
  content: "🇮🇪";
}

.phone-input-wrapper input#phone-Ireland:checked~.phone-select-wrapper li.phone-Ireland {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Ireland:checked~.phone-input-container .phone-textfield::before {
  content: "+353";
}

.phone-input-wrapper input#phone-Brazil:checked~.phone-dropdown-container::before {
  content: "🇧🇷";
}

.phone-input-wrapper input#phone-Brazil:checked~.phone-select-wrapper li.phone-Brazil {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Brazil:checked~.phone-input-container .phone-textfield::before {
  content: "+55";
}

.phone-input-wrapper input#phone-USA:checked~.phone-dropdown-container::before {
  content: "🇺🇸";
}

.phone-input-wrapper input#phone-USA:checked~.phone-select-wrapper li.phone-USA {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-USA:checked~.phone-input-container .phone-textfield::before {
  content: "+1";
}

.phone-input-wrapper input#phone-Angola:checked~.phone-dropdown-container::before {
  content: "🇦🇴";
}

.phone-input-wrapper input#phone-Angola:checked~.phone-select-wrapper li.phone-Angola {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Angola:checked~.phone-input-container .phone-textfield::before {
  content: "+244";
}

.phone-input-wrapper input#phone-Mozambique:checked~.phone-dropdown-container::before {
  content: "🇲🇿";
}

.phone-input-wrapper input#phone-Mozambique:checked~.phone-select-wrapper li.phone-Mozambique {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-Mozambique:checked~.phone-input-container .phone-textfield::before {
  content: "+258";
}

/* Member form phone input */
.phone-input-wrapper input#member-phone-Portugal:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-phone-Portugal:checked~.phone-select-wrapper li.phone-Portugal {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-phone-Portugal:checked~.phone-input-container .phone-textfield::before {
  content: "+351";
}

.phone-input-wrapper input#member-phone-Spain:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-phone-Spain:checked~.phone-select-wrapper li.phone-Spain {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-phone-Spain:checked~.phone-input-container .phone-textfield::before {
  content: "+34";
}

.phone-input-wrapper input#member-phone-France:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-phone-France:checked~.phone-select-wrapper li.phone-France {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-phone-France:checked~.phone-input-container .phone-textfield::before {
  content: "+33";
}

.phone-input-wrapper input#member-phone-Germany:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-phone-Germany:checked~.phone-select-wrapper li.phone-Germany {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-phone-Germany:checked~.phone-input-container .phone-textfield::before {
  content: "+49";
}

.phone-input-wrapper input#member-phone-UK:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-phone-UK:checked~.phone-select-wrapper li.phone-UK {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-phone-UK:checked~.phone-input-container .phone-textfield::before {
  content: "+44";
}

/* Member form whatsapp input */
.phone-input-wrapper input#member-whatsapp-Portugal:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-whatsapp-Portugal:checked~.phone-select-wrapper li.phone-Portugal {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-whatsapp-Portugal:checked~.phone-input-container .phone-textfield::before {
  content: "+351";
}

/* Contact form phone input */
.phone-input-wrapper input#contactPhone-Portugal:checked~.phone-dropdown-container::before {
  content: "🇵🇹";
}

.phone-input-wrapper input#contactPhone-Portugal:checked~.phone-select-wrapper li.phone-Portugal {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Portugal:checked~.phone-input-container .phone-textfield::before {
  content: "+351";
}

.phone-input-wrapper input#contactPhone-Spain:checked~.phone-dropdown-container::before {
  content: "🇪🇸";
}

.phone-input-wrapper input#contactPhone-Spain:checked~.phone-select-wrapper li.phone-Spain {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Spain:checked~.phone-input-container .phone-textfield::before {
  content: "+34";
}

.phone-input-wrapper input#contactPhone-France:checked~.phone-dropdown-container::before {
  content: "🇫🇷";
}

.phone-input-wrapper input#contactPhone-France:checked~.phone-select-wrapper li.phone-France {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-France:checked~.phone-input-container .phone-textfield::before {
  content: "+33";
}

.phone-input-wrapper input#contactPhone-Germany:checked~.phone-dropdown-container::before {
  content: "🇩🇪";
}

.phone-input-wrapper input#contactPhone-Germany:checked~.phone-select-wrapper li.phone-Germany {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Germany:checked~.phone-input-container .phone-textfield::before {
  content: "+49";
}

.phone-input-wrapper input#contactPhone-UK:checked~.phone-dropdown-container::before {
  content: "🇬🇧";
}

.phone-input-wrapper input#contactPhone-UK:checked~.phone-select-wrapper li.phone-UK {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-UK:checked~.phone-input-container .phone-textfield::before {
  content: "+44";
}

.phone-input-wrapper input#contactPhone-Italy:checked~.phone-dropdown-container::before {
  content: "🇮🇹";
}

.phone-input-wrapper input#contactPhone-Italy:checked~.phone-select-wrapper li.phone-Italy {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Italy:checked~.phone-input-container .phone-textfield::before {
  content: "+39";
}

.phone-input-wrapper input#contactPhone-Brazil:checked~.phone-dropdown-container::before {
  content: "🇧🇷";
}

.phone-input-wrapper input#contactPhone-Brazil:checked~.phone-select-wrapper li.phone-Brazil {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Brazil:checked~.phone-input-container .phone-textfield::before {
  content: "+55";
}

.phone-input-wrapper input#contactPhone-USA:checked~.phone-dropdown-container::before {
  content: "🇺🇸";
}

.phone-input-wrapper input#contactPhone-USA:checked~.phone-select-wrapper li.phone-USA {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-USA:checked~.phone-input-container .phone-textfield::before {
  content: "+1";
}

.phone-input-wrapper input#contactPhone-Angola:checked~.phone-dropdown-container::before {
  content: "🇦🇴";
}

.phone-input-wrapper input#contactPhone-Angola:checked~.phone-select-wrapper li.phone-Angola {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Angola:checked~.phone-input-container .phone-textfield::before {
  content: "+244";
}

.phone-input-wrapper input#contactPhone-Netherlands:checked~.phone-dropdown-container::before {
  content: "🇳🇱";
}

.phone-input-wrapper input#contactPhone-Netherlands:checked~.phone-select-wrapper li.phone-Netherlands {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Netherlands:checked~.phone-input-container .phone-textfield::before {
  content: "+31";
}

.phone-input-wrapper input#contactPhone-Belgium:checked~.phone-dropdown-container::before {
  content: "🇧🇪";
}

.phone-input-wrapper input#contactPhone-Belgium:checked~.phone-select-wrapper li.phone-Belgium {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Belgium:checked~.phone-input-container .phone-textfield::before {
  content: "+32";
}

.phone-input-wrapper input#contactPhone-Switzerland:checked~.phone-dropdown-container::before {
  content: "🇨🇭";
}

.phone-input-wrapper input#contactPhone-Switzerland:checked~.phone-select-wrapper li.phone-Switzerland {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Switzerland:checked~.phone-input-container .phone-textfield::before {
  content: "+41";
}

.phone-input-wrapper input#contactPhone-Austria:checked~.phone-dropdown-container::before {
  content: "🇦🇹";
}

.phone-input-wrapper input#contactPhone-Austria:checked~.phone-select-wrapper li.phone-Austria {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Austria:checked~.phone-input-container .phone-textfield::before {
  content: "+43";
}

.phone-input-wrapper input#contactPhone-Ireland:checked~.phone-dropdown-container::before {
  content: "🇮🇪";
}

.phone-input-wrapper input#contactPhone-Ireland:checked~.phone-select-wrapper li.phone-Ireland {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Ireland:checked~.phone-input-container .phone-textfield::before {
  content: "+353";
}

.phone-input-wrapper input#contactPhone-Mozambique:checked~.phone-dropdown-container::before {
  content: "🇲🇿";
}

.phone-input-wrapper input#contactPhone-Mozambique:checked~.phone-select-wrapper li.phone-Mozambique {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#contactPhone-Mozambique:checked~.phone-input-container .phone-textfield::before {
  content: "+258";
}


/* Service request form phone input */
.phone-input-wrapper input#requestPhone-Portugal:checked~.phone-dropdown-container::before {
  content: "🇵🇹";
}

.phone-input-wrapper input#requestPhone-Portugal:checked~.phone-select-wrapper li.phone-Portugal {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Portugal:checked~.phone-input-container .phone-textfield::before {
  content: "+351";
}

.phone-input-wrapper input#requestPhone-Spain:checked~.phone-dropdown-container::before {
  content: "🇪🇸";
}

.phone-input-wrapper input#requestPhone-Spain:checked~.phone-select-wrapper li.phone-Spain {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Spain:checked~.phone-input-container .phone-textfield::before {
  content: "+34";
}

.phone-input-wrapper input#requestPhone-France:checked~.phone-dropdown-container::before {
  content: "🇫🇷";
}

.phone-input-wrapper input#requestPhone-France:checked~.phone-select-wrapper li.phone-France {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-France:checked~.phone-input-container .phone-textfield::before {
  content: "+33";
}

.phone-input-wrapper input#requestPhone-Germany:checked~.phone-dropdown-container::before {
  content: "🇩🇪";
}

.phone-input-wrapper input#requestPhone-Germany:checked~.phone-select-wrapper li.phone-Germany {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Germany:checked~.phone-input-container .phone-textfield::before {
  content: "+49";
}

.phone-input-wrapper input#requestPhone-UK:checked~.phone-dropdown-container::before {
  content: "🇬🇧";
}

.phone-input-wrapper input#requestPhone-UK:checked~.phone-select-wrapper li.phone-UK {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-UK:checked~.phone-input-container .phone-textfield::before {
  content: "+44";
}

.phone-input-wrapper input#requestPhone-Italy:checked~.phone-dropdown-container::before {
  content: "🇮🇹";
}

.phone-input-wrapper input#requestPhone-Italy:checked~.phone-select-wrapper li.phone-Italy {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Italy:checked~.phone-input-container .phone-textfield::before {
  content: "+39";
}

.phone-input-wrapper input#requestPhone-Brazil:checked~.phone-dropdown-container::before {
  content: "🇧🇷";
}

.phone-input-wrapper input#requestPhone-Brazil:checked~.phone-select-wrapper li.phone-Brazil {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Brazil:checked~.phone-input-container .phone-textfield::before {
  content: "+55";
}

.phone-input-wrapper input#requestPhone-USA:checked~.phone-dropdown-container::before {
  content: "🇺🇸";
}

.phone-input-wrapper input#requestPhone-USA:checked~.phone-select-wrapper li.phone-USA {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-USA:checked~.phone-input-container .phone-textfield::before {
  content: "+1";
}

.phone-input-wrapper input#requestPhone-Angola:checked~.phone-dropdown-container::before {
  content: "🇦🇴";
}

.phone-input-wrapper input#requestPhone-Angola:checked~.phone-select-wrapper li.phone-Angola {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Angola:checked~.phone-input-container .phone-textfield::before {
  content: "+244";
}

.phone-input-wrapper input#requestPhone-Mozambique:checked~.phone-dropdown-container::before {
  content: "🇲🇿";
}

.phone-input-wrapper input#requestPhone-Mozambique:checked~.phone-select-wrapper li.phone-Mozambique {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#requestPhone-Mozambique:checked~.phone-input-container .phone-textfield::before {
  content: "+258";
}

.phone-input-wrapper input#member-whatsapp-Spain:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-whatsapp-Spain:checked~.phone-select-wrapper li.phone-Spain {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-whatsapp-Spain:checked~.phone-input-container .phone-textfield::before {
  content: "+34";
}

.phone-input-wrapper input#member-whatsapp-France:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-whatsapp-France:checked~.phone-select-wrapper li.phone-France {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-whatsapp-France:checked~.phone-input-container .phone-textfield::before {
  content: "+33";
}

.phone-input-wrapper input#member-whatsapp-Germany:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-whatsapp-Germany:checked~.phone-select-wrapper li.phone-Germany {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-whatsapp-Germany:checked~.phone-input-container .phone-textfield::before {
  content: "+49";
}

.phone-input-wrapper input#member-whatsapp-UK:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#member-whatsapp-UK:checked~.phone-select-wrapper li.phone-UK {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#member-whatsapp-UK:checked~.phone-input-container .phone-textfield::before {
  content: "+44";
}

/* Dark mode support */
body.dark-theme .phone-input-wrapper {
  --phone-background: var(--color-surface-dark);
  --phone-text-color: var(--color-text-dark);
  --phone-border-color: var(--color-border-dark);
  --phone-dropdown-button-color: rgba(255, 255, 255, 0.1);
  --phone-dropdown-button-hover-color: rgba(255, 255, 255, 0.2);
}

/* Additional country selector styles for settings form */
.phone-input-wrapper input#phone-settings-Portugal:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Portugal:checked~.phone-select-wrapper li.phone-Portugal {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Portugal:checked~.phone-input-container .phone-textfield::before {
  content: "+351";
}

.phone-input-wrapper input#phone-settings-Spain:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Spain:checked~.phone-select-wrapper li.phone-Spain {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Spain:checked~.phone-input-container .phone-textfield::before {
  content: "+34";
}

.phone-input-wrapper input#phone-settings-France:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-France:checked~.phone-select-wrapper li.phone-France {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-France:checked~.phone-input-container .phone-textfield::before {
  content: "+33";
}

.phone-input-wrapper input#phone-settings-Germany:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Germany:checked~.phone-select-wrapper li.phone-Germany {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Germany:checked~.phone-input-container .phone-textfield::before {
  content: "+49";
}

.phone-input-wrapper input#phone-settings-UK:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-UK:checked~.phone-select-wrapper li.phone-UK {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-UK:checked~.phone-input-container .phone-textfield::before {
  content: "+44";
}

.phone-input-wrapper input#phone-settings-Italy:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Italy:checked~.phone-select-wrapper li.phone-Italy {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Italy:checked~.phone-input-container .phone-textfield::before {
  content: "+39";
}

.phone-input-wrapper input#phone-settings-Netherlands:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Netherlands:checked~.phone-select-wrapper li.phone-Netherlands {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Netherlands:checked~.phone-input-container .phone-textfield::before {
  content: "+31";
}

.phone-input-wrapper input#phone-settings-Belgium:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Belgium:checked~.phone-select-wrapper li.phone-Belgium {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Belgium:checked~.phone-input-container .phone-textfield::before {
  content: "+32";
}

.phone-input-wrapper input#phone-settings-Switzerland:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Switzerland:checked~.phone-select-wrapper li.phone-Switzerland {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Switzerland:checked~.phone-input-container .phone-textfield::before {
  content: "+41";
}

.phone-input-wrapper input#phone-settings-Austria:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Austria:checked~.phone-select-wrapper li.phone-Austria {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Austria:checked~.phone-input-container .phone-textfield::before {
  content: "+43";
}

.phone-input-wrapper input#phone-settings-Ireland:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Ireland:checked~.phone-select-wrapper li.phone-Ireland {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Ireland:checked~.phone-input-container .phone-textfield::before {
  content: "+353";
}

.phone-input-wrapper input#phone-settings-Brazil:checked~.phone-dropdown-container::before {
  content: "";
}

.phone-input-wrapper input#phone-settings-Brazil:checked~.phone-select-wrapper li.phone-Brazil {
  background-color: var(--phone-dropdown-button-color);
}

.phone-input-wrapper input#phone-settings-Brazil:checked~.phone-input-container .phone-textfield::before {
  content: "+55";
}

/* ================================================= */
/* MODERN CONTACT SECTION STYLES                    */
/* ================================================= */

.section-header-modern {
  text-align: center;
  margin-bottom: 60px;
}

.section-header-modern h1 {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 60px;
}

/* Forçar 3 colunas (Telefone, Telemóvel, Email) na primeira linha em ecrãs largos */
/* Card sizing to create 3 centered on first row, 2 centered on second */
.contact-card {
  flex: 0 1 320px;
}

@media (max-width: 768px) {
  .contact-card {
    flex: 1 1 100%;
  }
}

.contact-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.contact-card-icon svg {
  color: white;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-card-icon svg {
  transform: scale(1.1);
}

.contact-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contact-card-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.contact-card-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: block;
  word-break: break-word;
}

.contact-card-action {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.contact-card:hover .contact-card-action {
  color: var(--color-teal-700);
}

.contact-card-status {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  display: inline-block;
}

/* Specific card colors */
.contact-card--phone .contact-card-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-card--phone:hover {
  border-color: #667eea;
}

.contact-card--email .contact-card-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.contact-card--email:hover {
  border-color: #f093fb;
}

.contact-card--location .contact-card-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.contact-card--location:hover {
  border-color: #4facfe;
}

.contact-card--hours .contact-card-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.contact-card--hours:hover {
  border-color: #43e97b;
}

/* Map Section */
.contact-map-section {
  margin-bottom: 60px;
}

.contact-map-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--color-text);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Form Section */
.contact-form-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-wrapper {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form-header h2 {
  margin-bottom: 12px;
}

.contact-form-header .section-subtitle {
  font-size: var(--font-size-lg);
}

.contact-form-modern .form-group {
  margin-bottom: 24px;
}

.contact-form-modern label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--color-text);
  font-size: 14px;
}

.contact-form-modern .form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: var(--color-background);
  color: var(--color-text);
}

.contact-form-modern .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
}

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

.contact-form-modern .btn--large {
  width: 100%;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-form-modern .btn--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(var(--color-primary-rgb), 0.3);
}

/* Dark theme adjustments */
body.dark-theme .contact-card {
  background: var(--color-surface-dark);
  border-color: var(--color-border-dark);
}

body.dark-theme .contact-card-content h3,
body.dark-theme .contact-card-value {
  color: var(--color-text-dark);
}

body.dark-theme .contact-form-wrapper {
  background: var(--color-surface-dark);
}

body.dark-theme .contact-form-modern .form-control {
  background: var(--color-background-dark);
  border-color: var(--color-border-dark);
  color: var(--color-text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .section-header-modern h1 {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}

/* Map iframe additional styles */
.map-container iframe {
  width: 100%;
  min-height: 450px;
  display: block;
}

.contact-map-section {
  background: var(--color-surface);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Site Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-32) 0 var(--space-16);
  margin-top: var(--space-48);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-24);
}

.footer-section h3 {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-12);
}

.footer-section h4 {
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-12);
}

.footer-section p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--duration-fast) var(--ease-standard);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
  text-align: center;
}

.footer-bottom p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-4);
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }

  .site-footer {
    padding: 4vh 0 3vh;
    margin-bottom: 1vh;
  }

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

  .footer-section h3,
  .footer-section h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-12);
  }

  .footer-section p {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-8);
    line-height: 1.5;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
  }

  .footer-links li {
    margin-bottom: var(--space-4);
  }

  .footer-links a {
    font-size: var(--font-size-sm);
    padding: var(--space-6) var(--space-12);
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
    display: inline-block;
    min-width: 140px;
    text-align: center;
  }

  /* Force legal questions to display in single column on mobile */
  .footer-section:nth-child(3),
  .footer-section:nth-child(4) {
    margin-bottom: 0;
  }

  .footer-section:nth-child(3) .footer-links,
  .footer-section:nth-child(4) .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: 0;
  }

  .footer-section:nth-child(3) .footer-links li,
  .footer-section:nth-child(4) .footer-links li {
    margin-bottom: var(--space-4);
  }

  /* Remove margin between the two legal sections */
  .footer-section:nth-child(4) {
    margin-top: calc(-1 * var(--space-16));
  }

  .footer-bottom {
    padding-top: var(--space-16);
    padding-bottom: var(--space-12);
    margin-top: var(--space-8);
  }

  .footer-bottom p {
    font-size: var(--font-size-sm);
    line-height: 1.5;
  }

  /* Ensure mobile footer is fully scrollable */
  body {
    padding-bottom: 0;
    overflow-x: hidden;
  }

  .legal-page {
    padding-bottom: 1vh;
    min-height: auto;
  }

  /* Add minimal space after footer on mobile */
  .site-footer::after {
    content: '';
    display: block;
    height: 1vh;
    width: 100%;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .site-footer {
    margin-bottom: 1vh;
    padding: 3vh 0 2vh;
  }

  .site-footer::after {
    height: 1.5vh;
  }

  .legal-page {
    padding-bottom: 1vh;
  }

  .footer-links a {
    min-width: 120px;
    font-size: var(--font-size-xs);
    padding: var(--space-4) var(--space-8);
  }
}

/* Small mobile devices in landscape */
@media (min-width: 481px) and (max-width: 768px) {
  .site-footer::after {
    height: 1vh;
  }

  .legal-page {
    padding-bottom: 1vh;
  }
}

/* ========================================
   Cookie Modal Styles - Completamente Responsivo
   Recriado do zero com foco em mobile
   ======================================== */

/* Overlay e Container Principal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Content Container - Desktop First */
.cookie-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: calc(100% - 32px);
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header - Fixed Height */
.cookie-modal-header {
  flex-shrink: 0;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  background: white;
}

.cookie-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: #111827;
  font-weight: 700;
  line-height: 1.3;
}

.cookie-modal-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Body - Scrollable */
.cookie-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.cookie-types {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-type {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.cookie-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-type-header h4 {
  margin: 0;
  font-size: 16px;
  color: #111827;
  font-weight: 600;
}

.cookie-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.cookie-status.always-on {
  background: #10b981;
  color: white;
}

.cookie-status:not(.always-on) {
  background: rgba(0, 0, 0, 0.08);
  color: #6b7280;
}

.cookie-status.enabled {
  background: #10b981;
  color: white;
}

.cookie-status.disabled {
  background: #ef4444;
  color: white;
}

.cookie-type p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #dc3545;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input[type="checkbox"]:checked+.toggle-slider {
  background: #28a745;
}

.cookie-toggle input[type="checkbox"]:checked+.toggle-slider::before {
  transform: translateX(24px);
}

.cookie-toggle.disabled .toggle-slider {
  background: #dc3545;
  cursor: not-allowed;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.cookie-toggle.disabled .toggle-label {
  cursor: not-allowed;
}

/* Footer - Fixed Height */
.cookie-modal-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-modal-actions .btn {
  min-width: 140px;
  flex: 0 1 auto;
}

@media (max-width: 768px) {
  .cookie-modal {
    padding: var(--space-8);
    align-items: flex-start;
    padding-top: var(--space-16);
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
  }

  .cookie-modal-content {
    max-height: calc(100vh - var(--space-16));
    height: calc(100vh - var(--space-16));
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
  }

  .cookie-modal-header {
    padding: var(--space-16);
    flex-shrink: 0;
  }

  .cookie-modal-body {
    padding: var(--space-16);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
  }

  .cookie-modal-footer {
    padding: var(--space-16);
    flex-shrink: 0;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions .btn {
    width: 100%;
  }

  .cookie-type-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .cookie-types {
    gap: var(--space-12);
  }

  .cookie-type {
    padding: var(--space-12);
  }
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: var(--space-4);
    padding-top: var(--space-8);
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
  }

  .cookie-modal-content {
    max-height: calc(100vh - var(--space-8));
    height: calc(100vh - var(--space-8));
    border-radius: var(--border-radius-md);
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
  }

  .cookie-modal-header {
    padding: var(--space-12);
    flex-shrink: 0;
  }

  .cookie-modal-body {
    padding: var(--space-12);
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* iOS smooth scrolling */
    /* Fallback para browsers que não suportam calc() */
    max-height: 100%;
  }

  .cookie-modal-footer {
    padding: var(--space-12);
    flex-shrink: 0;
  }

  .cookie-modal-header h2 {
    font-size: var(--font-size-xl);
  }

  .cookie-type {
    padding: var(--space-10);
  }

  .cookie-type-header h4 {
    font-size: var(--font-size-base);
  }

  .cookie-toggle {
    margin-top: var(--space-6);
  }

  .toggle-slider {
    width: 40px;
    height: 20px;
  }

  .toggle-slider::before {
    width: 16px;
    height: 16px;
  }

  .cookie-toggle input[type="checkbox"]:checked+.toggle-slider::before {
    transform: translateX(20px);
  }
}

/* Correções específicas para iOS Safari */
@supports (-webkit-touch-callout: none) {
  .cookie-modal-content {
    height: -webkit-fill-available;
    max-height: -webkit-fill-available;
  }

  .cookie-modal-body {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
}

/* Correções específicas para Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .cookie-modal-content {
    height: 100vh;
    max-height: 100vh;
  }

  .cookie-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Fallback para Android Chrome */
@supports (display: -webkit-box) {
  .cookie-modal-content {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

/* Fallback para dispositivos com viewport height problemático */
@media (max-width: 480px) and (max-height: 667px) {
  .cookie-modal-content {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 480px) and (min-height: 668px) {
  .cookie-modal-content {
    height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
  }
}

/* Media queries específicas para Android */
@media (max-width: 360px) {

  /* Dispositivos Android pequenos (Galaxy S, etc.) */
  .cookie-modal-content {
    height: calc(100vh - 10px);
    max-height: calc(100vh - 10px);
  }

  .cookie-modal-body {
    padding: var(--space-10);
  }

  .cookie-type {
    padding: var(--space-8);
  }
}

@media (min-width: 360px) and (max-width: 414px) {

  /* Dispositivos Android médios */
  .cookie-modal-content {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }
}

@media (min-width: 414px) and (max-width: 480px) {

  /* Dispositivos Android grandes */
  .cookie-modal-content {
    height: calc(100vh - 30px);
    max-height: calc(100vh - 30px);
  }
}

/* Correções para Android Chrome específico */
@media screen and (max-width: 480px) and (orientation: portrait) {
  .cookie-modal {
    padding: var(--space-4);
    padding-top: max(var(--space-8), env(safe-area-inset-top));
  }

  .cookie-modal-content {
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
  }
}

/* Correções para landscape em Android */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .cookie-modal-content {
    height: calc(100vh - 10px);
    max-height: calc(100vh - 10px);
  }

  .cookie-modal-body {
    padding: var(--space-12);
  }

  .cookie-types {
    gap: var(--space-8);
  }

  .cookie-type {
    padding: var(--space-8);
  }
}

/* Cookie Notification Styles */
.cookie-notification {
  position: fixed;
  top: var(--space-16);
  right: var(--space-16);
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  max-width: 400px;
  min-width: 300px;
}

.cookie-notification--show {
  transform: translateX(0);
  opacity: 1;
}

.cookie-notification-content {
  display: flex;
  align-items: center;
  padding: var(--space-12) var(--space-16);
  gap: var(--space-12);
}

.cookie-notification-icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.cookie-notification-message {
  flex: 1;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}

.cookie-notification-close {
  background: none;
  border: none;
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  cursor: pointer;
  padding: var(--space-4);
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-notification-close:hover {
  background-color: var(--color-background-light);
  color: var(--color-text);
}

/* Notification Types */
.cookie-notification--success {
  border-left: 4px solid #10b981;
}

.cookie-notification--success .cookie-notification-icon {
  color: #10b981;
}

.cookie-notification--error {
  border-left: 4px solid #ef4444;
}

.cookie-notification--error .cookie-notification-icon {
  color: #ef4444;
}

.cookie-notification--warning {
  border-left: 4px solid #f59e0b;
}

.cookie-notification--warning .cookie-notification-icon {
  color: #f59e0b;
}

.cookie-notification--info {
  border-left: 4px solid var(--color-primary);
}

.cookie-notification--info .cookie-notification-icon {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .cookie-notification {
    top: var(--space-12);
    right: var(--space-12);
    left: var(--space-12);
    max-width: none;
    min-width: auto;
  }

  .cookie-notification-content {
    padding: var(--space-10) var(--space-12);
  }

  .cookie-notification-message {
    font-size: var(--font-size-xs);
  }
}

/* Cookie Preferences Styles */
.cookie-preferences {
  max-width: 800px;
  margin: var(--space-24) 0;
}

.cookie-category {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  margin-bottom: var(--space-16);
  transition: all var(--duration-normal) var(--ease-standard);
}

.cookie-category:hover {
  box-shadow: var(--shadow-sm);
}

.cookie-category h3 {
  margin: 0 0 var(--space-8) 0;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.cookie-category p {
  margin: 0 0 var(--space-16) 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  cursor: pointer;
  user-select: none;
}

.cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 24px;
  background: #dc3545;
  border-radius: 12px;
  transition: background var(--duration-normal) var(--ease-standard);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration-normal) var(--ease-standard);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.toggle-slider {
  background: #28a745;
}

.cookie-toggle input:checked+.toggle-slider::before {
  transform: translateX(26px);
}

.toggle-label {
  font-weight: 500;
  color: var(--color-text);
}

.cookie-actions {
  display: flex;
  gap: var(--space-16);
  margin: var(--space-32) 0;
  flex-wrap: wrap;
}

.cookie-info {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  margin-top: var(--space-24);
}

.cookie-info h4 {
  margin: 0 0 var(--space-8) 0;
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.cookie-info p {
  margin: 0 0 var(--space-8) 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.cookie-info p:last-child {
  margin-bottom: 0;
}

/* New Cookie Preferences Page Styles */
.cookie-preferences-page {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-24);
}

.cookie-preferences-page h2 {
  text-align: center;
  margin-bottom: var(--space-16);
  color: var(--color-text);
  font-size: var(--font-size-2xl);
}

.cookie-preferences-page>p {
  text-align: center;
  margin-bottom: var(--space-32);
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  margin-bottom: var(--space-32);
}

.cookie-category {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-24);
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
}

.cookie-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-border);
  transition: all var(--duration-normal) var(--ease-standard);
}

.cookie-category.essential::before {
  background: var(--color-success);
}

.cookie-category:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cookie-category.essential {
  border-color: var(--color-success);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-12);
}

.category-header h3 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: 600;
}

.status-badge {
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--color-text-secondary);
}

.status-badge.enabled {
  background: var(--color-success);
  color: white;
}

.status-badge.disabled {
  background: var(--color-error);
  color: white;
}

.cookie-category p {
  margin: 0 0 var(--space-20) 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-md);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  cursor: pointer;
  user-select: none;
  padding: var(--space-8);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-standard);
}

.cookie-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}

.cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 56px;
  height: 28px;
  background: #dc3545;
  border-radius: 14px;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all var(--duration-normal) var(--ease-standard);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked+.toggle-slider {
  background: #28a745;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.cookie-toggle input:checked+.toggle-slider::before {
  transform: translateX(28px);
}

.toggle-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--font-size-md);
}

.cookie-actions {
  display: flex;
  gap: var(--space-16);
  margin: var(--space-32) 0;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-actions .btn {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  font-size: var(--font-size-md);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-standard);
  min-width: 160px;
  justify-content: center;
}

.cookie-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-icon {
  font-size: var(--font-size-lg);
}

.cookie-info {
  background: linear-gradient(135deg, var(--color-background) 0%, rgba(59, 130, 246, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-24);
  margin-top: var(--space-32);
  text-align: center;
}

.cookie-info h4 {
  margin: 0 0 var(--space-12) 0;
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.cookie-info p {
  margin: 0 0 var(--space-12) 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-md);
}

.cookie-info p:last-child {
  margin-bottom: 0;
}

.cookie-info a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--duration-normal) var(--ease-standard);
}

.cookie-info a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Mobile Responsiveness for Cookie Preferences */
@media (max-width: 768px) {
  .cookie-preferences-page {
    padding: var(--space-16);
  }

  .cookie-categories {
    gap: var(--space-16);
  }

  .cookie-category {
    padding: var(--space-20);
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .cookie-actions {
    flex-direction: column;
    align-items: center;
  }

  .cookie-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .cookie-category {
    padding: var(--space-16);
  }
}

/* Legal Page Styles */
.legal-page {
  min-height: auto;
  padding: var(--space-16) 0;
}


.legal-content {
  max-width: 1200px;
  margin: 0 auto;
}

.legal-nav-container {
  background: var(--color-surface);
  padding: var(--space-16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-24);
}

.legal-nav-container h3 {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.legal-sidebar {
  background: var(--color-surface);
  padding: var(--space-16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: var(--space-16);
}

.legal-sidebar h3 {
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.legal-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  transition: all var(--duration-fast) var(--ease-standard);
  display: block;
}

.legal-link:hover {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.legal-link.active {
  background-color: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.legal-main {
  background: var(--color-surface);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-main h1 {
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-12);
  border-bottom: 2px solid var(--color-primary);
}

.legal-text {
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.legal-text h2 {
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin: var(--space-24) 0 var(--space-16);
}

.legal-text h3 {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin: var(--space-20) 0 var(--space-12);
}

.legal-text h4 {
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin: var(--space-16) 0 var(--space-8);
}

.legal-text p {
  margin-bottom: var(--space-12);
  color: var(--color-text-secondary);
}

.legal-text ul {
  margin: var(--space-12) 0;
  padding-left: var(--space-20);
}

.legal-text li {
  margin-bottom: var(--space-8);
  color: var(--color-text-secondary);
}

.legal-text a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

/* Cookie Preferences Styles */
.cookie-preferences {
  margin: var(--space-24) 0;
}

.cookie-category {
  background: var(--color-surface);
  padding: var(--space-20);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-16);
  border: 1px solid var(--color-border);
}

.cookie-category h3 {
  margin-top: 0;
  margin-bottom: var(--space-8);
}

.cookie-category p {
  margin-bottom: var(--space-12);
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  cursor: pointer;
  font-weight: var(--font-weight-medium);
}

.cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.toggle-slider {
  width: 40px;
  height: 20px;
  background-color: #dc3545;
  border-radius: 20px;
  position: relative;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.cookie-toggle input[type="checkbox"]:checked+.toggle-slider {
  background-color: #28a745;
}

.cookie-toggle input[type="checkbox"]:checked+.toggle-slider::before {
  transform: translateX(20px);
}

.cookie-actions {
  display: flex;
  gap: var(--space-12);
  margin-top: var(--space-24);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .legal-nav-container {
    padding: var(--space-12);
    margin-bottom: var(--space-16);
  }

  .legal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .legal-content {
    padding: var(--space-16);
  }

  .legal-link {
    padding: var(--space-6) var(--space-10);
    font-size: var(--font-size-xs);
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

/* Esconder footer na página admin */
body.admin-route #footer-container {
  display: none !important;
}

body.admin-route .site-footer {
  display: none !important;
}

/* Toggle Label for form groups */
.toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  cursor: pointer;
}

.toggle-label span:last-child {
  flex: 1;
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch .toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #dc3545 !important;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.toggle-switch .toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input[type="checkbox"]:checked+.toggle-slider {
  background: #28a745 !important;
}

.toggle-switch input[type="checkbox"]:checked+.toggle-slider::before {
  transform: translateX(24px);
}

/* Ensure filter toggles use red/green colors */
.advanced-filter .toggle-switch .toggle-slider {
  background: #dc3545 !important;
}

.advanced-filter .toggle-switch input[type="checkbox"]:checked+.toggle-slider {
  background: #28a745 !important;
}

/* Ensure all toggles use red when unchecked and green when checked */
input[type="checkbox"]+.toggle-slider {
  background: #dc3545 !important;
}

input[type="checkbox"]:checked+.toggle-slider {
  background: #28a745 !important;
}

/* Override any other toggle slider styles */
.filter-group .toggle-slider,
.toggle-label .toggle-slider {
  background: #dc3545 !important;
}

.filter-group input[type="checkbox"]:checked+.toggle-slider,
.toggle-label input[type="checkbox"]:checked+.toggle-slider {
  background: #28a745 !important;
}

/* Navigation buttons for temporal charts */
.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  user-select: none;
}

.btn--icon:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.btn--icon:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(var(--color-primary-rgb), 0.2);
}

.btn--icon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}