/* --- VARIABLES --- */
:root {
    --primary-color: #032139; 
    --accent-color: #bfa15f;  
    --hover-bg: #f0f0f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    padding-top: 70px;
}

/* NAVBAR */
.navbar { background-color: #021833; padding: 12px 0; transition: all 0.3s ease; }
.navbar-brand img { transition: transform 0.3s ease; }
.navbar-brand:hover img { transform: scale(1.05); }
.nav-link { color: rgba(255, 255, 255, 0.8) !important; font-weight: 500; margin: 0 12px; font-size: 0.95rem; position: relative; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: #ffffff !important; font-weight: 600; }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--accent-color); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.btn-login-nav { background-color: #ffffff; color: #021833; border: none; padding: 8px 25px; font-size: 0.9rem; transition: all 0.3s ease; }
.btn-login-nav:hover { background-color: var(--accent-color); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* HERO SECTION */
.hero-section {
    background: linear-gradient(rgba(3, 33, 57, 0.7), rgba(3, 33, 57, 0.7)), url('../images/background/bg.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    color: white; padding: 150px 0 120px; text-align: center; margin-bottom: 50px; position: relative;
}
.hero-title { font-size: 3rem; font-weight: 700; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; color: #f8f9fa; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

/* SEARCH BOX */
.search-box {
    background: #fff; padding: 25px; border-radius: 15px; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    margin: -80px auto 50px; position: relative; z-index: 10;
}
.form-control-lg, .form-select-lg, .btn-lg { font-size: 1rem; padding: 12px 20px; border-radius: 8px; }
.btn-cari { background-color: var(--primary-color); color: white; }
.btn-cari:hover { background-color: #02182b; color: white; }

/* CATEGORY ICONS */
.category-icons-wrapper { margin-top: -20px; padding-bottom: 20px; }
#icon-scroll-container::-webkit-scrollbar { height: 6px; }
#icon-scroll-container::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 10px; }
.cat-icon-item { display: block; text-decoration: none; color: #333; transition: all 0.3s ease; min-width: 90px; }
.icon-circle {
    width: 80px; height: 80px; background: #ffffff; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: all 0.3s ease; border: 2px solid transparent;
}
.icon-circle img { width: 40px; height: auto; object-fit: contain; }
.cat-label { display: block; font-size: 13px; font-weight: 500; color: #555; white-space: nowrap; }
.cat-icon-item:hover .icon-circle { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--accent-color); }
.cat-icon-item:hover .cat-label { color: var(--primary-color); font-weight: 700; }

/* BANNER SLIDER */
.bannerSwiper { width: 100%; padding-bottom: 40px; }
.promo-banner-img {
    width: 100%; height: 180px; object-fit: cover; border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease; display: block;
}
.promo-banner-img:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.swiper-pagination-bullet-active { background-color: var(--primary-color) !important; }

/* PROPERTY CARDS */
.property-card {
    background: #fff; border: none; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; margin-bottom: 30px; height: 100%;
}
.property-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-img-top { height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; min-height: 44px; }
.price-tag { color: var(--primary-color); font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.location-tag { color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.badge-type {
    position: absolute; top: 15px; left: 15px; background: var(--accent-color); color: #fff;
    padding: 5px 12px; border-radius: 5px; font-size: 0.8rem; font-weight: 500;
}
.badge-rent { background: #28a745; }

/* ================================================================= */
/* SECTION HEADER & PAGINATION FIX (Solusi Agar Rapi Sejajar)        */
/* ================================================================= */

.section-header {
    display: flex;
    justify-content: space-between; /* Judul di Kiri, Tombol di Kanan */
    align-items: center; /* Pastikan Vertikal Tengah */
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap; /* Jaga-jaga di layar kecil */
    gap: 15px;
}

.section-title {
    font-size: 1.5rem; font-weight: 700; color: var(--primary-color);
    border-left: 5px solid var(--accent-color); padding-left: 15px;
    margin-bottom: 0 !important; /* Hapus margin bawah judul */
}

/* PEMBUNGKUS TOMBOL KANAN (Pagination + Lihat Semua) */
.header-actions {
    display: flex;
    align-items: center; /* Wajib Center Vertikal */
    gap: 15px;
}

/* PAGINATION CONTAINER */
.header-pagination {
    display: flex !important;
    align-items: center !important;
}

/* RESET STYLE BAWAAN BOOTSTRAP PADA UL */
.header-pagination .simple-pagination ul {
    margin: 0 !important;      /* Matikan margin Bootstrap */
    padding: 0 !important;     /* Matikan padding */
    list-style: none !important;
    display: flex !important;  /* Wajib Flex */
    align-items: center !important;
    gap: 8px;                  /* Jarak antar panah */
    box-shadow: none !important;
    background: transparent !important;
}

/* SEMBUNYIKAN ANGKA HALAMAN (1, 2, 3...) */
.header-pagination .simple-pagination li {
    display: none !important; 
}

/* MUNCULKAN HANYA TOMBOL PREV & NEXT */
.header-pagination .simple-pagination li:first-child,
.header-pagination .simple-pagination li:last-child {
    display: block !important; 
}

/* STYLE TOMBOL PANAH (BULAT) */
.header-pagination .simple-pagination li a,
.header-pagination .simple-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 0 !important; /* Pastikan tidak ada margin aneh */
}

.header-pagination .simple-pagination li a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(3, 33, 57, 0.2);
}

.header-pagination .simple-pagination li.disabled span {
    background-color: #f8f9fa; color: #ccc; border-color: #eee;
    cursor: default; box-shadow: none; transform: none;
}

/* STYLE LINK LIHAT SEMUA */
.view-all-link {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap; /* Teks tidak turun baris */
}
.view-all-link:hover { color: var(--primary-color); }


/* FOOTER */
.footer-section { background-color: #021833; color: #ffffff; padding: 60px 0 20px; margin-top: 50px; }
.footer-section p, .footer-section .text-white-50 { font-size: 12px; line-height: 1.6; }
.footer-section h5 { font-size: 16px; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.5px; }
.footer-menu a { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 12px; transition: all 0.3s ease; }
.footer-menu a:hover { color: var(--accent-color); padding-left: 5px; }
.footer-contact li { margin-bottom: 12px; display: flex; align-items: flex-start; color: rgba(255, 255, 255, 0.8); font-size: 12px; }
.social-links a {
    display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.1); color: #fff; border-radius: 50%; margin-right: 8px; font-size: 13px; transition: all 0.3s ease; text-decoration: none;
}
.social-links a:hover { background: var(--accent-color); transform: translateY(-3px); }
.btn-warning { background-color: var(--accent-color); border: none; color: #fff; font-size: 12px; }
.btn-warning:hover { background-color: #a88d50; color: #fff; }

@media (min-width: 992px) {
    .footer-section .col-lg-4, .footer-section .col-lg-2, .footer-section .col-lg-3 { padding-right: 35px; padding-left: 15px; }
    .footer-section .col-lg-3:last-child { padding-right: 15px; }
}

/* ========================================= */
/* AGENT & WHATSAPP RECTANGLE BUTTON         */
/* ========================================= */

.agent-section {
    padding-top: 12px;
}

.agent-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eee;
}

.agent-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.agent-position {
    font-size: 11px;
    color: #888;
}

/* TOMBOL WHATSAPP PERSEGI PANJANG */
.btn-wa-rect {
    background-color: #25D366; /* Warna Hijau WhatsApp */
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 6px; /* Membuat sudut sedikit melengkung (Rectangle) */
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2);
}

.btn-wa-rect i {
    font-size: 16px;
}

.btn-wa-rect:hover {
    background-color: #128C7E; /* Hijau lebih gelap saat hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(37, 211, 102, 0.3);
}