/* ============================================= */
/* STYLING DASAR DAN GLOBAL                      */
/* ============================================= */

/* Variabel Warna Tema (agar mudah diubah) */
:root {
    --warna-merah: #D22B2B;      /* Merah utama */
    --warna-merah-gelap: #B32424; /* Merah untuk hover */
    --warna-hitam: #212529;      /* Hitam dari Bootstrap */
    --warna-putih: #f8f9fa;      /* Putih sedikit keabuan */
    --warna-abu: #6c757d;       /* Abu-abu untuk teks */
}

body:not(#admin-body) {
    padding-top: 56px; /* Menyesuaikan dengan tinggi navbar fixed-top */
    font-family: 'Lato', sans-serif; /* Font default untuk semua teks */
    font-weight: 400;
    line-height: 1.6; /* Jarak antar baris agar lebih nyaman dibaca */
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .display-4, .display-5 {
    font-family: 'Poppins', sans-serif; /* Font untuk semua jenis judul */
    font-weight: 600; /* Ketebalan default untuk judul */
}

footer {
    margin-top: auto;
}

a {
    color: var(--warna-merah);
    text-decoration: none;
}

a:hover {
    color: var(--warna-merah-gelap);
}

/* ============================================= */
/* NAVBAR & HEADER                               */
/* ============================================= */

.navbar-logo {
    height: 60px; /* Atur tinggi logo */
    width: auto;  /* Biarkan lebar menyesuaikan */
}

.navbar-brand {
    font-family: 'Pacifico', cursive; /* Terapkan font Pacifico /
    font-weight: 600; /* Gunakan ketebalan Semi-bold */
    font-size: 1.7rem; /* Sedikit perbesar ukuran font */
}

/* Font untuk link-link navigasi (Beranda, Destinasi, dll.) */
.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500; /* Medium, agar tidak terlalu tebal tapi tetap berisi */
    text-transform: uppercase; /* Membuatnya terlihat lebih rapi dan tegas */
    letter-spacing: 0.5px; /* Memberi sedikit ruang antar huruf */
    font-size: 0.9rem;
}

/* Sedikit penyesuaian agar link aktif terlihat lebih menonjol */
.navbar-dark .navbar-nav .nav-link.active {
    font-weight: 700; /* Bold saat aktif */
}

/* HAPUS ATAU BERI KOMENTAR BLOK DI BAWAH INI */
/*
.hero-section {
    background: url('../images/Danau Tondano.jpg') no-repeat center center; 
    background-size: cover;
    padding: 100px 0;
    color: #fff;
    position: relative;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}
*/

/* STYLING FINAL UNTUK HERO CAROUSEL (RESPONSIVE) */
/* ============================================= */

#wisataCarousel .carousel-item {
    height: 90vh;
    min-height: 500px;
    position: relative;
}

#wisataCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

#wisataCarousel .carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

#wisataCarousel .carousel-caption {
    /* Menjadikan caption memenuhi seluruh slide */
    top: 0;
    bottom: 0;
    left: 10%;
    right: 10%;
    width: 80%;
    
    /* Menghapus transform agar Flexbox bisa bekerja sempurna */
    transform: none; 

    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Mengatur ukuran font default untuk judul */
#wisataCarousel .carousel-caption .display-4 {
    font-size: 3.5rem; /* Ukuran standar untuk desktop */
    font-weight: bold;
}

/* ============================================= */
/* MEDIA QUERY UNTUK LAYAR KECIL (MOBILE)        */
/* ============================================= */
@media (max-width: 768px) {
    
    #wisataCarousel .carousel-item {
        height: 70vh; /* Sedikit lebih tinggi di mobile */
        min-height: 450px;
    }
    
    /* Perkecil ukuran font judul utama di mobile */
    #wisataCarousel .carousel-caption .display-4 {
        font-size: 2.2rem; /* Ukuran lebih kecil dan konsisten */
    }

    /* Perkecil ukuran font paragraf di mobile */
    #wisataCarousel .carousel-caption .lead {
        font-size: 1rem;
    }

    /* Perkecil ukuran tombol di mobile */
    #wisataCarousel .carousel-caption .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================= */
/* KOMPONEN BOOTSTRAP (BUTTON, PAGINATION)       */
/* ============================================= */

.btn-primary {
    background-color: var(--warna-merah);
    border-color: var(--warna-merah);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--warna-merah-gelap) !important;
    border-color: var(--warna-merah-gelap) !important;
    box-shadow: none !important;
}

/* EFEK ZOOM HOVER UNTUK KARTU DESTINASI         */
/* ============================================= */

/* Targetkan kartu di dalam kolom yang kita animasikan */
.col-md-4 .card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Saat mouse berada di atas kartu */
.col-md-4 .card:hover {
    transform: scale(1.05); /* Perbesar kartu menjadi 105% dari ukuran aslinya */
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; /* Tambah bayangan yang lebih kuat */
    z-index: 10; /* Pastikan kartu yang di-hover berada di atas kartu lainnya */
}

/* KARTU VISI & MISI BARU (VERSI SEDERHANA & ANTI-ERROR)     */
/* ========================================================= */

.card-vm {
    border: none;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff; /* Teks default di dalam kartu menjadi putih */
}

.card-vm:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Modifier class untuk Kartu Visi (gradien merah) */
.card-vm--visi {
    background-image: linear-gradient(135deg, #a51c1c, #D22B2B);
}

/* Modifier class untuk Kartu Misi (gradien hitam ke abu-abu) */
.card-vm--misi {
    background-image: linear-gradient(135deg, #212529, #495057);
}

.card-vm .vm-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    /* Warna ikon akan otomatis putih karena mewarisi dari .card-vm */
}

.card-vm h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    /* Warna judul akan otomatis putih */
}

/* Membuat teks paragraf dan list sedikit lebih redup agar nyaman dibaca */
.card-vm p,
.card-vm ul {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.card-vm ul {
    text-align: left;
    padding-left: 0;
    list-style-position: inside; /* Membuat bullet point lebih rapi */
}

.card-vm ul li {
    padding-bottom: 0.5rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--warna-merah);
    border-color: var(--warna-merah);
}
.page-link {
    color: var(--warna-merah);
}
.page-link:hover {
    color: var(--warna-merah-gelap);
}


/* ============================================= */
/* HALAMAN BERANDA                               */
/* ============================================= */

.feature-icon, .guide-step-icon {
    background-color: var(--warna-merah);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
}

.guide-step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid #fff;
}


/* ============================================= */
/* HALAMAN KONTAK & FOOTER (MEDIA SOSIAL)        */
/* ============================================= */

.social-icon {
    text-decoration: none;
}
.social-icon i {
    color: var(--warna-hitam);
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-icon:hover i {
    color: var(--warna-merah);
    transform: scale(1.2);
}

.footer-social-link {
    text-decoration: none;
}
.footer-social-link i {
    color: var(--warna-putih);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.footer-social-link:hover i {
    color: #adb5bd;
}

/* ============================================= */
/* LAIN-LAIN (PETA, ANIMASI)                     */
/* ============================================= */

.map-responsive {
    overflow: hidden;
    padding-bottom: 75%;
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.gallery-thumbnail {
    transition: opacity 0.3s ease;
}
.gallery-thumbnail:hover {
    opacity: 0.8;
}

/* Style untuk Item Galeri di Halaman Admin Edit */
.current-gallery-item {
    position: relative;
}

.btn-delete-img {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 1;
    padding: 0;
}


.card-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    
}

#admin-body .btn-primary {
    background-color: #D22B2B !important;
    border-color: #D22B2B !important;
}

#admin-body .btn-primary:hover {
    background-color: #B32424 !important;
    border-color: #B32424 !important;
}