/* Section 1: Hero Section Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth; /* Menambahkan efek gulir halus */
}

section {
    transition: opacity 0.5s ease; /* Efek transisi untuk opacity */
}

section.active {
    opacity: 1; /* Tampilkan section saat aktif */
}

body {
    font-family: 'Montserrat', sans-serif; /* Mengganti font ke Montserrat */
    background-color: #f7f7f7;
    height: 100vh;
    overflow-x: hidden; /* Mencegah overflow horizontal */
}

/* Header / Navbar */
header {
    background: linear-gradient(to right, rgba(140, 198, 63, 0.2), rgba(255, 255, 255, 0.9));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; /* Navbar tetap berada di atas halaman */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, padding 0.3s ease; /* Animasi saat scroll */
}

header.sticky {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 50px; /* Kurangi padding saat scroll */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    transition: padding 0.3s ease;
}

nav .logo img {
    max-width: 250px;
}

.nav-list.active {
    display: block; /* Show items when active */
}

.nav-list {
    display: none; /* Hide by default */
}

.nav-list.active {
    display: block; /* Show when active */
}

@media (max-width: 768px) {
    /* For mobile, adjust the layout to make the items stack vertically */
    .nav-list {
        display: block; /* Change display for mobile */
        padding-left: 0; /* Remove any left padding */
    }

    .nav-list li {
        margin-bottom: 20px; /* Add more space between the items */
        padding: 10px 0; /* Optional: Add padding for touch-friendly areas */
    }

    /* Optional: Center the text for mobile version */
    nav ul {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center-align the items */
        padding: 0; /* Remove default padding */
    }

    nav ul li {
        margin: 0; /* Reset margin for centered layout */
    }
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #8cc63f;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #8cc63f;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Styling untuk pemilih bahasa */
.language-selector {
    position: relative;
    margin: 20px 0; /* Margin untuk jarak atas dan bawah */
    text-align: center; /* Pusatkan teks */
}

/* Label untuk pemilih bahasa */
.language-label {
    margin-right: 10px; /* Spasi antara label dan dropdown */
    font-weight: bold; /* Tebalkan teks label */
    color: #34495e; /* Warna teks label */
}

/* Tombol dropdown */
.free-consultation{
display:relative;
}
.free-consultation a{
display:relative;
}
.language-btn {
    background-color: #3cb218 !important;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
float:right;
margin-top:5px;
}
.arrJadwal{
position:absolute;
width:0;
height:0;
top:0px;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-bottom: 6px solid #3cb218;
z-index:50;
}

/* Efek hover pada tombol dropdown */
.language-btn:hover {
    background-color:#3cb250 !important;
}

/* Hero Section */
.hero {
    display: flex;
    height: 100vh; /* Hero section tetap memenuhi layar */
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #f0f4f7, #ffffff); /* Gradient background */
    padding: 0;
    margin-top: 70px; /* Memberi ruang untuk navbar yang fixed */
}

.hero-text {
    width: 50vw; /* Lebar teks 50% dari lebar layar */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 1.2s ease-in-out; /* Animasi muncul */
}

.hero-text h1 {
    font-size: 56px; /* Ukuran font untuk heading */
    line-height: 1.2;
    color: #0d1c52;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: #8cc63f; /* Warna untuk bagian span */
}

.hero-text p {
    margin: 20px 0;
    font-size: 20px; /* Ukuran font untuk paragraf */
    color: #666;
    max-width: 400px; /* Lebar maksimum untuk paragraf */
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px; /* Spasi antara tombol */
}

.btn-property, .btn-video {
    text-decoration: none;
    padding: 15px 40px; /* Padding untuk tombol */
    border-radius: 30px;
    font-size: 18px;
    display: inline-block;
    transition: all 0.3s ease; /* Animasi untuk semua perubahan */
}

.btn-property {
    background-color: #8cc63f; /* Warna latar untuk tombol properti */
    color: white;
}

.btn-property:hover {
    background-color: #74a53a; /* Warna saat hover */
    transform: translateY(-3px); /* Efek angkat saat hover */
}

.btn-video {
    background-color: white; /* Warna latar untuk tombol video */
    color: #0d1c52;
    border: 1px solid #0d1c52; /* Border untuk tombol video */
}

.btn-video:hover {
    background-color: #0d1c52; /* Warna latar saat hover */
    color: white; /* Warna teks saat hover */
    transform: translateY(-3px); /* Efek angkat saat hover */
}

.hero-image {
    width: 50vw; /* Lebar gambar 50% dari lebar layar */
    height: 100vh; /* Gambar memenuhi tinggi layar */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Mencegah overflow gambar */
    position: relative;
}


/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Efek masuk dari bawah */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Styles for Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Adjusted padding for better spacing */
    background-color: white; /* Default background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a slight shadow to the navbar */
    position: fixed; /* Keeps the navbar at the top of the page */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: padding 0.3s ease; /* Smooth transition when padding changes */
}

/* For larger screens (desktops) */
@media (min-width: 1024px) {
    nav {
        padding: 20px 50px; /* More padding for larger screens */
    }
}

/* For smaller screens (mobile/tablets) */
@media (max-width: 768px) {
    nav {
        padding: 10px 15px; /* Less padding on mobile for a more compact look */
    }

    .nav-list {
        display: block; /* Stack the navbar items vertically */
        width: 100%; /* Ensures the items take up the full width */
        text-align: center; /* Center-align the navbar items */
        margin-top: 20px; /* Adds space above the nav links */
    }

    .nav-list li {
        margin-bottom: 15px; /* Adds space between items on mobile */
        padding: 10px 0; /* Optional: Add padding for better touch areas */
    }

    .nav-list a {
        font-size: 18px; /* Slightly larger font size for mobile */
        padding: 5px 0; /* Adds a bit more padding to the links */
    }

    /* Adjust the Hamburger Menu */
    .menu-toggle {
        display: flex; /* Show the hamburger menu */
        justify-content: space-between; /* Align the bars with space in between */
        align-items: center;
        flex-direction: column;
        cursor: pointer;
        height: 21px; /* Height for hamburger */
        width: 30px; /* Width for hamburger */
    }

    .bar {
        display: block;
        height: 3px; /* Height of each bar */
        width: 100%; /* Full width of the hamburger bar */
        background-color: #333; /* Hamburger color */
        border-radius: 2px; /* Rounded corners */
        margin: 3px 0; /* Spacing between bars */
    }

    /* Logo Styles for Mobile */
    .logo img {
        height: 35px; /* Make logo slightly smaller on mobile */
    }
}

/* Logo Styles */
.logo img {
    height: 70px; /* Default logo height */
}

/* Navigation Links */
.nav-list {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 20px; /* Spacing between links on larger screens */
}

.nav-list a {
    text-decoration: none;
    color: #333; /* Default link color */
    font-weight: 500;
    transition: color 0.3s ease; /* Smooth color transition */
}

.nav-list a:hover {
    color: #8cc63f; /* Hover color */
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-list {
        display: none; /* Hide by default */
        position: absolute; /* Positioning for the dropdown */
        right: 0; /* Align to the right */
        height: 100vh; /* Full height */
        top: 0; /* Align to the top */
        background-color: white; /* Match navbar color */
        flex-direction: column; /* Vertical layout */
        align-items: center; /* Center items */
        justify-content: center; /* Center items */
        width: 100%; /* Full width */
        transform: translateX(100%); /* Off-screen */
        transition: transform 0.3s ease-in-out; /* Animation */
    }

    .nav-list.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Bring into view */
    }

    .menu-toggle {
        display: flex; /* Show hamburger on small screens */
    }
}

/* Active Link Styles */
.nav-list a.active {
    color: #74a53a; /* Active link color */
    font-weight: bold; /* Bold for active link */
}

/* Hamburger Animation when Menu is Open */
.hamburger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* Rotate first bar */
}

.hamburger.toggle span:nth-child(2) {
    opacity: 0; /* Hide the second bar */
}

.hamburger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px); /* Rotate third bar */
}
.hero-image img {
    width: 100%; /* Gambar memenuhi lebar kontainer */
    height: 1000px; /* Gambar memenuhi tinggi kontainer */
    object-fit: cover; /* Agar gambar tetap proporsional */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Bayangan pada gambar */
    transition: transform 0.3s ease; /* Animasi zoom saat hover */
}
/* Hero Section Adjustments for Screens Smaller than 768px */
@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Stack layout */
        padding: 20px; /* Adjust padding */
    }

    .hero-text {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        height: 50vh; /* Half viewport height */
        background-size: cover; /* Make background image cover the container */
        background-position: center;
        box-shadow: none; /* Remove box shadow for background */
        position: relative;
       background-image: url('ht.png');
    }

    /* Hide the <img> on small screens */
    .hero-image img {
        display: none;
    }

    .hero-text h1 {
        font-size: 40px; /* Adjust font size */
    }

    .hero-text p {
        font-size: 18px;
    }

    .btn-property, .btn-video {
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* Very Small Screens (Under 480px) */
@media (max-width: 480px) {
    .hero {
        margin-top: 50px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
        max-width: 100%;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-property, .btn-video {
        width: 100%;
        padding: 10px 20px;
    }
}


/* Section 2: About Us Styles */
/* Styling untuk Section About */
#about {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px;
    position: relative;
    overflow: hidden;
    opacity: 0; /* Mengatur opacity awal untuk efek fade-in */
    transform: translateY(20px); /* Mengatur posisi awal untuk efek slide-in */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transisi untuk animasi */
}

#about.visible {
    opacity: 1; /* Menampilkan elemen saat terlihat */
    transform: translateY(0); /* Mengembalikan posisi saat terlihat */
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://source.unsplash.com/random/1600x900');
    opacity: 0.1;
    z-index: -1;
}

#about h2 {
    font-size: 2.5em;
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
}

#about p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    text-align: justify;
    padding: 0 20px;
}

#about h3 {
    font-size: 1.8em;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (Landscape) */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
    max-width: 80%; /* Set a max-width to control size */
    min-width: 300px; /* Set a minimum width for better visibility */
    width: 100%; /* Allow the container to take full width of its parent */
    margin-left: auto;
    margin-right: auto; /* Centering the video */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover; /* Ensures the video fills the container without distortion */
}



h4 {
    font-size: 1.5em;
    color: #4CAF50;
    text-align: center;
    margin-top: 30px;
}

.trust-message {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin: 10px 0;
    padding: 0 20px;
}

h5 {
    font-size: 1.5em;
    color: #4CAF50;
    text-align: center;
    margin-top: 30px;
}

.testimonial {
    background-color: #f9f9f9; /* Warna latar belakang testimonial */
    border-left: 4px solid #4CAF50; /* Garis kiri hijau */
    padding: 20px; /* Padding di dalam testimonial */
    margin: 20px 0; /* Margin di atas dan bawah testimonial */
    border-radius: 5px; /* Sudut membulat */
    text-align: center; /* Teks di tengah */
    display: none; /* Sembunyikan testimonial secara default */
}

.testimonial.active {
    display: block; /* Tampilkan testimonial yang aktif */
}

#testimonials {
    max-width: 2000px; /* Lebar maksimum untuk testimonial */
    margin: 20px auto; /* Margin otomatis di kiri dan kanan */
    padding: 20px; /* Padding di dalam section */
    border: 1px solid #ccc; /* Border untuk section */
    border-radius: 10px; /* Sudut membulat untuk section */
    background-color: #f9f9f9; /* Latar belakang section */
}

.comment-form {
    margin-top: 20px; /* Margin atas untuk form komentar */
}

.comment-form input,
.comment-form textarea {
    width: 100%; /* Lebar penuh untuk input dan textarea */
    margin-bottom: 10px; /* Margin bawah */
    padding: 10px; /* Padding dalam input */
    border-radius: 5px; /* Sudut membulat */
    border: 1px solid #ccc; /* Border untuk input */
}

.comment-form button {
    background-color: #4CAF50; /* Warna latar belakang tombol */
    color: white; /* Warna teks tombol */
    border: none; /* Tanpa border */
    padding: 10px 15px; /* Padding tombol */
    border-radius: 5px; /* Sudut membulat untuk tombol */
    cursor: pointer; /* Tangan ketika hover */
}

.comment-form button:hover {
    background-color: #45a049; /* Warna ketika hover */
}

.contact-info {
    margin-top: 30px;
    text-align: center;
}

.whatsapp-link {
    display: inline-block;
    background-color: #25D366; /* Warna hijau WhatsApp */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    position: relative;
    margin-top: 20px;
}

.whatsapp-link:hover {
    background-color: #128C7E; /* Warna lebih gelap saat hover */
}

.whatsapp-logo {
    width: 24px; /* Ukuran logo WhatsApp */
    height: auto;
    vertical-align: middle;
    margin-right: 5px; /* Ruang antara logo dan teks */
}

/* Responsive Design */
@media (max-width: 768px) {
    #about h2 {
        font-size: 2em;
    }

    #about h3, h5 {
        font-size: 1.5em;
    }

    #about p, .trust-message {
        font-size: 1em;
    }

    .whatsapp-link {
        font-size: 0.9em;
    }
}



/* Section 3 */
/* Adjust the Section Container */
.why-us {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background: linear-gradient(to right, rgba(140, 198, 63, 0.2), rgba(255, 255, 255, 0.9)); /* Similar gradient */
}

/* Style the left text box */
.why-us .why-text {
    width: 30%;
    background-color: #8cc63f; /* Green background */
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.why-us .why-text h3 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.why-us .why-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.why-us .why-text a {
    background-color: #75a8f9; /* Blue button background */
    color: white;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.why-us .why-text a:hover {
    background-color: #5491de; /* Darker blue on hover */
}

/* Style the three cards */
.why-us .why-box-container {
    display: flex;
    gap: 30px;
    width: 65%;
}

.why-us .why-box {
    background-color: white;
    padding: 30px;
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Box shadow similar to screenshot */
    transition: transform 0.3s ease;
    text-align: center;
}

.why-us .why-box:hover {
    transform: translateY(-5px); /* Slight lift on hover */
}

.why-us .why-box i {
    font-size: 40px;
    color: #8cc63f;
    margin-bottom: 20px;
}

.why-us .why-box h4 {
    font-size: 22px;
    margin-bottom: 15px;
}

.why-us .why-box p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .why-us {
        flex-direction: column;
        text-align: center;
    }

    .why-us .why-text {
        width: 100%;
        margin-bottom: 30px;
    }

    .why-us .why-box-container {
        flex-direction: column;
        width: 100%;
    }

    .why-us .why-box {
        margin-bottom: 20px;
    }
}




/* Section 4: Stats Display */
.stats-section {
    position: relative;
    background-image: url("https://milenialasriproperti.co.id/assets/img/ht.png");
    background-size: cover;
    background-position: center;
    text-align: center;
    min-height: 350px; /* Set a minimum height for the section */
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center; /* Vertically center the content */
    z-index: 1;
    padding: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.stats-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% dark overlay */
    z-index: -1;
}

.stat {
    flex: 1;
    margin: 10px; /* Add some spacing between stats */
    z-index: 2; /* Ensures content appears above the overlay */
    min-width: 200px; /* Ensure stats don't shrink too small */
    max-width: 300px; /* Limit the width on larger screens */
}

.stat h1 {
    font-size: 3rem; /* Slightly smaller default size */
    margin: 0;
}

.stat p {
    font-size: 1.2rem; /* Slightly smaller text for better responsiveness */
}

/* Responsive Design */

/* For small devices like phones (width 600px or less) */
@media (max-width: 600px) {
    .stats-section {
        flex-direction: column; /* Stack stats vertically on small screens */
        text-align: center;
    }

    .stat h1 {
        font-size: 2.5rem; /* Smaller font size for better fit */
    }

    .stat p {
        font-size: 1rem; /* Smaller paragraph text */
    }
}

/* For medium devices like tablets (width 768px or less) */
@media (max-width: 768px) {
    .stats-section {
        flex-direction: column; /* Stack stats vertically on medium devices */
    }

    .stat h1 {
        font-size: 3rem; /* Slightly larger text for tablets */
    }

    .stat p {
        font-size: 1.2rem; /* Slightly larger text for tablets */
    }
}

/* For large devices like desktops (width 1024px or more) */
@media (min-width: 1024px) {
    .stats-section {
        justify-content: space-between; /* Spread stats evenly */
    }

    .stat h1 {
        font-size: 4rem; /* Increase font size for larger screens */
    }

    .stat p {
        font-size: 1.5rem;
    }
}



/* Animasi Fade In */
@keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(50px); /* Mulai dari bawah */
    }
    100% {
      opacity: 1;
      transform: translateY(0); /* Akhir di posisi normal */
    }
  }
  
  /* Class untuk elemen yang akan dianimasikan */
  .animate-on-scroll {
    opacity: 0; /* Awalnya elemen tidak terlihat */
    transform: translateY(50px); /* Awalnya elemen berada sedikit di bawah */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  /* Tambahkan kelas 'visible' saat elemen masuk ke viewport */
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0); /* Kembali ke posisi awal */
  }

  
/* General Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 36px;
    letter-spacing: 2px; /* Add spacing between letters for modern look */
    text-transform: uppercase; /* Make it all uppercase */
}

.highlight {
    color: #4CAF50;
    font-weight: bold; /* Make the highlight text stand out */
}

.header p {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

/* Section 5: Horizontal Slider */
.horizontal-slider-container {
    position: relative;
    width: 100%;
    max-width: 5000px; /* Maximum width limit */
    overflow: hidden;
    margin: 0 auto;
    background: linear-gradient(to right, rgba(140, 198, 63, 0.2), rgba(255, 255, 255, 0.9));
    padding: 20px;
    border-radius: 15px; /* Rounded corners */
}

/* Horizontal Slider Wrapper */
.horizontal-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Animation handled by JavaScript */
}

/* Slider Items */
.horizontal-slider-item {
    min-width: 33.33%; /* Display 3 items per view */
    box-sizing: border-box;
    padding: 20px; /* Padding for better spacing */
    position: relative;
}

/* Card styling */
.horizontal-slider-item .card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Card shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Hide overflow of card content */
}

/* Hover effect on card */
.horizontal-slider-item .card:hover {
    transform: translateY(-10px); /* Lift the card on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Increase shadow depth */
    border: 1px solid #4CAF50; /* Border highlight on hover */
}

/* Images inside the card */
.horizontal-slider-item img {
    width: 100%;
    height: 220px; /* Adjust image height */
    object-fit: cover;
    border-radius: 10px; /* Rounded image corners */
    transition: transform 0.3s ease;
}

/* Slight zoom-in effect on image hover */
.horizontal-slider-item .card:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Caption Overlay */
.horizontal-slider-caption {
    text-align: center;
    margin-top: 15px; /* Space above caption */
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Divider with Icon */
.divider {
    position: relative;
    height: 2px;
    background: linear-gradient(to right, #4CAF50, #8BC34A); /* Gradient divider */
    margin: 50px auto;
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-icon {
    position: absolute;
    top: -24px; /* Position icon above the line */
    background-color: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.divider-icon i {
    color: #4CAF50; /* Icon color */
    font-size: 24px;
}

/* Hover effect for the divider icon */
.divider-icon:hover {
    /*transform: scale(1.1);  Enlarge on hover */
    /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);  Increase shadow */
}

/* Subtle bounce animation for the icon */
.divider-icon i {
    /*animation: bounce 2s infinite;*/
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px); /* Small bounce effect */
    }
}

/* Responsive Design */

/* Small devices like phones (width 600px or less) */
@media (max-width: 600px) {
    .horizontal-slider-item {
        min-width: 100%; /* Show one item at a time */
    }

    .horizontal-slider-caption h3 {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
    }
}

/* Medium devices like tablets (width 768px or less) */
@media (max-width: 768px) {
    .horizontal-slider-item {
        min-width: 50%; /* Show two items at a time */
    }

    .horizontal-slider-caption h3 {
        font-size: 1.4rem; /* Adjust font size for medium screens */
    }
}

/* Large devices like desktops (width 1024px or more) */
@media (min-width: 1024px) {
    .horizontal-slider-item {
        min-width: 33.33%; /* Show three items at a time */
    }

    .horizontal-slider-caption h3 {
        font-size: 1.5rem; /* Standard font size for large screens */
    }
}

/* Optional: Add hover animations for slider cards */
.horizontal-slider-item .card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

/* On hover, the card will slightly change background and lift up */
.horizontal-slider-item .card:hover {
    transform: translateY(-12px);
    background-color: #f9fafb;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
/* Horizontal Slider Container */
.horizontal-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 5000px;
    margin: 0 auto;
    background: linear-gradient(to right, rgba(140, 198, 63, 0.2), rgba(255, 255, 255, 0.9));
    padding: 20px;
    border-radius: 15px; /* Rounded corners */
}

/* Horizontal Slider Wrapper */
.horizontal-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Slider Items */
.horizontal-slider-item {
    min-width: 100%; /* Show one item at a time */
    box-sizing: border-box;
    padding: 10px; /* Space around items */
}

/* Card styling */
.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Images inside the card */
.horizontal-slider-item img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Optional: Rounded corners for images */
}

/* Caption Overlay */
.horizontal-slider-caption {
    text-align: center;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .horizontal-slider-item {
        min-width: 100%; /* Show one item at a time on small devices */
    }
}

@media (min-width: 769px) {
    .horizontal-slider-item {
        min-width: 50%; /* Show two items at a time on medium devices */
    }
}

@media (min-width: 1024px) {
    .horizontal-slider-item {
        min-width: 33.33%; /* Show three items at a time on large devices */
    }
}


/* Section 6 */
/* General Slider Styles */
.property-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px;
    justify-content: center; /* Center cards */
}

.property-card {
    flex: 0 0 400px; /* Set width of each card larger */
    margin-right: 40px; /* Add margin between cards */
    scroll-snap-align: center;
    background-color: #333; /* Dark background */
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack image and details vertically */
    align-items: center; /* Center align items */
    position: relative; /* Position for label */
}

.property-card:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* Increase shadow on hover */
}

.property-image {
    width: 100%; /* Full width */
    height: 300px; /* Fixed height for larger images */
    object-fit: cover; /* Cover to maintain aspect ratio */
    cursor: pointer; /* Pointer on hover */
}

.property-details {
    padding: 20px; /* Reduced padding for better spacing */
    text-align: center; /* Center text */
}

.property-details h3 {
    font-size: 1.8rem; /* Adjusted font size */
    margin-bottom: 10px; /* Add space below title */
}

.price {
    color: #ff4a4a;
    font-weight: bold;
    font-size: 1.6rem; /* Adjusted font size */
}
.price-buyer{
    color: #74a53a;
    font-weight: bold;
    font-size: 1.6rem; /* Adjusted font size */
}

.description {
    font-size: 1rem; /* Adjusted font size for description */
    color: #ddd;
    margin-top: 5px; /* Reduced margin */
}

/* Label Tersedia */
.label-tersedia {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    border-radius: 5px;
    z-index: 1;
text-align:center;
 transform: translateY(-50%);
border-radius:290px;
-moz-border-radius:290px;
-webkit-border-radius:290px;
}
.label-tidak-tersedia {
   
    background-color: #d9534f;;
   
}
/* Slider Pagination Styles */
.slider-pagination {
    text-align: center;
    margin-top: 20px;
}

.slider-pagination .dot {
    display: inline-block;
    width: 12px; /* Adjusted dot size */
    height: 12px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}
/* CSS to apply margin only on desktop */
.desktop-margin {
    margin-left: 0px; /* Set margin for desktop */
}

/* Remove margin on mobile */
@media (max-width: 768px) {
    .desktop-margin {
        margin-left: 0; /* Remove margin on mobile */
    }
}


.slider-pagination .dot.active {
    background-color: #0fbf29;
}

/* Mobile view adjustments - Full width image up to a certain size */
@media (max-width: 768px) {
    .property-slider {
        display: block;
        padding: 0; /* Remove padding for full-width images */
        overflow-y: auto;
    }

    .property-card {
        width: 100%; /* Full width of container */
        margin: 0; /* Remove any margin */
        padding: 0; /* Remove any padding */
    }
    
    .property-image {
        width: 100%; /* Full width of the .property-card container */
        height: 300px; /* Fixed height */
        object-fit: cover; /* Ensures the image fills without distortion */
        cursor: pointer; /* Pointer cursor on hover */
        display: block; /* Removes any inline spacing */
    }
    

    .property-details h3 {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.1rem;
    }
    .price-buyer {
        font-size: 1.1rem;
    }

    .description {
        font-size: 0.9rem;
    }
}

/* Very small devices (phones) */
@media (max-width: 480px) {
    .property-slider {
        gap: 5px;
        padding: 0;
    }

    .property-card {
        width: 100%; /* Full width of container */
        margin: 0; /* Remove any margin */
        padding: 0; /* Remove any padding */
    }
    
    .property-image {
        width: 100%; /* Full width of the .property-card container */
        height: 300px; /* Fixed height */
        object-fit: cover; /* Ensures the image fills without distortion */
        cursor: pointer; /* Pointer cursor on hover */
        display: block; /* Removes any inline spacing */
    }
    
    

    .property-details h3 {
        font-size: 1.1rem;
    }

    .price {
        font-size: 1rem;
    }
    .price-buyer{
        font-size: 1rem;
    }

    .description {
        font-size: 0.8rem;
    }
}


/* Modal Container */
#imageModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    place-items: center;
    overflow: hidden; /* Prevent scrolling */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: grid; /* Flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

/* Text Preview */
#imageModal h2 {
    color: white; /* Warna teks */
    text-align: center; /* Pusatkan teks */
    margin-bottom: 20px; /* Spasi bawah */
    font-size: 24px; /* Ukuran font */
    font-weight: bold; /* Ketebalan font */
}

/* Image inside the modal */
#imageModal img {
    max-width: 100%; /* Scale image size to fit within 100% of modal width */
    max-height: 80%; /* Scale image size to fit within 80% of modal height */
    border-radius: 10px; /* Add rounded corners to the image */
    border: 5px solid #ccc; /* Add a solid border with consistent thickness */
    object-fit: cover; /* Maintain aspect ratio and fit within the modal */
}

/* Styling for the images inside the modal */
.modal-content {
    margin: 10px; /* Add margin around each image to create space */
    border-radius: 8px; /* Optional: Make the border have rounded corners */
    flex: 0 1 auto; /* Allow images to grow but restrict their maximum width */
    transition: transform 0.3s ease-in-out; /* Smooth transition for any size changes */
    object-fit: cover; /* Ensure image fits the container properly */
}

/* Disable scroll when no-scroll class is applied */
.no-scroll {
    overflow: hidden;
}

/* Ensure images have space between them */
.modal-slider {
    display: flex;
    gap: 15px; /* Adjust spacing between each slide */
    justify-content: center; /* Center images in the modal */
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping */
    max-width: 90%; /* Limit the width of the modal */
    padding: 20px; /* Optional padding */
    box-sizing: border-box;
}

/* Image Styles within Slides */
.slide img {
    width: 100%; /* Fit the image within the slide */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: rounded corners */
    margin: 0 10px; /* Add margin between images */
    border: 2px solid #ddd; /* Light border around the slide images */
    object-fit: contain; /* Ensure the image covers the available area without distortion */
}

/* Optional: Add hover effect to scale the images slightly */
.modal-content:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
}

/* Close Button Styling */
.image-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000; /* Ensure the close button is above the image */
}

/* Responsive Handling for Small Screens */
@media (max-width: 768px) {
    #imageModal img {
        max-width: 100%; /* Reduce the image size to 100% of modal width */
        max-height: 90%; /* Increase image size to 90% of modal height */
    }

    .modal-content {
        max-width: 90%; /* Allow the modal content to take up more space on small screens */
        max-height: 90%;
        flex: 1 1 auto; /* Allow content to flexibly take available space */
    }

    .modal-slider {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images in the column */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .slide {
        width: 100%; /* Allow the slide to take full width */
        display: flex;
        justify-content: center; /* Center align for smaller screens */
        margin: 10px 0; /* Add margin for spacing */
    }

    .slide img {
        width: 100%; /* Fit the image within the slide */
        height: auto; /* Maintain aspect ratio */
        max-height: 300px; /* Optional: Set a maximum height to keep images manageable */
    }

    /* Adjust close button size for small screens */
    .image-modal .close {
        font-size: 30px; /* Smaller close button on small screens */
        right: 20px; /* Adjust position */
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 480px) {
    #imageModal h2 {
        font-size: 20px; /* Reduce font size of heading for small screens */
    }

    .modal-content {
        flex: 1 1 100%; /* Allow full width on very small screens */
    }

    .modal-slider {
        flex-direction: column; /* Stack images */
    }

    .slide {
        margin: 5px 0; /* Reduce margin for better spacing on very small screens */
    }

    .slide img {
        max-height: 250px; /* Set a maximum height for very small screens */
    }
}



/* Footer Styles */
#footer {
    background-color: #34495e; /* Dark background */
    color: #ECF0F1; /* Light text color */
    padding: 40px 20px; /* Spacing */
}

.footer-content {
    display: flex; /* Flexbox layout */
    justify-content: space-between; /* Space between columns */
    align-items: flex-start; /* Align items at the start */
    flex-wrap: wrap; /* Wrap items on smaller screens */
    gap: 20px; /* Space between items */
}

.footer-logo {
    flex: 1 1 150px; /* Allow flexibility with a minimum width */
    min-width: 150px; /* Minimum width for logo */
    max-width: 200px; /* Maximum width for logo */
}

.footer-logo-img {
    max-width: 100%; /* Logo responsive */
    height: auto; /* Maintain aspect ratio */
}

.footer-info, .footer-services, .footer-social {
    flex: 1 1 200px; /* Allow flexibility with a minimum width */
    min-width: 200px; /* Minimum width for sections */
    margin-left: 20px; /* Margin adjustment for smaller screens */
}

/* Reset margin for the first elements */
.footer-info {
    margin-left: 0; /* Remove left margin from the first section */
}

.footer-info p, .footer-services ul {
    margin: 5px 0; /* Space between paragraphs and list items */
}

.footer-services ul {
    list-style: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
}

.footer-services li {
    margin-bottom: 5px; /* Space between list items */
}

/* Social Media Section */
.footer-social {
    display: flex;
    flex-direction: column; /* Default to column for smaller screens */
    align-items: center; /* Center align on smaller screens */
    gap: 20px; /* Space between elements */
}

.footer-social a {
    text-decoration: none; /* Remove link underline */
    color: #fff; /* Default color */
    display: flex; /* Align icon and text in a row */
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: color 0.3s ease; /* Smooth color change on hover */
}

.footer-social a:hover {
    color: #ff6600; /* Change color on hover */
}

.footer-social i {
    font-size: 18px; /* Icon size */
}

.footer-social p {
    margin: 0; /* Remove default margins */
    font-size: 14px; /* Copyright text size */
    color: #ccc; /* Copyright text color */
}

/* Footer Bottom Section */
.footer-bottom {
    background-color: #34495e; /* Background color */
    color: #fff; /* Text color */
    padding: 20px 0; /* Vertical padding */
    text-align: center; /* Center-align text */
}

/* Responsive Design for larger screens */
@media (min-width: 768px) {
    .footer-content {
        justify-content: space-between; /* Ensure space is maintained */
    }

    .footer-info, .footer-services, .footer-social {
        margin-left: 20px; /* Consistent margin for sections */
    }

    .footer-social {
        flex-direction: row; /* Horizontal layout for larger screens */
        justify-content: center; /* Center content horizontally */
    }

    .footer-social p {
        margin-left: 20px; /* Add spacing on the left for larger screens */
    }
}

/* Additional responsiveness for very small screens */
@media (max-width: 480px) {
    .footer-content {
        flex-direction: column; /* Stack elements on very small screens */
        align-items: center; /* Center-align all sections */
    }

    .footer-info, .footer-services, .footer-social {
        margin-left: 0; /* Remove left margin for stacking */
        text-align: center; /* Center text in sections */
    }

    .footer-services ul {
        padding-left: 0; /* Remove padding for centered alignment */
    }
}


/* Styling untuk Map Section */
.map-section {
    padding: 20px;
    background-color: #f9f9f9;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#googleMap {
    width: 100%;
    height: 600px; /* Ukuran tinggi peta diperbesar menjadi 600px */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Styling untuk input pencarian */
#user-location {
    width: 70%;
    padding: 12px; /* Padding untuk memperbesar area klik */
    margin: 10px 0;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

/* Styling saat input user-location aktif (focus state) */
#user-location:focus {
    border-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styling untuk tombol pencarian */
#calculate-distance {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#calculate-distance:hover {
    background-color: #45a049;
}

/* Styling untuk output jarak */
#distance-output {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

/* Responsif untuk layar kecil (mobile) */
@media (max-width: 600px) {
    #user-location {
        width: 90%; /* Input lebih lebar di layar kecil */
    }
}

/* Responsif untuk layar kecil (mobile) */
@media (max-width: 600px) {
    #googleMap {
        height: 350px; /* Tinggi peta diperbesar untuk layar mobile */
    }
}

/* Responsif untuk layar sedang (tablet) */
@media (max-width: 768px) {
    #googleMap {
        height: 400px; /* Tinggi peta diperbesar untuk layar tablet */
    }

    .map-container h2 {
        font-size: 28px;
    }
}

/* Section styling */
.download-section {
    background-color: #f4f4f4;
    padding: 50px 20px;
    text-align: center;
}

.brochure-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.download-section h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.download-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Styling untuk tombol download */
.download-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.download-btn:hover {
    background-color: #45a049;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.download-btn i {
    margin-right: 10px;
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    .download-section h2 {
        font-size: 24px;
    }

    .download-section p {
        font-size: 16px;
    }

    .download-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}
/* Additional Info Styles */
.additional-info {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    display: none; /* Initially hidden */
}

.additional-info.show {
    opacity: 1;
    display: block; /* Make visible */
}

/* Button Transition for Text Change */
.see-more-btn {
    margin-top: 10px;
    cursor: pointer;
    padding: 10px 20px;
    background-color: #74a53a;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.see-more-btn:hover {
    background-color: #5a8c2f;
}



