:root {
    --primary-color: #6d5dfc; /* Vibrant Lavender/Indigo */
    --primary-dark: #4e41cf;
    --secondary-color: #a78bfa; /* Soft Purple */
    --accent-color: #fbbf24; /* Golden Honey (contrast) */
    --bg-color: #f3f0ff; /* Very Light Lavender */
    --bg-gradient: linear-gradient(180deg, #f3f0ff 0%, #d8d2ff 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e1b4b; /* Even darker indigo for text */
    --text-meta: #3730a3;
    --border-radius: 20px;
    --shadow-sm: 0 4px 20px rgba(109, 93, 252, 0.1);
    --shadow-md: 0 15px 40px rgba(109, 93, 252, 0.15);
    --gradient-hero: linear-gradient(0deg, rgba(30, 27, 75, 0.9) 0%, rgba(109, 93, 252, 0.2) 100%);
}

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

body {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px;
}

/* App-like container for desktop viewing */
@media (min-width: 600px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
        position: relative;
        min-height: 100vh;
        background-color: #ffffff;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 38vh;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    overflow: hidden;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-hero), url('1.png');
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero p.subtitle {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

/* Removed old .hero h1 style */

.subtitle {
    font-size: 14px;
    color: var(--text-meta);
    margin-bottom: 16px;
    font-weight: 500;
}

.basic-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(109, 93, 252, 0.3);
}

.badge i {
    margin-right: 4px;
}

/* Main Content */
main {
    padding: 24px 16px;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

/* Timeline / Day Cards */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.day-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.day-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-date {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 4px;
}

.day-theme {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 4px;
}

.schedule {
    list-style: none;
}

.schedule li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 14px;
}

.schedule li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.schedule li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 16px;
    width: 2px;
    height: calc(100% + 4px);
    background-color: #edf2f7;
}

.time {
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 6px;
}

.day-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.info-item {
    font-size: 13px;
    color: var(--text-meta);
    margin-bottom: 6px;
}

.info-item i {
    color: var(--primary-color);
    width: 18px;
}

/* Guides */
.guide-category {
    margin-bottom: 32px;
}

.category-title {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title i {
    color: var(--primary-color);
}

.guide-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    scroll-margin-top: 20px;
}

.guide-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(124, 115, 230, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.guide-link:hover {
    background-color: rgba(124, 115, 230, 0.1);
    border-bottom-color: var(--primary-color);
}


.guide-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.guide-meta {
    font-size: 12px;
    color: var(--text-meta);
    margin-bottom: 4px;
}

.guide-meta i {
    width: 16px;
    color: var(--primary-color);
}

.guide-desc {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

.guide-desc strong {
    color: #e53e3e;
}

/* Horizontal Scroll for SA */
.horizontal-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 8px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.sa-card {
    min-width: 140px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.sa-card h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.sa-card p {
    font-size: 12px;
    color: var(--text-meta);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

@media (min-width: 600px) {
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a0aec0;
    font-size: 12px;
    gap: 4px;
    cursor: pointer;
    transition: color 0.3s;
    width: 50%;
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.3s;
}

.nav-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active i {
    transform: translateY(-2px);
}

.end-marker {
    text-align: center;
    font-size: 14px;
    color: #cbd5e0;
    margin-top: 32px;
    margin-bottom: 60px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Budget Table */
.budget-card {
    padding: 0;
    overflow: hidden;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.budget-table th {
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 8px;
    text-align: left;
    font-weight: 700;
}

.budget-table td {
    padding: 14px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.budget-table tr:last-child td {
    border-bottom: none;
}

.budget-table td:first-child {
    font-weight: 400;
    color: var(--text-main);
    width: 45%;
}

.hotel-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.status {
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status.confirmed {
    color: #27ae60;
}

.status.pending {
    color: #f39c12;
}

.platform {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 2px;
}

.deadline {
    font-size: 10px;
    color: var(--text-meta);
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

/* Budget Summary */
.budget-summary {
    margin-top: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item .label {
    font-size: 13px;
    font-weight: 600;
}

.summary-item .value {
    text-align: right;
}

.main-value {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
}

.main-value span {
    font-size: 12px;
    color: var(--text-meta);
}

.secondary-value {
    font-size: 16px;
    font-weight: 700;
}

/* Itinerary Intro */
.itinerary-intro {
    margin-bottom: 24px;
    padding: 20px;
    line-height: 1.8;
    color: var(--text-main);
    font-size: 14px;
    border-left: 4px solid var(--primary-color);
}

/* Guide Tips */
.guide-tips {
    list-style: none;
    padding: 0;
    margin-top: 12px;
    border-top: 1px dashed rgba(106, 27, 154, 0.2);
    padding-top: 12px;
}

.guide-tips li {
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.5;
    color: var(--text-main);
}

.guide-tips li strong {
    color: var(--primary-color);
}

