/* ==========================================================================
   GLOBAL
   ========================================================================== */
body 


/* ==========================================================================
   HERO / SLIDESHOW
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.slideshow {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  z-index: 10;
  max-width: 50%;
  pointer-events: none; /* Agar overlay tidak menghalangi tombol swiper */
}

.overlay * {
  pointer-events: auto; /* Tapi isi dalam overlay tetap bisa diklik */
}

.overlay h1 {
  font-size: 3.5em;
  margin: 0;
  max-width: 80%;
  line-height: 1.1;
}

.overlay p {
  font-size: 1.2em;
}

/* Swiper arrows lebih tinggi z-index */
.swiper-button-next,
.swiper-button-prev {
  z-index: 20;
}

@media screen and (max-width: 768px) {
  .overlay {
    left: 5% !important;
    top: 50%;
    transform: translateY(-50%);
    max-width: 90%;
    width: 100%;
    text-align: center;
  }

  .overlay h1 {
    font-size: 1.8em;
    max-width: 100%;
    line-height: 1.2;
  }

  .overlay p {
    font-size: 1em;
    max-width: 80%;
    margin-left: 30px !important;
  }

  .cta-btn {
    font-size: 0.95em;
    padding: 10px 20px;
  }
}



/* ==========================================================================
   BUTTON
   ========================================================================== */
.cta-btn {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 24px;
  background: #6dbd45;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}


/* ==========================================================================
   FITUR SECTION
   ========================================================================== */
.fitur ul {
  list-style: none;
  padding: 0;
}

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


/* ==========================================================================
   TESTIMONI & TYPE RUMAH
   ========================================================================== */

.testimoni {
  background: #f7f7f7;
  padding: 60px 20px;
  padding-top: 30px !important;
}

.testimoni h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #2f7d32;
  font-size: 1.5em;
  line-height: 32px;
  padding-left: 20px;
  padding-right: 20px;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.testimonial-item {
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  background: #fff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-left: 5px solid #6dbd45;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.testimonial-item p {
  font-style: italic;
  font-size: 1.05em;
  color: #555;
}

.testimonial-item h4 {
  margin-top: 15px;
  font-weight: 600;
  color: #2f7d32;
}

@media screen and (max-width: 768px) {
  .testimonial-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.type-rumah {
  padding: 30px 20px;
  padding-bottom: 50px;
}

.type-rumah table {
  width: 100%;
  border-collapse: collapse;
}

.type-rumah th,
.type-rumah td {
  border: 1px solid #ccc;
  padding: 10px;
}

/* ==========================================================================
   TYPE RUMAH - FLOOR PLAN (2 KOLOM)
   ========================================================================== */
.floor-plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px; /* gunakan gap daripada margin negatif */
  margin: 0 auto;
  max-width: 960px; /* optional sesuai container */
}

.plan {
  flex: 1 1 calc(50% - 15px); /* 2 kolom dengan gap */
  max-width: calc(50% - 15px);
  box-sizing: border-box;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Styling gambar dan judul */
.plan img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.plan h4 {
  font-size: 1.2em;
  margin-top: 10px;
  color: #2f7d32;
}

/* List info tipe rumah */
.plan ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 0.95em;
}

.plan ul li {
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(224, 224, 224);
  padding: 8px 0;
}

.plan ul li:last-child {
  border-bottom: none;
}

.elementor-floor-list-title {
  font-weight: 500;
  color: #333;
}

.info {
  font-weight: 600;
  color: #2f7d32;
}

/* ==========================================================================
   CAROUSEL VIDEO & GAMBAR
   ========================================================================== */
.plan-carousel {
  width: 100%;
  margin-bottom: 16px;
}

.plan-carousel img,
.plan-carousel video {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* Pastikan video hanya interaktif di slide aktif */
.swiper-slide video {
  pointer-events: none;
}

.swiper-slide-active video {
  pointer-events: auto;
}

/* Ukuran slide dan konten video */
.swiper-slide {
  position: relative;
  height: 400px; /* tinggi slide tetap */
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img{
  height: 430px;
}

.swiper-slide video {
  height: 100%;      /* ikuti tinggi slide */
  width: auto;       /* jaga rasio */
  max-width: 100%;   /* jangan melebar lebih dari container */
  border-radius: 6px;
  object-fit: cover;
  display: block;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media screen and (max-width: 768px) {
  .floor-plan {
    gap: 20px;
  }

  .plan {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .swiper-slide {
    height: auto; /* biar slide tinggi fleksibel di mobile */
  }

  .swiper-slide video {
    width: 100%;
    height: auto;
  }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-cta {
  background-color: #2f7d32;
  background-image: url('images/subfooter.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  text-align: center;
  padding: 40px 20px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(47, 125, 50, 0.6);
  z-index: 0;
}

.footer-cta h2 {
  max-width: 600px;
  margin: 0 auto 20px;
  font-weight: normal;
  font-size: 1.8em;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.footer-cta .cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 1.3em;
  background: #25d366;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.footer-cta .cta-btn:hover {
  background: #1ebe57;
}

.footer-cta .cta-btn i.fa {
  font-size: 1.5em;
  line-height: 1;
}

.footer-info {
  padding: 20px;
  border: 1px solid #eee;
}

footer {
  text-align: center;
}

.footer-section {
  background: #f8f8f8;
  padding: 40px 20px;
  font-family: sans-serif;
  color: #333;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin: auto;
}

.footer-map {
  width: 400px;
}

.footer-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

.footer-info {
  flex: 1 1 400px;
}

h2.footer-heading {
  margin-top: 30px;
}

.footer-info h2 {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  color: #2f7d32;
  margin-bottom: 10px;
  margin-top: 0px;
}

.footer-info p {
  margin: 5px 0;
}

.footer-info a {
  color: #2f7d32;
  text-decoration: none;
}

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

.footer-social {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.footer-social a {
  background: #2f7d32;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-social a:hover {
  background: #228b22;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.85em;
  color: #555;
}

.footer-social a.facebook {
  background-color: #1877f2;
}

.footer-social a.youtube {
  background-color: #ff0000;
}

.footer-social a.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, 
              #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
  border: none;
}

.footer-social i {
  margin-right: 8px;
}


/* ==========================================================================
   HIGHLIGHT SECTION (INVESTASI)
   ========================================================================== */
.highlight {
  background: #f9f9f9;
  padding: 60px 20px;
}

.highlight-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.highlight-left {
  flex: 1 1 50%;
}

.highlight-right {
  flex: 1 1 40%;
  position: relative;
}

.highlight-img-wrapper {
  position: relative;
  width: 100%;
}

.highlight-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ==========================================================================
   HIGHLIGHT TEXT BLOCKS (Fitur Kelebihan)
   ========================================================================== */
.highlight-feature {
  background-color: #fff;
  padding: 20px;
  border-left: 4px solid #2f7d32;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.highlight-feature h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2f7d32;
  transition: color 0.3s;
}

.highlight-feature:hover {
  background-color: #eaf7e8;
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.highlight-feature:hover h3 {
  color: #228b22;
}


/* ==========================================================================
   OVERLAY STATISTIK DI ATAS GAMBAR
   ========================================================================== */
.stats-overlay {
  position: absolute;
  bottom: 5%;
  left: 10%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
}

.stats-overlay p {
  font-size: 1.1em;
  margin: 10px 0;
  line-height: 16px;
  margin-bottom: 30px;
}

.stats-overlay p:last-child {
  font-size: 1.1em;
  margin: 10px 0;
  line-height: 16px;
  margin-bottom: 10px;
}

.stats-overlay strong {
  font-size: 2em;
  display: block;
  color: #6dbd45;
}

.stats-overlay .cta-btn {
  margin-top: 15px;
  background: #6dbd45;
  color: white;
}

@media screen and (max-width: 768px) {
  .stats-overlay {
    top: auto;
    left: 5%;
    right: 5%;
    bottom: 5%;
    max-width: 90%;
    padding: 15px;
    padding-top: 30px;
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }

  .stats-overlay p {
    width: 100%;
    margin: 0;
    line-height: 14px;
  }

  .stats-overlay strong {
    font-size: 1.8em;
  }

  .stats-overlay .cta-btn {
    margin-top: 10px;
    font-size: 1em;
    padding: 10px 20px;
  }
}

/* ==========================================================================
   SECTION JUDUL HIGHLIGHT
   ========================================================================== */
.highlight-left h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
  line-height: 1.2em;
  font-weight: 600;
  color: #2f7d32;
}


/* ==========================================================================
   COPYRIGHT
   ========================================================================== */
.copyright-section {
  text-align: center;
  padding: 20px;
  background-color: #f2f2f2;
}

.copyright {
  margin: 0;
  font-size: 1.1em;
  color: #555;
  line-height: 1.4;
  word-wrap: break-word;
}

@media screen and (max-width: 768px) {
  .copyright {
    font-size: 0.95em;
    padding: 0 10px;
  }
}


/* ==========================================================================
   FLOOR LIST INFO
   ========================================================================== */
.element-floor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.elementor-floor-list-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgb(224, 224, 224);
  padding: 8px 0;
  font-size: 1em;
}

.elementor-floor-list-title {
  font-weight: 500;
  color: #333;
}

.elementor-floor-list-item:last-child {
  border-bottom: none;
}

.info {
  font-weight: 600;
  color: #2f7d32;
}




/* ==========================================================================
   Akses
   ========================================================================== */


.akses {
  background-color: #ffffff;
  padding: 60px 20px;
  padding-top: 30px !important;
}

.akses-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.akses-left {
  flex: 1 1 45%;
  max-width: 45%;
}

.akses-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  height: auto;
}

.akses-right {
  flex: 1 1 50%;
  max-width: 50%;
}

.akses-subtitle {
  color: #6dbd45;
  font-weight: 600;
  margin-bottom: 10px;
}

.akses-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.akses-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 200px;
}

.akses-features ul li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #333;
  position: relative;
  padding-left: 24px;
}

.akses-features ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #6dbd45;
  font-weight: bold;
}

/* Responsive: Stack on smaller screens */
@media screen and (max-width: 768px) {
  .akses-grid {
    flex-direction: column;
  }

  .akses-left, .akses-right {
    max-width: 100%;
    flex: 1 1 100%;
  }
}




/* ==========================================================================
   Swiper
   ========================================================================== */


.hero-swiper {
  height: 100vh;
  position: relative;
}

.hero-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: white;
  z-index: 10;
}

.swiper-button-next,
.swiper-button-prev {
  background-color: rgba(0, 0, 0, 0.4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  padding: 0;
  color: white !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  color: white !important;
  font-weight: bold;
  line-height: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}

.hero-swiper .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4); /* Hitam transparan */
  z-index: 1;
}





.video-gallery {
  /* padding: 60px 20px; */
  padding: 30px 20px;
  background-color: #f9f9f9;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

@media screen and (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}


.video-thumb {
  width: 100%;
  height: 200px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumb:hover {
  transform: scale(1.05);
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;      /* maksimal tinggi 80% viewport height */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent; /* hilangkan background supaya video yg terlihat */
}

.modal-content video {
  width: 100%;
  max-height: 80vh;      /* maksimal tinggi video 80% viewport height */
  border-radius: 8px;
  object-fit: contain;   /* video proporsional, tidak terpotong */
}

/* Close button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
}


.video-thumb-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumb-wrapper img.video-thumb {
  display: block;
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;           /* ukuran icon play */
  color: white;
  background-color: rgba(0, 0, 0, 0.3); /* lingkaran gelap transparan */
  width: 60px;
  height: 60px;
  border-radius: 50%;        /* bikin lingkaran */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
  transition: background-color 0.3s ease, color 0.3s ease;
}

.video-thumb-wrapper:hover .play-icon {
  background-color: #25d366;  /* hijau terang saat hover */
  color: white;
  cursor: pointer;

}

/* === Popup Gambar === */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.5s ease-out;
}

.popup-content {
  position: relative;
  /* Atur lebar pop-up di sini */
  width: 90%; /* Ambil 90% dari lebar layar/viewport */
  max-width: 600px; /* Batasi ukuran maksimal (misalnya, 600px) untuk desktop */
  max-height: 90vh; /* Batasi tinggi maksimal (90% dari tinggi viewport) */
  border-radius: 10px;
  overflow: hidden; /* Penting untuk menjaga gambar tetap di dalam */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background-color: white;
  /* Tambahkan overflow agar bisa di-scroll jika konten/gambar terlalu besar */
  overflow-y: auto; 
}

.popup-img {
  width: 100%; /* Penting: Gambar mengisi penuh lebar kontainer (.popup-content) */
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: contain; /* Memastikan gambar tetap proporsional */
}

.popup-img:hover {
  transform: scale(1);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  transition:none 0.3s;
  z-index: 10;
}

.close-btn:hover {
  background: darkred;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
