/* ==========================================================================
   HAITRAVELLER UMROH - ELEGANT GREEN THEME
   ========================================================================== */
:root {
    --primary-color: #0D5C3A;       /* Hijau Emerald Elegan */
    --primary-hover: #084228;
    --primary-light: #ECFDF5;
    --secondary-color: #0F172A;     /* Navy/Hitam Slate */
    --secondary-hover: #1E293B;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #475569;
    --border-color: #E2E8F0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.25s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* NAVBAR HEADER */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img-src {
    height: 42px;
    width: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-umroh {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-user-container {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-nav-login {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.825rem;
    transition: var(--transition);
}

.btn-nav-login:hover {
    background-color: var(--primary-hover);
}

.btn-logout {
    background-color: #ef4444;
}

.btn-logout:hover {
    background-color: #dc2626;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(13, 92, 58, 0.85), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?q=80&w=1600&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bg-white);
    padding: 8rem 0;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.badge {
    background-color: rgba(236, 253, 245, 0.2);
    color: #a7f3d0;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(167, 243, 208, 0.3);
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3.5rem;
    margin: 4rem auto;
    box-shadow: var(--card-shadow);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stat-box {
    background-color: var(--primary-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.stat-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-box p {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* ===================================
   UPDATE STYLING PROGRAM MUSLIM TOUR (RATA TENGAH)
   =================================== */
.tour-section {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Pastikan Judul & Subtitle di tengah */
.tour-section .section-title-wrapper {
    text-align: center;
    margin-bottom: 24px;
}

.tour-slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Tengah-kan kontainer */
    padding: 10px 5px 25px 5px;
}

.tour-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    justify-content: center; /* 👈 KUNCI: Bikin kartu-kartu otomatis sejajar di tengah */
}

/* Custom scrollbar */
.tour-slider::-webkit-scrollbar {
    height: 8px;
}

.tour-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.tour-slider::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.tour-slider::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Styling Card */
.tour-card {
    flex: 0 0 320px;
    scroll-snap-align: center; /* Saat di-scroll akan nempel di tengah */
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tour-image {
    position: relative;
    height: 190px;
    width: 100%;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #00875a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tour-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.tour-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tour-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tour-features li {
    font-size: 12px;
    color: #334155;
    font-weight: 500;
}

.tour-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #f1f5f9;
}

.tour-price {
    font-size: 16px;
    font-weight: 800;
    color: #d97706;
    margin-bottom: 12px;
}

.tour-price span {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.btn-tour {
    display: block;
    text-align: center;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
}

/* RESPONSIVE UNTUK HP / TABLET */
@media (max-width: 1024px) {
    .tour-slider {
        justify-content: flex-start; /* Kembali ke rata kiri di HP agar awal scroll tidak terpotong */
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .tour-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
}

/* MARKETPLACE PRODUCT CATALOG */
.section-title-wrapper {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--secondary-color);
    border-left: 6px solid var(--primary-color);
    padding-left: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.filter-wrapper {
    position: sticky;
    top: 70px;
    z-index: 990;
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    font-weight: 800;
    color: var(--secondary-color);
    font-size: 0.85rem;
    white-space: nowrap;
}

.filter-item select,
.filter-item input {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: #f8fafc;
    color: var(--secondary-color);
    outline: none;
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 220px;
    position: relative;
    background-color: #e2e8f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.price span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-order {
    background-color: var(--primary-color);
    color: #ffffff;
    width: 100%;
    text-align: center;
    padding: 0.65rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

.btn-order:hover {
    background-color: var(--primary-hover);
}

/* FOOTER */
.footer {
    background-color: var(--secondary-color);
    color: #94A3B8;
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    border-top: 1px solid #1E293B;
}

/* FLOATING WA BUTTON */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    height: 52px;
    padding: 0 1.25rem;
    background-color: #25D366;
    color: #FFFFFF !important;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    text-decoration: none;
    transition: var(--transition);
}

.wa-float:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.wa-float svg {
    width: 24px;
    height: 24px;
}

.wa-text {
    font-size: 0.875rem;
    font-weight: 700;
}

/* HAMBURGER MENU MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    }

    .nav-menu.active { transform: translateY(0); }

    .nav-link {
        width: 100%;
        padding: 1.25rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .btn-nav-login {
        display: block;
        width: calc(100% - 4rem);
        margin: 1.5rem 2rem;
        text-align: center;
    }

    .hero h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .about-grid { grid-template-columns: 1fr; }
    .about-section { padding: 1.5rem; }

    .filter-wrapper { flex-direction: column; }
    .filter-item { width: 100%; }
}

@media (max-width: 480px) {
    .wa-text { display: none; }
    .wa-float { width: 52px; height: 52px; padding: 0; border-radius: 50%; }
}