/*
Modern Professional Theme for Wisata Tomohon
Color Palette: Bright Green Gradient
Author: Gemini
*/


/* --- 1. Root Variables & General Styles --- */

:root {
    --primary-green: #6AF2A8;
    --secondary-green: #18D297;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --gray-color: #7f8c8d;
    --light-gray-bg: #f8f9fa;
    --gradient: linear-gradient(90deg, var(--primary-green), var(--secondary-green));
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}


/* --- 2. Header & Navigation --- */

.custom-navbar {
    background-color: transparent;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    padding: 15px 0;
}

.custom-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--light-color);
}

.custom-navbar.scrolled .navbar-brand {
    color: var(--dark-color);
}

.navbar-brand strong {
    font-weight: 700;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.custom-navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-color);
}

.custom-navbar.scrolled .nav-link:hover,
.custom-navbar.scrolled .nav-link.active {
    color: var(--secondary-green);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44,62,80,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* --- 3. Hero Section --- */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}


/* --- 4. Buttons --- */

.btn-gradient {
    background: var(--gradient);
    color: var(--light-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(24, 210, 151, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 210, 151, 0.6);
    color: var(--light-color);
}

.btn-outline-primary {
    border-color: var(--secondary-green);
    color: var(--secondary-green);
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--secondary-green);
    color: var(--light-color);
}


/* --- 5. Section Styling --- */

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light-green {
    background-color: #f0fdf8;
}


/* --- 6. Card Styling (Kategori & Destinasi) --- */

.category-card {
    display: block;
    text-decoration: none;
    background: var(--gradient);
    padding: 20px;
    border-radius: 10px;
    color: var(--light-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--light-color);
}

.category-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.destination-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.destination-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.destination-card .card-body {
    padding: 25px;
}


/* --- 7. Search Form --- */

.search-form {
    display: flex;
    background-color: #fff;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

.search-form .form-control {
    border: none;
    background: transparent;
    padding-left: 20px;
}

.search-form .form-control:focus {
    box-shadow: none;
}


/* --- 8. Footer --- */

.site-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px 0;
}

.footer-heading {
    color: var(--light-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-heading strong {
    color: var(--primary-green);
}

.footer-text {
    font-size: 0.9rem;
}

.footer-links {
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}


/* --- 9. Responsive Media Queries --- */

@media (max-width: 991.98px) {
    .custom-navbar {
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }
    .navbar-brand,
    .custom-navbar .nav-link {
        color: var(--dark-color) !important;
    }
    .navbar-collapse {
        margin-top: 15px;
    }
    .nav-link {
        padding: 10px;
        text-align: center;
        border-radius: 5px;
    }
    .nav-link:hover {
        background-color: #f1f1f1;
    }
    .nav-link::after {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    section {
        padding: 60px 0;
    }
}


/* --- 10. Inner Page Styles (Destinasi, dll.) --- */


/* Page Banner */

.page-banner {
    position: relative;
    padding: 120px 0;
    background-image: url('../images/gunung_lokon.jpg');
    /* Ganti dengan gambar default yang relevan */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 85px;
    /* Sesuaikan dengan tinggi navbar Anda */
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    color: var(--light-color);
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}


/* Filter Section */

.filter-section {
    padding: 60px 0;
}

.filter-container {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.filter-container .form-label {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.filter-container .form-select,
.filter-container .form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-container .form-select:focus,
.filter-container .form-control:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.25rem rgba(24, 210, 151, 0.25);
}


/* Destinations Grid Section */

.destinasi-grid-section {
    padding: 80px 0;
}


/* No Results Message */

.no-results-container {
    padding: 80px 40px;
    background-color: #f8f9fa;
    border-radius: 15px;
}


/* --- Penyesuaian Responsif untuk Halaman Dalam --- */

@media (max-width: 991.98px) {
    .page-banner {
        margin-top: 75px;
        /* Sesuaikan dengan tinggi navbar mobile */
        padding: 100px 0;
    }
    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .filter-container .col-md-12:not(:last-child) {
        margin-bottom: 1rem;
    }
    .page-banner {
        margin-top: 71px;
    }
}


/* --- 11. FIX: Header Visibility on Inner Pages --- */


/* Atur z-index navbar agar selalu di paling atas */

.custom-navbar {
    z-index: 1050;
}


/* Gaya khusus untuk navbar di halaman yang memiliki class 'inner-page'.
  Ini akan membuat navbar memiliki background putih dari awal.
*/

.inner-page .custom-navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}


/* Mengubah warna link dan brand menjadi gelap di inner-page */

.inner-page .custom-navbar .navbar-brand,
.inner-page .custom-navbar .nav-link {
    color: var(--dark-color);
}


/* Mengubah warna hover link di inner-page */

.inner-page .custom-navbar .nav-link:hover,
.inner-page .custom-navbar .nav-link.active {
    color: var(--secondary-green);
}


/* Mengubah warna ikon toggler (hamburger) menjadi gelap di inner-page */

.inner-page .custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(44,62,80,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Kita tidak lagi perlu margin-top di page-banner karena header sudah tidak transparan.
  Ini akan menghilangkan celah putih aneh di atas banner.
*/

.page-banner {
    margin-top: 0;
    padding-top: 150px;
    /* Tambah padding atas untuk memberi ruang bagi header */
    padding-bottom: 70px;
    /* Kurangi padding bawah agar seimbang */
}


/* --- 12. Detail Destinasi Page --- */


/* Mengubah .section-title agar bisa rata kiri */

.section-title.text-start::after {
    left: 0;
    transform: translateX(0);
}

.description-content {
    line-height: 1.8;
    color: var(--gray-color);
}

.kategori-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* Info Sidebar */

.info-sidebar {
    background-color: #f0fdf8;
    /* bg-light-green */
    padding: 30px;
    border-radius: 15px;
    position: sticky;
    top: 100px;
    /* Jarak dari atas saat sticky */
}

.info-sidebar .sidebar-title {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
}

.info-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-sidebar ul li {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.info-sidebar ul li strong {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-sidebar ul li span {
    color: var(--gray-color);
    line-height: 1.6;
}


/* Galeri Grid */

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.galeri-grid a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.galeri-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galeri-grid a:hover img {
    transform: scale(1.1);
}


/* Review Form & List */

.review-form-container {
    background-color: var(--light-gray-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.review-form-container .form-control,
.review-form-container .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.review-form-container .form-control:focus,
.review-form-container .form-select:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.25rem rgba(24, 210, 151, 0.25);
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    /* Agar rapi di mobile */
}

.review-author {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.review-rating {
    font-size: 1.3rem;
    color: #f39c12;
    /* Warna bintang kuning */
}

.review-comment {
    color: var(--gray-color);
    margin-bottom: 15px;
}

.review-date {
    color: #aaa;
    font-size: 0.8rem;
}


/* --- 14. Tentang Kami Page --- */

.feature-box {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    height: 100%;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-box .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 15px;
}


/* Team Card */

.team-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.team-card .team-info {
    padding: 20px;
}

.team-card .team-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.team-card .team-title {
    color: var(--secondary-green);
    margin-bottom: 0;
    font-weight: 500;
}


/* Call to Action Section */

.cta-section {
    padding: 80px 0;
    background: var(--gradient);
}

.cta-section .btn-light {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    color: var(--secondary-green);
    transition: transform 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: scale(1.05);
}


/* --- 15. Ulasan Page --- */

.review-showcase-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Membuat card bisa punya footer yang menempel di bawah */
}

.review-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.review-showcase-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: transparent;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
}

.review-showcase-card .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-showcase-card .author-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.review-showcase-card .review-rating {
    font-size: 1rem;
    color: #f39c12;
}

.review-showcase-card .card-body {
    padding: 20px;
    flex-grow: 1;
    /* Mendorong footer ke bawah */
}

.review-showcase-card .review-text {
    font-style: italic;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.review-showcase-card .review-photo {
    max-height: 150px;
    width: 100%;
    object-fit: cover;
}

.review-showcase-card .card-footer {
    background-color: #f8f9fa;
    border-top: none;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.review-showcase-card .destination-link a {
    color: var(--secondary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.review-showcase-card .destination-link a:hover {
    text-decoration: underline;
}

.review-showcase-card .review-date-footer {
    color: #999;
}


/* Custom Pagination */

.pagination-custom {
    padding-left: 0;
    list-style: none;
    display: flex;
    gap: 8px;
}

.pagination-custom .page-link {
    padding: 10px 18px;
    font-weight: 600;
    color: var(--secondary-green);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px !important;
    /* Override bootstrap */
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background-color: #f0fdf8;
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background: var(--gradient);
    color: #fff;
    border-color: var(--secondary-green);
    box-shadow: 0 4px 15px rgba(24, 210, 151, 0.4);
}

.pagination-custom .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f9fa;
    border-color: #eee;
}