/* --- Pengaturan Dasar & Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9; /* Warna latar belakang seperti aplikasi */
    color: #333;
    /* Memberi ruang agar konten tidak tertutup header & nav */
    padding-top: 70px; 
    padding-bottom: 80px;
}

/* --- Header Atas --- */
.main-header {
    background-color: #ffffff;
    color: #0056b3;
    padding: 15px 20px;
    position: fixed; /* Tetap di posisi atas */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Selalu paling atas */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.main-header .user-profile i {
    font-size: 1.4rem;
}

/* --- Konten Utama --- */
.content {
    padding: 0 15px;
}

.section-title {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #333;
}

/* --- Kotak Pencarian --- */
.search-container {
    display: flex;
    margin-top: 10px;
}

.search-container input {
    flex-grow: 1; /* Input mengambil sisa ruang */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
}

.search-container button {
    padding: 12px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1rem;
}

/* --- Kartu Listing Apartemen --- */
.listings-container {
    display: grid;
    gap: 20px; /* Jarak antar kartu */
}

.card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Agar gambar tidak keluar dari sudut rounded */
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px); /* Efek sedikit terangkat saat disentuh */
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Gambar akan mengisi area tanpa distorsi */
    display: block;
}

.card-details {
    padding: 15px;
}

.card-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-details .location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.card-details .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 12px;
}

.card-details .features {
    display: flex;
    gap: 15px; /* Jarak antar ikon fitur */
    font-size: 0.9rem;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.card-details .features i {
    margin-right: 5px;
    color: #007bff;
}

/* --- Navigasi Bawah --- */
.bottom-nav {
    background-color: #ffffff;
    position: fixed; /* Tetap di posisi bawah */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-around; /* Menyebar item secara merata */
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column; /* Ikon di atas, teks di bawah */
    align-items: center;
    text-decoration: none;
    color: #888;
    flex-grow: 1; /* Setiap item mengambil ruang yang sama */
    padding: 8px 0;
}

.nav-item i {
    font-size: 1.5rem; /* Ukuran ikon */
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.75rem;
}

/* Style untuk item navigasi yang aktif */
.nav-item.active {
    color: #007bff; /* Warna biru untuk item aktif */
}


/* --- RESPONSIVE UNTUK LAYAR LEBIH BESAR (TABLET/DESKTOP) --- */
@media (min-width: 768px) {
    body {
        /* Kembalikan padding normal untuk desktop */
        padding-top: 80px;
        padding-bottom: 20px;
    }

    .content {
        max-width: 1200px; /* Batasi lebar konten agar tidak terlalu lebar */
        margin: 0 auto; /* Posisikan di tengah */
        padding: 0 20px;
    }

    /* Ubah layout listing menjadi grid dengan beberapa kolom */
    .listings-container {
        /* Buat kolom sebanyak mungkin dengan lebar minimal 320px */
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    /* Navigasi bawah tidak terlalu cocok untuk desktop, bisa disembunyikan */
    .bottom-nav {
        display: none;
    }
}
/* --- STYLE UNTUK HALAMAN DETAIL --- */

/* Beri padding bawah agar konten tidak tertutup tombol CTA */
body.page-detail {
    padding-bottom: 90px;
    background-color: #ffffff; /* Latar putih untuk halaman detail */
}

/* Header khusus detail dengan tombol kembali */
.detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.detail-header .back-button {
    font-size: 1.5rem;
    color: #333;
}
.detail-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    /* Mencegah judul jadi terlalu panjang */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Galeri Gambar */
.image-gallery .main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 0 0 15px 15px;
}

/* Informasi Utama */
.detail-main-info {
    padding: 20px;
    border-bottom: 8px solid #f4f6f9;
}
.detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}
.detail-location {
    font-size: 1rem;
    color: #666;
}

/* Fitur Kunci */
.detail-features {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom */
    gap: 1px;
    background-color: #e9ecef;
    border-top: 1px solid #e9ecef;
    border-bottom: 8px solid #f4f6f9;
}
.feature-item {
    background-color: #fff;
    padding: 15px;
    text-align: center;
}
.feature-item i {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 8px;
    display: block;
}
.feature-item span {
    font-size: 0.8rem;
    color: #666;
    display: block;
}
.feature-item strong {
    font-size: 1rem;
    color: #333;
}

/* Section Umum (Deskripsi, Fasilitas, Peta) */
.detail-section {
    padding: 20px;
    border-bottom: 8px solid #f4f6f9;
}
.detail-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.detail-section p {
    line-height: 1.7;
    color: #555;
}

/* Daftar Fasilitas */
.facilities-list {
    list-style: none;
    padding: 0;
    columns: 2; /* Bagi jadi 2 kolom di layar lebih besar */
    -webkit-columns: 2;
    -moz-columns: 2;
}
.facilities-list li {
    padding: 5px 0;
    color: #333;
}
.facilities-list li i {
    color: #28a745;
    margin-right: 10px;
}

/* Peta */
.map-container {
    overflow: hidden;
    border-radius: 8px;
}
.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Tombol Aksi (CTA) Bawah */
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}
.cta-button {
    flex: 1; /* Bagi ruang secara merata */
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s;
}
.cta-button:hover {
    opacity: 0.9;
}
.cta-button i {
    margin-right: 8px;
}
.cta-button.whatsapp {
    background-color: #25D366;
}
.cta-button.call {
    background-color: #007bff;
}

/* Link untuk membungkus kartu */
a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* --- STYLE UNTUK SLIDESHOW GAMBAR --- */

.slideshow-container {
    position: relative;
    width: 100%;
    margin: auto;
}

.slide {
    display: none; /* Sembunyikan semua slide secara default */
}

.slide img {
    width: 100%;
    height: 280px; /* Tinggi gambar slideshow */
    object-fit: cover;
    vertical-align: middle;
}

/* Tombol Next & Previous */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Navigasi Dots */
.dots-container {
    text-align: center;
    padding: 15px 0;
    background-color: #f1f1f1;
}

.dot {
    cursor: pointer;
    height: 13px;
    width: 13px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/* Efek Fading */
.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
/* --- STYLE UNTUK HALAMAN PROFIL --- */

.profile-header {
    text-align: center;
    padding: 25px 20px;
    border-bottom: 8px solid #f4f6f9;
}

.profile-logo {
    width: 100px;
    height: 100px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-logo i {
    font-size: 3rem;
}

/* Jika Anda pakai gambar logo, gunakan style ini */
.profile-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}


.profile-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-header p {
    font-size: 1rem;
    color: #666;
}

.profile-section {
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
}

.profile-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.profile-section p {
    line-height: 1.7;
    color: #555;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-list li i {
    font-size: 1.5rem;
    color: #007bff;
    margin-right: 20px;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-list li div strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 3px;
}

.contact-list li div p,
.contact-list li div a {
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
}

.contact-list li div a:hover {
    text-decoration: underline;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-media-links a {
    font-size: 2.5rem;
    color: #333;
    transition: color 0.2s ease-in-out;
}

.social-media-links a:hover {
    color: #007bff;
}
/* CSS untuk styling dan animasi testimoni */
.testimonials-section {
  padding: 20px;
  background-color: #f8f8f8;
  text-align: center;
  overflow: hidden; /* Penting untuk fade out */
}

.testimonial-container {
  position: relative;
  height: 180px; /* Sesuaikan tinggi sesuai kebutuhan Anda */
}

.testimonial-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonial-item.active {
  opacity: 1;
}

.stars {
  color: #ffc107; /* Warna kuning untuk bintang */
  margin-bottom: 10px;
  font-size: 1.2em;
}

.testimonial-name {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.testimonial-text {
  font-style: italic;
  color: #555;
  font-size: 0.9em;
}

/* Media Queries untuk responsif jika diperlukan, tapi ini sudah mobile-first */
@media (max-width: 768px) {
  .testimonial-item {
    padding: 12px;
  }
}
