body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #fbfaf7;
}
.serif-font {
    font-family: 'Playfair Display', 'Times New Roman', serif;
}
/* Style override for Leaflet to match Warm Sand/Resort Aesthetic */
.leaflet-container {
    background: #f4ede2 !important;
    filter: sepia(0.18) hue-rotate(-4deg) saturate(1.05) contrast(0.96);
}
/* Custom map marker pin */
.custom-div-icon {
    background: none;
    border: none;
}
.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -18px 0 0 -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(92, 70, 46, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #fbfaf7;
}
.marker-pin:hover {
    transform: rotate(-45deg) scale(1.2) translateY(-2px);
    z-index: 9999 !important;
}
.marker-pin span {
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 13px;
}
/* Elegantly styled Leaflet popup windows */
.leaflet-popup-content-wrapper {
    background: #faf7f2 !important;
    color: #1f2e26 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 28px -4px rgba(85, 65, 45, 0.18) !important;
    border: 1px solid #e6dec9 !important;
    padding: 2px;
}
.leaflet-popup-tip {
    background: #faf7f2 !important;
    border: 1px solid #e6dec9 !important;
}
/* Premium custom scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #fbfaf7; }
::-webkit-scrollbar-thumb { background: #e3d9c3; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #c5b699; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
/* Glass panel */
.glass-panel {
    background: rgba(251, 250, 247, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(227, 217, 195, 0.5);
}
/* Timeline thread */
.timeline-line {
    background: linear-gradient(to bottom, #eae1cc, #eae1cc 50%, transparent 50%);
    background-size: 2px 10px;
}
/* Ticket boarding pass */
.ticket-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(227, 217, 195, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(92, 70, 46, 0.08);
    transition: all 0.3s ease;
}
.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(92, 70, 46, 0.12);
}
.ticket-cutout-left, .ticket-cutout-right {
    position: absolute;
    top: 52%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #faf7f2;
    z-index: 10;
}
.ticket-cutout-left { left: -8px; border-right: 1px solid rgba(227, 217, 195, 0.8); }
.ticket-cutout-right { right: -8px; border-left: 1px solid rgba(227, 217, 195, 0.8); }
/* Toast notification */
.toast-notify {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(21, 62, 45, 0.95);
    color: #faf6f0;
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 163, 95, 0.3);
}
.toast-notify.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ============================================================
   FULL UI REDESIGN — MOBILE-FIRST APP EXPERIENCE
   ============================================================ */

/* ── Day pill toggle buttons ── */
.day-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 34px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.day-pill-btn:active { transform: scale(0.90); }
.day-pill-btn.pill-inactive {
    background: #edeae3 !important;
    color: #a89e90 !important;
    border-color: #e2ddd4 !important;
    box-shadow: none !important;
}
.day-pill-btn.pill-inactive .pill-dot { background: #c5bfb4 !important; }

/* ── Mobile bottom navigation bar ── */
.mobile-nav-bar {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
}
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 7px 4px 5px;
    border-radius: 14px;
    gap: 3px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(6, 78, 59, 0.38);
    min-height: 56px;
}
.mobile-nav-btn:active { transform: scale(0.87); }
.mobile-nav-btn.nav-active {
    color: #c4902f;
    background: linear-gradient(160deg, rgba(253,243,227,0.95) 0%, rgba(254,249,240,1) 100%);
    box-shadow: 0 2px 8px rgba(212,163,95,0.15);
}
.mobile-nav-btn i { font-size: 22px; line-height: 1; }
.mobile-nav-btn span { font-size: 12px; font-weight: 600; line-height: 1; }

/* ── Desktop sidebar nav tab buttons ── */
.desktop-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 8px 6px;
    border-radius: 10px;
    transition: all 0.18s ease;
    cursor: pointer;
    gap: 3px;
    color: #064e3b;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-weight: 600;
}
.desktop-nav-btn:hover { background: #f6f1e5; color: #d4a35f; }
.desktop-nav-btn.nav-active { color: #d4a35f; background: #fdf3e3; font-weight: 700; }

/* ── Modal bottom sheet drag handle ── */
.sheet-drag-handle {
    width: 36px;
    height: 4px;
    background: rgba(200, 190, 170, 0.75);
    border-radius: 3px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

/* ── Location card ── */
.location-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.location-card:active { transform: scale(0.99); }

/* ── Slide-up animation for bottom sheets ── */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ── Mobile map overlay ── */
@media (max-width: 767px) {
    main.map-overlay-visible {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 38;
        padding-bottom: 0 !important;
        animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@media (max-width: 640px) {
    /* Bottom-sheet modals */
    #checklist-modal > div,
    #info-modal > div,
    #flight-modal > div,
    #currency-modal > div {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        height: 92vh !important;
        max-height: 92vh !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        animation: slideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .ticket-card { padding: 14px !important; border-radius: 16px !important; }
    .ticket-cutout-left  { left: -8px !important; }
    .ticket-cutout-right { right: -8px !important; }
    .ticket-card .flex-1.px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* ── Currency calculator number pad ── */
.calc-btn {
    background: #f0ede5;
    border: 1px solid rgba(230, 222, 201, 0.8);
    border-radius: 14px;
    padding: 15px 4px;
    font-size: 22px;
    font-weight: 600;
    color: #1f2e26;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.calc-btn:active { transform: scale(0.91); background: #e6dec9; }
.calc-btn-secondary { background: #faf7f2; color: #5c7a6a; font-size: 17px; font-weight: 700; }
.calc-btn-del { background: #fdf3e3; color: #c4902f; font-size: 18px; }
.calc-btn-del:active { background: #f6e0b5; }
.calc-btn-clear { background: #fff0f0; color: #dc3545; font-size: 17px; font-weight: 700; }
.calc-btn-clear:active { background: #ffd5d5; }
.calc-btn-refresh { background: #e8f5f0; color: #153e2d; font-size: 18px; }
.calc-btn-refresh:active { background: #c8e8dc; }
