/* ==================================================
   GLOBAL DESIGN SYSTEM — Malang Raya Tourism App
   ================================================== */

/* --- CSS Variables --- */
:root {
    /* Brand Colors */
    --color-primary:            #006565;
    --color-primary-dark:       #004d4d;
    --color-primary-container:  #008080;
    --color-primary-fixed:      #93f2f2;
    --color-primary-fixed-dim:  #76d6d5;
    --color-on-primary:         #ffffff;

    /* Surface Colors (Light) */
    --color-surface:                #f8fafb;
    --color-surface-container:      #eceeef;
    --color-surface-container-low:  #f2f4f5;
    --color-surface-container-high: #e6e8e9;
    --color-surface-variant:        #e1e3e4;

    /* Dark Surface Colors */
    --color-dark-bg:            #1a1f20;
    --color-dark-surface:       #2e3132;
    --color-inverse-surface:    #2e3132;

    /* Text Colors */
    --color-on-surface:         #191c1d;
    --color-on-surface-variant: #3e4949;
    --color-on-background:      #191c1d;

    /* Accent Colors */
    --color-secondary:              #4f6071;
    --color-secondary-container:    #d2e4f9;
    --color-tertiary:               #705d00;
    --color-tertiary-container:     #c9a900;
    --color-tertiary-fixed:         #ffe16d;
    --color-tertiary-fixed-dim:     #e9c400;
    --color-on-tertiary:            #ffffff;

    /* Utility Colors */
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-white-5:  rgba(255,255,255,0.05);
    --color-white-10: rgba(255,255,255,0.10);
    --color-white-20: rgba(255,255,255,0.20);

    /* Typography */
    --font-headline: 'Manrope', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-mono:     'Courier New', monospace;

    /* Spacing */
    --nav-height: 72px;

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.18);
    --shadow-xl:  0 24px 64px rgba(0,0,0,0.24);

    /* Border Radius */
    --radius-sm:  0.5rem;
    --radius-md:  0.75rem;
    --radius-lg:  1rem;
    --radius-xl:  1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast:   all 0.15s ease;
    --transition-normal: all 0.25s ease;
    --transition-slow:   all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

body.dark-body {
    background-color: var(--color-dark-bg);
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* --- Material Icons --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    user-select: none;
}

/* ==================================================
   SHARED NAVBAR COMPONENT (used across ALL pages)
   ================================================== */

.g-navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

/* Light navbar variant (landing, dashboard) */
.g-navbar.light {
    background-color: rgba(248, 250, 251, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-surface-container-high);
}

/* Dark navbar variant (how-it-works) */
.g-navbar.dark {
    background-color: rgba(26, 31, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.g-navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
}

.g-nav-brand {
    font-size: 1.375rem;
    font-weight: 900;
    font-family: var(--font-headline);
    letter-spacing: -0.03em;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.g-nav-brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
}

@media (max-width: 480px) {
    .g-nav-brand {
        font-size: 1.125rem;
        gap: 0.375rem;
    }
    .g-nav-brand img {
        height: 30px;
    }
}

.g-navbar.light .g-nav-brand  { color: var(--color-primary); }
.g-navbar.dark  .g-nav-brand  { color: var(--color-primary-fixed); }

.g-nav-brand:hover { opacity: 0.8; }

.g-nav-center {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .g-nav-center { display: flex; }
}

.g-nav-link {
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.g-navbar.light .g-nav-link { color: var(--color-slate-600); }
.g-navbar.dark  .g-nav-link { color: var(--color-slate-300); }

.g-navbar.light .g-nav-link:hover { color: var(--color-primary); background: rgba(0,101,101,0.06); }
.g-navbar.dark  .g-nav-link:hover { color: var(--color-primary-fixed); background: rgba(147,242,242,0.08); }

.g-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    border-radius: var(--radius-full);
}

.g-navbar.light .g-nav-link.active { color: var(--color-primary); }
.g-navbar.light .g-nav-link.active::after { background: var(--color-primary); }

.g-navbar.dark .g-nav-link.active  { color: var(--color-primary-fixed); }
.g-navbar.dark .g-nav-link.active::after  { background: var(--color-primary-fixed); }

.g-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Search input in navbar */
.g-nav-search {
    display: none;
    align-items: center;
    position: relative;
}

@media (min-width: 640px) {
    .g-nav-search { display: flex; }
}

.g-nav-search input {
    padding: 0.45rem 1rem 0.45rem 2.25rem;
    border-radius: var(--radius-full);
    border: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    width: 11rem;
    outline: none;
    transition: var(--transition-normal);
}

.g-navbar.light .g-nav-search input {
    background: var(--color-surface-container-high);
    color: var(--color-on-surface);
}

.g-navbar.dark .g-nav-search input {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.g-navbar.light .g-nav-search input::placeholder { color: var(--color-slate-400); }
.g-navbar.dark  .g-nav-search input::placeholder { color: var(--color-slate-500); }

.g-nav-search input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -2px;
    width: 14rem;
}

.g-nav-search-icon {
    position: absolute;
    left: 0.625rem;
    font-size: 1rem;
}
.g-navbar.light .g-nav-search-icon { color: var(--color-slate-400); }
.g-navbar.dark  .g-nav-search-icon { color: var(--color-slate-500); }

/* CTA Button in navbar */
.g-nav-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.g-navbar.light .g-nav-btn {
    background: var(--color-primary);
    color: #fff;
}
.g-navbar.light .g-nav-btn:hover { background: var(--color-primary-container); }

.g-navbar.dark .g-nav-btn {
    background: rgba(147,242,242,0.12);
    color: var(--color-primary-fixed);
    border: 1px solid rgba(147,242,242,0.25);
}
.g-navbar.dark .g-nav-btn:hover { background: rgba(147,242,242,0.2); }

/* Hamburger (mobile) */
.g-nav-hamburger {
    display: flex;
    align-items: center;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

@media (min-width: 768px) {
    .g-nav-hamburger { display: none; }
}

.g-navbar.light .g-nav-hamburger { color: var(--color-slate-500); }
.g-navbar.dark  .g-nav-hamburger { color: var(--color-slate-400); }

.g-navbar.light .g-nav-hamburger:hover { background: var(--color-surface-container); }
.g-navbar.dark  .g-nav-hamburger:hover { background: rgba(255,255,255,0.06); }

/* Mobile menu (Premium Fullscreen fixed overlay) */
.g-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .g-mobile-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100vw;
        height: calc(100vh - var(--nav-height));
        z-index: 999;
        padding: 3rem 2rem;
        gap: 1.5rem;
        align-items: center;
        justify-content: flex-start;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        overflow-y: auto;
    }
    
    .g-mobile-menu.open {
        display: flex;
        animation: mobileMenuFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .g-mobile-link {
        font-size: 1.375rem !important;
        font-weight: 800 !important;
        width: 100%;
        text-align: center;
        padding: 0.75rem 2rem !important;
        border-radius: var(--radius-md);
    }
    
    .g-mobile-bookmark-btn {
        width: 100% !important;
        justify-content: center !important;
        font-size: 1.0625rem !important;
        padding: 12px 24px !important;
        margin: 1.5rem 0 0 0 !important;
        box-sizing: border-box;
    }
}

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

/* Sibling matching theme backgrounds */
.g-navbar.light + .g-mobile-menu {
    background: rgba(248, 250, 251, 0.98);
    border-color: var(--color-surface-container-high);
}
.g-navbar.dark + .g-mobile-menu {
    background: rgba(26, 31, 32, 0.98);
    border-color: rgba(255, 255, 255, 0.06);
}

.g-mobile-link {
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-headline);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

/* Sibling matching theme links */
.g-navbar.light + .g-mobile-menu .g-mobile-link { color: var(--color-slate-600); }
.g-navbar.light + .g-mobile-menu .g-mobile-link:hover { color: var(--color-primary); background: rgba(0,101,101,0.06); }
.g-navbar.light + .g-mobile-menu .g-mobile-link.active { color: var(--color-primary); }

.g-navbar.dark + .g-mobile-menu .g-mobile-link { color: var(--color-slate-300); }
.g-navbar.dark + .g-mobile-menu .g-mobile-link:hover { color: var(--color-primary-fixed); background: rgba(147,242,242,0.08); }
.g-navbar.dark + .g-mobile-menu .g-mobile-link.active { color: var(--color-primary-fixed); }

/* Wrapper that wraps navbar + mobile dropdown together */
.g-nav-wrapper {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ==================================================
   SHARED FOOTER COMPONENT
   ================================================== */

.g-footer {
    width: 100%;
}

.g-footer.light {
    background: var(--color-surface);
    border-top: 1px solid var(--color-surface-container-high);
}

.g-footer.dark {
    background: var(--color-dark-bg);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.g-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    max-width: 80rem;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .g-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.g-footer-brand {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.375rem;
}

.g-footer.light .g-footer-brand { color: var(--color-primary); }
.g-footer.dark  .g-footer-brand { color: var(--color-primary-fixed); }

.g-footer-copy {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.g-footer.light .g-footer-copy { color: var(--color-slate-500); }
.g-footer.dark  .g-footer-copy { color: var(--color-slate-500); }

.g-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .g-footer-links { justify-content: flex-end; }
}

.g-footer-link {
    transition: var(--transition-fast);
    position: relative;
}

.g-footer.light .g-footer-link { color: var(--color-slate-500); }
.g-footer.light .g-footer-link:hover { color: var(--color-primary); }

.g-footer.dark  .g-footer-link { color: var(--color-slate-500); }
.g-footer.dark  .g-footer-link:hover { color: var(--color-primary-fixed); }

/* ==================================================
   REUSABLE GLASS PANEL
   ================================================== */

.glass-panel {
    background: rgba(46, 49, 50, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(147, 242, 242, 0.10);
    border-radius: var(--radius-md);
}

.glass-panel-light {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.teal-glow {
    box-shadow: 0 0 30px rgba(147, 242, 242, 0.12);
}

/* ==================================================
   SCROLL REVEAL ANIMATIONS
   ================================================== */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==================================================
   SHARED UTILITY CLASSES
   ================================================== */

.text-primary        { color: var(--color-primary); }
.text-primary-fixed  { color: var(--color-primary-fixed); }
.text-white          { color: #ffffff; }
.text-glow {
    text-shadow: 0 0 24px rgba(147, 242, 242, 0.55);
}

/* Buttons */
.btn-teal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-headline);
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 1rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0,101,101,0.3);
}

.btn-teal:hover {
    background: var(--color-primary-container);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,101,101,0.4);
}

.btn-teal:active { transform: scale(0.97); }

.btn-outline-teal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-headline);
    font-weight: 700;
    border-radius: var(--radius-full);
    font-size: 1rem;
    border: 2px solid var(--color-primary);
    transition: var(--transition-normal);
}

.btn-outline-teal:hover {
    background: rgba(0,101,101,0.06);
    transform: translateY(-2px);
}

/* ==================================================
   GLOBAL BOOKMARK DRAWER & ROUTE MODAL STYLES
   ================================================== */

/* Navbar Bookmark Button */
.g-nav-bookmark-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.08);
    border: 1.5px solid rgba(13, 148, 136, 0.15);
    color: var(--teal-700);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13.5px;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    position: relative;
    height: 38px;
}
.g-nav-bookmark-btn:hover {
    background: rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-1px);
}
.g-nav-bookmark-btn .material-symbols-outlined {
    font-size: 18px;
}
.g-nav-bookmark-btn .bookmark-badge {
    background: #ea580c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(234, 88, 12, 0.3);
    margin-left: 2px;
}

/* Mobile Bookmark Button */
.g-mobile-bookmark-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 8px 16px;
    background: rgba(13, 148, 136, 0.06);
    border: 1.5px solid rgba(13, 148, 136, 0.1);
    color: var(--teal-700) !important;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}
.g-mobile-bookmark-btn .bookmark-badge-count {
    background: #ea580c;
    color: #fff;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
    margin-left: auto;
}

/* Bookmark Drawer */
.bookmark-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99990;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bookmark-drawer-overlay.open {
    display: block;
    opacity: 1;
}
.bookmark-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
    box-shadow: -5px 0 30px rgba(15, 23, 42, 0.15);
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.bookmark-drawer.open {
    transform: translateX(0);
}
.bookmark-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1.5px solid var(--slate-100);
}
.bookmark-drawer .drawer-close-btn {
    border: none;
    background: var(--color-surface-container, #e2e8f0);
    color: var(--color-slate-500);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.bookmark-drawer .drawer-close-btn:hover {
    background: var(--color-slate-300);
    color: var(--color-slate-800);
}
.bookmark-drawer .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.empty-drawer-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    margin: auto;
}

/* Bookmark Plan Card */
.bookmark-plan-card {
    background: #fff;
    border: 1.5px solid var(--color-slate-200);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.bookmark-plan-card:hover {
    border-color: #5eead4; /* teal-300 */
    box-shadow: 0 6px 16px rgba(13,148,136,0.06);
}
.bookmark-plan-card .plan-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--color-slate-800, #1e293b);
    margin: 0 0 6px;
    text-align: left;
}
.bookmark-plan-card .plan-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-slate-400);
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.bookmark-plan-card .plan-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--teal-700, #0f766e);
}
.bookmark-plan-card .plan-delete-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: none;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: color 0.15s;
}
.bookmark-plan-card .plan-delete-btn:hover {
    color: #dc2626;
}
.bookmark-plan-card .plan-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid var(--color-slate-200);
    color: var(--color-slate-600);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px;
    border-radius: 10px;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.bookmark-plan-card .plan-details-btn:hover {
    background: #f0fdfa; /* teal-50 */
    border-color: #99f6e4; /* teal-200 */
    color: var(--teal-700);
}

/* Itinerary Route Detail Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
    z-index: 99999; display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s ease; padding: 20px;
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-content {
    background: #fff; width: 100%; max-width: 500px; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); overflow: hidden;
    transform: translateY(20px); transition: transform 0.2s ease;
}
.modal-overlay.show .modal-content { transform: translateY(0); }
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--color-slate-200);
    display: flex; justify-content: space-between; align-items: center;
    background: #f8fafc;
}
.modal-title { font-size: 18px; font-weight: 800; color: #1e293b; }
.modal-close {
    background: transparent; border: none; cursor: pointer; color: var(--color-slate-500);
    display: flex; align-items: center; justify-content: center; transition: color 0.2s;
}
.modal-close:hover { color: #dc2626; }
.modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; color: #334155; }

.timeline { position: relative; margin-left: 12px; border-left: 2px dashed var(--color-slate-300); padding-left: 24px; margin-bottom: 24px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -31px; top: 0; width: 14px; height: 14px;
    border-radius: 50%; background: #fff; border: 3px solid #14b8a6;
}
.timeline-title { font-size: 14px; font-weight: 800; color: #1e293b; margin-bottom: 4px; line-height: 1.3; text-align: left; }
.timeline-desc { font-size: 13px; color: var(--color-slate-500); text-align: left; }
.timeline-leg {
    margin: 12px 0; padding: 10px 14px; background: rgba(20, 184, 166, 0.05);
    border: 1px solid rgba(20, 184, 166, 0.2); border-radius: 8px;
    display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #0f766e;
}
.gmaps-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    padding: 14px; background: #14b8a6; color: #fff; border: none; border-radius: 12px;
    font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; cursor: pointer; transition: background 0.2s;
    text-decoration: none;
}
.gmaps-btn:hover { background: #0f766e; }

.recap-dist-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #0f766e;
    padding: 4px 0;
    position: relative;
}
.recap-dist-row::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dotted #2dd4bf;
}
.recap-dist-row .material-symbols-outlined {
    font-size: 13px;
}
.pkg-item {
    transition: transform 0.2s;
}
.pkg-item:hover {
    transform: translateY(-1px);
}

/* ==================================================
   PREMIUM AUTH MODAL & NAVBAR PROFILE DROPDOWN
   ================================================== */

.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.auth-modal-overlay.open {
    display: flex;
    opacity: 1;
}
.auth-modal-container {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
    transform: translateY(24px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-modal-overlay.open .auth-modal-container {
    transform: translateY(0) scale(1);
}
.auth-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: rgba(0,0,0,0.04);
    color: var(--color-slate-500);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.auth-modal-close-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}
.auth-modal-glass {
    padding: 36px;
}
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    width: fit-content;
}
.auth-tab-btn {
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--color-slate-500);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-tab-btn.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 101, 101, 0.06);
}
.auth-error-container {
    display: flex;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
}
.auth-error-list {
    font-size: 12.5px;
    color: #dc2626;
    font-weight: 600;
    text-align: left;
    list-style: none;
}
.auth-form-title {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 800;
    color: var(--color-on-surface);
    margin-bottom: 4px;
    text-align: left;
}
.auth-form-subtitle {
    font-size: 13px;
    color: var(--color-slate-400);
    margin-bottom: 24px;
    text-align: left;
    line-height: 1.4;
}
.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    text-align: left;
}
.auth-input-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-input-wrap {
    position: relative;
    width: 100%;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--color-slate-400);
}
.auth-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-on-surface);
    outline: none;
    transition: all 0.2s ease;
}
.auth-input-wrap input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 101, 101, 0.08);
}
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: var(--font-headline);
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 101, 101, 0.2);
    transition: all 0.2s ease;
    margin-top: 10px;
}
.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 101, 101, 0.3);
}

/* Dynamic Profile Navbar Badge */
.g-nav-profile-container {
    position: relative;
    display: flex;
    align-items: center;
}
.g-profile-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 20px;
    background: rgba(0, 101, 101, 0.06);
    border: 1px solid rgba(0, 101, 101, 0.12);
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
}
.g-profile-badge:hover {
    background: rgba(0, 101, 101, 0.1);
    transform: translateY(-1px);
}
.g-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #006565;
}
.g-profile-name {
    font-family: var(--font-headline);
    font-size: 13px;
    font-weight: 800;
    color: var(--color-primary);
}

/* Floating profile dropdown menu */
.g-profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-slate-200);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    width: 200px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: dropdownSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.g-profile-dropdown.open {
    display: flex;
}
@keyframes dropdownSlideIn {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.g-profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-slate-600);
    cursor: pointer;
    transition: all 0.15s ease;
}
.g-profile-dropdown-item:hover {
    background: rgba(0, 101, 101, 0.05);
    color: var(--color-primary);
}
.g-profile-dropdown-item.logout {
    color: #ef4444;
}
.g-profile-dropdown-item.logout:hover {
    background: #fef2f2;
    color: #ef4444;
}
.g-profile-dropdown-item .material-symbols-outlined {
    font-size: 18px;
}

/* ─── PREMIUM MOBILE NAVBAR & MODALS RESPONSIVENESS OVERRIDES ─── */
@media (max-width: 768px) {
    .g-navbar-inner {
        padding: 0 1.25rem;
    }
}

@media (max-width: 640px) {
    .g-navbar-inner {
        padding: 0 1rem;
    }
    
    /* Minimize the bookmark label to save premium layout space */
    .g-nav-bookmark-btn {
        padding: 6px 10px;
        margin-right: 2px;
        gap: 4px;
        height: 36px;
    }
    .g-nav-bookmark-btn .bookmark-label {
        display: none; /* Hide 'Rencana Saya' text */
    }
    
    /* Minimize the dynamic profile text in navbar */
    .g-profile-name {
        display: none; /* Hide user name string in mobile header */
    }
    .g-profile-badge {
        padding: 6px;
        gap: 0;
    }

    .g-nav-right {
        gap: 0.5rem;
    }

    .g-nav-btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }
    
    /* Search box styling on mobile */
    .g-nav-search input {
        width: 8rem;
    }
    .g-nav-search input:focus {
        width: 10rem;
    }
}

@media (max-width: 395px) {
    .g-navbar-inner {
        padding: 0 0.5rem;
    }
    .g-nav-brand {
        font-size: 1rem;
        gap: 0.25rem;
    }
    .g-nav-brand img {
        height: 26px;
    }
    .g-nav-bookmark-btn {
        padding: 6px 8px;
        height: 34px;
    }
    .g-nav-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }
    .g-nav-hamburger {
        padding: 0.25rem;
    }
}

@media (max-width: 480px) {
    /* Bookmark modal and day-detail popup responsiveness */
    .modal-overlay {
        padding: 12px;
    }
    .modal-content {
        border-radius: 16px;
    }
    .modal-header {
        padding: 16px 20px;
    }
    .modal-body {
        padding: 16px 20px;
    }
    .timeline {
        margin-left: 8px;
        padding-left: 16px;
    }
    .timeline-dot {
        left: -23px;
        width: 12px;
        height: 12px;
    }
}


