/*
Theme Name: Nusa Penida Driver Custom Theme
Description: Custom styles for Tour Packages with Swiper Slider & Mobile Carousel
Author: Amerthanadi Studios
Author URI: https://www.amerthanadi.com
Version: 1.5
*/

/* Reset & Base Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
    /* KUNCI: Mencegah elemen yang mengintip merusak lebar halaman */
    overflow-x: hidden !important; 
}

/* --- HEADER REVISI --- */
.site-header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}
.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: #001D3D;
    letter-spacing: -0.5px;
}

/* Menu Tengah */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #0077b6;
}

/* Tombol Contact Us (Kanan) */
.btn-contact-header {
    background: #001D3D; /* Warna biru gelap sesuai footer */
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-contact-header:hover {
    background: #ffd700; /* Warna kuning saat hover */
    color: #001D3D !important;
    transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #001D3D;
    border-radius: 2px;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Sembunyikan menu di mobile, bisa dikembangkan dengan drawer nanti */
    }
    .mobile-menu-toggle {
        display: flex;
        margin-left: 15px;
    }
    .btn-contact-header {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* --- TAMPILAN DESKTOP (GRID) --- */
@media (min-width: 769px) {
    .tour-grid {
        display: grid !important;
        gap: 20px !important; 
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        padding: 40px 0 !important;
        max-width: 1200px;
        margin: 0 auto;
    }
    .main-tour-pagination { 
        display: none !important; 
    }
}

/* --- TAMPILAN HP (SLIDER GESER) --- */
@media (max-width: 768px) {
    /* Perbaikan: Isolasi total agar tidak mengganggu layout Elementor lain */
    .main-tour-slider { 
        padding: 20px 0 60px 0 !important; 
        overflow: hidden !important; 
        width: 100% !important;
        position: relative;
        left: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    
    .main-tour-slider .swiper-wrapper {
        display: flex !important;
        /* Padding ini hanya berlaku di dalam slider, tidak akan mendorong teks Heading */
        padding-left: 3px !important; 
    }

    .tour-card-wrapper { 
        width: 88% !important; 
        height: auto !important;
        flex-shrink: 0;
    }

    .tour-grid { 
        display: flex !important; 
        gap: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important; 
    }

    .tour-card {
        margin-right: 15px;
        touch-action: pan-y; 
    }

    /* Hapus paksaan global pada widget Elementor agar kembali ke setelan default Elementor */
    .main-tour-pagination {
        bottom: 15px !important;
        left: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* --- DESAIN KARTU TOUR (GENERAL) --- */
.tour-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* --- SLIDER GAMBAR DI DALAM KARTU --- */
.tour-card .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.4 !important;
    width: 15px !important;
    height: 9px !important;
    margin: 0 4px !important;
    border-radius: 30% !important;
    transition: all 0.3s ease !important;
}

.tour-card .swiper-pagination-bullet-active {
    background: #FFD700 !important; 
    opacity: 1 !important;
}

/* Card Content */
.tour-content {
    padding: 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tour-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #001D3D;
    font-weight: 700;
    line-height: 1.3;
}

.tour-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Fasilitas dengan Ikon Centang */
.tour-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.tour-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #444;
}

.tour-features .dashicons {
    color: #2ecc71; 
    margin-right: 8px;
    font-size: 18px;
}

/* Footer (Harga & Tombol) */
.tour-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}

.price-container .price-label {
    font-size: 11px;
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
}

/* Style khusus untuk simbol mata uang Rp. */
.price-container .currency-symbol {
    font-size: 0.8rem;       /* Mengatur ukuran font */
    color: #888;             /* Mengatur warna (misal: abu-abu) */
    font-weight: 400;        /* Mengatur ketebalan font */
    margin-right: 2px;       /* Memberi sedikit jarak ke angka harga */
    vertical-align: middle;  /* Mengatur posisi sejajar secara vertikal */
}

/* Pastikan angka harganya tetap menonjol */
.price-container .price-amount {
    font-weight: 600;
    font-size: 1.25rem;
    color: #001D3D;
    display: block;
}

.price-container .price-sublabel {
    font-size: 10px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Tombol Booking WhatsApp */
.tour-card .btn-booking, 
.tour-card a.btn-booking {
    background: #25D366 !important; 
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
}

.tour-card .btn-booking:hover {
    background: #1da851 !important;
    transform: scale(1.05);
}