/* ---
Club 42 Corporate Identity System -- V1.0
Date: 2025-09-21
Author: Gemini 2.5 Pro (CTO)
--- */

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
    --deep-space-blue: #1B2951;
    --nebula-purple: #6B46C1;
    --electric-orange: #F97316;
    --starlight-white: #F8FAFC;
    --cosmic-gray: #334155;
    --neon-cyan: #06B6D4;
    --background-gradient: linear-gradient(135deg, var(--deep-space-blue) 0%, #11182c 100%);
    --font-primary: 'Poppins', 'Inter', '思源黑體', sans-serif;
    --font-secondary: 'Inter', 'Source Sans Pro', '思源黑體', sans-serif;
}

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

body {
    font-family: var(--font-secondary);
    background: var(--deep-space-blue);
    color: var(--starlight-white);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--starlight-white);
}

h3 {
    font-size: 2.4em;
    color: var(--starlight-white);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--nebula-purple), var(--electric-orange));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(107, 70, 193, 0.4);
}


/* 2. Navbar
-------------------------------------------------- */
.navbar {
    background: rgba(27, 41, 81, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(107, 70, 193, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--starlight-white);
    letter-spacing: 1px;
    text-decoration: none;
}

.logo::after {
    content: ".";
    color: var(--electric-orange);
}

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

.nav-links a {
    color: var(--starlight-white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--electric-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-orange);
    transition: width 0.3s ease;
}

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

.dropdown {
    position: relative;
    padding-bottom: 10px; /* 增加底部內邊距來延伸可懸停區域 */
    margin-bottom: -10px; /* 使用負外邊距來抵銷增加的高度，維持導覽列高度不變 */
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--cosmic-gray);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    min-width: 250px; /* 增加寬度以容納更長的文本 */
    width: max-content; /* 讓寬度根據內容自適應 */
    max-width: 400px; /* 設置最大寬度防止過長 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(107, 70, 193, 0.3);
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    margin-left: 0;
    width: 100%;
    white-space: normal; /* 允許文字換行 */
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--nebula-purple);
}


/* 2.1 Hamburger Menu
-------------------------------------------------- */
.menu-toggle {
    display: none; /* Hide by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--starlight-white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}


/* 3. Header & Hero Section
-------------------------------------------------- */
.hero-section {
    text-align: center;
    padding: 100px 40px;
    background: var(--background-gradient);
    border-bottom: 1px solid rgba(107, 70, 193, 0.4);
}

.hero-section h1 {
    font-size: 4.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--starlight-white), #c0c0c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .subtitle {
    font-size: 1.5em;
    color: rgba(248, 250, 252, 0.8);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    text-align: center;
    padding: 80px 40px;
    margin-bottom: 40px;
    background: var(--background-gradient);
    border-radius: 20px;
    border: 1px solid rgba(107, 70, 193, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    
    /* Updated: Background Image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* For overlay positioning */
    z-index: 1; /* Ensure content is above overlay */
    overflow: hidden; /* Ensure pseudo-element doesn't overflow */
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
    border-radius: 20px; /* Match header's border-radius */
    z-index: -1; /* Place below content */
}

.header h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--starlight-white), #c0c0c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative; /* Ensure text is above overlay */
    z-index: 2; /* Ensure text is above overlay */
}

.header .subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 1.5rem auto 2rem;
    color: var(--starlight-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.header .subtitle p {
    margin-bottom: 0.5rem;
}

.header-brand {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, var(--nebula-purple), var(--electric-orange));
    color: var(--starlight-white);
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative; /* Ensure text is above overlay */
    z-index: 2; /* Ensure text is above overlay */
}


.header .tour-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1.2rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--starlight-white);
    letter-spacing: 0.05em;
}

.header .tour-details span {
    padding: 0.5rem 0;
    position: relative;
}

.header .tour-details span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--electric-orange);
    opacity: 0.5;
}


/* 4. Section Styles (Generic)
-------------------------------------------------- */
.story-line, .optimization-highlights, .about-section, .team-section, .story-section {
    background: rgba(27, 41, 81, 0.6);
    padding: 40px 35px;
    border-radius: 20px;
    margin-bottom: 35px;
    border: 1px solid rgba(107, 70, 193, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.story-section p {
    font-size: 1.15em;
    color: rgba(248, 250, 252, 0.9);
    max-width: 700px;
    margin: 0 auto 32px auto;
    text-align: justify;
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-indent: 2em;
}

/* 5. Journey Stats
-------------------------------------------------- */
.journey-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    max-width: 100%;
}

.stat-item {
    background: var(--cosmic-gray);
    padding: 12px 10px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 2px solid var(--nebula-purple);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--electric-orange);
    margin-bottom: 2px;
    line-height: 1;
}

.stat-label {
    font-size: 0.7em;
    color: rgba(248, 250, 252, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.1;
}

/* 6. Main Grid (Map & Destinations)
-------------------------------------------------- */
.main-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    align-items: stretch; /* 確保子元素高度一致 */
}

.map-container, .destinations-panel {
    background: rgba(27, 41, 81, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(107, 70, 193, 0.3);
}

.map-header, .panel-header {
    background: linear-gradient(135deg, var(--nebula-purple), var(--electric-orange));
    padding: 15px;
    text-align: center;
}

.map-header h2, .panel-header h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    padding-bottom: 0;
}
.panel-header h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.map-header h2::after, .panel-header h3::after {
    display: none;
}

.route-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
    flex-wrap: nowrap; /* 不換行 */
    gap: 8px; /* 項目之間間距 */
    padding: 0 5px;
}
.route-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0,0,0,0.1);
}
.route-stat .number {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.1;
}
.route-stat span:last-child {
    font-size: 0.7em;
    opacity: 0.8;
}
#map {
    height: 700px;
    width: 100%;
}
.destinations-panel {
    height: 100%; /* 確保高度與 map-container 對齊 */
    min-height: 700px; /* 設置最小高度 */
    display: flex;
    flex-direction: column;
}
.destinations-list {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(700px - 120px); /* 調整最大高度 */
}

.destination-card {
    background: var(--cosmic-gray);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--nebula-purple);
    transition: all 0.3s ease;
    cursor: pointer;
}
.destination-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-left-color: var(--electric-orange);
}

.destination-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.destination-icon {
    font-size: 2em;
    margin-right: 15px;
}
.destination-info h4 {
    color: var(--starlight-white);
}
.destination-info .english-name {
    color: rgba(248, 250, 252, 0.6);
}
.destination-days {
    background: linear-gradient(135deg, var(--nebula-purple), var(--electric-orange));
    color: var(--starlight-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: auto;
}
.day-theme {
    background: rgba(107, 70, 193, 0.1);
    border-left: 3px solid var(--nebula-purple);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px; /* Adjusted for spacing */
    line-height: 1.6;
}
.day-theme strong {
    color: var(--nebula-purple);
    font-size: 1.1em; /* Slightly larger for emphasis */
}
.itinerary-summary {
    background: rgba(249, 115, 22, 0.08); /* Lighter orange background */
    border-left: 3px solid var(--electric-orange);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px; /* Spacing below summary */
    font-size: 0.95em; /* Slightly smaller text */
    color: rgba(248, 250, 252, 0.85); /* Lighter text color */
    line-height: 1.7;
}
.itinerary-summary strong {
    color: var(--electric-orange);
    font-size: 1.05em;
}
.cultural-experiences {
    margin-top: 20px; /* Added spacing from summary */
}
.cultural-experiences h5 {
    color: var(--neon-cyan);
    font-size: 1.1em;
    margin-bottom: 10px; /* Spacing below heading */
}
.culture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Increased gap between tags */
}
.culture-tag {
    background: rgba(6, 182, 212, 0.15); /* More vibrant background */
    color: var(--neon-cyan); /* Neon cyan for tag text */
    padding: 6px 14px; /* More padding */
    border-radius: 20px; /* More rounded */
    font-size: 0.8em;
    border: 1px solid var(--neon-cyan); /* Border matching text color */
    transition: all 0.2s ease;
}
.culture-tag:hover {
    background: var(--neon-cyan);
    color: var(--deep-space-blue);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}
.elevation-info {
    display: flex; justify-content: space-between; font-size: 0.85em; color: rgba(248, 250, 252, 0.7); margin-top: 20px; /* Spacing from tags */
}

/* 7. Storyline & Highlights
-------------------------------------------------- */
.story-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}
.story-step {
    background: var(--cosmic-gray);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid var(--nebula-purple);
}
.story-step:hover {
    background: var(--nebula-purple);
    color: var(--starlight-white);
    transform: translateY(-3px);
}
.story-arrow {
    color: var(--electric-orange);
    font-size: 1.5em;
}
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.highlight-card {
    background: var(--cosmic-gray);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid var(--electric-orange);
}
.highlight-card h4 {
    color: var(--electric-orange);
}
.expense-card {
    border-left-color: var(--nebula-purple);
    box-shadow: 0 8px 32px rgba(107, 70, 193, 0.1);
}
.expense-card h4 {
    color: var(--nebula-purple);
}
.highlight-card li {
    padding: 5px 0;
    color: rgba(248, 250, 252, 0.8);
}
.highlight-card li:before {
    /* Removed default rocket emoji to allow individual control */
    content: ""; /* Explicitly set to empty to remove any default bullet or emoji */
    margin-right: 0; /* Remove default margin if any */
}

/* 8.1. Highlights Background Container with Full Image Display
-------------------------------------------------- */
.highlights-background-container {
    position: relative;
    height: 750px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

.highlights-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/india19_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 1s ease;
    filter: brightness(1.2) saturate(1.8) contrast(1.1);
}

.highlights-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 41, 81, 0.2) 0%,
        rgba(107, 70, 193, 0.1) 30%,
        rgba(249, 115, 22, 0.05) 70%,
        rgba(6, 182, 212, 0.1) 100%
    );
    pointer-events: none;
    transition: all 0.8s ease;
}

.highlights-text-list {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 40%;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 10;
}

.highlights-text-list li {
    display: inline-block; /* Make li elements adjust width to content */
    width: auto; /* Remove fixed width */
    max-width: 60%; /* Ensure it doesn't span full width on larger screens */
    padding: 8px 15px;
    margin-bottom: 6px;
    background: rgba(27, 41, 81, 0.6);
    border-radius: 8px;
    border-left: 3px solid var(--electric-orange);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: rgba(248, 250, 252, 0.95);
    font-size: 0.9em;
    backdrop-filter: blur(8px);
    opacity: 0.9;
}

.highlights-text-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(249, 115, 22, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.highlights-text-list li:hover::before {
    left: 100%;
}

/* 當滑鼠懸停在某個項目時，其他項目變透明 */
.highlights-text-list:hover li:not(:hover) {
    opacity: 0.15;
    transform: scale(0.98);
    filter: blur(1px);
}

.highlights-text-list li:hover {
    background: rgba(249, 115, 22, 0.9);
    border-left-color: var(--starlight-white);
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(249, 115, 22, 0.4);
    color: var(--starlight-white);
    opacity: 1;
    backdrop-filter: blur(15px);
    font-weight: 600;
}

.highlights-text-list li b {
    color: var(--electric-orange);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
    transition: all 0.3s ease;
}

.highlights-text-list li:hover b {
    color: var(--starlight-white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* 背景圖片切換動畫效果 */
.highlights-background-image.changing {
    animation: backgroundChangeEffect 1s ease-in-out;
}

@keyframes backgroundChangeEffect {
    0% {
        filter: brightness(1.2) saturate(1.8) contrast(1.1) hue-rotate(0deg);
        transform: scale(1);
    }
    25% {
        filter: brightness(1.3) saturate(2.0) contrast(1.2) hue-rotate(5deg);
        transform: scale(1.02);
    }
    50% {
        filter: brightness(1.4) saturate(2.2) contrast(1.3) hue-rotate(10deg);
        transform: scale(1.05);
    }
    75% {
        filter: brightness(1.3) saturate(2.0) contrast(1.2) hue-rotate(5deg);
        transform: scale(1.02);
    }
    100% {
        filter: brightness(1.2) saturate(1.8) contrast(1.1) hue-rotate(0deg);
        transform: scale(1);
    }
}


/* 8. About & Team Sections
-------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-text h4 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--electric-orange);
}
.about-text p {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: rgba(248, 250, 252, 0.8);
}
.about-visual img {
    width: 100%;
    border-radius: 15px;
    opacity: 0.8;
}

.about-content-centered {
    max-width: 800px;
    margin: 0 auto;
}

.about-content-centered .about-text h4 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--electric-orange);
}

.about-content-centered .about-text p {
    font-size: 1.15em;
    color: rgba(248, 250, 252, 0.9);
    text-align: justify;
    line-height: 1.8;
    letter-spacing: 0.3px;
    text-indent: 2em;
    margin-bottom: 24px;
}

.about-text .highlight-text {
    margin-top: 24px !important;
    margin-bottom: 24px !important;
}

.sub-paragraph-small {
    font-size: 0.9em;
    color: rgba(248, 250, 252, 0.7) !important;
}

.orange-text {
    color: var(--electric-orange) !important;
}

.insight-block {
    background: rgba(107, 70, 193, 0.1);
    border-left: 4px solid var(--nebula-purple);
    padding: 30px 25px;
    margin: 35px 0;
    border-radius: 12px;
    position: relative;
}

.insight-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nebula-purple), transparent);
}

.highlight-text {
    font-size: 1.3em !important;
    font-weight: 600 !important;
    color: var(--electric-orange) !important;
    text-align: center !important;
    text-indent: 0 !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.5px;
}

.insight-block p:not(.highlight-text) {
    text-indent: 0 !important;
    margin-bottom: 18px;
    padding-left: 15px;
}

.mission-statement {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(107, 70, 193, 0.1));
    border: 2px solid rgba(249, 115, 22, 0.3);
    padding: 35px 30px;
    margin: 40px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.1);
}

.mission-statement p {
    font-size: 1.25em !important;
    font-weight: 600 !important;
    color: var(--starlight-white) !important;
    text-indent: 0 !important;
    line-height: 1.9 !important;
    margin-bottom: 0 !important;
}

.mission-statement h4 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--electric-orange);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.mission-statement .sub-paragraph {
    font-size: 1.25em !important;
    text-align: justify;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
    color: rgba(248, 250, 252, 0.9) !important;
    text-indent: 2em !important;
}

.mission-statement .sub-paragraph:last-child {
    margin-bottom: 0 !important;
}

.insight-block.why-block {
    background: rgba(249, 115, 22, 0.1);
    border-left-color: var(--electric-orange);
}

.insight-block.why-block::before {
    background: linear-gradient(90deg, transparent, var(--electric-orange), transparent);
}

/* Story Section Enhancements */
.story-origin {
    background: rgba(27, 41, 81, 0.4);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.story-origin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nebula-purple), var(--electric-orange), var(--nebula-purple));
}

.story-intro {
    font-size: 1.2em !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

.answer-42 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--electric-orange);
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.story-twist {
    font-style: italic !important;
    color: rgba(248, 250, 252, 0.7) !important;
    text-align: center !important;
    font-size: 1.1em !important;
}

.story-philosophy {
    margin: 40px 0;
    text-align: center;
}

.philosophy-quote {
    font-size: 2em !important;
    font-weight: 700 !important;
    color: var(--electric-orange) !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    text-indent: 0 !important;
    letter-spacing: 1px;
    position: relative;
}

.philosophy-quote::before,
.philosophy-quote::after {
    content: '"';
    font-size: 1.5em;
    color: var(--nebula-purple);
    opacity: 0.6;
}

.story-vision {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.1), rgba(249, 115, 22, 0.1));
    border-radius: 15px;
    padding: 30px;
    margin-top: 35px;
    text-align: center;
}

.invitation {
    font-size: 1.3em !important;
    color: var(--electric-orange) !important;
    margin-top: 25px !important;
    text-shadow: 0 0 5px rgba(249, 115, 22, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, var(--nebula-purple), var(--electric-orange));
    color: var(--starlight-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}
.team-member {
    text-align: center;
}
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--nebula-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.5);
}

.team-member h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.team-member p {
    color: var(--electric-orange);
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1.7;
    max-width: 90%;
    margin: 0 auto;
}

.team-member .member-description {
    color: rgba(248, 250, 252, 0.85);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}


/* 9. Footer
-------------------------------------------------- */
.footer {
    background: var(--deep-space-blue);
    color: var(--starlight-white-muted);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-consultation-link {
    display: inline-block;
    margin-bottom: 3rem; /* Two lines of space */
    background: linear-gradient(90deg, var(--electric-orange), var(--nebula-purple));
    color: var(--starlight-white);
    padding: 15px 30px; /* Adjusted padding */
    border-radius: 30px; /* Adjusted radius */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5em; /* Adjusted font size */
    box-shadow: 0 6px 25px rgba(249, 115, 22, 0.35); /* Adjusted shadow */
    transition: all 0.3s ease;
}

.footer-consultation-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    background: linear-gradient(90deg, var(--nebula-purple), var(--electric-orange));
}

.footer-info {
    margin-top: 20px;
    font-size: 0.8rem;
    line-height: 1.6;
    opacity: 0.7;
}

.footer-info p {
    margin: 5px 0;
}

/* 10. InfoWindow & Utilities
-------------------------------------------------- */
.infowindow-content {
    color: var(--cosmic-gray);
    font-family: var(--font-secondary);
}
.infowindow-header {
    display: flex; align-items: center; margin-bottom: 10px;
}
.infowindow-icon {
    font-size: 2em; margin-right: 10px;
}
.infowindow-content h3 {
    color: var(--nebula-purple); margin: 0;
    font-size: 1.2em;
}
.infowindow-content h3::after { display: none; }

.infowindow-content p {
    margin: 0; color: #666; font-style: italic;
}
.infowindow-days {
    background: linear-gradient(135deg, var(--nebula-purple), var(--electric-orange));
    color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.8em;
    display: inline-block; margin-top: 5px;
}
.infowindow-body {
    background: rgba(107, 70, 193, 0.1); padding: 10px; border-radius: 8px; margin-bottom: 10px;
}
.infowindow-tags { margin-bottom: 10px; }
.infowindow-footer {
    display: flex; justify-content: space-between; font-size: 0.85em; color: #666;
}
.loading {
    color: var(--electric-orange); font-size: 1.2em; text-align: center; padding: 50px;
}
.error {
    background: #ffebee; color: #c62828; padding: 20px; border-radius: 10px; margin: 20px 0;
    border-left: 4px solid #c62828;
}


/* 11. Responsive Design
-------------------------------------------------- */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 992px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .destinations-panel {
        min-height: auto; /* 移除固定最小高度 */
        max-height: 500px;
    }
    .header h1, .hero-section h1 {
        font-size: 3.2em;
    }
    h3 {
        font-size: 2em;
    }
    .journey-stats {
        grid-template-columns: repeat(3, 1fr); /* 平板：3 欄 */
    }
    .about-content {
        grid-template-columns: 1fr; /* 提早變為單欄 */
    }
    .highlights-background-container {
        height: 600px;
    }
    .highlights-text-list {
        bottom: 15px;
        left: 15px;
        right: auto;
        width: fit-content;
        max-width: 70%;
    }
    .highlights-text-list li {
        font-size: 0.85em;
        padding: 6px 12px;
        margin-bottom: 5px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 0;
        padding-right: 0;
    }

    body {
        font-size: 15px;
    }
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        background: rgba(27, 41, 81, 0.95);
        backdrop-filter: blur(10px);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        margin-left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        width: 100%;
        text-align: center;
    }
    .dropdown-menu a {
        padding: 10px 0;
    }
    .hero-section h1 {
        font-size: 2.8em;
    }
    .header {
        padding: 40px 20px; /* 減少垂直間距 */
    }
    .header h1 {
        font-size: 2.5em;
    }
    .header .subtitle {
        font-size: 1em;
    }
    .header .tour-details {
        flex-wrap: wrap; /* 允許項目換行 */
        gap: 10px 20px; /* 調整行列間距 */
        font-size: 1.1rem;
        margin-top: 1.5rem;
        padding: 0.5rem;
    }
    .header .tour-details span:not(:last-child)::after {
        display: none; /* 隱藏分隔線 */
    }
    .journey-stats {
        grid-template-columns: repeat(2, 1fr); /* 手機：2 欄 */
    }
    .about-content {
        gap: 20px;
    }
    .story-flow {
        flex-direction: column;
        gap: 10px; /* 縮小故事線間距 */
    }
    .story-arrow {
        transform: rotate(90deg);
    }

    .highlights-background-container {
        position: relative;
        height: 500px; /* 恢復足夠的高度以容納文字 */
        overflow: hidden;
        /* border-radius is removed for full-bleed effect */
    }

    .highlights-background-image {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: background-image 0.5s ease-in-out, transform 0.3s ease;
    }
    
    .highlights-text-list {
      position: absolute;
      bottom: 15px;
      left: 15px;
      width: auto;
      max-width: 85%;
      max-height: calc(100% - 30px); /* 確保列表不會超出容器 */
      overflow-y: auto; /* 當內容過多時啟用垂直滾動 */
      padding: 0;
      margin: 0;
      list-style: none;
    }
    
    .highlights-text-list::-webkit-scrollbar {
        width: 4px;
    }

    .highlights-text-list::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .highlights-text-list li {
      background-color: rgba(17, 24, 44, 0.7);
      backdrop-filter: blur(8px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--starlight-white);
      padding: 10px 16px;
      margin-bottom: 8px;
      border-radius: 8px;
      font-size: 0.9em;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      white-space: normal; /* 允許文字換行 */
    }

    .highlights-text-list li:hover,
    .highlights-text-list li.active {
      background-color: var(--indigo-500);
      transform: translateX(5px);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .team-grid {
      grid-template-columns: 1fr;
    }
}

.nav-links a.consultation-link {
    /* Reset to normal link style */
    background: none; /* Remove background */
    color: var(--starlight-white); /* Match other nav links */
    padding: 0; /* Remove padding */
    border-radius: 0; /* Remove border-radius */
    font-weight: 500; /* Match other nav links */
    margin-left: 30px; /* Match other nav links */
    box-shadow: none; /* Remove shadow */
    transition: color 0.3s ease; /* Keep color transition */
}

.nav-links a.consultation-link:hover {
    transform: none; /* Remove transform on hover */
    box-shadow: none; /* Remove shadow on hover */
    color: var(--electric-orange); /* Match other nav links hover */
}

.nav-links a.consultation-link::after {
    content: ''; /* Ensure underline is present on hover, matching other nav links */
    display: block; /* Make sure it's block for the width transition */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-orange);
    transition: width 0.3s ease;
}

.nav-links a.consultation-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links a.consultation-link {
        padding: 0;
        font-size: 1em; /* Match other nav links */
        margin-left: 0;
        padding-bottom: 5px; /* Add padding for underline */
    }

    .nav-links a.consultation-link::after {
        display: block;
    }
}
