/* Cijin Slow Travel - Stylesheet */

/* --- 1. Variables & Global Styles --- */
:root {
    --primary: #0b2240;
    --primary-light: #15335c;
    --accent: #ff6f59;
    --accent-hover: #fa5a41;
    --accent-gold: #d4af37;
    --text-light: #f8f9fa;
    --text-dark: #1f242d;
    --text-muted: #74808c;
    --bg-dark: #071526;
    --bg-light: #ffffff;
    --bg-section-light: #f4f7fa;
    --card-glass: rgba(255, 255, 255, 0.05);
    --card-glass-light: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-light: rgba(11, 34, 64, 0.08);
    --shadow: 0 10px 30px rgba(7, 21, 38, 0.06);
    --shadow-hover: 0 15px 35px rgba(7, 21, 38, 0.12);
    --shadow-glow: 0 8px 25px rgba(255, 111, 89, 0.25);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', 'Noto Sans TC', sans-serif;
    --font-body: 'Inter', 'Noto Sans TC', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* offset sticky header */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-section-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

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

ul {
    list-style: none;
}

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

/* --- 2. Typography & Layout Utilities --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dark-section h2, 
.dark-section h3, 
.dark-section h4 {
    color: var(--text-light);
}

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

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

.section-tag {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    display: inline-block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 38px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.header-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.dark-section .section-desc {
    color: var(--text-light);
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 111, 89, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
    transform: translateY(-3px);
}

.btn-text {
    background: none;
    color: var(--accent);
    padding: 0;
    font-weight: 600;
    font-size: 15px;
}

.btn-text:hover {
    color: var(--accent-hover);
}

.btn-text i {
    transition: transform 0.3s ease;
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: rgba(255, 111, 89, 0.15);
    border: 1px solid rgba(255, 111, 89, 0.25);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* --- 3. Sticky Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 34, 64, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(11, 34, 64, 0.95);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 22px;
    font-family: var(--font-heading);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #ff8d7a);
    border-radius: 50%;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    line-height: 1.1;
}

.logo-text .en-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 14px;
    opacity: 0.8;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 111, 89, 0.2);
    color: var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* --- 4. Home Section (首頁) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 5s ease;
    z-index: 1;
}

.hero-section:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(7, 21, 38, 0.4), rgba(7, 21, 38, 0.85));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 24px;
    margin-top: 60px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.25;
}

.hero-title .highlight {
    background: linear-gradient(to right, var(--accent), #ff9a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Scroll Down Mouse */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-down .mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    display: block;
}

.scroll-down .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

/* --- 5. About Section (關於旗津) --- */
.about-section {
    background-color: var(--bg-section-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.about-card {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(11, 34, 64, 0.04);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 111, 89, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(255, 111, 89, 0.08);
    color: var(--accent);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.about-card:hover .card-icon {
    background-color: var(--accent);
    color: var(--text-light);
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- 6. Attractions Section (旗津必訪) --- */
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background-color: var(--card-glass);
    border: 1px solid var(--border-glass);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.filter-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.attraction-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.attraction-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 111, 89, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.attraction-card:hover .card-img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    background-color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.card-intro {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.card-tags .tag {
    font-size: 12px;
    padding: 3px 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--accent);
    font-weight: 500;
}

/* Hide animations */
.attraction-card.hide {
    display: none;
}

/* --- 7. Itineraries Section (一日遊路線) --- */
.route-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid rgba(11, 34, 64, 0.08);
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.route-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.route-tab-btn:hover {
    color: var(--primary);
}

.route-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.route-tab-btn .route-icon {
    font-size: 18px;
}

.route-content-wrapper {
    background-color: var(--bg-section-light);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 34, 64, 0.03);
}

.route-content {
    display: none;
}

.route-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px dashed rgba(11, 34, 64, 0.1);
    padding-bottom: 20px;
}

.meta-item {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--accent);
}

.route-summary-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-left: 36px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 15px;
    width: 2px;
    height: calc(100% - 30px);
    background-color: rgba(255, 111, 89, 0.25);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-num {
    position: absolute;
    top: 0;
    left: -36px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-light);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-num {
    background-color: var(--accent);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.timeline-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-info p {
    font-size: 15px;
    color: var(--text-muted);
}

/* --- 8. Food Map Section (美食地圖) --- */
.food-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.food-tab-btn {
    background-color: var(--card-glass);
    border: 1px solid var(--border-glass);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.food-tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.food-tab-btn.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.food-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.food-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--accent), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.food-card:hover::before {
    transform: scaleX(1);
}

.food-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 111, 89, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.food-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 3px 10px;
    background-color: rgba(255, 111, 89, 0.15);
    border: 1px solid rgba(255, 111, 89, 0.25);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
}

.food-card-info h3 {
    font-size: 19px;
    margin-bottom: 12px;
    padding-right: 80px;
    color: var(--text-light);
}

.food-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    flex-grow: 1;
}

.food-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-gold);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 15px;
}

.food-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.food-meta i {
    font-size: 12px;
}

.food-card.hide {
    display: none;
}

.food-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-food-map, .btn-food-locate {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    border: none;
}

.btn-food-map {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-food-map:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-food-locate {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
}

.btn-food-locate:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

/* --- 9. Transportation Section (交通方式) --- */
.transit-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 80px;
}

.transit-card {
    flex: 1;
    background-color: var(--bg-section-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 34, 64, 0.03);
    position: relative;
    transition: var(--transition);
}

.transit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 111, 89, 0.15);
}

.transit-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: rgba(11, 34, 64, 0.05);
}

.transit-icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
}

.transit-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.transit-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.transit-arrow {
    font-size: 24px;
    color: var(--accent);
    opacity: 0.5;
    animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Island transit */
.island-transit {
    margin-bottom: 80px;
}

.subsection-title {
    font-size: 26px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.subsection-title i {
    color: var(--accent);
}

.island-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.island-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-glass-light);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.island-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 111, 89, 0.2);
}

.island-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(255, 111, 89, 0.08);
    color: var(--accent);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.island-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.island-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Table Style */
.ferry-info-table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-section-light);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 34, 64, 0.03);
}

.ferry-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.ferry-table th {
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    font-size: 15px;
}

.ferry-table th:first-child {
    border-radius: 10px 0 0 0;
}

.ferry-table th:last-child {
    border-radius: 0 10px 0 0;
}

.ferry-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(11, 34, 64, 0.06);
    font-size: 14px;
    color: var(--text-dark);
}

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

.ferry-table tr:nth-child(even) td {
    background-color: rgba(11, 34, 64, 0.02);
}

.table-note {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}

/* --- 10. Map Section (地圖頁) --- */
.map-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    height: 560px;
    margin-top: 20px;
}

.map-panel {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-panel-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.map-panel-header h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-panel-header h3 i {
    color: var(--accent);
}

.map-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.map-tag:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light);
}

.map-tag.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
}

.poi-list {
    overflow-y: auto;
    flex-grow: 1;
}

.poi-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: var(--transition);
}

.poi-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.poi-item.active {
    background-color: rgba(255, 111, 89, 0.1);
    border-left: 4px solid var(--accent);
}

.poi-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.poi-icon.spot {
    background-color: rgba(255, 111, 89, 0.15);
    color: var(--accent);
}

.poi-icon.food {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
}

.poi-icon.transit {
    background-color: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.poi-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.poi-details p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.poi-item.hide {
    display: none;
}

.map-iframe-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.map-overlay-tip {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(7, 21, 38, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    padding: 12px 20px;
    border-radius: 12px;
    z-index: 10;
    pointer-events: none;
}

.map-overlay-tip p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-overlay-tip i {
    color: var(--accent);
}

/* --- 11. Footer --- */
.footer {
    background-color: #040e1b;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 380px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-icons a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-links h4, 
.footer-info h4 {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    color: var(--accent);
    font-size: 14px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 30px;
    font-size: 13px;
    opacity: 0.8;
}

/* --- 12. Glassmorphic Modal --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 14, 27, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(11, 34, 64, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 520px;
}

.modal-image {
    background-size: cover;
    background-position: center;
}

.modal-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-badge {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
    display: inline-block;
}

.modal-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-tags .tag {
    font-size: 12px;
    padding: 3px 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-light);
    opacity: 0.8;
}

.modal-desc-scroll {
    overflow-y: auto;
    padding-right: 10px;
    flex-grow: 1;
    margin-bottom: 24px;
}

.modal-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-meta-box {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
}

.modal-meta-box p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.modal-meta-box p:last-child {
    margin-bottom: 0;
}

.modal-meta-box p strong {
    color: var(--accent-gold);
    flex-shrink: 0;
}

.modal-meta-box p i {
    width: 14px;
}

.modal-action {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Scrollbar customization */
.modal-desc-scroll::-webkit-scrollbar {
    width: 4px;
}
.modal-desc-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}
.modal-desc-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* --- 13. Responsive Media Queries --- */

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .transit-flow {
        flex-direction: column;
        gap: 15px;
    }
    
    .transit-arrow {
        transform: rotate(90deg);
        animation: bounceDown 1.5s infinite;
        margin: 5px 0;
    }
    
    @keyframes bounceDown {
        0%, 100% { transform: rotate(90deg) translateX(0); }
        50% { transform: rotate(90deg) translateX(5px); }
    }
    
    .map-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .map-panel {
        height: 350px;
    }
    
    .map-iframe-container {
        height: 400px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        height: 90vh;
        max-height: 700px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* Navbar menu for mobile */
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary);
        flex-direction: column;
        padding: 40px 24px;
        gap: 20px;
        transition: left 0.4s ease;
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 18px;
        width: 100%;
        padding: 12px 24px;
    }
    
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-cta-group .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .route-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 10px;
    }
    
    .route-tab-btn {
        width: 100%;
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 12px 20px;
    }
    
    .route-tab-btn.active {
        border-left-color: var(--accent);
        background-color: rgba(255,111,89,0.05);
    }
    
    .route-content-wrapper {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.fade-in-delay-3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

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

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