/* Explore Bali Tour - Unified Professional Theme 2026
    Unified Color System: Royal Blue (Trust) & Saffron Orange (Warmth)
*/

:root {
    /* Brand Colors */
    --primary: #2563eb;         /* Royal Blue - Trust & Professionalism */
    --primary-dark: #1d4ed8;
    --accent: #ff9933;          /* Saffron Orange - Global Warmth & India Heritage */
    --dark: #0f172a;            /* Deep Navy - High Contrast Text */
    --bg-light: #f8fafc;
    --white: #ffffff;
    
    /* Design System */
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body { 
    background-color: var(--bg-light); 
    font-family: 'Inter', sans-serif; 
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

/* --- Global Components --- */
img {
    max-width: 100%;
    display: block;
}

a {
    transition: var(--transition);
}

/* --- Page Header Section --- */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../img/hero-sawah.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 20px 100px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Filter & Search Container --- */
.filter-container {
    max-width: 1100px;
    margin: -50px auto 50px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
    width: calc(100% - 40px);
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1.5px solid #f1f5f9;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box::before {
    content: "🔍";
    position: absolute; 
    left: 20px; 
    top: 50%;
    transform: translateY(-50%); 
    font-size: 18px;
    z-index: 2;
}

/* Category Buttons (Scrollable Horizontal on Mobile) */
.category-btns { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding: 5px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-btns::-webkit-scrollbar { display: none; }

.cat-btn {
    padding: 12px 24px;
    flex: 0 0 auto;
    border: 1.5px solid #f1f5f9;
    background: var(--white);
    color: #64748b;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.cat-btn.active { 
    background: var(--primary); 
    color: var(--white); 
    border-color: var(--primary); 
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* --- Tour Grid System --- */
.package-grid {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.tour-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.tour-card:hover { 
    transform: translateY(-12px); 
    box-shadow: var(--shadow-soft); 
}

.card-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: var(--transition);
}

.tour-card:hover .card-img {
    transform: scale(1.08);
}

.card-body { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.indian-badge, .generic-badge {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent); /* Unified Accent Color */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-body h2 {
    font-size: 1.4rem;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.3;
}

.card-price { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--primary); 
    margin: 15px 0; 
}

.card-price span {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 400;
}

.btn-view {
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--dark);
    color: var(--white);
    padding: 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
}

.btn-view:hover { 
    background: var(--primary); 
}

/* --- Desktop Layout (min-width: 992px) --- */
@media (min-width: 992px) {
    .filter-container {
        flex-direction: row;
        padding: 25px 30px;
        margin: -50px auto 60px;
    }

    .search-box { flex: 1; }

    .category-btns { 
        width: auto; 
        overflow: visible; 
        gap: 12px; 
    }
}

/* --- Tablet & Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-header { padding: 80px 20px 70px; }
    
    .filter-container {
        margin-top: -40px;
        padding: 15px;
        gap: 15px;
    }

    .package-grid {
        grid-template-columns: 1fr; /* Single column on mobile for better focus */
        gap: 25px;
        padding: 10px 20px;
    }
    
    .card-img-wrapper { height: 220px; }
}