/* =====================================================
   ayohatrip.com - Mobile First Responsive CSS
   Full Color Icons + Notification + Desktop Bottom Nav
   ===================================================== */
:root {
    --primary: #0f766e;
    --primary-dark: #0d9488;
    --primary-light: #14b8a6;
    --accent: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 12px;
    --header-h: 56px;
    --bottom-nav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ========== Header ========== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(15,118,110,0.3);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo span {
    font-weight: 400;
    opacity: 0.9;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.icon-btn:active {
    background: rgba(255,255,255,0.15);
}
.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Notifikasi Dropdown ========== */
.notif-wrapper {
    position: relative;
}

.notif-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 200;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.notif-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notif-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    color: var(--text);
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
    cursor: pointer;
}
.notif-item:hover {
    background: #f8fafc;
}
.notif-item.unread {
    background: #f0fdfa;
}
.notif-item.unread:hover {
    background: #ccfbf1;
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notif-content {
    flex: 1;
    min-width: 0;
}
.notif-content strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 2px;
    color: var(--text);
}
.notif-content p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-content span {
    font-size: 0.7rem;
    color: #94a3b8;
}

.notif-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
    background: #f8fafc;
}
.notif-footer:hover {
    background: #f1f5f9;
}

/* ========== Main Content ========== */
.main-content {
    padding: 16px 16px calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
    max-width: 640px;
    margin: 0 auto;
    min-height: calc(100dvh - var(--header-h));
}

/* ========== Section Title ========== */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title a {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ========== Menu Grid ========== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.menu-card {
    background: var(--card);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.menu-card:active {
    transform: scale(0.96);
}

.menu-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Full Color Icons */
.menu-card:nth-child(1)  .icon-wrap { background: linear-gradient(135deg, #0d9488, #14b8a6); } /* Nearby */
.menu-card:nth-child(2)  .icon-wrap { background: linear-gradient(135deg, #6366f1, #818cf8); } /* My QR */
.menu-card:nth-child(3)  .icon-wrap { background: linear-gradient(135deg, #0891b2, #22d3ee); } /* Rental */
.menu-card:nth-child(4)  .icon-wrap { background: linear-gradient(135deg, #4f46e5, #818cf8); } /* Parking */
.menu-card:nth-child(5)  .icon-wrap { background: linear-gradient(135deg, #f59e0b, #fbbf24); } /* Holiday */
.menu-card:nth-child(6)  .icon-wrap { background: linear-gradient(135deg, #0f766e, #14b8a6); } /* Tour Guide */
.menu-card:nth-child(7)  .icon-wrap { background: linear-gradient(135deg, #db2777, #f472b6); } /* Event */
.menu-card:nth-child(8)  .icon-wrap { background: linear-gradient(135deg, #e11d48, #fb7185); } /* Gift */
.menu-card:nth-child(9)  .icon-wrap { background: linear-gradient(135deg, #d97706, #fbbf24); } /* Insurance */
.menu-card:nth-child(10) .icon-wrap { background: linear-gradient(135deg, #7c3aed, #a78bfa); } /* Split Bill */
.menu-card:nth-child(11) .icon-wrap { background: linear-gradient(135deg, #dc2626, #f87171); } /* Culinary */
.menu-card:nth-child(12) .icon-wrap { background: linear-gradient(135deg, #16a34a, #4ade80); } /* Eco-Travel */

.menu-card span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

/* ========== Horizontal Scroll Cards ========== */
.scroll-section {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.scroll-section::-webkit-scrollbar {
    display: none;
}

.card-row {
    display: flex;
    gap: 14px;
    padding-bottom: 8px;
}

.trip-card {
    flex: 0 0 260px;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.trip-card:active {
    transform: scale(0.98);
}
.trip-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.trip-card .body {
    padding: 12px 14px 16px;
}
.trip-card .title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trip-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.trip-card .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}
.trip-card .price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ========== Vertical List (Recommend) ========== */
.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    gap: 12px;
    background: var(--card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
}
.recommend-item img {
    width: 100px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}
.recommend-item .info {
    padding: 10px 12px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.recommend-item .title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recommend-item .meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.recommend-item .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

/* ========== Notifikasi List Page ========== */
.notif-list-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: background 0.15s;
}
.notif-list-item:hover {
    background: #f8fafc;
}
.notif-list-item.unread {
    background: #f0fdfa;
}
.notif-list-item .unread-dot {
    width: 8px;
    height: 8px;
    background: #0f766e;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 16px;
}

/* ========== Bottom Navigation ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}
.nav-item i {
    font-size: 1.25rem;
}
.nav-item.active {
    color: var(--primary);
}

/* ========== Placeholder / Loading ========== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ========== Desktop Enhancements ========== */
@media (min-width: 768px) {
    .main-content {
        max-width: 960px;
        padding: 24px 32px 80px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }
    
    .menu-card {
        padding: 18px 10px;
    }
    
    .menu-card .icon-wrap {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
    
    .menu-card span {
        font-size: 0.8rem;
    }
    
    .trip-card {
        flex: 0 0 280px;
    }

    /* Bottom nav TETAP MUNCUL di desktop */
    .bottom-nav {
        display: flex;
        max-width: 960px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    body {
        background: #f1f5f9;
    }
    
    #app {
        max-width: 1200px;
        margin: 0 auto;
        background: var(--bg);
        min-height: 100dvh;
        box-shadow: 0 0 40px rgba(0,0,0,0.05);
    }
    
    .bottom-nav {
        max-width: 1200px;
    }
}