/* Modern Professional Real Estate Website Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

/* CSS Variables - Modern Professional Color Palette */
:root {
  /* Primary Colors */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  
  /* Accent Colors */
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dark: #059669;
  
  /* Neutral Colors */
  --white: #ffffff;
  --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;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #0f172a;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  /* Border & Shadow */
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: 2.25rem; font-weight: 800; }
h2 { font-size: 1.875rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

.logo:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.spacer {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  font-family: inherit;
}

.btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.btn-primary, .btn.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover, .btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost, .btn.ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover, .btn.ghost:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.btn-danger, .btn.danger {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover, .btn.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

/* Layout Components */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-12);
  min-height: calc(100vh - 160px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-auto-sm {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-auto-lg {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header {
  margin-bottom: var(--space-6);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.card-content {
  flex: 1;
}

.card-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--white) 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero .panel {
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  text-align: right;
}

.hero-gif {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  display: block;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-primary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: 0 0 var(--space-6) 0;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

/* Search Box */
.search-box {
  position: relative;
  max-width: 500px;
  margin: var(--space-8) auto 0;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  padding-right: var(--space-12);
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  background: var(--white);
  color: var(--text-primary);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-clear {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-200);
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-clear:hover {
  background: var(--gray-300);
  color: var(--text-primary);
}

/* Stats Section */
.stats-section {
  margin: var(--space-16) 0;
  padding: var(--space-12) var(--space-8);
  background: var(--bg-secondary);
  border-radius: var(--radius-3xl);
}

.stats-container {
  display: grid;
  gap: var(--space-8);
}

.stats-category {
  margin-bottom: var(--space-8);
}

.stats-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.stats-title.expensive-title {
  color: #ef4444;
}

.stats-title.cheap-title {
  color: var(--accent);
}

.stats-title.popular-title {
  color: var(--primary);
}

.neighborhood-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.neighborhood-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.neighborhood-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.neighborhood-card.expensive {
  border-color: rgba(239, 68, 68, 0.2);
}

.neighborhood-card.expensive:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.02);
}

.neighborhood-card.cheap {
  border-color: rgba(16, 185, 129, 0.2);
}

.neighborhood-card.cheap:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.02);
}

.neighborhood-card.popular {
  border-color: rgba(37, 99, 235, 0.2);
}

.neighborhood-card.popular:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.02);
}

.card-icon {
  font-size: 2rem;
  opacity: 0.8;
  min-width: 60px;
  text-align: center;
}

.neighborhood-name {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.neighborhood-detail {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.neighborhood-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: var(--space-2);
}

.value-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
}

.value-badge.expensive {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.value-badge.cheap {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.value-badge.popular {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  border-color: rgba(37, 99, 235, 0.2);
}

/* Property Cards */
.neighborhood-card-main {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.neighborhood-card-main:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.property-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.property-content {
  padding: var(--space-6);
}

.property-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.property-location {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.property-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.property-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

/* Forms */
.field {
  margin-bottom: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.field label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
}

.input, select, textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: var(--space-4);
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  background: var(--gray-50);
  transition: var(--transition-fast);
  cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.upload-label {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.125rem;
}

.file-input {
  display: none;
}

.uploaded-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.uploaded-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.uploaded-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.remove-image:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Contact Buttons */
.contact-section {
  margin: var(--space-8) 0;
  padding: var(--space-8);
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
}

.contact-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.phone-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
}

.phone-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), #1e40af);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Agency box at bottom of property page */
.agency-box {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, var(--white), var(--bg-secondary));
  box-shadow: var(--shadow-sm);
}

.agency-box .agency-title {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.agency-box .agency-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
}

.agency-actions {
  margin-top: var(--space-4);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Footer */
.footer {
  /* Footer section removed per design: hide completely */
  display: none !important;
}

.footer .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}

/* Floating WhatsApp Button */
.fab-whatsapp {
  position: fixed;
  left: var(--space-6);
  bottom: var(--space-6);
  z-index: 1000;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-6);
  font-weight: 700;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.fab-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--gray-100);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* Utilities */
.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.empty {
  text-align: center;
  padding: var(--space-16);
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  border: 2px dashed var(--border-color);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-8);
  font-style: italic;
}

/* Admin Styles */
.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .nav {
    padding: var(--space-4);
    gap: var(--space-4);
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .neighborhood-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav {
    padding: var(--space-3) var(--space-4);
    flex-wrap: wrap;
  }
  
  .hero {
    grid-template-columns: 1fr;
    padding: var(--space-16) 0;
    text-align: right;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid-cols-3, .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .stats-section {
    padding: var(--space-8) var(--space-4);
  }
}

@media (max-width: 768px) {
  main {
    padding: var(--space-6) var(--space-4);
  }
  
  .hero {
    padding: var(--space-12) 0;
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero .panel {
    padding: var(--space-6);
  }

  .hero-gif {
    max-width: 420px;
  }

  .hero-gif {
    max-width: 360px;
  }
  
  .nav {
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-3);
  }
  
  .brand {
    font-size: 1.125rem;
  }
  
  .logo {
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
  }
  
  .badge {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .neighborhood-cards {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-2, .grid.two,
  .grid-cols-3, .grid.three,
  .grid-cols-4 {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .contact-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .footer .inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .fab-whatsapp {
    left: var(--space-4);
    bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .stats-section {
    padding: var(--space-6) var(--space-3);
  }
  
  .admin-grid {
    gap: var(--space-4);
  }
  
  .table {
    font-size: 0.875rem;
  }
  
  .table th,
  .table td {
    padding: var(--space-3) var(--space-2);
  }
  
  .uploaded-images {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  main {
    padding: var(--space-4) var(--space-3);
  }
  
  .hero {
    padding: var(--space-8) 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.1;
  }
  
  .hero .panel {
    padding: var(--space-4);
  }

  .hero-gif {
    max-width: 320px;
  }
  
  .card {
    padding: var(--space-4);
  }
  
  .btn {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8rem;
    min-height: 40px;
  }
  
  .nav {
    padding: var(--space-2) var(--space-3);
  }
  
  .brand {
    font-size: 1rem;
  }
  
  .logo {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .neighborhood-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4);
  }
  
  .card-icon {
    min-width: auto;
    font-size: 1.5rem;
  }
  
  .stats-section {
    padding: var(--space-4) var(--space-2);
  }
  
  .search-input {
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-3);
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .uploaded-images {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .table th,
  .table td {
    padding: var(--space-2);
    font-size: 0.8rem;
  }
  
  .footer .inner {
    padding: var(--space-4) var(--space-3);
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  body {
    padding-bottom: 0;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: var(--space-3);
  }
  
  .btn {
    padding: var(--space-2);
    font-size: 0.75rem;
  }
  
  .nav {
    padding: var(--space-2);
  }
  
  .brand {
    font-size: 0.9rem;
  }
  
  .logo {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .table th,
  .table td {
    padding: var(--space-1);
    font-size: 0.75rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.bounce-in {
  animation: bounceIn 0.8s ease-out;
}

.scale-in {
  animation: scaleIn 0.5s ease-out;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hover Effects */
.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.hover-scale:hover {
  transform: scale(1.02);
}

.hover-rotate:hover {
  transform: rotate(2deg);
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  color: var(--text-muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus Styles for Accessibility */
.btn:focus-visible,
.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-muted: #000000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
