/* ==========================================================
   ES Homes & Apartments — Phase 2 Redesign Stylesheet
   ========================================================== */

/* ==========================================================
   LAYER 01 – RESET
   ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
/* Clip reveal animations without changing the document's scroll container. */
#main-content { overflow-x: clip; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ==========================================================
   LAYER 02 – DESIGN TOKENS  (  --color / --font / --space / --radius / --shadow / --motion  )
   ========================================================== */
:root {
  /* ---------- COLOR PALETTE  –  Lux Navy ↔ Warm Gold ↔ Cream ---------- */
  --color-primary-dark:   #0B1E3F;
  --color-primary:        #1A2E55;
  --color-primary-soft:    #2A4378;
  --color-primary-glow:    rgba(26,46,85,0.14);
  --color-ink:             #0D162A;
  --color-ink-soft:        #3A4760;
  --color-ink-muted:       #6B748A;
  --color-gold:            #C9A962;
  --color-gold-light:      #E6C785;
  --color-gold-dark:       #A88538;
  --color-gold-glow:       rgba(201,169,98,0.22);
  --color-bg-warm:       #F6F3ED;
  --color-bg-cream:      #FDFBF7;
  --color-bg-paper:      #FBF8F1;
  --color-line:           #EAE3D4;
  --color-line-soft:       #EFE8D9;
  --color-success:        #2F855A;
  --color-danger:         #C0392B;
  --color-danger-soft:        #F5DEDC;
  --color-white:          #FFFFFF;

  /* ---------- TYPOGRAPHY ---------- */
  --font-sans:    'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-scale-0: clamp(0.78rem, 0.72rem + 0.2vw, 0.86rem);   /* caption */
  --text-scale-1: clamp(0.88rem, 0.84rem + 0.15vw, 0.95rem);   /* body small */
  --text-scale-2: clamp(1rem, 0.96rem + 0.15vw, 1.06rem);           /* body */
  --text-scale-3: clamp(1.12rem, 1.05rem + 0.3vw, 1.25rem);        /* lead */
  --text-scale-4: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);         /* h5 */
  --text-scale-5: clamp(1.5rem,  1.28rem + 0.9vw, 1.875rem);       /* h4 */
  --text-scale-6: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);          /* h3 */
  --text-scale-7: clamp(2.25rem, 1.7rem + 2.3vw, 3.25rem);        /* h2 */
  --text-scale-8: clamp(2.75rem, 1.95rem + 3.4vw, 4.75rem);         /* h1 / display */

  --line-tight:    1.15;
  --line-snug:     1.35;
  --line-normal:   1.6;
  --line-relaxed:  1.75;
  --tracking-tight: -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:   0.08em;

  /* ---------- SPACING (4px base) ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-section-y: clamp(64px, 8vw, 120px);
  --space-container-x: clamp(20px, 5vw, 56px);

  /* ---------- RADII ---------- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   28px;
  --radius-pill: 999px;
  --radius-full: 9999px;

  /* ---------- ELEVATION ---------- */
  --shadow-0: none;
  --shadow-1: 0 1px 2px rgba(11,30,63,0.06), 0 1px 3px rgba(11,30,63,0.05);
  --shadow-2: 0 4px 8px -2px rgba(11,30,63,0.08), 0 2px 4px -2px rgba(11,30,63,0.05);
  --shadow-3: 0 12px 24px -8px rgba(11,30,63,0.14), 0 6px 12px -6px rgba(11,30,63,0.08);
  --shadow-4: 0 24px 48px -12px rgba(11,30,63,0.22), 0 10px 20px -10px rgba(11,30,63,0.12);
  --shadow-hero: 0 40px 80px -24px rgba(11,30,63,0.35);
  --shadow-gold: 0 12px 32px -8px var(--color-gold-glow);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.06);

  /* ---------- MOTION ---------- */
  --duration-xs: 120ms;
  --duration-sm: 240ms;
  --duration-md: 420ms;
  --duration-lg: 700ms;
  --duration-xl: 1100ms;
  --ease-smooth:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-io:      cubic-bezier(0.65, 0, 0.35, 1);
  --fx-stagger-step: 90ms;

  /* ---------- LAYOUT ---------- */
  --container-max: 1280px;
  --header-h: 72px;
  --header-h-scrolled: 60px;
}

/* ==========================================================
   LAYER 03 – BASE ELEMENTS
   ========================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--text-scale-2);
  line-height: var(--line-normal);
  color: var(--color-ink);
  background-color: var(--color-bg-warm);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--text-scale-8); font-weight: 500; }
h2 { font-size: var(--text-scale-7); }
h3 { font-size: var(--text-scale-6); }
h4 { font-size: var(--text-scale-5); }
h5 { font-size: var(--text-scale-4); }

p  { color: var(--color-ink-soft); line-height: var(--line-relaxed); }

/* ---------- Backwards-compat legacy tokens (keep) ---------- */
:root {
  --primary-color: var(--color-primary-soft);
  --secondary-color: var(--color-primary);
  --dark-color: var(--color-primary-dark);
  --light-color: var(--color-bg-warm);
  --text-color: var(--color-ink);
  --text-light: var(--color-ink-soft);
  --white: var(--color-white);
  --black: var(--color-ink);
  --shadow: var(--shadow-2);
  --transition: all var(--duration-md) var(--ease-smooth);
  --border-radius: var(--radius-md);
  --section-padding: var(--space-section-y) 0;
  --error-color: var(--color-danger);
  --success-color: var(--color-success);
  --gold: var(--color-gold);
}

/* ===== AUTHENTICATION PAGES STYLES ===== */
.auth-section {
  padding: var(--section-padding);
  background-color: var(--light-color);
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
}

.auth-container {
  display: flex;
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}

.auth-form-wrapper {
  flex: 1;
  padding: 3rem;
}

.auth-image {
  flex: 1;
  position: relative;
  display: none;
}

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

.auth-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 58, 110, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-image-content {
  color: var(--white);
  text-align: center;
}

.auth-image-content h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-title:after {
  left: 50%;
  transform: translateX(-50%);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.input-with-icon input {
  padding-left: 45px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.auth-form input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 89, 152, 0.1);
}

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

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 0.5rem;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  margin-bottom: 1.5rem;
}

.auth-divider {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.auth-divider:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ddd;
}

.auth-divider span {
  position: relative;
  background-color: var(--white);
  padding: 0 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid #ddd;
  color: var(--text-color);
  padding: 10px;
}

.btn-google:hover {
  background-color: #dd4b39;
  border-color: #dd4b39;
  color: var(--white);
}

.btn-facebook:hover {
  background-color: #3b5998;
  border-color: #3b5998;
  color: var(--white);
}

.auth-footer {
  text-align: center;
  font-size: 0.95rem;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.terms-checkbox {
  margin-bottom: 1.5rem;
}

.terms-checkbox label {
  display: flex;
  align-items: flex-start;
}

.terms-checkbox input {
  margin-right: 10px;
  margin-top: 5px;
}

.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.input-error {
  border-color: var(--error-color) !important;
}

.input-success {
  border-color: var(--success-color) !important;
}

/* Media Queries for Auth Pages */
@media (min-width: 768px) {
  .auth-image {
    display: block;
  }
}

@media (max-width: 767px) {
  .auth-form-wrapper {
    padding: 2rem;
  }
  
  .auth-title {
    font-size: 1.8rem;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    margin-bottom: 1.5rem;
  }
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
  font-size: 1.05rem;
  font-weight: 400;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

strong, b {
  font-weight: 600;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--dark-color);
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

h1 {
  font-size: 3.8rem;
  font-weight: 800;
}

h2 {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: var(--section-padding);
}

.text-center {
  text-align: center;
}

.mt-5 {
  margin-top: 3rem;
}

.bg-light {
  background-color: var(--light-color);
}

.bg-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: var(--dark-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.btn-light:hover {
  background-color: var(--light-color);
  color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  transition: var(--transition);
}

/* User Navigation Styles */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 5px;
}

.profile-icon {
  font-size: 24px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.profile-icon:hover {
  color: var(--secondary-color);
}

.login-btn {
  padding: 8px 15px;
  font-size: 14px;
}

/* Book Now Button */
.book-btn {
  margin-left: 20px;
}

.book-btn .btn {
  padding: 10px 20px;
}

/* Mobile Book Now Button */
.mobile-book-btn {
  display: none;
  margin: 15px 0;
  text-align: center;
}

.mobile-book-btn .mobile-btn {
  display: inline-block;
  width: 80%;
  max-width: 200px;
  margin: 0 auto;
  padding: 12px 20px;
  font-weight: 700;
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

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

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

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

.nav-toggle {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  z-index: 1000;
  outline: none;
  transition: all 0.3s ease;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 4px auto;
  background-color: var(--text-color);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

/* Hamburger animation */
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle:hover .bar {
  background-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 90px;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  max-width: 700px;
  padding-top: 150px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.hero-prev,
.hero-next {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-prev:hover,
.hero-next:hover {
  background-color: var(--primary-color);
}

.hero-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  background-color: var(--white);
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.value-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.value-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding-bottom: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--primary-color);
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 4px;
  background-color: var(--accent-color);
  z-index: 1;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FEATURED APARTMENTS ===== */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.apartment-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.apartment-card:hover {
  transform: translateY(-10px);
}

.apartment-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.apartment-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.apartment-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.apartment-content {
  padding: 25px;
}

.apartment-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.apartment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.apartment-meta span {
  display: flex;
  align-items: center;
}

.apartment-meta i {
  margin-right: 5px;
  color: var(--primary-color);
}

.apartment-description {
  margin-bottom: 20px;
  color: var(--text-light);
}

.apartment-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.period {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-left: 5px;
}

.apartment-actions {
  display: flex;
  gap: 10px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--light-color);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 350px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.testimonial-slide.active {
  opacity: 1;
  z-index: 2;
}

.testimonial-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-rating {
  margin-bottom: 15px;
}

.testimonial-rating i {
  color: var(--accent-color);
  margin-right: 3px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.testimonial-prev,
.testimonial-next {
  background-color: var(--white);
  color: var(--primary-color);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.testimonial-dots {
  display: flex;
  gap: 10px;
  margin: 0 20px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* ===== CTA SECTION ===== */
.cta {
  background-color: var(--primary-color);
  color: var(--white);
}

.cta-title {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 70px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  font-style: italic;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

.footer-links ul li a {
  color: var(--light-color);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-contact ul li i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-contact ul li a {
  color: var(--light-color);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-color);
  transform: translateY(-5px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal-left.active,
.reveal-right.active,
.reveal-up.active {
  opacity: 1;
  transform: translate(0);
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  h1 {
    font-size: 3.2rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }

  /* Show hamburger menu on mobile */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
  }
  
/* Default styles for the navigation list */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Hide the navigation list on mobile by default */
@media (max-width: 992px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background: #fff; /* Adjust to match your design */
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Show the navigation list when active */
    .nav-list.active {
        display: flex;
    }

    /* Style the hamburger menu button */
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Hide the hamburger menu on desktop */
    @media (min-width: 993px) {
        .nav-toggle {
            display: none;
        }
    }

    /* Style navigation links for mobile */
    .nav-list li {
        margin: 0.5rem 0;
    }

    .nav-list .nav-link {
        display: block;
        padding: 0.5rem;
        text-align: center;
    }

    /* Style the mobile book button */
    .mobile-book-btn {
        display: block;
        text-align: center;
    }

    /* Hide desktop book button on mobile */
    .desktop-book-btn {
        display: none;
    }
}

/* Ensure desktop styles */
@media (min-width: 993px) {
    .nav-list {
        display: flex !important; /* Override any mobile styles */
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
    }

    .mobile-book-btn {
        display: none;
    }

    .desktop-book-btn {
        display: block;
    }
}

/* Hamburger menu icon animation */
.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: #333; /* Adjust to match your design */
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
  
  .mobile-book-btn {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .mobile-book-btn .mobile-btn {
    transition: all 0.3s ease;
    transform: scale(1);
  }
  
  .mobile-book-btn .mobile-btn:hover {
    transform: scale(1.05);
  }
  
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 30px;
    max-width: 100%;
  }
  
  .apartments-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .section-title::after {
    width: 80px;
  }
  
  .hero-content {
    padding-top: 120px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2.4rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  .header-content {
    padding: 15px 0;
  }
  
  .logo img {
    max-width: 120px;
  }
  
  .nav-list {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-list.active {
    left: 0;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .apartments-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }
  
  .about-values {
    grid-template-columns: 1fr;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero-content {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .hero-btns .btn {
    margin: 10px 0;
    width: 100%;
    max-width: 200px;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .apartment-actions {
    flex-direction: column;
  }
  
  .apartment-actions .btn {
    width: 100%;
    margin: 5px 0;
  }
}

/* Small mobile devices */
@media screen and (max-width: 375px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .logo img {
    max-width: 100px;
  }
}

/* Templates load _components.css and _pages.css after this base stylesheet. */
