@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* PALET "WHITE LUXURY" */
    
    /* Backgrounds */
    --bg-body: #FFFFFF;        /* Putih Murni */
    --bg-light: #F8F9FA;       /* Abu Sangat Muda (untuk selingan section) */
    --bg-dark: #111827;        /* Hitam Charcoal (Bukan hitam mati) untuk Footer/Hero overlay */
    --bg-nature: #F2F7F5; /* Hijau Alam Tipis */
    /* Accents */
    --gold: #C5A059;           /* Emas Elegan (Matte, bukan kuning) */
    --gold-hover: #B08D45;
    
    /* Text */
    --text-main: #1A1A1A;      /* Hampir Hitam (Lebih nyaman di mata) */
    --text-muted: #6B7280;     /* Abu-abu teks */
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Cormorant Garamond', serif; 
    font-weight: 700;
}

/* --- PERBAIKAN SEPARATOR (LEBIH TIPIS & HALUS) --- */
/* Tinggi dikurangi drastis dari 150px ke 60px */

/* Putih ke Abu (Digunakan saat pindah ke section Facilities) */
.fade-white-to-gray {
    height: 60px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #F8F9FA 100%);
    position: relative;
    z-index: 10;
}

/* Abu ke Putih */
.fade-gray-to-white {
    height: 60px;
    background: linear-gradient(to bottom, #F8F9FA 0%, #FFFFFF 100%);
    position: relative;
    z-index: 10;
}

/* Abu ke Hitam (Khusus transisi ke Footer atau Section Gelap) */
.fade-gray-to-dark {
    height: 60px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #111827 100%);
    position: relative;
    z-index: 10;
    margin-bottom: -1px;
}

/* 1. Transisi Putih ke Hijau Alam (Penghubung Tugu & Kawasan) */
.fade-white-to-nature {
    height: 60px; /* Dikurangi agar tidak terlalu jauh */
    background: linear-gradient(to bottom, #FFFFFF 0%, var(--bg-nature) 100%);
    position: relative;
    z-index: 10;
    margin-top: -1px;    /* Menutup celah pixel */
    margin-bottom: -1px; /* Menutup celah pixel */
}

/* 2. Transisi Hijau Alam ke Abu (Penghubung Kawasan & Fasilitas) */
.fade-nature-to-gray {
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-nature) 0%, #F8F9FA 100%);
    position: relative;
    z-index: 10;
    margin-top: -1px;  
    margin-bottom: -1px; 
}

/* --- HEADER & NAV --- */
.custom-header {
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.custom-header.scrolled {
    background: rgba(255, 255, 255, 0.95); /* Header Putih saat scroll */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Warna link saat header transparan (di atas hero) */
.custom-header .nav-link { color: #fff; }
.custom-header .logo-img { filter: brightness(0) invert(1); } /* Logo Putih */

/* Warna link saat header putih (scrolled) */
.custom-header.scrolled .nav-link { color: var(--text-main); }
.custom-header.scrolled .logo-img { filter: none; } /* Logo Asli/Hitam */
.custom-header.scrolled #mobile-menu-btn { color: var(--text-main); }

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
}

/* Garis bawah emas saat hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%; transform: translateX(-50%) scaleX(0);
    width: 100%; height: 2px;
    background-color: var(--gold);
    transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

/* --- PERBAIKAN LANGUAGE SWITCHER --- */
/* Container background agar terlihat jelas */
.lang-container-box {
    background: rgba(0, 0, 0, 0.3); /* Gelap transparan di awal */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s;
}

.custom-header.scrolled .lang-container-box {
    background: #F3F4F6; /* Abu terang saat scroll */
    border-color: #E5E7EB;
}

.lang-btn {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
}

.lang-btn.active {
    background-color: var(--gold);
    color: #fff;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.4);
}

.custom-header.scrolled .lang-btn { color: #6B7280; }
.custom-header.scrolled .lang-btn.active { color: #fff; }

/* --- COMPONENT STYLES --- */
.monas-card {
    border: 1px solid #E5E7EB;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.monas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* Shadow halus, bukan hitam pekat */
    border-color: var(--gold);
}

.btn-gold {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: all 0.3s;
}
.btn-gold:hover {
    background-color: var(--gold);
    color: #fff;
}

/* Override Tab Active Color */
.tab-btn.active {
    color: #111827;
    border-color: var(--gold);
}
/* --- HERO ANIMATIONS --- */

/* Efek Zoom Perlahan pada Background */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.animate-kenburns {
    animation: kenburns 15s ease-out infinite alternate;
}

/* Base class untuk animasi teks */
.animate-text {
    transition: all 1s ease-out;
}

/* Saat slide aktif (class ini ditambahkan oleh Swiper), jalankan transisi */
.swiper-slide-active .animate-text {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Kustomisasi Pagination Swiper agar Emas */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.4;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #C5A059; /* Warna Emas */
    opacity: 1;
    width: 30px; /* Jadi lonjong saat aktif */
    border-radius: 5px;
}

/* --- MODAL ANIMATIONS --- */
@keyframes modalUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modalUp {
    animation: modalUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- SWIPER CUSTOMIZATION FOR CARDS --- */
/* Membuat dot pagination di dalam kartu menjadi lebih kecil & elegan */
.card-mini-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
}
.card-mini-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 20px;
    border-radius: 10px;
}

/* Modal Swiper Button Custom */
.modal-swiper .swiper-button-next,
.modal-swiper .swiper-button-prev {
    color: #C5A059;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.modal-swiper .swiper-button-next:after,
.modal-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-swiper .swiper-button-next:hover,
.modal-swiper .swiper-button-prev:hover {
    background: #C5A059;
    color: #000;
}


/* --- LEAFLET MAP CUSTOMIZATION --- */

/* Hapus border kotak putih di sekitar map (jika ada) */
.leaflet-container {
    background: #f0f0f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Popup Style */
.leaflet-popup-content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 0;
    border: 1px solid rgba(0,0,0,0.05);
}

.leaflet-popup-content {
    margin: 8px;
}

.leaflet-popup-tip {
    background: white;
}

/* Hapus tombol close bawaan yang jelek, kita pakai klik luar saja atau custom jika mau */
.leaflet-popup-close-button {
    display: none;
}

/* Animasi Pin saat render */
.custom-pin {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-pin:hover {
    transform: scale(1.2) translateY(-5px);
    z-index: 999 !important;
}

/* --- INFINITE MARQUEE ANIMATION (TETAP SAMA) --- */
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    gap: 24px; /* Jarak antar kartu */
    width: max-content;
    animation: marquee-scroll 50s linear infinite; /* Sedikit lebih lambat agar elegan */
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* --- NEW: MODERN ROUNDED CARD --- */
.facility-card {
    width: 280px;
    height: 380px;
    border-radius: 40px; /* Sudut Sangat Bulat (Modern Look) */
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    
    /* Border Halus */
    border: 1px solid rgba(0,0,0,0.1); 
    background: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efek Hover: Naik sedikit + Border Emas + Bayangan */
.facility-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #C5A059;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1), 0 0 0 4px rgba(197, 160, 89, 0.1); /* Glow tipis di luar */
}

/* --- TAB SYSTEM REVISI --- */

/* Base Tab Button */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #9CA3AF; /* Gray-400 default */
    border-bottom: 2px solid transparent;
}

/* --- GROUP 1: EXPLORE TABS (Gaya Baru: Mewah, Serif, Gold) --- */
.tab-btn[data-group="explore"] {
    font-family: 'Cormorant Garamond', serif; /* Font Display */
    font-size: 1.25rem; /* Lebih besar */
    font-weight: 700; 
    letter-spacing: 0.1em;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

/* Active State Explore */
.tab-btn[data-group="explore"].active {
    color: #C5A059; /* Emas */
    border-bottom-color: #C5A059;
}

/* --- GROUP 2: VISIT TABS (Gaya Lama: Clean, Sans-Serif, Dark) --- */
.tab-btn[data-group="visit"] {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Active State Visit */
.tab-btn[data-group="visit"].active {
    color: #111827; /* Dark Charcoal */
    border-bottom-color: #111827;
}

/* Content Animation */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- CUSTOM TAB COLORS (EXPLORE) --- */
/* Tab Tugu: Emas */
#btn-exp-tugu.active { color: #C5A059 !important; border-bottom-color: #C5A059 !important; }
/* Tab Kawasan: Hijau */
#btn-exp-kawasan.active { color: #15803d !important; border-bottom-color: #15803d !important; }
#btn-exp-kawasan:hover { color: #15803d; }
/* Tab Fasilitas: Biru */
#btn-exp-fac.active { color: #1d4ed8 !important; border-bottom-color: #1d4ed8 !important; }
#btn-exp-fac:hover { color: #1d4ed8; } 

/* --- COMPACT GRADIENT SEPARATOR --- */
/* Gradient yang menumpang ke atas section sebelumnya (Negative Margin) */
.compact-gradient {
    height: 60px;
    margin-top: -60px; /* Menarik gradient ke atas agar tidak menambah tinggi halaman */
    position: relative;
    z-index: 20;
    pointer-events: none;
}

/* --- CSS FIX UNTUK TAB SYSTEM --- */

/* 1. Reset Base Button */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #9CA3AF; /* Default Text: Gray (Inactive) */
    border-bottom: 2px solid transparent !important; /* Paksa transparan jika tidak active */
    background: none;
    outline: none;
}

/* 2. Style untuk Explore Group (Mewah & Serif) */
.tab-btn[data-group="explore"] {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem; /* ~20px */
    font-weight: 700; 
    letter-spacing: 0.1em;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

/* 3. Style untuk Visit Group (Clean & Sans) */
.tab-btn[data-group="visit"] {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem; /* ~14px */
    font-weight: 700;
    letter-spacing: 0.1em;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
}

/* --- STATE ACTIVE (WARNA-WARNI) --- */

/* Explore: Tugu (Emas) */
#btn-exp-tugu.active { color: #C5A059 !important; border-bottom-color: #C5A059 !important; }

/* Explore: Kawasan (Hijau) */
#btn-exp-kawasan.active { color: #15803d !important; border-bottom-color: #15803d !important; }
#btn-exp-kawasan:hover { color: #15803d; }

/* Explore: Fasilitas (Biru) */
#btn-exp-fac.active { color: #1d4ed8 !important; border-bottom-color: #1d4ed8 !important; }
#btn-exp-fac:hover { color: #1d4ed8; }

/* Visit Info: Default (Dark/Hitam) */
.tab-btn[data-group="visit"].active {
    color: #111827 !important; /* Hitam Pekat */
    border-bottom-color: #111827 !important;
}

/* --- UTILITIES --- */
.compact-gradient {
    height: 60px;
    margin-top: -60px;
    position: relative;
    z-index: 20;
    pointer-events: none;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.mascot-3d {
    animation: mascotFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2)); /* Bayangan realistik */
    pointer-events: none; /* Agar tidak menghalangi klik */
    z-index: 20;
}