/* =========================================
   1. GLOBAL STYLES (Dipakai di semua halaman)
   ========================================= */
body {
    /* Mengubah font seluruh halaman menjadi Patrick Hand */
    font-family: 'Patrick Hand', 'Comic Sans MS', 'Merienda', cursive, sans-serif !important;
    background-color: #fdfaf8; /* Background terang agar font terbaca jelas */
    
    /* OPSIONAL: Patrick Hand terkadang terlihat kecil, 
       kamu bisa sedikit membesarkan ukuran dasar font-nya */
    /* font-size: 1rem;  */
}

.badge-soft {
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.btn-custom-rounded {
    border-radius: 25px;
}

/* =========================================
   CUSTOM FONTS (LDF COMIC SANS)
   ========================================= */


@font-face {
    font-family: 'Merienda';
    src: url('../fonts/Merienda-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Font Regular */
/* @font-face {
    font-family: 'LDF Comic Sans';
    src: url('../fonts/Ldfcomicsans-jj7l.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
} */

/* Font Bold */
/* @font-face {
    font-family: 'LDF Comic Sans';
    src: url('../fonts/Ldfcomicsansbold-zgma.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
} */

/* Font Light / Hairline (Opsional, gunakan jika perlu) */
/* @font-face {
    font-family: 'LDF Comic Sans';
    src: url('../fonts/Ldfcomicsanslight-6dZo.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
} */

/* =========================================
   NAVBAR MODERN (GLASSMORPHISM)
   ========================================= */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85) !important; /* Agak transparan */
    backdrop-filter: blur(12px); /* Efek kaca blur */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Gaya Link Menu Biasa */
.nav-link-custom {
    color: #4a5568 !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link-custom:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Gaya Link Menu Aktif (Soft Pill) */
.nav-link-custom.active-nav {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    font-weight: 700;
}

/* Animasi Halus untuk Dropdown Profil */
.dropdown-menu-animated {
    animation: fadeInDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 1px solid rgba(0,0,0,0.05);
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Kapsul Profil */
.profile-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.profile-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* =========================================
   2. STYLES UNTUK BERANDA (home.blade.php)
   ========================================= */
.hero-gradient {
    /* Warna gradient biru mirip desain */
    background: linear-gradient(135deg, #1459a9 0%, #298cd9 100%);
    padding: 80px 0 120px 0; /* Padding bawah lebih besar untuk ruang overlap */
}

.stats-container {
    margin-top: -60px; /* Menarik card ke atas menimpa hero section */
    position: relative;
    z-index: 2;
}

.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.img-placeholder {
    height: 180px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.search-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px;
    display: inline-block;
}

/* =========================================
   3. TAMBAHAN UNTUK BERANDA BARU
   ========================================= */
/* Kotak Kategori */
.category-box {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #f0f0f0;
}
.category-box:hover {
    transform: translateY(-5px);
    background-color: #1459a9; /* Berubah biru saat di-hover */
    color: white !important;
    border-color: #1459a9;
}
.category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}
.category-box:hover .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

/* Banner Bawah */
.cta-banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    border-radius: 24px;
    color: #333;
    position: relative;
    overflow: hidden;
}

/* =========================================
   CARD DESTINASI MODERN beranda
   ========================================= */
.destination-card {
    border: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Wrapper Gambar untuk menyembunyikan zoom */
.card-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
}

/* Gambar yang bisa nge-zoom */
.card-img-wrapper .bg-image {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.destination-card:hover .bg-image {
    transform: scale(1.1); /* Efek Zoom */
}

/* Label Melayang (Glassmorphism) */
.badge-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    color: #333 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 8px 15px;
}

/* Kotak Konten yang menimpa gambar */
.card-content-overlap {
    background: #ffffff;
    border-radius: 20px;
    margin-top: -30px; /* Rahasia efek overlap 3D */
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Tombol Bulat */
.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.destination-card:hover .btn-circle {
    background-color: #0d6efd;
    color: white !important;
    transform: translateX(3px); /* Panah maju sedikit saat dihover */
}

/* =========================================
   KABUPATEN TAGS MODERN beranda
   ========================================= */
.kabupaten-tag {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    color: #4a5568;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    text-decoration: none;
}

.kabupaten-tag:hover {
    background: #0d6efd; /* Warna biru primary */
    color: #ffffff !important;
    border-color: #0d6efd;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

.kabupaten-tag:hover .tag-icon {
    transform: scale(1.2) rotate(-15deg);
}

.tag-icon {
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

/* =========================================
   CTA BANNER MODERN (CALL TO ACTION) beranda
   ========================================= */
.cta-modern {
    background: linear-gradient(135deg, #0a2e5c 0%, #155b9c 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 46, 92, 0.2);
}

/* Lingkaran Dekoratif Transparan di Background CTA */
.cta-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.cta-modern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

/* Tombol CTA Menyala (Glowing) */
.btn-cta-glowing {
    background: #ffc107; /* Warna kuning peringatan yang kontras */
    color: #000;
    font-weight: 700;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.btn-cta-glowing:hover {
    background: #ffca2c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.5);
    color: #000;
}

/* =========================================
   HALAMAN JELAJAHI - MODERN REDESIGN
   ========================================= */

/* Sidebar Modern & Sticky */
.sidebar-modern {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: sticky;
    top: 90px; /* Jarak dari navbar saat di-scroll */
    border: 1px solid rgba(0,0,0,0.02);
}

/* Custom Checkbox menjadi Pill Button */
.check-pill-input {
    display: none; /* Sembunyikan checkbox bawaan */
}

.check-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    margin-right: 4px;
}

.check-pill-label:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Efek saat Pill dipilih (Checked) */
.check-pill-input:checked + .check-pill-label {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

/* Custom Range Slider */
.form-range::-webkit-slider-thumb {
    background: #0d6efd;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

/* Card Horizontal Premium */
.card-hz-modern {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.02);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-hz-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(13, 110, 253, 0.1);
}

/* Wrapper Gambar untuk Efek Zoom */
.card-hz-img-wrap {
    height: 100%;
    min-height: 240px;
    overflow: hidden;
    position: relative;
}

.card-hz-img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
}

.card-hz-modern:hover .card-hz-img {
    transform: scale(1.1);
}

/* Label Mengambang di atas gambar */
.badge-glass {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #1e293b;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =========================================
   4. KUSTOMISASI PAGINATION LARAVEL
   ========================================= */

/* Mengubah kontainer bawaan Laravel menjadi "Floating Pill" yang elegan */
nav .justify-content-sm-between {
    background-color: #ffffff;
    padding: 12px 25px;
    border-radius: 50px; /* Bentuk kapsul */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); /* Shadow super halus */
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center;
    gap: 20px; /* Jarak antara teks "Showing..." dan tombol angka */
}

/* Merapikan teks "Showing 1 to 10..." */
nav p.small.text-muted {
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mengatur jarak antar tombol angka */
.pagination {
    margin-bottom: 0;
    gap: 8px; /* Jarak antar bulatan */
}

/* Mengubah kotak menjadi bulatan (Circle) */
.page-item .page-link {
    border-radius: 50% !important; /* Membuat bulat sempurna */
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-weight: 600;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* Efek saat angka tidak aktif disorot mouse */
.page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f1f0fa; /* Warna ungu/biru super pudar */
    color: #1459a9;
    transform: translateY(-2px); /* Efek melayang */
}

/* Efek angka yang sedang aktif (Halaman saat ini) */
.page-item.active .page-link {
    background-color: #1459a9; /* Warna biru tema utama */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(20, 89, 169, 0.3); /* Cahaya shadow di tombol aktif */
    transform: scale(1.05); /* Sedikit lebih besar */
}

/* Warna panah prev/next saat mentok (disabled) */
.page-item.disabled .page-link {
    color: #dee2e6;
    background-color: transparent;
}

/* =========================================
   KUSTOMISASI CUSTOM DROPDOWN jelajahi
   ========================================= */
.custom-dropdown-menu {
    border-radius: 16px !important; /* Membuat kotak menu luar membulat */
    padding: 10px !important;
    margin-top: 10px !important;
    animation: fadeInDropdown 0.2s ease-out; /* Animasi muncul halus */
}

.custom-dropdown-menu .dropdown-item {
    border-radius: 10px; /* Item di dalamnya juga membulat */
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Efek saat opsi disorot mouse */
.custom-dropdown-menu .dropdown-item:hover {
    background-color: #f1f0fa; /* Warna biru/ungu super lembut */
    color: #1459a9;
    transform: translateX(3px); /* Sedikit bergeser ke kanan */
}

/* Efek saat opsi sedang aktif / dipilih */
.custom-dropdown-menu .active-sort {
    background-color: #e0def7 !important;
    color: #1459a9 !important;
    font-weight: bold;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Tab Navigasi Halaman Detail */
.detail-nav .nav-link {
    color: #6c757d;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    padding: 10px 0;
    margin-right: 25px;
}
.detail-nav .nav-link.active {
    color: #1459a9;
    border-bottom-color: #1459a9;
}

/* Highlight Box */
.highlight-box {
    background-color: #f0f7ff;
    border-left: 4px solid #1459a9;
    border-radius: 0 12px 12px 0;
    padding: 20px;
}

/* Sidebar Info (Kanan) */
.sidebar-info {
    position: sticky;
    top: 100px; /* Jarak dari atas layar (navbar) saat di-scroll */
    z-index: 10;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 0.9rem;
}
.info-row:last-child {
    border-bottom: none;
}

/* Progress Bar Ulasan */
.rating-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}
.rating-progress {
    height: 8px;
    flex-grow: 1;
    margin: 0 15px;
    border-radius: 10px;
    background-color: #e9ecef;
}
.rating-progress-bar {
    background-color: #ffc107;
    border-radius: 10px;
}

/* Review Item */
.review-item {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: white;
}

/* =========================================
   4. STYLES UNTUK FOOTER
   ========================================= */
/* Memaksa text-muted di dalam footer menjadi abu-abu terang */
footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Memperbaiki warna tautan (link) agar terlihat */
.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

/* Efek saat link disorot mouse */
.footer-link:hover {
    color: #ffffff !important;
    padding-left: 5px;
}