/* =====================================================
   PRESTIGE REALTY — Main Stylesheet
   Modern, premium real estate design system
   ===================================================== */

/* ----- CSS Variables (Design Tokens) ----- */
:root {
  /* Colors */
  --primary:        #1a3c5e;
  --primary-light:  #2a5a8a;
  --primary-dark:   #0f2440;
  --accent:         #c8985e;
  --accent-light:   #dab47e;
  --accent-dark:    #a67840;
  --white:          #ffffff;
  --off-white:      #f8f7f4;
  --gray-50:        #fafafa;
  --gray-100:       #f5f5f5;
  --gray-200:       #eeeeee;
  --gray-300:       #e0e0e0;
  --gray-400:       #bdbdbd;
  --gray-500:       #9e9e9e;
  --gray-600:       #757575;
  --gray-700:       #616161;
  --gray-800:       #424242;
  --gray-900:       #212121;
  --success:        #2e7d32;
  --error:          #c62828;
  --warning:        #f57f17;

  /* Typography */
  --font-primary:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1280px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.03);
  --shadow-lg:   0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --shadow-xl:   0 20px 50px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);

  /* Borders */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Transitions */
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --transition:  all .3s var(--ease);
}

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Utility Classes ----- */
.section-label {
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 24px; font-size: .875rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--accent);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .logo-text { color: var(--primary-dark); }

.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.navbar.scrolled .nav-link {
  color: var(--gray-700);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
  background: var(--gray-100);
}

.nav-actions .btn {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
}

.navbar.scrolled .nav-actions .btn {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar.scrolled .hamburger span { background: var(--gray-800); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1555990793-da11153b2473?w=1920&q=80') center/cover no-repeat;
  opacity: .2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,36,64,.7) 0%, rgba(26,60,94,.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-label {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(200,152,94,.2);
  border: 1px solid rgba(200,152,94,.4);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp .8s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  animation: fadeInUp .8s var(--ease) .15s both;
}

.hero-title .highlight {
  color: var(--accent-light);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp .8s var(--ease) .3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .8s var(--ease) .45s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  animation: fadeInUp .8s var(--ease) .6s both;
}

.hero-stat h3 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent-light);
  font-weight: 700;
}

.hero-stat p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Floating shapes - decorative */
.hero-shapes {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border: 2px solid rgba(200,152,94,.15);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-shape:nth-child(1) { width: 400px; height: 400px; top: 10%; right: -5%; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 250px; height: 250px; top: 50%; right: 20%; animation-delay: -3s; }
.hero-shape:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 35%; animation-delay: -5s; }

/* ===================== SEARCH BAR ===================== */
.search-bar-section {
  position: relative;
  z-index: 10;
  margin-top: -48px;
  margin-bottom: 60px;
}

.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 180px;
}

.search-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.search-field input,
.search-field select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200,152,94,.1);
}

.search-bar .btn {
  min-width: 140px;
  padding: 14px 28px;
}

/* ===================== PROPERTY CARDS ===================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--gray-200);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.property-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.property-card:hover .property-card-image img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge-sale {
  background: var(--accent);
  color: var(--white);
}

.badge-rent {
  background: var(--primary);
  color: var(--white);
}

.property-featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
}

.property-card-body {
  padding: 24px;
}

.property-card-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.property-card-price span {
  font-size: .85rem;
  font-weight: 400;
  color: var(--gray-500);
  font-family: var(--font-primary);
}

.property-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
  line-height: 1.4;
}

.property-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.property-card-location svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.property-card-meta {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.property-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--gray-600);
}

.property-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ===================== FEATURED SECTION ===================== */
.featured-section {
  padding: var(--section-padding);
  background: var(--off-white);
}

.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===================== SERVICES / WHY CHOOSE US ===================== */
.services-section {
  padding: var(--section-padding);
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  padding: 40px 32px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 2px solid rgba(200,152,94,.1);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== LISTINGS PAGE ===================== */
.listings-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}

.listings-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.listings-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
}

.listings-section {
  padding: 60px 0 100px;
  background: var(--off-white);
}

.listings-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.listings-count {
  font-size: .95rem;
  color: var(--gray-600);
}

.listings-count strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.listings-sort select {
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .9rem;
  color: var(--gray-700);
  outline: none;
  cursor: pointer;
}

/* Filters sidebar */
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.filters-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filters-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-title svg { width: 20px; height: 20px; color: var(--accent); }

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--accent);
  background: var(--white);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.filter-actions .btn {
  flex: 1;
  padding: 10px 16px;
  font-size: .85rem;
}

.btn-reset {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn-reset:hover {
  background: var(--gray-200);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-state-icon svg { width: 36px; height: 36px; color: var(--gray-400); }

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ===================== PROPERTY DETAIL ===================== */
.detail-hero {
  padding: 100px 0 0;
  background: var(--primary-dark);
}

.detail-breadcrumb {
  padding: 20px 0;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
}

.detail-breadcrumb a {
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}

.detail-breadcrumb a:hover { color: var(--accent-light); }
.detail-breadcrumb span { margin: 0 8px; }

.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: -60px;
  position: relative;
  z-index: 2;
}

.detail-gallery-main {
  height: 480px;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.detail-gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-section {
  padding: 100px 0 80px;
  background: var(--off-white);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.detail-main {}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.detail-price span {
  font-size: .9rem;
  font-weight: 400;
  color: var(--gray-500);
  font-family: var(--font-primary);
}

.detail-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  margin-bottom: 32px;
}

.detail-location svg { width: 18px; height: 18px; color: var(--accent); }

.detail-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  margin-bottom: 32px;
}

.detail-feature {
  text-align: center;
}

.detail-feature svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}

.detail-feature-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.detail-feature-label {
  font-size: .8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.detail-description {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.detail-description h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.detail-description p {
  color: var(--gray-600);
  line-height: 1.8;
}

/* Sidebar - Inquiry Form */
.detail-sidebar {
  position: sticky;
  top: 100px;
}

.inquiry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.inquiry-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.inquiry-card .subtitle {
  font-size: .9rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200,152,94,.1);
}

.form-group .error-text {
  font-size: .78rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--error);
}

.form-group.has-error .error-text {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--success);
  margin-bottom: 12px;
}

.form-success h4 {
  color: var(--success);
  margin-bottom: 4px;
}

.form-success p {
  font-size: .9rem;
  color: var(--gray-600);
}

/* ===================== ABOUT PAGE ===================== */
.about-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.about-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-section {
  padding: var(--section-padding);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.about-stat h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.about-stat p {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* Team */
.team-section {
  padding: var(--section-padding);
  background: var(--off-white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.team-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card-body {
  padding: 24px;
  text-align: center;
}

.team-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.team-card-body p {
  font-size: .875rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===================== CONTACT PAGE ===================== */
.contact-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
}

.contact-section {
  padding: var(--section-padding);
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-info-card .icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .icon svg {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.contact-info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-form-card .subtitle {
  color: var(--gray-500);
  font-size: .95rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===================== ADMIN PAGE ===================== */

/* Admin login */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 24px;
}

.admin-login-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.admin-login-card .logo {
  justify-content: center;
  margin-bottom: 8px;
}

.admin-login-card .logo-text {
  color: var(--primary-dark);
}

.admin-login-card h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
  margin-top: 16px;
}

.admin-login-card .subtitle {
  color: var(--gray-500);
  font-size: .9rem;
  margin-bottom: 32px;
}

.admin-login-card .form-group {
  text-align: left;
}

.login-error {
  display: none;
  background: #fce4ec;
  color: var(--error);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
}

/* Admin dashboard */
.admin-panel {
  padding-top: 80px;
  min-height: 100vh;
  background: var(--gray-100);
}

.admin-header {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 32px;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.admin-header .btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  transition: var(--transition);
}

.admin-header .btn-logout:hover {
  background: #fce4ec;
  color: var(--error);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-property-count {
  font-size: .95rem;
  color: var(--gray-600);
}

/* Admin property table */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
  color: var(--gray-700);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: var(--gray-50); }

.admin-table-img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.admin-actions {
  display: flex;
  gap: 8px;
}

.admin-btn-edit,
.admin-btn-delete {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  transition: var(--transition);
}

.admin-btn-edit {
  background: #e3f2fd;
  color: #1565c0;
}
.admin-btn-edit:hover { background: #bbdefb; }

.admin-btn-delete {
  background: #fce4ec;
  color: var(--error);
}
.admin-btn-delete:hover { background: #f8bbd0; }

/* Admin modal for add/edit */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .25s var(--ease);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp .3s var(--ease);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--gray-500);
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-800); }

.modal-body {
  padding: 32px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 32px;
  border-top: 1px solid var(--gray-200);
}

.btn-cancel {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
}
.btn-cancel:hover { background: var(--gray-200); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--primary-dark);
  padding: 80px 0 0;
  color: rgba(255,255,255,.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-logo .logo-text { color: var(--white); }

.footer-desc {
  font-size: .9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255,255,255,.5);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-light); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
}

.footer-contact li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-socials a svg { width: 18px; height: 18px; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

/* Scroll-reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 24px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: .9rem;
  font-weight: 500;
  z-index: 3000;
  animation: slideUp .4s var(--ease), fadeIn .4s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination button {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}

.pagination button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* Confirm modal */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-overlay.active { display: flex; }

.confirm-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideUp .3s var(--ease);
}

.confirm-box h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.confirm-box p {
  color: var(--gray-600);
  font-size: .95rem;
  margin-bottom: 24px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-danger {
  background: var(--error);
  color: var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-danger:hover { opacity: .9; }

/* Image preview in admin form */
.image-preview {
  width: 100%;
  height: 160px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 8px;
  background: var(--gray-50);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview .placeholder-text {
  font-size: .85rem;
  color: var(--gray-400);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }
