/* CSS Design System for Houlong Haowangjiao Tour Guide */
:root {
    --primary: #1e5f74;         /* Ocean Teal */
    --primary-light: #3d84b8;   /* Sky Blue */
    --primary-hover: #133b5c;   /* Darker Teal */
    --accent: #f0a500;          /* Sunset Gold */
    --accent-light: #ffc857;    /* Light Sunset Gold */
    --dark: #1d2d50;            /* Deep Sea Blue */
    --dark-muted: #4e5e80;      /* Slate Blue */
    --light: #eff6f0;           /* Soft Pastel Coastal Green */
    --light-alt: #e1ede5;       /* Slightly Deeper Pastel Green */
    --white: #ffffff;
    --success: #2ec4b6;
    --text-color: #2b3a4a;
    
    /* Glassmorphism values */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(29, 45, 80, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    
    /* Card shadow and borders */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(29, 45, 80, 0.06);
    --shadow-lg: 0 20px 40px rgba(29, 45, 80, 0.12);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    color: var(--text-color);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.highlight {
    color: var(--accent);
    background: linear-gradient(120deg, transparent 60%, rgba(240, 165, 0, 0.2) 40%);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--light-alt);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 95, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 95, 116, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--accent);
}

.navbar.scrolled .logo {
    color: var(--dark);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.navbar.scrolled .nav-links a {
    color: var(--dark-muted);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .menu-toggle {
    color: var(--dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('images/hero_haowangjiao.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

/* Fallback gradient if image fails to load */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 45, 80, 0.9) 0%, rgba(30, 95, 116, 0.7) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(29, 45, 80, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 24px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero .badge {
    background-color: var(--accent);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(240, 165, 0, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.bounce {
    animation: bounce 2s infinite;
}

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-card:hover::before {
    opacity: 1;
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(30, 95, 116, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.info-card h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.info-card p {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.info-card span {
    font-size: 0.9rem;
    color: var(--dark-muted);
}

/* Timeline Route styling */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 50%, var(--accent) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0.95;
    transition: var(--transition);
    cursor: pointer;
}

.timeline-item:hover {
    opacity: 1;
}

.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--primary-light);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent);
    border-color: var(--white);
    transform: scale(1.3);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -10px;
}

.timeline-time {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.timeline-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 95, 116, 0.15);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--dark-muted);
    margin-bottom: 14px;
}

.spot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: rgba(30, 95, 116, 0.06);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.timeline-item:hover .spot-tag {
    background-color: var(--accent);
    color: var(--dark);
}

/* Timeline Spacer (Lunch) */
.timeline-spacer {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 6;
    margin: 40px 0;
}

.spacer-badge {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scenic Spots Tabs */
.tab-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 24px;
    border-radius: 50px;
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(30, 95, 116, 0.25);
}

/* Scenic Spot Detail Box */
.spot-detail-box {
    border-radius: var(--border-radius-lg);
    padding: 40px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.spot-detail-pane {
    display: none;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.spot-detail-pane.active {
    display: block;
}

.spot-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.spot-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 380px;
    background-color: var(--dark);
}

/* Stylized color fallbacks for spot images */
.spot-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark) 0%, var(--primary) 100%);
    opacity: 0.15;
    z-index: 1;
}

.spot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.spot-image-wrapper:hover .spot-image {
    transform: scale(1.05);
}

.image-credit {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    z-index: 2;
}

.spot-info {
    display: flex;
    flex-direction: column;
}

.spot-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(30, 95, 116, 0.15);
    margin-bottom: -10px;
}

.spot-info h2 {
    font-size: 2rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.spot-info h2 small {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 6px;
}

.spot-desc {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 24px;
    text-align: justify;
}

.spot-highlights {
    margin-bottom: 24px;
}

.spot-highlights h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.spot-highlights ul {
    display: grid;
    gap: 8px;
}

.spot-highlights li {
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.spot-highlights li::before {
    content: '✦';
    color: var(--accent);
    font-weight: bold;
}

.alert-note {
    background-color: rgba(240, 165, 0, 0.08);
    border-left: 4px solid var(--accent);
    padding: 16px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-size: 0.95rem;
}

/* Transportation Tab Card styling */
.traffic-box {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.traffic-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--glass-border);
}

.traffic-tab {
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.traffic-tab:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--primary);
}

.traffic-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.02);
}

.traffic-content {
    background-color: var(--white);
    padding: 40px;
}

.traffic-pane {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.traffic-pane.active {
    display: block;
}

.traffic-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.step-list {
    display: grid;
    gap: 24px;
}

.step-list li {
    display: flex;
    gap: 20px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 10px rgba(30, 95, 116, 0.2);
}

.step-list h3, .parking-tips h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-list strong {
    font-size: 1.05rem;
    color: var(--dark);
    display: block;
    margin-bottom: 4px;
}

.step-list p {
    font-size: 0.95rem;
    color: var(--dark-muted);
}

.parking-tips {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 30px;
    height: 100%;
}

.parking-tips ul {
    display: grid;
    gap: 16px;
}

.parking-tips li {
    font-size: 0.95rem;
    color: var(--text-color);
}

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

.alert-warning {
    background-color: rgba(235, 94, 85, 0.08);
    border-left: 4px solid #eb5e55;
    padding: 24px;
    border-radius: var(--border-radius-sm);
    height: 100%;
}

.alert-warning strong {
    color: #eb5e55;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.alert-warning p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

/* Dining and Stay Card layout */
.dining-stay-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
}

.card-hero-img {
    height: 220px;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Cover visual fallbacks using CSS patterns/colors */
.food-bg {
    background-image: linear-gradient(135deg, rgba(29, 45, 80, 0.6) 0%, rgba(30, 95, 116, 0.6) 100%), url('images/food_hero.jpg');
    background-color: var(--primary);
}

.stay-bg {
    background-image: linear-gradient(135deg, rgba(29, 45, 80, 0.6) 0%, rgba(30, 95, 116, 0.6) 100%), url('images/stay_hero.jpg');
    background-color: var(--dark);
}

.card-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.card-hero-overlay h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 40px;
    display: grid;
    gap: 24px;
}

.food-item, .stay-item {
    border-bottom: 1px solid var(--light-alt);
    padding-bottom: 16px;
}

.food-item:last-child, .stay-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.food-item h4, .stay-item h4 {
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-tag, .stay-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.price-tag {
    background-color: rgba(240, 165, 0, 0.1);
    color: var(--accent);
}

.stay-tag {
    background-color: rgba(30, 95, 116, 0.1);
    color: var(--primary);
}

.food-item p, .stay-item p {
    font-size: 0.95rem;
    color: var(--dark-muted);
}

/* Checklist Checklist */
.checklist-wrapper {
    border-radius: var(--border-radius-lg);
    padding: 50px;
    background-color: var(--white);
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.checklist-intro h3 {
    font-size: 1.75rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-intro p {
    font-size: 1.05rem;
    color: var(--dark-muted);
    margin-bottom: 30px;
}

.weather-widget {
    background-color: var(--light);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-alt);
}

.weather-widget h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-widget p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.weather-widget p:last-child {
    margin-bottom: 0;
}

.checklist-items {
    display: grid;
    gap: 18px;
}

/* Styled Custom Checkbox */
.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.todo-item input {
    display: none;
}

.todo-custom-check {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    background-color: var(--white);
    margin-top: 2px;
}

.todo-custom-check::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--white);
    display: none;
}

.todo-item input:checked + .todo-custom-check {
    background-color: var(--success);
    border-color: var(--success);
}

.todo-item input:checked + .todo-custom-check::after {
    display: block;
}

.todo-text {
    font-size: 1rem;
    color: var(--text-color);
    transition: var(--transition);
}

.todo-item input:checked ~ .todo-text {
    color: var(--dark-muted);
    text-decoration: line-through;
    opacity: 0.75;
}

/* Footer Section styling */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--accent);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
}

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .spot-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .spot-image-wrapper {
        height: 300px;
    }
    
    .traffic-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Navigation changes */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--glass-bg-dark);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 40px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        color: var(--white) !important;
        font-size: 1.2rem;
    }
    
    /* Timeline Mobile adaptations */
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    
    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
    
    .spot-detail-box {
        padding: 24px;
    }
    
    .traffic-content {
        padding: 24px;
    }
    
    .checklist-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   智慧導遊懸浮對話方塊 (Chatbot Widget)
   ========================================== */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    font-family: 'Noto Sans TC', sans-serif;
}

/* 懸浮按鈕 */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(30, 95, 116, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    transition: var(--transition);
    outline: none;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(30, 95, 116, 0.45);
}

/* 呼吸光環效果 */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    animation: pulseRing 2s infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 對話視窗 */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 520px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
}

.chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* 對話視窗頂部 */
.chat-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chat-header-info h4 {
    font-size: 1rem;
    font-weight: 700;
}

.chat-status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    display: inline-block;
    box-shadow: 0 0 8px var(--success);
}

.chat-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.chat-close:hover {
    color: var(--white);
}

/* 訊息區域 */
.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* 訊息對話框 */
.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: bubbleIn 0.3s ease-out forwards;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-message {
    align-self: flex-start;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bot-message strong {
    color: var(--primary);
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30, 95, 116, 0.15);
    border-bottom-right-radius: 4px;
}

/* 快捷按鈕區 */
.chat-suggestions {
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggest-btn {
    padding: 6px 12px;
    background-color: var(--white);
    border: 1px solid rgba(30, 95, 116, 0.15);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.suggest-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 95, 116, 0.15);
}

/* 輸入區域 */
.chat-input-area {
    padding: 12px 16px;
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 8px;
    align-items: center;
}

#chat-input {
    flex-grow: 1;
    padding: 10px 16px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--light);
}

#chat-input:focus {
    border-color: var(--primary-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(61, 132, 184, 0.1);
}

#chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

#chat-send-btn:hover {
    background-color: var(--primary-light);
    transform: scale(1.05);
}

/* 輸入中（打字）動畫 */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 8px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--dark-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
    opacity: 0.6;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 手機適應 */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-window {
        width: calc(100vh - 40px);
        max-width: 320px;
        height: 450px;
        bottom: 70px;
    }
}

