/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --primary-color: #2C3E50;
    --accent-color: #D35400;  
    --primary-orange: #e67e22;
    --primary-dark: #d35400;
    --dark-bg: #1a1a1a;
    --bg-light: #f9f9f9;
    --white: #fff;
    --text-dark: #333;
    --text-light: #777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* KUNCI UTAMA MENCEGAH BOCOR/SCROLL KANAN DI HP */
html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #444;
    background-color: var(--white);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* PEMBUNGKUS UTAMA UNTUK MENGUNCI SEMUA ELEMEN HASIL OVERFLOW */
.page-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   2. UTILITIES & BUTTONS
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-orange);
    color: var(--white);
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
}

/* =========================================
   3. TOP HEADER & NAVBAR (DESKTOP)
   ========================================= */
.top-header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    overflow: hidden;
}

.top-header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.top-socials {
    display: flex;
    gap: 20px;
}

.top-socials a {
    color: #bdc3c7;
    font-size: 0.9rem;
    transition: var(--transition);
}

.top-socials a:hover {
    color: #f80c0c;
    transform: translateY(-2px);
}

.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative !important; 
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    height: 100%;
}

.nav-logo-img {
    height: 100% !important;
    max-height: 55px;
    width: auto !important;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-rinjani {
    color: #1a1a1a;
}

.brand-nature {
    color: #2e7d32;
}

.nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin-left: auto;
    gap: 8px;
}

.nav-links li {
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 7px;
    transition: var(--transition);
    display: inline-block;
}

.nav-links li a:hover,
.nav-links a.active {
    background-color: #f7f3f0;
    color: #0a0a0a;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 85vh;
    background: url('images/danau-segara-anak.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0;
}

/* =========================================
   5. FEATURES & PACKAGES
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.package-card, 
.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-10px);
}

.card-image,
.blog-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative !important;
    overflow: hidden !important;
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    margin-bottom: 5px;
}

.meta {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.card-body ul {
    list-style: none;
    margin: 20px 0;
    color: var(--text-light);
}

.card-body ul li {
    margin-bottom: 10px;
}

.card-body ul li i {
    color: #27ae60;
    margin-right: 10px;
}

/* =========================================
   6. FAQ SECTION
   ========================================= */
.faq-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
}

.section-title span {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #95a5a6;
    font-weight: 400;
}

.faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    border: none;
    outline: none;
    background-color: #fff;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: #fafafa;
}

.faq-answer p {
    padding: 25px;
    margin: 0;
    color: #555;
    line-height: 1.8;
}

/* =========================================
   7. TRIPADVISOR SECTION (SEBELAH KIRI & RINGKAS)
   ========================================= */
.tripadvisor-section {
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
}

.ta-custom-container {
    display: flex !important;
    flex-direction: row !important; /* Memastikan kotak rating tetap di KIRI */
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    width: 100%;
}

/* KOTAK KIRI: GAMBAR + EXCELLENT (Dikecilkan & Rapi) */
.ta-rating-box {
    flex: 0 0 190px !important;    /* Lebar ringkas agar tidak memakan tempat */
    text-align: center;
    padding: 15px 10px !important;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.ta-badge-img {
    max-width: 110px !important;   /* Gambar logo dikecilkan */
    height: auto;
    margin: 0 auto 8px auto !important;
    border-radius: 4px;
}

.ta-excellent-title {
    font-size: 1.1rem !important;  /* Tulisan EXCELLENT lebih pas */
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    margin-bottom: 4px !important;
}

.ta-circles {
    color: #00aa6c;                /* Hijau TripAdvisor */
    font-size: 1rem !important;
    letter-spacing: 2px;
    margin-bottom: 4px !important;
}

.ta-review-count {
    font-size: 0.78rem !important;
    color: #666;
    margin-bottom: 10px !important;
}

.btn-ta-write {
    display: inline-block;
    padding: 6px 14px !important;  /* Tombol lebih ramping */
    font-size: 0.75rem !important;
    font-weight: 600;
    color: #00aa6c;
    border: 1.5px solid #00aa6c;
    border-radius: 20px;
    transition: var(--transition);
}

.btn-ta-write:hover {
    background-color: #00aa6c;
    color: #ffffff;
}

/* KOTAK KANAN: SLIDER KARTU REVIEW */
.ta-slider-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 5px 0;
    width: 100%;
}

.ta-reviews-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 5px;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.ta-reviews-slider::-webkit-scrollbar {
    display: none;
}

/* KARTU REVIEW LEBIH COMPACT */
.ta-review-card {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 220px;
    scroll-snap-align: start;
    background: #fdfdfd;
    border-radius: 10px;
    padding: 15px !important;       /* Inner space lebih ringkas */
    border-left: 3.5px solid #00aa6c;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ta-user-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ta-avatar {
    width: 32px;
    height: 32px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.ta-user-info h4 {
    font-size: 0.85rem !important;
    font-weight: 700;
    margin: 0;
    color: #222;
}

.ta-user-info span {
    font-size: 0.7rem !important;
    color: #888;
}

.ta-card-icon {
    margin-left: auto;
    color: #00aa6c;
    font-size: 1rem;
}

.ta-card-stars {
    color: #00aa6c;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.verified-icon {
    color: #1b72e8;
    font-size: 0.75rem;
    margin-left: 3px;
}

.ta-review-card h5 {
    font-size: 0.88rem !important;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.ta-review-card p.ta-review-text {
    font-size: 0.78rem !important;
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   RESPONSIVE HP: KOTAK EXCELLENT DI KIRI & RAMPING
   ========================================= */
@media (max-width: 768px) {

    /* Tetap sejajar Kiri - Kanan di HP */
    .ta-custom-container {
        display: flex !important;
        flex-direction: row !important;  /* KUNCI: Tetap berjejer ke samping di HP */
        align-items: stretch !important;
        gap: 10px !important;            /* Jarak sangat rapat & hemat ruang */
        margin-top: 15px !important;
    }

    /* KOTAK KIRI (EXCELLENT + RATING): RAMPING & MINI DI HP */
    .ta-rating-box {
        flex: 0 0 115px !important;      /* Diperkecil ramping (lebar 115px) */
        width: 115px !important;
        padding: 10px 5px !important;    /* Padding dalam diperkecil */
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ta-badge-img {
        max-width: 75px !important;      /* Logo dikecilkan */
        margin-bottom: 4px !important;
    }

    .ta-excellent-title {
        font-size: 0.8rem !important;    /* Tulisan EXCELLENT mini */
        letter-spacing: 0px !important;
        margin-bottom: 2px !important;
    }

    .ta-circles {
        font-size: 0.75rem !important;   /* Lingkaran hijau mini */
        letter-spacing: 1px !important;
        margin-bottom: 2px !important;
    }

    .ta-review-count {
        font-size: 0.65rem !important;   /* Teks "Based on 28 reviews" mini */
        margin-bottom: 6px !important;
        line-height: 1.1 !important;
    }

    .btn-ta-write {
        padding: 3px 8px !important;     /* Tombol mungil */
        font-size: 0.62rem !important;
        white-space: nowrap;
    }

    /* KOTAK KANAN (SLIDER CARDS DI HP) */
    .ta-slider-wrapper {
        flex: 1 !important;
        min-width: 0 !important;         /* Mencegah dorong layar ke kanan */
        padding: 0 !important;
    }

    .ta-reviews-slider {
        gap: 8px !important;             /* Jarak antar kartu ulasan rapat */
        padding: 2px !important;
    }

    /* KARTU REVIEW DI HP (PAS DENGAN TAMPILAN KIRI) */
    .ta-review-card {
        flex: 0 0 85% !important;        /* Lebar kartu ulasan pas di layar */
        min-width: 190px !important;
        padding: 10px !important;        /* Ringkas & hemat ruang */
        border-radius: 8px;
        border-left-width: 3px !important;
    }

    .ta-review-card h5 {
        font-size: 0.8rem !important;
        margin-bottom: 2px !important;
    }

    .ta-review-card p.ta-review-text {
        font-size: 0.72rem !important;   /* Ukuran teks ulasan di HP */
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }

    .ta-read-link {
        font-size: 0.7rem !important;
    }
}
/* =========================================
   8. GALLERY & BLOG
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 5px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-content {
    padding: 20px;
}

.date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-content h4 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-color);
    font-weight: 600;
}

/* =========================================
   9. CONTACT FORM
   ========================================= */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.contact-form {
    flex: 1.5;
    min-width: 280px;
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

/* =========================================
   10. FOOTER
   ========================================= */
.footer-dark {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 60px 0 40px;
    font-size: 14px;
    overflow: hidden;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.contact-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border: 1px solid #555;
    border-radius: 50%;
    color: #fff;
    margin-right: 8px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.payment-icons img {
    height: 30px;
    width: auto;
    border-radius: 2px;
    background-color: #fff;
    padding: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #cccccc;
}

/* =========================================
   11. FLOATING BUTTONS
   ========================================= */
.float-wa {
    position: fixed !important;
    bottom: 80px !important;
    right: 15px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background-color: #25d366 !important;
    color: #ffffff !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.float-wa i {
    font-size: 24px !important;
}

.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 15px !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background-color: #007bff !important;
    color: #ffffff !important;
    z-index: 9998 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top i {
    font-size: 18px !important;
}

/* =========================================
   12. RESPONSIVE MOBILE (HP & TABLET)
   ========================================= */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ta-custom-container {
        flex-direction: column;
        gap: 25px;
    }

    .ta-rating-box {
        width: 100%;
        max-width: 320px;
    }

    .ta-review-card {
        flex: 0 0 85%;
        min-width: unset;
    }

    .ta-slide-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: 0 15px !important;
        overflow: hidden;
    }

    .top-header .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .top-socials {
        gap: 12px;
    }

    .logo {
        gap: 6px !important;
    }

    .nav-logo-img {
        max-height: 38px !important;
    }

    .navbar .logo-text {
        font-size: 1rem !important;
    }

    .hamburger {
        display: block !important;
    }

    /* FIX NAV LINKS OVERFLOW MOBILE */
    .nav-links {
        display: none;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 15px 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999;
        box-sizing: border-box;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        margin: 8px 0 !important;
        width: 100%;
    }

    .nav-links li a {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* SLIDER WHY TREK WITH US */
    .features.section-padding {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    .features .section-header {
        margin-bottom: 20px !important;
    }

    .features-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;          
        scroll-snap-type: x mandatory;         
        -webkit-overflow-scrolling: touch;     
        gap: 10px !important;                 
        padding: 5px 5px 15px 5px !important; 
        -ms-overflow-style: none;
        scrollbar-width: none;
        width: 100%;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 75% !important;             
        max-width: 75% !important;
        scroll-snap-align: center;             
        padding: 14px 12px !important;        
        border-radius: 10px;
        background: #ffffff;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    }

    .feature-card i {
        font-size: 1.5rem !important;         
        margin-bottom: 6px !important;
    }

    .feature-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }

    .feature-card p {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
}
