/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES (Sida Megar Indah Residence)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --primary: #0b2516;       /* Deep Forest Dark */
  --primary-light: #153f26; /* Medium Forest */
  --primary-accent: #016435;/* Sida Megar Signature Green */
  --primary-accent-light: #028245;
  --secondary: #7ec32f;     /* Sida Megar Light Green */
  --secondary-light: #8ed63a; /* Lighter Green */
  --text-dark: #15241b;     /* Charcoal Green */
  --text-muted: #5a6e61;    /* Muted Green-Gray */
  --bg-light: #f3f7f4;      /* Soft Greenish Off-white */
  --bg-cream: #fafbf9;     /* Ivory Cream */
  --white: #ffffff;
  --success: #10b981;
  --border-color: #e2e8e4;
  
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-green-light: 0 10px 20px -5px rgba(126, 195, 47, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 80px;
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

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

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

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  gap: 8px;
}

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

.btn-primary:hover {
  background-color: var(--primary-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 140, 50, 0.25);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.btn-outline {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Badge */
.badge {
  background-color: rgba(126, 195, 47, 0.1);
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

/* Grid helper */
.grid {
  display: grid;
  gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(1, 100, 53);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 2000; /* Ditingkatkan agar selalu di atas */
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  background-color: var(--primary-accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
  background-color: rgba(1, 100, 53);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  height: 70px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 20px;
  height: 100%;
  position: relative;
  z-index: 2001;
  transition: var(--transition-normal);
  background-color: transparent; /* Pastikan tidak ada background putih */
}

.logo-img {
  height: 40px; /* Ukuran ideal agar tidak menutupi garis navbar */
  width: auto;
  border-radius: 4px; /* Sedikit lengkungan agar tidak kaku */
  object-fit: contain;
  transition: var(--transition-fast);
}

.logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  font-family: var(--font-primary);
  white-space: nowrap;
  text-transform: uppercase;
}

.header.scrolled .logo {
  height: 100%;
  top: 0;
}

.header.scrolled .logo-img {
  height: 35px;
}

.header.scrolled .logo-text {
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
}

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

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

/* Mobile Navigation */
@media (max-width: 991px) {
  .logo {
    height: var(--navbar-height);
    padding: 0 15px;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--primary-accent);
    flex-direction: column;
    padding: 40px;
    transition: var(--transition-normal);
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2100;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 10px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(180deg, rgba(11, 37, 22, 0.7) 0%, rgba(11, 37, 22, 0.9) 100%), 
              url('assets/hero-bg.png') center center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  padding-top: var(--navbar-height);
}

.hero-content {
  max-width: 800px;
  z-index: 10;
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--secondary);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--secondary);
  display: block;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

/* Floating Search Widget */
.search-widget {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1140px;
  background: var(--white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 24px;
  align-items: flex-end;
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-group label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.search-group label i {
  color: var(--primary-accent);
  font-size: 14px;
}

.search-input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  background-color: #f8faf9;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23016435'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}

.search-input:hover {
  border-color: var(--primary-accent);
  background-color: var(--white);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(1, 100, 53, 0.05);
}

#btn-search {
  height: 52px;
  padding: 0 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  background-color: var(--primary-accent);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#btn-search:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(1, 100, 53, 0.2);
}

@media (max-width: 991px) {
  .search-form {
    grid-template-columns: repeat(2, 1fr);
  }
  #btn-search {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .search-form {
    grid-template-columns: 1fr;
  }
  #btn-search {
    grid-column: span 1;
  }
  .search-widget {
    bottom: -120px;
    padding: 20px;
  }
}

/* Optimized Search Widget for Mobile */
@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }

  .search-widget {
    bottom: -100px;
    padding: 20px;
  }
}

.search-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-accent);
  background-color: var(--white);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about {
  padding-top: 150px; /* Offset the floating search widget */
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 480px;
}

.about-img-main {
  grid-column: 1 / 10;
  grid-row: 1 / 11;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.about-img-sub {
  grid-column: 7 / 13;
  grid-row: 6 / 13;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  border: 8px solid var(--white);
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.about-experience {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary-accent);
  color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  max-width: 200px;
  z-index: 10;
}

.about-experience h3 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.about-experience p {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin: 24px 0 35px 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.about-feat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(30, 140, 50, 0.1);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.about-feat-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-feat-text p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   UNIT TYPES SHOWCASE
   ========================================================================== */
.tabs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.tab-btn:hover {
  background-color: var(--border-color);
  color: var(--primary);
}

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

/* Unit Carousel Styles */
.units-carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible; /* Changed from hidden to show buttons */
  padding: 20px 0 60px 0;
}

.units-carousel-viewport {
  overflow: hidden;
  border-radius: var(--border-radius);
  width: 100%;
}

.units-carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
  width: 100%;
}

.unit-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 10px;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
  overflow: hidden;
}

.unit-slide.active {
  opacity: 1;
}

.units-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.units-carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: var(--transition-normal);
}

.units-carousel-dots .dot.active {
  background-color: var(--primary-accent);
  width: 30px;
  border-radius: 10px;
}

/* Unit Display Adjustments for Carousel */
.unit-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Hide inactive unit displays only in the tabbed section */
#units .unit-display {
  display: none;
}

#units .unit-display.active {
  display: grid;
}

.unit-display:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.unit-img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

.unit-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.unit-img-wrapper:hover img {
  transform: scale(1.05);
}

.unit-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--secondary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
}

.unit-info h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.unit-price {
  font-size: 24px;
  color: var(--primary-accent);
  font-weight: 700;
  margin: 12px 0 24px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.unit-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  display: inline-block;
}

.unit-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.unit-spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unit-spec-icon {
  font-size: 22px;
  color: var(--text-muted);
}

.unit-spec-detail span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.unit-spec-detail p {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.unit-highlights {
  list-style: none;
  margin-bottom: 35px;
}

.unit-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-muted);
}

.unit-highlights li i {
  color: var(--success);
  margin-top: 4px;
}

.unit-buttons {
  display: flex;
  gap: 16px;
}

/* Floor Plan Modal Placeholder styling */
.floorplan-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-accent);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 14px 24px;
  background-color: rgba(30, 140, 50, 0.08);
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(30, 140, 50, 0.15);
  width: fit-content;
}

.floorplan-link i {
  font-size: 20px;
}

.floorplan-link:hover {
  background-color: var(--primary-accent);
  color: var(--white);
  border-color: var(--primary-accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Land Area Selection Buttons (Shopee Style) */
.size-selector {
  margin: 20px 0;
}

.size-selector-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-btn {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.size-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  background-color: rgba(126, 195, 47, 0.05);
}

.size-btn.active {
  border-color: var(--secondary);
  color: var(--secondary);
  background-color: rgba(126, 195, 47, 0.05);
}

/* ==========================================================================
   FACILITIES SECTION
   ========================================================================== */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.fac-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  text-align: center;
}

.fac-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-accent);
  box-shadow: var(--shadow-xl);
}

.fac-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  background-color: rgba(30, 140, 50, 0.08);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px auto;
  transition: var(--transition-normal);
}

.fac-card:hover .fac-icon {
  background-color: var(--primary-accent);
  color: var(--white);
  transform: scale(1.05);
}

.fac-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.fac-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   MORTGAGE / KPR CALCULATOR
   ========================================================================== */
.kpr {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--border-radius);
  padding: 60px 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.kpr-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
}

.kpr-header {
  margin-bottom: 40px;
}

.kpr-header .section-title {
  color: var(--primary);
}

.kpr-form {
  display: grid;
  gap: 20px;
}

.kpr-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpr-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

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

.kpr-prefix {
  position: absolute;
  left: 16px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.kpr-suffix {
  position: absolute;
  right: 16px;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

.kpr-input {
  width: 100%;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.kpr-input option {
  background-color: var(--white);
  color: var(--text-dark);
}

.kpr-input-has-prefix {
  padding-left: 45px;
}

.kpr-input-has-suffix {
  padding-right: 40px;
}

.kpr-input:focus {
  border-color: var(--primary-accent);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 140, 50, 0.05);
}

.kpr-input-readonly {
  background-color: #e9f5eb !important;
  color: var(--primary-accent) !important;
  font-weight: 700 !important;
  border: 1px solid #c8e6cd !important;
}

.kpr-input-manual {
  background-color: #ffffff !important;
  color: #333 !important;
  border: 2px solid var(--primary-accent) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
  font-weight: 600 !important;
}

.kpr-slider {
  width: 100%;
  margin-top: 8px;
  accent-color: var(--secondary);
}

/* KPR Output Panel */
.kpr-output {
  background-color: rgba(126, 195, 47, 0.08);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(126, 195, 47, 0.2);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.kpr-out-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-accent);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.kpr-price-display {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-accent);
  line-height: 1;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.kpr-month {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.kpr-summary-list {
  width: 100%;
  border-top: 1px solid rgba(30, 140, 50, 0.1);
  padding-top: 24px;
  margin-bottom: 30px;
  list-style: none;
}

.kpr-sum-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.kpr-sum-label {
  color: var(--text-muted);
  text-align: left;
}

.kpr-sum-val {
  font-weight: 600;
}

/* ==========================================================================
   GALLERY / CAROUSEL
   ========================================================================== */
.gallery-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  height: 500px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
  color: var(--white);
  padding: 25px 30px;
  z-index: 10;
  box-sizing: border-box;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.carousel-caption h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.2;
}

.carousel-caption p {
  font-size: 14px;
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 20;
  font-size: 18px;
}

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

/* Specific styling for unit carousels to ensure visibility on light backgrounds */
.units-carousel-container .carousel-btn {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.units-carousel-container .carousel-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.units-carousel-container .carousel-prev {
  left: -25px;
}

.units-carousel-container .carousel-next {
  right: -25px;
}

@media (max-width: 1100px) {
  .units-carousel-container .carousel-prev {
    left: 10px;
  }
  .units-carousel-container .carousel-next {
    right: 10px;
  }
}

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

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

.carousel-dot.active {
  background-color: var(--primary-accent);
  width: 24px;
  border-radius: 10px;
}


/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details {
  list-style: none;
  margin: 30px 0;
}

.contact-det-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-det-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(30, 140, 50, 0.1);
  color: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-det-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-det-text p {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-accent);
  color: var(--white);
  border-color: var(--primary-accent);
  transform: translateY(-2px);
}

.contact-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-accent);
  background-color: var(--white);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h3 {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-about p {
  font-size: 14px;
  margin-top: 20px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-socials a:hover {
  opacity: 1 !important;
  color: var(--secondary) !important;
  transform: translateY(-3px);
}

.footer-bottom p {
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (WhatsApp)
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-normal);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   HIDE TIPE UNIT SECTION (Removed display: none to show the section)
   ========================================================================== */
#units {
  display: block;
}

/* Modal Responsiveness Improvements */
#floorplan-modal > div {
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 480px) {
  #floorplan-modal {
    padding: 15px;
  }
  #floorplan-modal > div {
    padding: 20px;
  }
  #modal-body-svg svg {
    height: 250px;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Laptop & Large Tablets */
@media (max-width: 991px) {
  :root {
    --navbar-height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--primary-accent);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transition: var(--transition-normal);
    z-index: 998;
    align-items: center;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 20px;
    font-weight: 600;
    width: auto;
    text-align: center;
    padding: 10px 0;
  }

  .menu-toggle {
    display: flex;
    margin-right: 15px;
  }

  .logo-img {
    height: 30px;
  }

  .section {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .search-widget {
    position: relative;
    transform: none;
    margin: 30px auto 0 auto;
    width: 100%;
    bottom: 0;
    padding: 20px;
  }
  
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 60px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .unit-display {
    gap: 20px;
    padding: 20px;
  }
  
  .fac-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .kpr-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
}

/* Medium Tablets */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body, html {
    overflow-x: hidden;
    width: 100%;
  }

  .hero-title {
    font-size: 36px;
    text-align: center;
  }
  
  .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .search-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .about-images {
    height: 320px;
    margin-bottom: 20px;
  }
  
  .unit-display {
    grid-template-columns: 1fr;
    width: 100%;
    box-sizing: border-box;
  }
  
  .unit-img-wrapper {
    height: 250px;
  }

  .unit-spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .gallery-carousel {
    height: 350px;
  }

  .kpr {
    padding: 30px 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small Mobile (Android Optimization) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 26px;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    text-align: center;
  }

  /* SEARCH WIDGET FIX FOR MOBILE */
  .search-widget {
    position: relative;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    margin: 20px 0 0 0 !important;
    padding: 20px !important;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
  }

  .search-form {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #btn-search {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px; /* Ruang agar tidak tertutup tombol WA */
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 100px 0 40px 0;
    display: flex;
    flex-direction: column;
  }


  .unit-info h3 {
    font-size: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .unit-price {
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    margin: 8px 0 16px 0;
  }

  .unit-price span {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: var(--text-muted);
  }

  .unit-tag {
    padding: 4px 10px;
    font-size: 10px;
    top: 10px;
    left: 10px;
  }

  .unit-highlights li {
    font-size: 13px;
    line-height: 1.4;
  }

  .unit-spec-detail p {
    font-size: 13px;
  }

  .unit-spec-detail span {
    font-size: 11px;
  }

  .unit-spec-grid {
    grid-template-columns: 1fr;
  }

  .unit-buttons {
    flex-direction: column;
  }

  .fac-grid {
    grid-template-columns: 1fr;
  }
  
  .kpr-price-display {
    font-size: 26px;
  }

  .kpr-input {
    padding: 12px;
    font-size: 14px;
  }

  .floorplan-link {
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }
  
  .contact-card {
    padding: 20px;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }



  .floating-whatsapp {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  /* Fix for Carousel Navigation on small screens */
  .units-carousel-container .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .units-carousel-container .carousel-prev { left: 5px; }
  .units-carousel-container .carousel-next { right: 5px; }
}

/* Landscape Mode Fix */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    padding: 100px 0;
  }
  .nav-menu {
    padding: 20px;
    gap: 10px;
  }
}
