/* ========== THEME VARIABLES ========== */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #666666;
  --border: #dddddd;
  --header-bg: #ffffff;
  --shadow: rgba(0,0,0,0.08);
  --shadow-hover: rgba(0,0,0,0.14);
  --tag-bg: #eaf1ff;
  --brand-shine: linear-gradient(90deg, #ffffff 0%, #60a5fa 22%, #fbbf24 42%, #a78bfa 62%, #ffffff 85%);
}

[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-hover: #3b82f6;
  --bg: #0f172a;
  --bg-alt: #111c33;
  --card: #1a2740;
  --text: #e8eefc;
  --text-muted: #a6b4cd;
  --border: #33415c;
  --header-bg: #1a2740;
  --shadow: rgba(0,0,0,0.3);
  --shadow-hover: rgba(0,0,0,0.45);
  --tag-bg: #1e3a5f;
}

/* ========== SPARKLING ANIMATED BORDER ========== */
@property --spark-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes sparkle-spin {
  to { --spark-angle: 360deg; }
}

.sparkle {
  position: relative;
  isolation: isolate;
}

.sparkle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--spark-angle),
    transparent 0%,
    #60a5fa 12%,
    #a78bfa 25%,
    #f472b6 38%,
    #fbbf24 48%,
    transparent 62%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  animation: sparkle-spin 4s linear infinite;
}

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,0.35); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
}
.header.scrolled {
  background: var(--header-bg);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 12px 0;
  --brand-shine: linear-gradient(90deg, #1a1a2e 0%, #2563eb 22%, #d97706 42%, #7c3aed 62%, #1a1a2e 85%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1.1;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  flex-shrink: 0;
}
.header.scrolled .logo { color: var(--text); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 3px;
  background-image: var(--brand-shine);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shine 5s linear infinite;
}
.brand-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 3.4px;
  color: #60a5fa;
}
.header.scrolled .brand-sub { color: var(--primary); }

@keyframes brand-shine {
  to { background-position: 200% center; }
}

.nav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.nav-link {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.header.scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--primary); }

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

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.1); }
.header.scrolled .theme-toggle { border-color: var(--border); background: var(--bg-alt); color: var(--text); }

.header-call {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.header-call:hover { background: #2563eb; border-color: #2563eb; transform: scale(1.1); }
.header.scrolled .header-call { border-color: var(--border); background: var(--bg-alt); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
.header.scrolled .menu-toggle span { background: var(--text); }

/* ========== HERO + IMAGE CAROUSEL ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 7s ease-out;
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(8,14,36,0.78), rgba(8,14,36,0.88));
}

.hero-content { position: relative; z-index: 2; }

.hero-pill {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 30px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.15; max-width: 720px; }
.hero h1 span { color: #60a5fa; text-shadow: 0 0 35px rgba(96,165,250,0.5); }
.hero p { max-width: 580px; margin: 20px 0 30px; font-size: 1.05rem; color: #dbe4ff; }

.hero-arrow, .test-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}
.hero-arrow:hover { background: #2563eb; border-color: #2563eb; transform: translateY(-50%) scale(1.1); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }

.hero-dots, .test-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot, .test-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}
.hero-dot.active { background: #fff; width: 30px; border-radius: 6px; }

/* search bar */
.search-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: rgba(255,255,255,0.97);
  padding: 18px;
  border-radius: 14px;
  max-width: 900px;
  flex-wrap: wrap;
  box-shadow: 0 15px 45px rgba(0,0,0,0.2);
}
.search-field { flex: 1; min-width: 160px; }
.search-field label { display: block; font-size: 0.75rem; font-weight: 600; color: #666; margin-bottom: 4px; text-transform: uppercase; }
.search-field select {
  width: 100%; padding: 8px 4px;
  border: none; border-bottom: 1px solid #ddd;
  font-size: 0.95rem; font-family: inherit; color: #1a1a2e;
  background: transparent; outline: none;
}
.search-btn { white-space: nowrap; }

.hero-stats {
  display: flex;
  gap: 18px;
  margin-top: 45px;
  flex-wrap: wrap;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 195px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.stat-card:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 18px 35px rgba(37,99,235,0.35);
}

.stat-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 6px 16px rgba(37,99,235,0.45);
}
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 6px 16px rgba(124,58,237,0.45); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 6px 16px rgba(245,158,11,0.45); }

.stat-text { display: flex; flex-direction: column; line-height: 1.2; }
.stat-number {
  font-size: 1.85rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-text span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #dbe4ff;
}

.stat-star {
  position: absolute;
  top: -9px; right: -6px;
  font-size: 0.95rem;
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.8) rotate(-10deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}

/* ========== SECTION COMMON ========== */
.section { padding: 100px 0; }
.section-light { background: var(--bg-alt); }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.section-header.center { justify-content: center; text-align: center; }

.tag {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--tag-bg);
  padding: 5px 14px;
  border-radius: 30px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-top: 12px; }

.list-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.sort-wrap select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

/* ========== PROPERTY CARDS ========== */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.property-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 5px 25px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px var(--shadow-hover); }
.card-img-wrap { position: relative; height: 220px; overflow: hidden; background: var(--tag-bg); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .card-img-wrap img { transform: scale(1.1); }

.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: #2563eb; color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.card-body { padding: 20px; }
.card-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.card-title { font-size: 1.05rem; font-weight: 600; margin: 6px 0; }
.card-location { color: var(--text-muted); font-size: 0.9rem; display: flex; align-items: center; gap: 5px; }
.card-features {
  display: flex; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 16px; padding-top: 14px;
  color: var(--text-muted); font-size: 0.85rem;
}
.card-features span { display: flex; align-items: center; gap: 4px; }
.card-btn { width: 100%; margin-top: 18px; text-align: center; }

.no-results { text-align: center; padding: 40px; color: var(--text-muted); font-size: 1.1rem; }
.no-results[hidden] { display: none; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  border-radius: 8px; font-family: inherit; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s ease;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.page-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ========== SERVICES ========== */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.service-card {
  background: var(--card);
  padding: 35px 25px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 5px 25px var(--shadow);
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); }
.service-icon {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--tag-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ========== TESTIMONIALS CAROUSEL ========== */
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 18px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
}
.testimonial-track { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial {
  min-width: 100%;
  padding: 45px 60px;
  text-align: center;
}
.stars { color: #fbbf24; font-size: 1.4rem; letter-spacing: 4px; margin-bottom: 16px; }
.testimonial p { font-style: italic; font-size: 1.05rem; color: var(--text); line-height: 1.9; }
.client { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.client strong { display: block; }
.client span { font-size: 0.85rem; color: var(--text-muted); }

.test-arrow {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 14px var(--shadow);
}
.test-arrow:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
.test-arrow.prev { left: 12px; }
.test-arrow.next { right: 12px; }

.test-dots { position: static; transform: none; margin-top: 22px; }
.test-dot { background: #cbd5e1; }
.test-dot.active { background: #2563eb; width: 28px; border-radius: 6px; }

/* ========== ABOUT ========== */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 12px 0 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 20px; }
.about-list li { margin-bottom: 10px; }
.about-box {
  position: relative;
  height: 400px;
  background: var(--tag-bg);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
}
.about-shape { position: absolute; width: 250px; height: 250px; border-radius: 50%; }
[data-theme="light"] .about-shape { background: #c7dbff; }
[data-theme="dark"] .about-shape { background: #244473; }
.about-emoji { font-size: 8rem; position: relative; }

/* ========== CONTACT ========== */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  padding: 35px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 40px var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit; font-size: 1rem;
  outline: none; resize: vertical;
  background: var(--bg); color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.contact-form .btn { align-self: flex-start; }
.form-msg { color: #16a34a; font-weight: 500; min-height: 24px; }
.form-msg.error { color: #dc2626; }

.contact-info {
  max-width: 680px;
  margin: -8px auto 26px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
  background: var(--tag-bg);
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.contact-info a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--shadow); }

/* floating call button */
.call-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 900;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(37,99,235,0.45);
  animation: fab-pulse 2.2s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.call-fab:hover { transform: scale(1.1); }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(37,99,235,0.45), 0 0 0 0 rgba(37,99,235,0.35); }
  50% { box-shadow: 0 8px 25px rgba(37,99,235,0.45), 0 0 0 14px rgba(37,99,235,0); }
}

/* ========== FOOTER ========== */
.footer { background: #0f172a; color: #cbd5e1; padding: 70px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer .logo { color: #fff; }
.footer-inner .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-inner p { margin-top: 12px; font-size: 0.95rem; }
.footer-inner h4 { color: #fff; margin-bottom: 15px; }
.footer-inner a { display: block; margin-bottom: 8px; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-inner a:hover { color: #60a5fa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; text-align: center; font-size: 0.85rem; }

/* ========== MODAL ========== */
.modal {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-content {
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute; top: 10px; right: 15px; z-index: 1;
  background: #fff; border: none;
  font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.modal-content img { width: 100%; height: 260px; object-fit: cover; }
.modal-body { padding: 25px; }
.modal-body p { margin: 8px 0; color: var(--text-muted); }
.modal-features { background: var(--bg-alt); padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; }

/* ========== RESPONSIVE / MEDIA QUERIES ========== */
@media (max-width: 1250px) {
  .header-inner { gap: 12px; }
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo img { width: 36px; height: 36px; }
  .nav { gap: 14px; }
  .nav-link { font-size: 0.85rem; }
  .header-call { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 8px 12px; font-size: 0.8rem; }
}

@media (max-width: 1200px) {
  .header-inner { gap: 14px; }
  .nav { gap: 16px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .header-actions .btn-outline, .header-call { display: none; }
}

@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-box { height: 300px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .list-controls { width: 100%; justify-content: space-between; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: 70px; left: 0;
    width: 100%;
    background: var(--header-bg);
    flex-direction: column; align-items: center; gap: 0;
    padding: 10px 0;
    box-shadow: 0 8px 20px var(--shadow);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { color: var(--text) !important; padding: 10px 0; width: 100%; text-align: center; }
  .header-actions .btn { display: none; }
  .theme-toggle { border-color: var(--border); background: var(--bg-alt); color: var(--text); }

  .hero-arrow { display: none; }
  .hero-stats { gap: 25px; flex-wrap: wrap; }
  .hero-stats strong { font-size: 1.4rem; }
  .search-bar { flex-direction: column; align-items: stretch; }
  .search-field { min-width: 100%; }
  .search-btn { width: 100%; }

  .section { padding: 70px 0; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .list-controls { flex-direction: column; align-items: flex-start; }
  .testimonial { padding: 40px 28px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 25px; }
  .property-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .stat-card { min-width: 145px; padding: 12px 14px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 1.1rem; border-radius: 10px; }
  .stat-number { font-size: 1.5rem; }
  .stat-text span { font-size: 0.68rem; letter-spacing: 0.6px; }
  .sort-wrap { width: 100%; }
  .sort-wrap select { flex: 1; }
  .contact-form { padding: 24px 18px; }
  .contact-info { gap: 12px; }
  .contact-info a { font-size: 0.85rem; padding: 9px 14px; }
  .call-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .logo { font-size: 1.1rem; }
  .logo img { width: 36px; height: 36px; }
  .brand-name { font-size: 0.95rem; letter-spacing: 2px; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 2.4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
