:root {
    --brand-primary: #0f5c5c;
    /* Warna Oranye Utama dari Logo */
    --brand-secondary: #2A4C8D;
    /* Warna Biru dari Logo */
}

/* Override Tailwind bg-orange-500 to use brand color */
.bg-orange-500 {
    background-color: var(--brand-primary) !important;
}

/* Pengaturan dasar untuk halaman */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Container utama yang menyerupai layar mobile */
main.mobile-view {
    max-width: 480px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
    /* Diperlukan untuk menampung nav bottom */
    overflow-x: hidden;
    padding-top: 50px;
}

#main-content-container.hidden,
#bottom-nav.hidden {
    display: none;
}

/* Style untuk transisi yang lebih halus */
.category-btn,
.destination-card,
.bottom-nav-item,
.hotel-filter-btn,
.mitra-filter-btn,
.fav-filter-btn {
    transition: all 0.3s ease-in-out;
}

/* Menyembunyikan scrollbar untuk estetika */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}


.cursor-grabbing {
    cursor: grabbing;
}

/* Bottom Navigation Active State */
.bottom-nav-item.active svg,
.bottom-nav-item.active span {
    color: var(--brand-primary);
}

/* Timeline animation */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: all .6s cubic-bezier(.22, .61, .36, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: .06s
}

.delay-2 {
    transition-delay: .12s
}

.delay-3 {
    transition-delay: .18s
}


/* Card hover tilt */
.tilt {
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(0deg) rotateY(0deg);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tilt:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, .08)
}

.tilt .tilt-inner {
    transform: translateZ(25px)
}


/* Timeline progress fill */
.timeline {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(#d1d5db, #e5e7eb);
}

/* gray-300 -> gray-200 */
.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(var(--brand-secondary), #60a5fa);
}

/* blue-500 -> blue-400 */


/* Pulse dots */
.dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--brand-secondary);
    border: 4px solid #fff;
    border-radius: 9999px;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15)
}

.dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(59, 130, 246, .45);
    border-radius: inherit;
    animation: pulse 1.6s infinite
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .8
    }

    70% {
        transform: scale(1.4);
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

/* Itinerary Timeline Style */
.itinerary-timeline {
    position: relative;
    padding-left: 3rem;
    /* Space for the line and dots */
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    /* 20px */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
    /* gray-200 */
}

.itinerary-item {
    position: relative;
    margin-bottom: 2rem;
}

.itinerary-dot {
    position: absolute;
    left: -2.375rem;
    /* calc(-3rem + 1.25rem - 0.5rem) */
    top: 0.25rem;
    /* 4px */
    height: 1rem;
    width: 1rem;
    background-color: var(--brand-secondary);
    border-radius: 9999px;
    border: 2px solid white;
}

/* Gallery Thumbnail Style */
.gallery-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumbnail.active {
    border-color: var(--brand-primary);
}

/* Fade-in animation for modals */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Navbar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    /* Tinggi navbar */
    padding: 0.1rem 5rem;
    background-color: white;
    display: block;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* lebih tinggi agar menutupi konten */
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    /* Ukuran font */
    color: #0F5C5C;
    text-decoration: none;
    font: bold 16px Arial, sans-serif;
    /* Warna teks */
    text-decoration: none;
}

/* Language Selector Styling */
.language-selector {
    position: relative;
    background-color: #0F5C5C;
    border-radius: 8px;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-width: 120px;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-toggle:active {
    transform: scale(0.98);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1001;
    display: none;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option.active {
    background-color: #f3f4f6;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .navbar {
        padding: 0.1rem 1rem;
    }

    .language-toggle {
        font-size: 12px;
        padding: 6px 10px;
        min-width: 100px;
        gap: 4px;
    }

    .language-dropdown {
        width: 180px;
    }
}



/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 100px;
    /* Di atas navigasi bawah */
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Mobile Detail Page Styles */
.detail-page-container {
    position: relative;
    min-height: 100vh;
    background-color: #ffffff;
}

.detail-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.detail-content {
    padding: 1.5rem;
}

.gallery-main-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.gallery-thumbnail {
    width: 100%;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumbnail.active {
    border-color: var(--brand-primary);
}

.gallery-thumbnail:hover {
    border-color: var(--brand-primary);
    opacity: 0.8;
}

.destination-info {
    margin-bottom: 1.5rem;
}

.destination-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.destination-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
}

.destination-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.destination-location {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.destination-rating {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.destination-price {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--brand-primary);
}

.itinerary-section {
    margin-bottom: 2rem;
}

.itinerary-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.itinerary-timeline {
    position: relative;
    padding-left: 3rem;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.itinerary-item {
    position: relative;
    margin-bottom: 2rem;
}

.itinerary-dot {
    position: absolute;
    left: -2.375rem;
    top: 0.25rem;
    height: 1rem;
    width: 1rem;
    background-color: var(--brand-primary);
    border-radius: 9999px;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--brand-primary);
}

.itinerary-day {
    font-weight: bold;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.itinerary-description {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.itinerary-image {
    border-radius: 0.5rem;
    width: 100%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.meals-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    space-x: 1rem;
    padding: 0.75rem;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
}

.meal-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.meal-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.375rem;
}

.action-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-book {
    width: 100%;
    text-align: center;
    background: linear-gradient(to right, #f97316, #ef4444);
    color: white;
    font-weight: bold;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-book:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-download {
    width: 100%;
    text-align: center;
    background-color: white;
    color: #374151;
    font-weight: bold;
    padding: 1rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #f9fafb;
}

/* Image Modal Styles */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
}

.image-modal-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background-color: white;
    border-radius: 9999px;
    padding: 0.25rem;
    color: #1f2937;
    transition: background-color 0.2s;
}

.image-modal-close:hover {
    background-color: #f3f4f6;
}

/* Responsive adjustments for detail page */
@media (max-width: 480px) {
    .detail-content {
        padding: 1rem;
    }

    .gallery-main-image {
        height: 12rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-thumbnail {
        height: 3rem;
    }

    .destination-title {
        font-size: 1.25rem;
    }

    .itinerary-timeline {
        padding-left: 2.5rem;
    }

    .itinerary-timeline::before {
        left: 1rem;
    }

    .itinerary-dot {
        left: -2rem;
    }
}