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

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f97316;
  --accent-light: #fff7ed;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --gray-lighter: #f8fafc;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --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);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

body {
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  background: var(--gray-lighter);
  color: var(--dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.navbar-brand .logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a {
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray);
  transition: all 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

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

.btn-success {
  background: linear-gradient(135deg, var(--success), #059669);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark);
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
  color: white;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  filter: blur(80px);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #93c5fd;
}

.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 36px;
}

.search-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  background: white;
  color: var(--dark);
  outline: none;
}

.search-box button {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-box button:hover {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-tags a {
  padding: 8px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  font-size: 14px;
  color: #cbd5e1;
  transition: all 0.2s;
}

.hero-tags a:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ===================== STATS ===================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #f1f5f9;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }
.stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.stat-icon.orange { background: linear-gradient(135deg, #f97316, #ea580c); color: white; }

.stat-info h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
}

.stat-info p {
  font-size: 14px;
  color: var(--gray);
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 60px 0;
}

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

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
}

.section-header .view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  transition: gap 0.2s;
}

.section-header .view-all:hover {
  gap: 10px;
}

.section-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ===================== PROPERTY CARD ===================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
}

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

.property-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.property-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.badge-available { background: var(--success); color: white; }
.badge-reserved { background: var(--warning); color: white; }
.badge-sold { background: var(--danger); color: white; }
.badge-featured { background: #eab308; color: white; }
.badge-purpose { background: rgba(0,0,0,0.6); color: white; backdrop-filter: blur(4px); }

.property-fav {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
  transition: all 0.2s;
}

.property-fav.active,
.property-fav:hover {
  color: var(--danger);
  background: white;
}

.property-card-body {
  padding: 20px;
}

.property-type {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gray-light);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 8px;
}

.property-card-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--dark);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.property-features {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--gray);
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.property-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

.property-price small {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}

.property-card-footer .btn {
  padding: 8px 20px;
  font-size: 13px;
}

/* ===================== CITIES ===================== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.city-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.city-card:hover img {
  transform: scale(1.1);
}

.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.city-card h3 {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: white;
  font-size: 18px;
  font-weight: 800;
  z-index: 1;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 24px;
}

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

.footer-brand h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ===================== AUTH PAGES ===================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a, #1e3a5f, #1e40af);
  padding: 20px;
}

.auth-box {
  width: 100%;
  max-width: 440px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header .logo-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.auth-header h1 {
  font-size: 28px;
  color: white;
  font-weight: 800;
}

.auth-header p {
  color: #94a3b8;
  margin-top: 8px;
}

.auth-form {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: white;
  outline: none;
  transition: all 0.2s;
}

.form-group input::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-form .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
  margin-top: 8px;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.auth-link a {
  color: #60a5fa;
  font-weight: 700;
}

/* ===================== PROPERTIES PAGE ===================== */
.page-header {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: white;
  padding: 40px 0;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
}

.page-header p {
  color: #94a3b8;
  margin-top: 4px;
}

.filters-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: -30px auto 30px;
  max-width: 1280px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #f1f5f9;
}

.filters-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filters-row input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.filters-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filters-row select {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  outline: none;
  background: white;
  min-width: 140px;
  cursor: pointer;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  background: var(--gray-light);
  color: var(--gray);
  transition: all 0.2s;
}

.filter-toggle.active {
  background: var(--primary);
  color: white;
}

.advanced-filters {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.advanced-filters.show {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ===================== DETAIL PAGE ===================== */
.detail-hero {
  position: relative;
  height: 450px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.detail-hero .badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

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

.detail-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.price-card .price {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.price-card .period {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--gray-light);
  border-radius: var(--radius);
}

.feature-item .icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item .label {
  font-size: 12px;
  color: var(--gray);
}

.feature-item .value {
  font-weight: 700;
  font-size: 14px;
}

.owner-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.owner-card .owner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.owner-card .avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

/* ===================== ADD PROPERTY ===================== */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.form-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-card .form-group input,
.form-card .form-group select,
.form-card .form-group textarea {
  background: var(--gray-light);
  border: 1px solid #e2e8f0;
  color: var(--dark);
}

.form-card .form-group input:focus,
.form-card .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.features-input {
  display: flex;
  gap: 8px;
}

.features-input input {
  flex: 1;
}

.features-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.feature-tag button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

/* ===================== DASHBOARD ===================== */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0f172a, #1e293b, #0f172a);
  color: white;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header .logo {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar-user {
  padding: 20px;
  margin: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.sidebar-user .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-user .avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.sidebar-user .name {
  font-weight: 700;
}

.sidebar-user .role {
  font-size: 12px;
  color: #94a3b8;
}

.sidebar-nav {
  padding: 12px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.sidebar-nav .section-title {
  padding: 16px 16px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #475569;
  font-weight: 700;
}

.sidebar-logout {
  position: absolute;
  bottom: 16px;
  right: 12px;
  left: 12px;
}

.sidebar-logout a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #f87171;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.sidebar-logout a:hover {
  background: rgba(239, 68, 68, 0.1);
}

.main-content {
  flex: 1;
  margin-right: 270px;
  padding: 24px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dash-stat .info h4 {
  font-size: 13px;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 4px;
}

.dash-stat .info h2 {
  font-size: 28px;
  font-weight: 800;
}

.dash-stat .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.chart-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.chart-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

.chart-placeholder {
  height: 300px;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

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

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.table-header h3 {
  font-size: 18px;
  font-weight: 800;
}

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

th {
  text-align: right;
  padding: 14px 20px;
  background: var(--gray-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
}

td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

tr:hover td {
  background: #f8fafc;
}

.table-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

/* ===================== FAVORITES ===================== */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state .icon {
  font-size: 64px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray);
  margin-bottom: 24px;
}

/* ===================== TOAST ===================== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--dark);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.4s;
  box-shadow: var(--shadow-xl);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .properties-grid,
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-row {
    grid-template-columns: 1fr;
  }
  .detail-content {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-menu { display: block; }
  .hero h1 { font-size: 32px; }
  .properties-grid,
  .favorites-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }
  .cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    display: none;
  }
  .main-content {
    margin-right: 0;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .advanced-filters.show {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .search-box { flex-direction: column; }
  .search-box button { width: 100%; }
  .cities-grid {
    grid-template-columns: 1fr;
  }
}
