/* Global Styles */
:root {
    --primary-color: #ff7bac; /* Cherry blossom pink */
    --secondary-color: #4a90e2; /* Sky blue */
    --accent-color: #50b83c; /* Spring green */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-color);
}

section {
    padding: 2rem 0;
    display: none;
}

section.active-section {
    display: block;
}

/* Header Styles */
header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1557409518-691ebcd96038?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cherry-blossom-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.cherry-blossom {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation Styles */
#main-nav {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

#main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
}

#main-nav li {
    margin: 0;
}

#main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

/* Overview Section Styles */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.overview-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlights {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.highlights ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.highlights li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.highlights i {
    color: var(--accent-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Itinerary Section Styles */
.day-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.day-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.day-tab:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.day-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.day-content {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.day-focus {
    background-color: rgba(74, 144, 226, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    display: inline-block;
}

.day-focus i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background-color: rgba(255, 123, 172, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Budget Section Styles */
.budget-tabs {
    display: flex;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.budget-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.budget-tab:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.budget-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.budget-content {
    display: none;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

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

.budget-chart-container {
    height: 300px;
    margin-bottom: 2rem;
}

.budget-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.budget-card {
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.budget-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.budget-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.budget-note {
    font-size: 0.9rem;
    color: #666;
}

.budget-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
}

.budget-table th,
.budget-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.budget-table th {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--secondary-color);
}

.budget-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.budget-table .subtotal,
.budget-table .total {
    font-weight: 700;
}

.budget-table .total {
    color: var(--primary-color);
}

.daily-budget {
    background-color: rgba(74, 144, 226, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.adjustment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.adjustment-option {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.adjustment-option:hover {
    box-shadow: var(--shadow);
}

.adjustment-option h4 {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.recommended-adjustments {
    background-color: rgba(80, 184, 60, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.recommended-adjustments h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Flights Section Styles */
.flight-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.flight-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.flight-header {
    padding: 1.5rem;
    color: white;
}

.flight-card.outbound .flight-header {
    background-color: var(--secondary-color);
}

.flight-card.return .flight-header {
    background-color: var(--primary-color);
}

.flight-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.flight-details {
    padding: 1.5rem;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

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

.city-code {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.city-name {
    font-size: 0.9rem;
    color: #666;
}

.flight-arrow {
    flex: 1;
    text-align: center;
    position: relative;
}

.flight-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

.flight-arrow i {
    position: relative;
    background-color: white;
    padding: 0 0.5rem;
    color: #999;
    z-index: 2;
}

.flight-info p {
    margin-bottom: 0.5rem;
}

.connection-info {
    background-color: rgba(74, 144, 226, 0.05);
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.connection-info h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.flight-alternatives {
    margin-top: 3rem;
}

.alternative-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.alternative-option {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.alternative-option:hover {
    box-shadow: var(--shadow);
}

.alternative-option h4 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Tips Section Styles */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tip-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 123, 172, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tip-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tip-card ul {
    list-style-type: none;
}

.tip-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.tip-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.emergency-info {
    background-color: rgba(255, 123, 172, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.emergency-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.emergency-info ul {
    list-style-type: none;
}

.emergency-info li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.emergency-info li::before {
    content: '!';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    #main-nav ul {
        flex-direction: column;
    }
    
    #main-nav a {
        padding: 0.75rem 1rem;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    #main-nav a:hover,
    #main-nav a.active {
        border-bottom: none;
        border-left: 3px solid var(--primary-color);
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-dot {
        left: 6px;
        width: 18px;
        height: 18px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
}

/* Animation for Cherry Blossoms */
@media (prefers-reduced-motion: no-preference) {
    .cherry-blossom {
        width: 15px;
        height: 15px;
        animation-duration: 10s;
    }
    
    .cherry-blossom:nth-child(2n) {
        width: 10px;
        height: 10px;
        animation-duration: 12s;
    }
    
    .cherry-blossom:nth-child(3n) {
        width: 8px;
        height: 8px;
        animation-duration: 15s;
    }
    
    .cherry-blossom:nth-child(4n) {
        width: 12px;
        height: 12px;
        animation-duration: 18s;
    }
}

/* Additional styles for the image gallery and map */
.overview-image-gallery {
    margin-top: 2rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    text-align: center;
}

.day-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.day-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Map styles */
.map-container {
    height: 500px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#tripMap {
    height: 100%;
    width: 100%;
}

.map-custom-icon {
    background: none;
    border: none;
}

.map-legend {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.map-legend ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.map-legend li {
    display: flex;
    align-items: center;
}

.map-legend i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.location-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-info {
    padding: 1rem;
}

.location-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-info p {
    margin-bottom: 0.5rem;
}
