/* ========================================================
   JelajahNusantara Tour & Travel - Modern CSS Theme
   ======================================================== */

:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 30px -10px rgba(2, 132, 199, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
.navbar-brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 600;
    color: #475569 !important;
    padding: 0.6rem 1rem !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(2, 132, 199, 0.65) 100%),
                url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: 540px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 80px 0 110px 0;
}
.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}
.hero-search-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Tour Cards */
.card-tour {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-tour:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: #bae6fd;
}
.card-tour-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}
.card-tour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card-tour:hover .card-tour-img {
    transform: scale(1.08);
}
.badge-tour-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-tour-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
}

/* Destinasi Card */
.card-destinasi {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}
.card-destinasi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card-destinasi:hover img {
    transform: scale(1.1);
}
.card-destinasi-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.1) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #ffffff;
}

/* Timeline Itinerary */
.itinerary-timeline {
    position: relative;
    padding-left: 36px;
}
.itinerary-timeline::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 14px;
    width: 2px;
    background: #cbd5e1;
}
.itinerary-step {
    position: relative;
    margin-bottom: 24px;
}
.itinerary-step::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

/* Floating WhatsApp Button */
.btn-floating-wa {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25d366;
    color: #ffffff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-floating-wa:hover {
    transform: scale(1.1) rotate(5deg);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Admin Sidebar */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0f172a;
    color: #94a3b8;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
}
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #f8fafc;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.admin-nav-item:hover, .admin-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--primary-color);
}
.admin-nav-item i {
    font-size: 1.15rem;
}

@media (max-width: 991px) {
    .admin-sidebar {
        margin-left: -260px;
    }
    .admin-sidebar.show {
        margin-left: 0;
    }
    .admin-main {
        margin-left: 0;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-search-box {
        margin-top: 20px;
    }
}

/* Printable Ticket / Voucher */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    .no-print, .btn-floating-wa, .navbar, footer, .btn {
        display: none !important;
    }
    .print-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .card {
        border: 1px solid #cccccc !important;
        box-shadow: none !important;
    }
}
