/* ============================================
   FN ESTATES - Premium Real Estate Website
   ============================================ */

:root {
  --navy: #0a1628;
  --navy-light: #132044;
  --navy-medium: #1a2d4e;
  --gold: #c8a45c;
  --gold-light: #d4b672;
  --gold-dark: #a8883e;
  --grey-100: #f8f9fb;
  --grey-200: #eef0f4;
  --grey-300: #dde0e6;
  --grey-400: #9ca3af;
  --grey-500: #6b7280;
  --grey-600: #4b5563;
  --white: #ffffff;
  --black: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.08);
  --shadow-md: 0 4px 20px rgba(10,22,40,0.12);
  --shadow-lg: 0 10px 40px rgba(10,22,40,0.16);
  --shadow-xl: 0 20px 60px rgba(10,22,40,0.2);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

*, *::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(--grey-600);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }

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

.section { padding: 100px 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-grey { background: var(--grey-100); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  display: block;
}

.section-tag.light { color: var(--gold-light); }
.section-tag.light::before { background: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--grey-500);
  max-width: 600px;
  line-height: 1.7;
}

/* ============================================
   PREMIUM BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,164,92,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--grey-300);
}

.btn-outline-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

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

.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200,164,92,0.3);
}

.btn-nav {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-nav:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,22,40,0.97);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  font-family: var(--font-display);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.nav-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  display: block;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0d1f3c 40%, #162a4e 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,164,92,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,164,92,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}

.hero-bg-slide.active { opacity: 1; }
.hero-bg-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.6) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10,22,40,0.4) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,164,92,0.15);
  border: 1px solid rgba(200,164,92,0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 750px;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gold-text { color: var(--gold); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SEARCH FILTERS
   ============================================ */
.search-section {
  position: relative;
  z-index: 3;
  margin-top: -50px;
  margin-bottom: 0;
}

.search-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 32px;
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.search-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-500);
  transition: var(--transition);
  position: relative;
}

.search-tab:hover { color: var(--navy); }
.search-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.search-form { display: none; }
.search-form.active { display: block; }

.search-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.filter-group { position: relative; }

.filter-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-500);
  margin-bottom: 6px;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--grey-600);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,92,0.1);
}

.search-btn {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  height: 46px;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

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

.property-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

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

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

.property-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.badge-for-sale { background: var(--gold); color: var(--navy); }
.badge-for-rent { background: var(--navy); color: var(--white); }
.badge-sold { background: var(--grey-500); color: var(--white); }
.badge-featured { background: var(--error); color: var(--white); }

.property-card-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--grey-500);
  transition: var(--transition);
  z-index: 2;
  border: none;
  cursor: pointer;
}

.property-card-wishlist:hover,
.property-card-wishlist.active {
  background: var(--error);
  color: var(--white);
}

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

.property-card-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.property-card-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grey-400);
}

.property-card-address {
  font-size: 0.9rem;
  color: var(--grey-500);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.property-card-features {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--grey-200);
}

.property-card-features span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--grey-500);
}

.property-card-features i {
  color: var(--gold);
  font-size: 0.9rem;
}

.property-card-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--grey-200);
}

.property-card-agent img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.property-card-agent span {
  font-size: 0.83rem;
  color: var(--grey-500);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid var(--grey-200);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(200,164,92,0.1), rgba(200,164,92,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: var(--navy);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.7;
}

/* ============================================
   PROPERTY TYPES SECTION
   ============================================ */
.types-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.type-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.type-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,0.9) 100%);
  transition: var(--transition);
}

.type-card:hover .type-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(10,22,40,0.95) 100%);
}

.type-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 1;
}

.type-card-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}

.type-card-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.type-card-content .count {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================
   AGENTS SECTION
   ============================================ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.agent-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.agent-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.agent-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.agent-card-rating {
  position: absolute;
  bottom: 10px;
  left: 16px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gold);
}

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

.agent-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.agent-card-body .agent-title {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.agent-card-body .agent-bio {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

.agent-card-body .agent-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--grey-200);
  margin-bottom: 12px;
}

.agent-card-body .agent-stats span {
  font-size: 0.78rem;
  color: var(--grey-500);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agent-card-body .agent-stats strong {
  font-size: 1rem;
  color: var(--navy);
}

.agent-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.agent-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--grey-500);
  transition: var(--transition);
}

.agent-social a:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================
   MORTGAGE CALCULATOR
   ============================================ */
.calculator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calculator-form { background: var(--white); padding: 40px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }

.calc-row { margin-bottom: 20px; }
.calc-row label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.calc-row label span { font-weight: 400; color: var(--grey-400); }

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-wrapper .currency {
  position: absolute;
  left: 14px;
  font-size: 0.9rem;
  color: var(--grey-500);
  font-weight: 600;
}

.calc-input-wrapper .percent {
  position: absolute;
  right: 14px;
  font-size: 0.9rem;
  color: var(--grey-500);
  font-weight: 600;
}

.calc-input-wrapper input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.calc-input-wrapper input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,164,92,0.1); }
.calc-input-wrapper input[type="range"] {
  padding: 0;
  height: 6px;
  border: none;
  accent-color: var(--gold);
}

.calc-results {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-results h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-result-item:last-child { border-bottom: none; }

.calc-result-item .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.calc-result-item .value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.calc-result-item .value.gold { color: var(--gold); }

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

.insight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--grey-200);
  transition: var(--transition);
}

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

.insight-card .insight-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(200,164,92,0.1), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.insight-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.insight-card .trend { font-size: 1.5rem; font-weight: 700; font-family: var(--font-display); margin-bottom: 4px; }
.insight-card .trend.up { color: var(--success); }
.insight-card .trend.down { color: var(--error); }

.insight-card p {
  font-size: 0.85rem;
  color: var(--grey-500);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 0 80px;
  text-align: center;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.testimonial-author h4 {
  font-size: 1rem;
  color: var(--white);
  text-align: left;
}

.testimonial-author span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: block;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.testimonial-controls button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.testimonial-controls button:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,164,92,0.1);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.testimonial-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--gold); }

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq-question i {
  transition: var(--transition);
  color: var(--gold);
  font-size: 0.85rem;
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ============================================
   BLOG / NEWS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.blog-card-category {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card-body { padding: 24px; }

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-bottom: 10px;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.7;
  margin-bottom: 14px;
}

.blog-card-body .read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.blog-card-body .read-more:hover { gap: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

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

.footer-brand .nav-logo-text { font-size: 1.6rem; }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 20px 0;
  color: rgba(255,255,255,0.5);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,164,92,0.1);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(200,164,92,0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200,164,92,0.4);
}

/* ============================================
   ANIMATED COUNTERS
   ============================================ */
.counter-value { font-family: var(--font-display); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PARALLAX SECTION
   ============================================ */
.parallax-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .search-filters { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
  .section-title { font-size: 2.2rem; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .insights-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .calculator-wrapper { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,22,40,0.98);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-toggle { display: flex; }
  .nav-actions .btn-nav { display: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.8rem; }
  .property-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-filters { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat { flex: 1; min-width: 100px; }
  .hero-stat h3 { font-size: 1.6rem; }
  .testimonial-card { padding: 0 20px; }
  .testimonial-text { font-size: 1rem; }
  .calculator-form { padding: 24px; }
  .calc-results { padding: 24px; }
  .search-container { padding: 20px; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-actions .btn-nav { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-tabs { flex-wrap: wrap; }
  .search-tab { flex: none; width: calc(50% - 2px); font-size: 0.8rem; padding: 10px; }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.3s ease;
}

.modal-content.modal-agent { max-width: 600px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grey-100);
  border: none;
  font-size: 1.3rem;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--error);
  color: var(--white);
}

.modal-body { padding: 0; }

/* Modal Property Detail */
.modal-gallery {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.modal-info { padding: 32px; }

.modal-info .modal-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.modal-info .modal-address {
  font-size: 1rem;
  color: var(--grey-500);
  margin-bottom: 16px;
}

.modal-info .modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.modal-features {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 16px;
}

.modal-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--grey-600);
}

.modal-features i { color: var(--gold); }

.modal-desc {
  font-size: 0.95rem;
  color: var(--grey-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.modal-amenities li {
  font-size: 0.88rem;
  color: var(--grey-600);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-amenities li i {
  color: var(--success);
  font-size: 0.75rem;
}

.modal-agent-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.modal-agent-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-agent-card h4 {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
}

.modal-agent-card span {
  font-size: 0.85rem;
  color: var(--grey-500);
}

.modal-agent-card .agent-rating {
  color: var(--gold);
  font-size: 0.85rem;
}

.modal-enquiry-form { margin-top: 20px; }

.modal-enquiry-form h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.modal-enquiry-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-enquiry-form input,
.modal-enquiry-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.modal-enquiry-form input:focus,
.modal-enquiry-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,164,92,0.1);
}

.modal-enquiry-form textarea {
  height: 100px;
  resize: vertical;
  margin-bottom: 12px;
}

/* Agent Modal */
.modal-agent-header {
  text-align: center;
  padding: 40px 32px 24px;
}

.modal-agent-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--gold);
}

.modal-agent-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-agent-header .modal-agent-title {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
}

.modal-agent-header .modal-agent-rating {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 4px;
}

.modal-agent-body { padding: 0 32px 32px; }

.modal-agent-body .modal-agent-bio {
  font-size: 0.95rem;
  color: var(--grey-500);
  line-height: 1.8;
  margin-bottom: 20px;
}

.modal-agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-agent-stat {
  text-align: center;
  padding: 16px;
  background: var(--grey-100);
  border-radius: var(--radius-sm);
}

.modal-agent-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
}

.modal-agent-stat span {
  font-size: 0.78rem;
  color: var(--grey-500);
}

@media (max-width: 768px) {
  .modal-gallery { height: 220px; }
  .modal-info { padding: 24px; }
  .modal-info .modal-price { font-size: 1.5rem; }
  .modal-features { flex-wrap: wrap; gap: 12px; }
  .modal-amenities { grid-template-columns: 1fr; }
  .modal-enquiry-form .form-row { grid-template-columns: 1fr; }
  .modal-agent-stats { grid-template-columns: 1fr; }
}
