/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Color Variables & Base Styles */
:root {
  --primary: #0f172a;       /* Deep Slate */
  --primary-light: #1e293b; /* Slate 800 */
  --accent: #d97706;        /* High-contrast Gold */
  --accent-hover: #b45309;  /* Darker Gold */
  --bg: #f8fafc;            /* White */
  --card-bg: #ffffff;       /* White card */
  --text: #0f172a;          /* Dark text */
  --text-muted: #475569;    /* Slate 600 */
  --whatsapp: #25d366;      /* WA Green */
  --whatsapp-hover: #20ba5a;
  --border-color: #e2e8f0;  /* Light border */
  --shadow-gold: rgba(217, 119, 6, 0.15);
  
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.serif-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title h2 span {
  color: var(--accent);
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(248, 250, 252, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: var(--transition);
}

header.scrolled .nav-container {
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-main span {
  color: var(--accent);
}

.logo-sub {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  white-space: normal;
  max-width: 100%;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 15px var(--shadow-gold);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.94) 0%, rgba(241, 245, 249, 0.88) 100%), url('images/hero_bg.png');
  background-size: cover;
  background-position: center;
  padding-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 650px;
  z-index: 10;
}

.hero-card-preview {
  display: flex;
  justify-content: center;
}

.hero-agent-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 320px;
}

.hero-card-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #0f172a;
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.hero-card-avatar-wrapper {
  width: 90px;
  height: 90px;
  margin: 12px auto 14px;
  border-radius: 50%;
  border: 3px solid #d97706;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-info h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 2px;
  font-weight: 800;
}

.hero-card-info p {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero-card-stats {
  display: flex;
  justify-content: space-around;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 0;
  margin-bottom: 16px;
}

.hstat-box strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 800;
}

.hstat-box span {
  font-size: 0.72rem;
  color: #64748b;
}

.btn-wa-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: #ffffff;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-wa-hero:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.hero-badge {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #b45309;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #0f172a;
  font-weight: 800;
}

.hero h1 span {
  color: #b45309;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #475569;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  gap: 8px;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Quick Search Bar */
.search-container {
  margin-top: -60px;
  position: relative;
  z-index: 20;
}

.search-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.search-field select,
.search-field input {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--accent);
}

.search-btn {
  flex: 0 0 auto;
  height: 48px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 0 32px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-btn:hover {
  background: var(--accent-hover);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Airbnb-Style Filter Pills */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    padding-bottom: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    cursor: grab;
  }

  .filter-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .filter-tabs::-webkit-scrollbar-track {
    background: transparent;
  }

  .filter-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
  }

  .filter-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.filter-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.filter-tab:hover {
  border-color: #0f172a;
  color: #0f172a;
  transform: translateY(-1px);
}

.filter-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Slider / Carousel System */
.slider-controls-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.slider-nav-btns {
  display: flex;
  gap: 12px;
}

.slider-nav-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.slider-nav-btn:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--shadow-gold);
}

.slider-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f1f5f9;
  color: var(--text-muted);
  box-shadow: none;
}

.slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.slider-track .property-card {
  flex: 0 0 calc(33.333% - 20px); /* Default 3 items on desktop */
}

/* Property Cards */
.property-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.property-image-container {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image-container img {
  transform: scale(1.05);
}

.property-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
}

.property-location-tag {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.property-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.property-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-cta {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.btn-wa {
  flex: 1;
  background: var(--whatsapp);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover,
.service-card.active-scroll {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
  border-color: #d97706;
  box-shadow: 0 15px 35px rgba(217, 119, 6, 0.12);
  transform: translateY(-6px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: #fff8e6;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon,
.service-card.active-scroll .service-icon {
  background: #0f172a;
  color: #fbbf24;
  border-color: #0f172a;
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #0f172a;
  transition: color 0.3s ease;
}

.service-card:hover h3,
.service-card.active-scroll h3 {
  color: #b45309;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Calculator Section */
.calculator-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.slider-label span:last-child {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: #e2e8f0;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  border: 3px solid #d97706;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Redesigned Stacked Output Card at Bottom */
.calc-result {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.result-header {
  text-align: center;
}

.result-badge {
  display: inline-block;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.result-value {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.result-value span {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 600;
}

/* Fee Breakdown Grid */
.calc-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.breakdown-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.breakdown-box.highlight-box {
  background: #fffbf0;
  border-color: rgba(217, 119, 6, 0.35);
}

.bbox-label {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  margin-bottom: 0;
  text-align: center;
}

.bbox-val {
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 800;
  white-space: nowrap;
  text-align: center;
}

/* Visual Progress Bar */
.calc-visual-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-bar-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.pdot { background: #0f172a; }
.idot { background: var(--accent); }

.calc-progress-bar {
  display: flex;
  height: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
}

.bar-principal {
  background: #0f172a;
  height: 100%;
  transition: width 0.3s ease;
}

.bar-interest {
  background: var(--accent);
  height: 100%;
  transition: width 0.3s ease;
}

/* Share Buttons in Calculator */
.calc-share-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.btn-share {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-share.wa {
  background-color: var(--whatsapp);
  color: white;
}

.btn-share.wa:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-share.copy:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

/* Calculator Mobile Responsiveness */
@media (max-width: 768px) {
  .calculator-container {
    padding: 24px 16px;
    border-radius: 20px;
    gap: 24px;
  }

  .calc-result {
    padding: 20px 14px;
    border-radius: 18px;
    gap: 18px;
  }

  .result-value {
    font-size: 2.2rem;
  }

  .result-value span {
    font-size: 0.95rem;
  }

  .calc-breakdown-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .breakdown-box {
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .bbox-label {
    text-align: center;
    margin-bottom: 0;
    font-size: 0.8rem;
  }

  .bbox-val {
    font-size: 1.1rem;
    text-align: center;
  }

  .calc-bar-legend {
    font-size: 0.75rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  .calc-share-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-share {
    width: 100%;
  }
}

/* About Agent Section */
.about-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.about-image img {
  width: 320px;
  height: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 5px solid #ffffff;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.about-image::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  max-width: calc(100% + 20px);
  border: 2px dashed var(--accent);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.about-info h2 {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.ren-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.about-info p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.credentials-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.credentials-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.about-cta {
  display: flex;
  gap: 16px;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--accent);
  margin-bottom: 15px;
}

.testimonial-content {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--border-color);
}

.client-details h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.client-details p {
  font-size: 0.8rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-text p {
  font-size: 0.95rem;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.submit-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--accent-hover);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-hover);
}

/* Notification Popup */
.notification {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #ffffff;
  color: var(--text);
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification.show {
  transform: translateY(0);
}

/* Footer */
footer {
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-logo .logo-main {
  justify-content: center;
}

.footer-logo .logo-sub {
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(212, 175, 55, 0.08);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

/* Responsiveness (Fully Tidied for Mobile) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .slider-track .property-card {
    flex: 0 0 calc(50% - 15px); /* 2 items on tablet */
  }
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calculator-container,
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 50px 0;
  }
  .section-title {
    margin-bottom: 30px;
  }
  .section-title h2 {
    font-size: 1.9rem;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    gap: 28px;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links a {
    color: #0f172a !important;
    font-size: 1.2rem;
    font-weight: 700;
    transition: color 0.2s ease;
  }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent) !important;
  }
  .nav-cta {
    display: none;
  }
  .hero {
    height: auto;
    min-height: 500px;
    padding: 100px 0 60px;
    background-position: left center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .slider-track .property-card {
    flex: 0 0 100%; /* 1 item on mobile */
  }
  .slider-controls-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
  }
  .slider-nav-btns {
    width: 100%;
    justify-content: center;
  }
  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .calculator-container {
    padding: 20px 12px;
    border-radius: 18px;
    gap: 20px;
  }
  .calc-result {
    padding: 18px 12px;
    border-radius: 16px;
    border-left: none;
    border-top: 4px solid var(--accent);
    gap: 16px;
  }
  .result-value {
    font-size: 2.3rem;
  }
  .search-bar {
    padding: 12px 10px;
  }
  .search-btn {
    width: 100%;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .about-container {
    text-align: center;
  }
  .about-info {
    text-align: center;
  }
  .about-info h2 {
    text-align: center;
  }
  .ren-tag {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }
  .about-info p {
    text-align: center;
  }
  .about-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .about-cta .btn {
    width: 100%;
  }
  .credentials-list {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }
  .credentials-list li {
    justify-content: center;
    text-align: center;
  }
  .calc-share-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .calc-share-buttons .btn-share {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Card Image Slideshow (Multiple Images Support) */
.card-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.card-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}
.card-slide-img.active {
  opacity: 1;
  z-index: 2;
}
.card-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.65);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.3rem;
  font-weight: bold;
  transition: var(--transition);
  user-select: none;
}
.card-slide-nav:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 8px var(--shadow-gold);
}
.card-slide-nav.prev-card-img {
  left: 10px;
}
.card-slide-nav.next-card-img {
  right: 10px;
}
.card-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.card-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
  cursor: pointer;
}
.card-slide-dot.active {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 5px var(--shadow-gold);
}

/* Property Details Modal (Lightbox) */
.property-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  padding: 20px;
}

.property-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.property-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--text);
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 32px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  align-items: start;
}

.modal-image-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-property-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 6px;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-main-img-container {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.modal-main-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.15s ease-in-out;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.modal-thumbs::-webkit-scrollbar {
  height: 6px;
}

.modal-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.modal-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.modal-thumbs img {
  width: 75px;
  height: 55px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-thumbs img.active,
.modal-thumbs img:hover {
  opacity: 1;
  border-color: var(--accent);
  transform: scale(1.05);
}

.modal-details-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.modal-details-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  word-break: break-word;
}

.modal-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  word-break: break-word;
  flex-wrap: wrap;
}

.modal-location svg {
  color: var(--accent);
  flex-shrink: 0;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.modal-spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.modal-spec-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.modal-spec-item .val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .modal-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
}

.modal-description-wrapper {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.modal-description-wrapper h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.modal-desc-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: break-word;
}

.modal-desc-content::-webkit-scrollbar {
  width: 6px;
}

.modal-desc-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.modal-desc-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.modal-cta {
  width: 100%;
  box-sizing: border-box;
}

.modal-cta .btn-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  background: var(--whatsapp);
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  box-sizing: border-box;
}

.modal-cta .btn-primary:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* Modal Responsive Settings */
@media (max-width: 868px) {
  .modal-body {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-content {
    max-height: 95vh;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-details-section h2 {
    font-size: 1.35rem;
  }
  .modal-price {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .property-modal {
    padding: 0;
  }
  .modal-content {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    border: none;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-body {
    padding: 16px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10010;
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .modal-main-img-container {
    border-radius: 12px;
  }
  .modal-details-section h2 {
    font-size: 1.2rem;
    line-height: 1.35;
  }
  .modal-price {
    font-size: 1.45rem;
    margin-bottom: 12px;
  }
  .modal-location {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }
  .modal-specs {
    margin-bottom: 20px;
    gap: 8px;
    padding: 12px 0;
  }
  .modal-spec-item {
    flex: 1 1 calc(50% - 4px);
    font-size: 0.78rem;
    padding: 7px 8px;
    gap: 4px;
  }
}

