/* MATTONEFACILE.IT - Main Stylesheet */
/* Color Scheme: Green & White */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Primary Colors */
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-200: #bbf7d0;
  --primary-300: #86efac;
  --primary-400: #4ade80;
  --primary-500: #22c55e;
  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-800: #166534;
  --primary-900: #14532d;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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

/* Prevent horizontal overflow on all fixed elements */
[style*="position: fixed"],
[style*="position:fixed"] {
  max-width: 100vw;
  overflow-x: hidden;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

body > footer {
  margin-top: auto;
  margin-bottom: 70px; /* Space for mobile nav */
}

@media (min-width: 769px) {
  body > footer {
    margin-bottom: 0;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-outline {
  background: transparent;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
}

.btn-outline:hover {
  background: var(--primary-600);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.063rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: '*';
  color: var(--error);
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder {
  color: var(--gray-400);
}

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

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

.form-checkbox,
.form-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input,
.form-radio input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--primary-600);
  cursor: pointer;
}

.form-hint {
  font-size: 0.813rem;
  color: var(--gray-500);
  margin-top: 0.375rem;
}

.form-error {
  font-size: 0.813rem;
  color: var(--error);
  margin-top: 0.375rem;
}

/* Input with icon */
.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.input-group .form-input {
  padding-left: 2.75rem;
}

.input-group .input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Number input with +/- */
.number-input {
  display: flex;
  align-items: center;
  gap: 0;
}

.number-input button {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.number-input button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.number-input button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.number-input button:hover {
  background: var(--gray-200);
}

.number-input input {
  width: 4rem;
  height: 2.5rem;
  text-align: center;
  border: 1px solid var(--gray-300);
  border-left: none;
  border-right: none;
  font-size: 1rem;
}

.number-input input:focus {
  outline: none;
}

/* ==================== CARDS ==================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* AI Button */
.ai-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-button:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

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

.new-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #22c55e;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}

/* Property Card */
.property-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

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

.property-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card-image img.placeholder-img {
  object-fit: contain;
  background: #f3f4f6;
  padding: 1rem 1.5rem;
}

img.placeholder-img {
  object-fit: contain !important;
  background: #f3f4f6;
  padding: 0.5rem;
}

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

.property-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: var(--primary-600);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.property-card-badge.rent {
  background: var(--info);
}

.property-card-badge.auction {
  background: var(--warning);
}

/* Sponsored Properties */
.property-card.sponsored {
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.property-card.sponsored:hover {
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.3);
}

.property-card-sponsored {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 0.688rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  z-index: 10;
}

.property-card-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: var(--shadow);
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.property-card-favorite:hover,
.property-card-favorite.active {
  color: var(--error);
}

.property-card-content {
  padding: 1rem 1.25rem 1.25rem;
}

.property-card-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.property-card-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
}

.property-card-title {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-location {
  font-size: 0.813rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.property-card-features {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.property-card-feature {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.813rem;
  color: var(--gray-600);
}

.property-card-feature svg {
  width: 1rem;
  height: 1rem;
  color: var(--gray-400);
}

/* ==================== CLIENT HEADER ==================== */
.client-header {
  background: white;
  color: var(--gray-800);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.client-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 0.5rem;
}

.client-logo {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

.client-logo .logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.client-logo span {
  color: var(--gray-400);
}

.client-nav {
  display: none;
}

.client-nav-link {
  color: var(--gray-600);
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

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

.client-header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.client-header-btn {
  padding: 0.4rem 0.5rem;
  background: var(--primary-600);
  color: white !important;
  border: none;
  border-radius: var(--radius);
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
}

.client-header-btn:hover {
  background: var(--primary-700);
  color: white !important;
}

@media (min-width: 480px) {
  .client-header-top {
    padding: 1rem 0;
  }
  
  .client-logo .logo-img {
    height: 80px;
    max-width: 280px;
  }
  
  .client-header-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .client-header-actions {
    gap: 0.5rem;
  }
}

@media (min-width: 768px) {
  .client-logo .logo-img {
    height: 95px;
    max-width: 320px;
  }
}

/* Hero Search */
.hero-section {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  padding: 2rem 0 4rem;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--primary-100);
  margin-bottom: 2rem;
}

.search-tabs {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.search-tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all var(--transition-fast);
}

.search-tab:hover {
  color: white;
}

.search-tab.active {
  color: white;
  border-bottom-color: white;
}

.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xl);
  max-width: 900px;
  margin: 0 auto;
}

.search-box-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-500);
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-filters .form-select {
  min-width: 150px;
  flex: 1;
}

.search-btn {
  width: 100%;
  padding: 1rem;
}

/* Filters Panel Slide-in */
.filters-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.filters-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  background: white;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.filters-panel.open {
  transform: translateX(0);
}

.filters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.filters-panel-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.filters-panel-close {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.filters-panel-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.filters-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.filter-section {
  margin-bottom: 1.75rem;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.75rem;
}

.filter-row-inputs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-input-group {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.filter-input-prefix {
  position: absolute;
  left: 0.875rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.filter-input-suffix {
  position: absolute;
  right: 0.875rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.filter-input {
  width: 100%;
  padding: 0.75rem;
  padding-left: 1.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.938rem;
  transition: all var(--transition-fast);
}

.filter-input-group:has(.filter-input-suffix) .filter-input {
  padding-left: 0.875rem;
  padding-right: 2.5rem;
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.filter-separator {
  color: var(--gray-400);
  font-weight: 500;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.625rem 1rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 48px;
  text-align: center;
}

.filter-btn:hover {
  border-color: var(--primary-500);
  color: var(--primary-600);
}

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

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.filter-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary-600);
  cursor: pointer;
}

.filter-checkbox span {
  font-size: 0.938rem;
  color: var(--gray-700);
}

.filters-panel-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.filters-panel-footer .btn {
  flex: 1;
  padding: 0.875rem 1rem;
  font-size: 0.938rem;
}

.btn-outline-gray {
  background: white;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline-gray:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

/* Quick Links */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  text-decoration: none;
  min-width: 100px;
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.quick-link-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  color: var(--primary-600);
  border-radius: var(--radius-full);
}

.quick-link-text {
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
}

/* Section */
.section {
  padding: 3rem 0;
}

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

.section-title {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title svg {
  color: var(--primary-500);
}

.section-link {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--primary-600);
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

/* ==================== ADMIN LAYOUT ==================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 260px;
  background: white;
  border-right: 1px solid var(--gray-200);
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.admin-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary-600);
}

.admin-logo span {
  color: var(--gray-400);
}

.admin-nav {
  flex: 1;
  padding: 1rem 0;
}

.admin-nav-section {
  padding: 0.5rem 1.5rem;
  margin-top: 1rem;
}

.admin-nav-section-title {
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--gray-600);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.admin-nav-item:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.admin-nav-item.active {
  color: var(--primary-600);
  background: var(--primary-50);
  border-right: 3px solid var(--primary-600);
}

.admin-nav-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.admin-nav-badge {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  background: var(--primary-100);
  color: var(--primary-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-100);
  color: var(--primary-600);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--gray-50);
}

/* Admin Header */
.admin-header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gray-600);
  border-radius: var(--radius);
}

.admin-menu-btn:hover {
  background: var(--gray-100);
}

.admin-page-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header-search {
  display: none;
}

.admin-notification-btn {
  position: relative;
}

.admin-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--error);
  color: white;
  font-size: 0.688rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin Content */
.admin-content {
  padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-100);
  color: var(--primary-600);
  border-radius: var(--radius);
}

.stat-card-change {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-card-change.positive {
  color: var(--success);
}

.stat-card-change.negative {
  color: var(--error);
}

.stat-card-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.stat-card-label {
  font-size: 0.813rem;
  color: var(--gray-500);
}

/* Quality Score */
.quality-score {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
}

.quality-score-circle {
  transform: rotate(-90deg);
}

.quality-score-bg {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 8;
}

.quality-score-fill {
  fill: none;
  stroke: var(--primary-500);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 252;
  transition: stroke-dashoffset 1s ease;
}

.quality-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.quality-score-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
}

.quality-score-label {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* Data Table */
.data-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 0.875rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

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

.data-table tr:hover td {
  background: var(--gray-50);
}

/* Property Mini Card in Table */
.property-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.property-mini-image {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.property-mini-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.125rem;
}

.property-mini-info p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.status-badge.published {
  background: var(--primary-100);
  color: var(--primary-700);
}

.status-badge.draft {
  background: var(--gray-100);
  color: var(--gray-600);
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

/* ==================== FORM SECTIONS ==================== */
.form-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.form-section-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.form-section-title {
  font-size: 1.063rem;
  font-weight: 700;
  color: var(--gray-900);
}

.form-section-subtitle {
  font-size: 0.813rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-section-body {
  padding: 1.5rem;
}

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

/* Image Upload */
.image-upload {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.image-upload:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.image-upload-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  color: var(--gray-400);
}

.image-upload-text {
  font-size: 0.938rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}

.image-upload-hint {
  font-size: 0.813rem;
  color: var(--gray-400);
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.image-item-remove {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.image-item:hover .image-item-remove {
  opacity: 1;
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.radio-card:hover {
  border-color: var(--primary-400);
}

.radio-card.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.radio-card input {
  margin-top: 0.125rem;
}

.radio-card-content h4 {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.radio-card-content p {
  font-size: 0.813rem;
  color: var(--gray-500);
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  border-top: none;
  padding: 0.5rem 0.75rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.688rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 12px;
  position: relative;
}

.mobile-nav-item svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.2s ease;
}

.mobile-nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-nav-item.active svg {
  transform: scale(1.1);
}

.mobile-nav-item:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

/* Admin Mobile Navigation */
.admin-mobile-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.875rem 1.5rem;
  background: var(--gray-800);
  color: white;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gray-400);
  border-radius: var(--radius);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 1rem 1.5rem;
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--gray-500);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--gray-700);
}

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

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.813rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  border-color: var(--primary-400);
}

.filter-chip.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
}

.filter-chip-remove {
  width: 1rem;
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  color: var(--gray-300);
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

/* Footer */
.client-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  margin-bottom: 4rem;
}

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

.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.footer-logo span {
  color: var(--primary-400);
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 0.813rem;
  color: var(--gray-500);
}

/* Footer Desktop/Mobile Toggle */
.footer-desktop {
  display: none !important;
}

.footer-mobile {
  display: block !important;
  text-align: center;
  padding-bottom: 1rem;
}

.footer-mobile .footer-logo {
  margin-bottom: 1.5rem;
}

.footer-mobile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-mobile-grid a {
  font-size: 0.875rem;
  color: var(--gray-300);
  padding: 0.625rem 0.75rem;
  background: var(--gray-800);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-align: center;
}

.footer-mobile-grid a:hover {
  background: var(--gray-700);
  color: white;
}

.footer-mobile-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-mobile-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: var(--radius-full);
  color: var(--gray-400);
  transition: all 0.2s;
}

.footer-mobile-social a:hover {
  background: var(--primary-500);
  color: white;
}

.footer-mobile-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-mobile-bottom a {
  color: var(--gray-400);
}

.footer-mobile-bottom p {
  margin-top: 0.5rem;
  font-size: 0.688rem;
  color: var(--gray-600);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  /* Logo Desktop */
  .client-logo .logo-img {
    height: 75px;
    max-width: 300px;
  }
  
  /* Search Box */
  .search-box-inner {
    flex-direction: row;
    align-items: center;
  }
  
  .search-filters {
    flex-wrap: nowrap;
  }
  
  .search-btn {
    width: auto;
  }
  
  /* Property Grid */
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Form Row */
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Checkbox Grid */
  .checkbox-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Image Grid */
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-desktop {
    display: block !important;
  }
  
  .footer-mobile {
    display: none !important;
  }
  
  /* Admin Header Search */
  .admin-header-search {
    display: block;
    width: 300px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  /* Client Navigation */
  .client-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  /* Logo Desktop Large */
  .client-logo .logo-img {
    height: 70px;
    max-width: 320px;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* Property Grid */
  .property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Admin Sidebar */
  .admin-sidebar {
    display: flex;
  }
  
  .admin-main {
    margin-left: 260px;
  }
  
  .admin-menu-btn {
    display: none;
  }
  
  /* Hide Mobile Nav on Desktop */
  .mobile-nav,
  .admin-mobile-nav {
    display: none;
  }
  
  /* Remove bottom padding for footer */
  .client-footer {
    margin-bottom: 0;
  }
  
  /* Checkbox Grid */
  .checkbox-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Image Grid */
  .image-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .property-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease;
}

.animate-slide-up {
  animation: slideInUp 0.4s ease;
}

/* Staggered animation */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* PWA specific */
@media (display-mode: standalone) {
  .client-header {
    padding-top: env(safe-area-inset-top);
  }
}
