/* 1. VARIABEL GLOBAL (Hanya didefinisikan satu kali) */
:root {
    --dark-brown: #3D2B1F;    
    --sand-gold: #C5A37F;     
    --soft-cream: #FAF7F2;    
}

/* 2. BASE STYLES */
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background-color: var(--soft-cream); 
    color: var(--dark-brown);
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-serif { 
    font-family: 'Playfair Display', serif; 
}

/* 3. KOMPONEN NAVIGASI */
.glass-nav { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(197, 163, 127, 0.2); 
}

/* 4. TOMBOL & INPUT */
.btn-primary {
    background-color: var(--sand-gold);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-brown);
    transform: translateY(-2px);
}

.input-field {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid rgba(61, 43, 31, 0.1);
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--sand-gold);
    box-shadow: 0 0 0 4px rgba(197, 163, 127, 0.1);
}

/* 5. FLOATING ELEMENTS (WA, Cookie, Modal) */
.floating-wa {
    position: fixed; 
    bottom: 24px; 
    right: 24px;
    background-color: #25D366; 
    color: white;
    padding: 12px 20px; 
    border-radius: 50px;
    display: flex; 
    align-items: center; 
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    z-index: 999;
    font-weight: 600; 
    font-size: 14px;
}

.cookie-badge {
    position: fixed; 
    bottom: 24px; 
    left: 24px;
    background: white; 
    padding: 12px 20px;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999; 
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--sand-gold);
}

.glass-modal { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
}

/* 6. SWIPER SLIDER CUSTOMIZATION */
.swiper-pagination-bullet-active { 
    background: var(--sand-gold) !important; 
}

.swiper-button-next, .swiper-button-prev {
    color: white !important;
    transform: scale(0.7); 
}

.mySwiper {
    padding-bottom: 50px !important;
    padding-top: 10px !important;
}

/* 7. GALLERY CARDS & MAP */
.map-sepia {
    filter: sepia(20%) contrast(90%) hue-rotate(10deg);
}

.gallery-card {
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
}

.gallery-card img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

.gallery-card:hover img { 
    transform: scale(1.1); 
}

.gallery-card::after {
    content: "\f00e"; /* FontAwesome Search Plus */
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900;
    position: absolute; 
    inset: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: rgba(61, 43, 31, 0.4);
    color: white; 
    font-size: 1.5rem;
    opacity: 0; 
    transition: all 0.3s ease;
}

.gallery-card:hover::after { 
    opacity: 1; 
}
  /* Hide scrollbar but allow scrolling for thumbnails */
    .no-scrollbar::-webkit-scrollbar { display: none; }
    .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
    
    [x-cloak] { display: none !important; }
        
.detailSwiper .swiper-slide {
    overflow: hidden;
    border-radius: 12px; /* Opsional: jika ingin setiap slide melengkung */
}

.detailSwiper .swiper-slide img {
    transition: transform 0.5s ease;
}

.detailSwiper .swiper-slide:hover img {
    transform: scale(1.05);
}
 /* Efek Background tetap (Parallax) */
    .fixed-bg {
        background-attachment: fixed;
    }

/* Pastikan container slide tidak memiliki tinggi yang berubah-ubah */
.mySwiper .swiper-slide {
    height: auto !important;
    display: flex;
    flex-direction: column;
}

/* KUNCI UKURAN GAMBAR - Versi Fix */
.mySwiper .swiper-slide img,
.mySwiper .swiper-slide div img { /* Ditambah selector ini agar kena ke dalam div group */
    width: 100% !important;
    height: 450px !important; /* Gunakan 450px atau 500px agar terlihat elegan */
    object-fit: cover !important;
    display: block !important;
}
/* Pastikan slide tidak memaksa tinggi penuh agar teks di bawah tidak terpotong */
.mySwiper .swiper-slide {
    height: auto !important;
    background: transparent !important;
    display: block !important;
}

/* Membatasi teks deskripsi maksimal 2 baris agar tetap sejajar */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Kunci ukuran gambar agar tetap rounded meskipun tanpa shadow di container luar */
.mySwiper .swiper-slide img {
    width: 100% !important;
    height: 350px !important; 
    object-fit: cover !important;
    border-radius: 1.5rem !important; /* Menjaga bentuk rounded */
}

@media (max-width: 768px) {
    .mySwiper .swiper-slide img {
        height: 250px !important;
    }
}

/* Penyesuaian Mobile */
@media (max-width: 768px) {
    .mySwiper .swiper-slide img,
    .mySwiper .swiper-slide div img {
        height: 320px !important; 
    }
}   
    .mySwiper .swiper-slide .p-10 {
        padding: 1.5rem !important;
    }

    .mySwiper .swiper-slide h4 {
        font-size: 1.25rem !important;
    }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* Sembunyikan banner "Translated to..." di bagian atas */
.goog-te-banner-frame.skiptranslate, 
.goog-te-gadget-icon,
#goog-gt-tt, 
.goog-te-balloon-frame { 
    display: none !important; 
}

body { 
    top: 0px !important; 
}

/* Sembunyikan widget asli Google agar hanya tombol custom Anda yang terlihat */
#google_translate_element {
    display: none !important;
}

/* Mencegah tooltip saat hover teks yang diterjemahkan */
.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}
/* Efek saat bendera diklik */
button:focus img {
    outline: 2px solid var(--sand-gold);
    outline-offset: 2px;
}