/* ==================================== */
/* GLOBAL STYLES & RESET */
/* ==================================== */

:root {
    --primary-color: #ff5a5f;
    --secondary-color: #0066ff;
    --background-color: #f8f9fa;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius-base: 10px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

/* ... (NAVBAR & HERO TETAP SAMA) ... */

.navbar {
    padding: 15px 50px;
    background-color: #ffffff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}
.menu a {
    color: #555;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s;
}
.menu a:hover {
    color: var(--primary-color);
}
.login-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.login-btn:hover {
    background-color: #0052cc;
}

/* ==================================================
   HERO V2 – ENTERPRISE TRAVEL STYLE
================================================== */

.hero-v2 {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 180px;
    overflow: hidden;
    color: #fff;
}

/* Background Default (Mobile First agar ringan) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #1a1a1a; /* Placeholder warna gelap agar LCP tidak dianggap 'kosong' */
    background-size: cover;
    background-position: center;
    /* Kita turunkan kualitas ke 40 dan paksa WebP untuk Mobile */
    background-image: url("https://images.unsplash.com/photo-1493558103817-58b2924bce98?auto=format&fit=crop&w=480&q=40&fm=webp");
}

@media (min-width: 992px) {
    .hero-bg {
        /* Untuk Desktop kita beri kualitas lebih baik */
        background-image: url("https://images.unsplash.com/photo-1493558103817-58b2924bce98?auto=format&fit=crop&w=1200&q=70&fm=webp");
    }
}

/* Gradient overlay profesional */
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.65) 0%,
            rgba(0,0,0,0.55) 40%,
            rgba(248,249,250,1) 100%
        );
    z-index: 2;
}

/* Content */
.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 900px;
    text-align: center;
    animation: heroAppear 0.9s ease;
}

.hero-label {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 20px;
}

.hero-inner h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero-inner h1 span {
    color: var(--primary-color);
}

.hero-inner p {
    font-size: 1.15rem;
    color: #eaeaea;
    max-width: 760px;
    margin: 0 auto 34px;
}

/* Buttons */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(255,90,95,0.45);
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255,90,95,0.6);
}

.btn-outline {
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.25);
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats div {
    text-align: center;
}

.hero-stats strong {
    font-size: 1.4rem;
    display: block;
    font-weight: 800;
}

.hero-stats span {
    font-size: 0.85rem;
    color: #ddd;
}

/* Animation */
@keyframes heroAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* --- Desktop Adjustments --- */
.nav-toggle { display: none; } /* Sembunyikan hamburger di desktop */
.mobile-auth { display: none; } /* Sembunyikan auth mobile di desktop */

/* --- Mobile Responsive (Hamburger Logic) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #fff;
    }

    .nav-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--secondary-color);
        order: 3; /* Posisi di kanan */
    }

    .desktop-auth { display: none; } /* Sembunyikan tombol login luar */

    .navbar .menu {
        display: none; /* Default sembunyi */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
    }

    /* Class Aktif saat Hamburger diklik */
    .navbar .menu.show {
        display: flex !important;
    }

    .menu a {
        margin: 0;
        padding: 10px;
        display: block;
        width: 100%;
    }

    .mobile-auth {
        display: block;
        margin-top: 10px;
        padding: 0 20px;
    }

    .mobile-auth .login-btn {
        width: 100%;
    }
}
/* =========================================
   AI CHAT INPUT – TRAVEL APP STYLE
========================================= */

.ai-chat-wrapper {
    margin: 30px auto 40px;
    max-width: 720px;
    background: rgba(255,255,255,0.95);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 6px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.15),
        0 6px 14px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
}

.ai-chat-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        #ff8a8f
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: 6px;
    flex-shrink: 0;
}

.ai-chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0 18px;
    background: transparent;
    color: #333;
}

.ai-chat-input::placeholder {
    color: #aaa;
}

.ai-chat-send {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--secondary-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    transition: 0.25s;
}

.ai-chat-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,102,255,0.35);
}

/* Focus state */
.ai-chat-wrapper:focus-within {
    box-shadow:
        0 24px 50px rgba(0,0,0,0.2),
        0 0 0 2px rgba(0,102,255,0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .ai-chat-wrapper {
        margin: 25px 10px 35px;
    }
}

/* =====================================
   NAVBAR MOBILE – ONLY LOGIN / DASHBOARD
===================================== */

@media (max-width: 768px) {

    /* Sembunyikan menu navigasi */
    .navbar .menu {
        display: none !important;
    }

    /* Navbar tetap rapi */
    .navbar {
        padding: 10px 16px;
    }

    /* Login / Dashboard button tetap tampil */
    .navbar .login-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        font-size: 0.9rem;
        border-radius: 999px;
        white-space: nowrap;
    }
}

/* ================================
   FIX NAVBAR MOBILE VISIBILITY
================================ */

@media (max-width: 768px) {

    .navbar {
        position: sticky;
        top: 0;
        z-index: 99999;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }

    .navbar .menu {
        display: none !important;
    }

    .navbar .logo {
        font-size: 20px;
    }

    .navbar .login-btn {
        display: inline-flex !important;
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 999px;
    }
}
.hero-v2 {
    margin-top: 0;
}


/* ==================================== */
/* 📝 FORM STYLES */
/* ==================================== */
.form-container {
    max-width: 1200px;
    margin: -100px auto 40px; /* ⬅ naik ke hero */
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 
    0 30px 60px rgba(0,0,0,0.12),
    0 10px 20px rgba(0,0,0,0.08);
     position: relative;
     z-index: 30;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); 
    gap: 20px;
    margin-bottom: 30px;
    align-items: start; 
    /*grid-auto-rows: 1fr; */
}

/* Input Card (Floating Label) */
.input-card {
    position: relative;
    z-index: 10;
}

.input-card input {
    width: 100%;
    padding: 15px 15px 15px 45px; 
    border: 1px solid #ddd;
    border-radius: var(--border-radius-base);
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    z-index: 10;
    background-color: transparent; 
    height: 50px;
}
.input-card input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color);
    outline: none;
}
.input-card label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: 0.2s ease-out;
    padding: 0 5px;
    z-index: 15; 
}
.input-card input:not(:placeholder-shown) + label,
.input-card input:focus + label {
    top: 0;
    left: 40px;
    font-size: 12px;
    color: var(--secondary-color);
    background-color: white; 
    transform: translateY(-50%); 
    font-weight: 600;
}
.input-card input[type="date"] {
    line-height: normal; 
    height: 50px; 
}
.input-card .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    z-index: 20; 
}

/* Dropdown Card Styling */
.dropdown-card {
    position: relative;
    z-index: 999; /* ⬅ PALING PENTING */
}

.dropdown-card input {
    cursor: pointer;
}
.dropdown-list {
    position: absolute;
    top: 100%; 
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius-base);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 5px; 
}
.dropdown-list div {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dropdown-list div:hover {
    background-color: #f0f4ff;
    color: var(--secondary-color);
}

/* Form Buttons */
.form-container button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color); 
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(255, 90, 95, 0.4);
}
.form-container button[type="submit"]:hover {
    background-color: #e31c23;
    box-shadow: 0 6px 15px rgba(255, 90, 95, 0.6);
}
#get-location-btn {
    width:100%; 
    padding:12px 16px; 
    background:#f0f4ff; 
    color:var(--secondary-color); 
    border:1px solid var(--secondary-color); 
    border-radius:12px; 
    font-weight:600;
    cursor: pointer;
    transition: background-color 0.3s;
}
#get-location-btn:hover {
    background: #e6ebff;
}
#location-status {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    text-align: center;
}


/* ==================================== */
/* ✅ CARD & SWIPER STYLES */
/* ==================================== */

.section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 50px; 
}
.section h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    font-weight: 700;
}
hr {
    max-width: 1200px;
    margin: 40px auto;
    border: 0;
    border-top: 1px solid #eee;
}

/* PERBAIKAN SWIPER SLIDE WIDTH */
.swiper-slide {
    width: 320px !important; 
    margin-right: 20px; 
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-sizing: border-box; 
    
    /* PERBAIKAN TINGGI CARD (Agar seragam) */
    height: 350px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.event-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.card-category {
    color: var(--primary-color); 
    font-weight: 700; 
    margin-bottom: 4px;
    font-size: 0.85em;
}
.card h3 {
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    /* Batasi Judul 2 baris */
    white-space: normal; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    line-clamp: 2; /* Fix Warning CSS */
}
.card p {
    font-size: 0.95em;
    color: #555;
    margin: 5px 0;
    flex-grow: 0; 
}
.card-link {
    display: block; 
    margin-top: auto; /* Dorong link ke bagian bawah card */
    padding-top: 10px; 
    color: var(--secondary-color); 
    font-weight: 600;
    text-decoration: none;
}
.card-link:hover {
    text-decoration: underline;
}

/* Kustomisasi Tampilan Navigasi Swiper */
.swiper {
    padding-bottom: 40px; 
    overflow: hidden; 
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 45%;
    position: absolute; 
    z-index: 20; 
    cursor: pointer;
    transition: background-color 0.3s;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: 700;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: #f8f9fa;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* Alert Messages Styling */
.error-message {
    color: red; 
    background: #ffebeb; 
    padding: 15px; 
    border-radius: 8px;
    border: 1px solid red;
    margin-bottom: 20px;
}
.info-message {
    color: #0066ff;
    background: #f0f4ff; 
    padding: 15px; 
    border-radius: 8px;
    border: 1px solid #0066ff;
    margin-bottom: 20px;
}

/* ==================================== */
/* 📱 RESPONSIVE DESIGN */
/* ==================================== */

@media (max-width: 900px) {
    .form-container {
    margin: -60px 15px 30px;
    }
    .hero {
        padding-bottom: 100px;
    }

    .navbar {
        padding: 10px 20px;
    }
    .menu {
        display: none; 
    }
    .hero {
        padding: 20px 10px;
        min-height: 300px;
        border-radius: 8px;
    }
    .hero h1 {
        font-size: 2.em;
    }
    .hero p {
        font-size: 1em;
        margin-bottom: 15px;
    }

    .form-container {
        padding: 15px 20px;
    }
     .section {
        padding: 0 15px;
        margin: auto;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .swiper {
        padding: 0 20px 40px; 
    }
    .swiper-button-next, .swiper-button-prev {
        display: none !important; 
    }
    
    /* FIX MOBILE: Pastikan card mobile tetap terlihat */
    .swiper-slide {
        width: 85% !important; 
    }

}

/* ==================================== */
/* 🌍 FOOTER PANDU */
/* ==================================== */

.footer {
    background: #ffffff;
    padding: 40px 50px;
    margin-top: 60px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer .footer-brand {
    max-width: 300px;
}

.footer .footer-brand img {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.footer .footer-brand h3 {
    margin: 0;
    font-size: 1.4em;
    color: var(--secondary-color);
}

.footer .footer-brand p {
    font-size: 0.95em;
    color: #666;
}

.footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer .footer-links a {
    text-decoration: none;
    color: #444;
    font-size: 0.95em;
    transition: 0.3s;
}

.footer .footer-links a:hover {
    color: var(--primary-color);
}

.footer .footer-social {
    display: flex;
    gap: 12px;
    font-size: 1.4em;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.85em;
    color: #777;
    border-top: 1px solid #eee;
}

/* Mobile Footer */
@media (max-width: 600px) {
    .footer {
        padding: 30px 20px;
        text-align: center;
    }
    .footer .footer-social {
        justify-content: center;
    }
}


.about-section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.about-section h1 {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.about-section .tagline {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    margin-bottom: 25px;
}

.about-section p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-section h2 {
    margin-top: 25px;
    color: var(--primary-color);
    font-size: 1.4em;
}

.about-section ul {
    margin-left: 20px;
    padding-left: 10px;
}

.about-section ul li {
    margin-bottom: 10px;
    color: #444;
}

.about-section .closing {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 30px;
    text-align: center;
}

/* ====================================
   RESPONSIVE FIX MOBILE
==================================== */

/* Mobile screens <= 768px */
@media (max-width: 768px) {

    /* HERO */
    .hero-v2 {
        min-height: auto;
        padding: 60px 15px 120px;
    }

    .hero-inner h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-inner p {
        font-size: 1rem;
        max-width: 95%;
        margin: 0 auto 25px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    /* FORM */
    .form-container {
        margin: -60px 10px 30px;
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Semua input full width */
        gap: 15px;
    }

    /* SWIPER */
    .swiper {
        padding: 0 15px 30px;
    }

    .swiper-slide {
        width: 85% !important;
        margin-right: 15px;
    }

    .swiper-button-next, 
    .swiper-button-prev {
        display: none !important;
    }

    /* SECTION */
    .section {
        padding: 0 15px;
        margin: 30px auto;
    }

    .section h2 {
        font-size: 1.4rem;
        padding-left: 10px;
        border-left-width: 4px;
    }

    /* CARDS */
    .card {
        height: auto; /* Agar tinggi menyesuaikan konten */
        padding: 15px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    /* ABOUT SECTION */
    .about-section {
        padding: 25px 15px;
        max-width: 95%;
    }

    .about-section h1 {
        font-size: 1.8rem;
    }

    .about-section h2 {
        font-size: 1.2rem;
    }

    .about-section p,
    .about-section ul li {
        font-size: 0.95rem;
    }

    /* FOOTER */
    .footer {
        padding: 20px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer .footer-social {
        justify-content: center;
    }
}
/* ============================= */
/* LOGO & TAGLINE NAVBAR FIX      */
/* ============================= */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* jarak antara logo dan tagline */
}

.logo-img {
    /* Hapus height: 50px yang lama */
    width: auto; 
    height: 40px; /* Gunakan tinggi yang Anda inginkan, lebarnya akan menyesuaikan otomatis */
    display: block;
    object-fit: contain; /* Memastikan gambar tidak tertarik/penyet */
}

.logo-tagline {
    font-size: 0.85rem; /* Lebih kecil agar tidak terlalu dominan */
    color: #555;        /* Warna lebih lembut */
    font-weight: 600;
    white-space: nowrap; /* Supaya tagline tetap satu baris */
}
@media (max-width: 768px) {
    .logo-img {
        height: 32px; /* Lebih kecil untuk mobile agar rapi */
    }

    .logo-tagline {
        font-size: 0.75rem;
    }
}
