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

:root {
  --primary-color: #1e3a5f;
  --primary-dark: #0f2744;
  --primary-light: #2d5a8a;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --text-light: #ffffff;
  --text-dark: #1f2937;
  --text-muted: #9ca3af;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  --border-color: #334155;
  --gradient-start: #1e3a5f;
  --gradient-end: #0f172a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links.show {
  display: flex;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: var(--bg-card-hover);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

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

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.language-option:hover {
  background: var(--bg-card-hover);
}

.language-option.active {
  background: var(--accent-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

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

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem;
  border-radius: 0.5rem;
}

.mobile-menu .nav-link:hover {
  background: var(--bg-card);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}
.hero-content img {
  max-width: 200px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--bg-card);
  color: var(--text-light);
}

.btn-primary:hover {
  background: var(--bg-card-hover);
}

.btn-secondary {
  background: transparent;
  color: var(white);
  border: 3px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card);
  color: var(--text-light);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--text-light);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

/* Sections */
.section {
  padding: 5rem 1rem;
}

.section-dark {
  background: var(--bg-dark);
}

.section-gradient {
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.card-description {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Services List */
.services-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.services-list li svg {
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Stats Section */
.stats-grid {
  display: grid;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-select {
  cursor: pointer;
}

.form-select option {
  background: var(--bg-dark);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.contact-info-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-light);
}

.contact-info-content p,
.contact-info-content a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-info-content a:hover {
  color: var(--accent-color);
}

/* Map */
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo img {
  height: 40px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #22c55e;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 3000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-color: #22c55e;
}

.toast-icon {
  color: #22c55e;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
}

/* About Page Specific */
.about-hero {
  padding-top: 8rem;
}

.about-content {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* Values Grid */
.values-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--accent-color);
}

.value-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.value-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 4rem 1rem;
  text-align: center;
  border-radius: 1rem;
  margin: 3rem 1rem;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta-text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
  display: none;
}

/* ======================== */
/* CATALOG STYLES           */
/* ======================== */

.catalog-filters {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .catalog-filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .catalog-filters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalog-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.catalog-results-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.catalog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  gap: 1rem;
}

.catalog-empty h3 {
  color: var(--text-light);
  font-size: 1.25rem;
}

.catalog-empty-icon {
  color: var(--border-color);
}

/* Property Card */
.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.property-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.property-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.property-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-sale {
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
}

.badge-rent {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.property-card-image-wrapper .property-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.property-image-count {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
}

.property-card-body {
  padding: 1.25rem;
}

.property-card-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.25rem;
}

.property-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
}

.property-card-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.property-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.property-type-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-color);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.property-type-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  margin-left: 0.5rem;
}

/* Property Detail Modal */
.property-modal {
  background: var(--bg-dark);
  border-radius: 1rem;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.property-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.property-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Gallery */
.property-gallery-main {
  position: relative;
  width: 100%;
  height: 350px;
  background: #000;
  overflow: hidden;
}

@media (min-width: 768px) {
  .property-gallery-main {
    height: 450px;
  }
}

.property-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.9);
}

.gallery-prev {
  left: 0.75rem;
}

.gallery-next {
  right: 0.75rem;
}

.gallery-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
}

.property-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  background: var(--bg-card);
}

.gallery-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.375rem;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-thumb:hover {
  opacity: 0.8;
}

.gallery-thumb.active {
  border-color: var(--accent-color);
  opacity: 1;
}

/* Modal Body */
.property-modal-body {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .property-modal-body {
    padding: 2rem;
  }
}

.property-modal-header {
  margin-bottom: 1.5rem;
}

.property-modal-title {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .property-modal-title {
    font-size: 1.75rem;
  }
}

.property-modal-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.property-modal-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.property-modal-stats {
  display: flex;
  gap: 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.modal-stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-light);
}

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

.property-modal-description {
  margin-bottom: 1.5rem;
}

.property-modal-description h3,
.property-modal-features h3 {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.property-modal-description p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.property-modal-features {
  margin-bottom: 2rem;
}

.property-features-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .property-features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.property-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.property-features-list li svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.property-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ======================== */
/* ADMIN PANEL STYLES       */
/* ======================== */

.admin-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: var(--bg-dark);
}

.admin-login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
}

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

.admin-login-logo img {
  height: 60px;
  margin-bottom: 1rem;
}

.admin-login-logo h2 {
  font-size: 1.5rem;
  color: var(--text-light);
}

.admin-login-logo p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.admin-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 1.5rem;
}

.admin-hint code {
  background: var(--bg-dark);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  color: var(--accent-color);
}

/* Admin Dashboard */
.admin-dashboard {
  min-height: 100vh;
  background: var(--bg-dark);
}

.admin-header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-header-left .logo img {
  height: 36px;
}

.admin-header-right {
  display: flex;
  gap: 0.5rem;
}

.admin-main {
  padding: 2rem 1rem;
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
}

.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}

.admin-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.admin-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

.admin-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-action-bar h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

/* Admin Table */
.admin-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
}

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

.admin-table thead {
  background: rgba(0, 0, 0, 0.2);
}

.admin-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

.admin-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table-img {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.admin-table-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-edit-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.admin-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: #ef4444;
}

.admin-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  gap: 1rem;
  text-align: center;
}

/* Admin Form Modal */
.admin-form-modal {
  background: var(--bg-dark);
  border-radius: 1rem;
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-overlay.show .admin-form-modal {
  transform: scale(1);
}

.admin-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 5;
}

.admin-form-header h2 {
  font-size: 1.25rem;
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

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

.admin-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .admin-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .admin-form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Image Upload */
.admin-image-upload {
  border: 2px dashed var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-muted);
}

.admin-image-upload:hover,
.admin-image-upload.dragover {
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.05);
}

.admin-image-upload svg {
  margin-bottom: 0.5rem;
}

.admin-image-previews {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-image-preview {
  position: relative;
  width: 100px;
  height: 75px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

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

.admin-image-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 22px;
  height: 22px;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-image-main-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(59, 130, 246, 0.9);
  color: #fff;
  font-size: 0.625rem;
  text-align: center;
  padding: 0.125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Responsive admin table */
@media (max-width: 768px) {
  .admin-table thead {
    display: none;
  }
  
  .admin-table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
    align-items: center;
  }
  
  .admin-table td {
    border: none;
    padding: 0.25rem;
  }
  
  .admin-table td:first-child {
    width: auto;
  }
  
  .admin-table td:nth-child(2) {
    flex: 1;
    min-width: 120px;
  }
  
  .admin-table td:last-child {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Loading Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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