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

body {
    font-family: 'Inter', sans-serif;
    background-color: #F9F8F6;
    color: #1A1D21;
    line-height: 1.6;
}

/* App Container */
.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 48px 0 32px;
    text-align: center;
    border-bottom: 1px solid #EAEAEA;
    margin-bottom: 32px;
}

.main-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1A1D21;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 18px;
    color: #5C5F62;
    margin-bottom: 32px;
}

.progress-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #EAEAEA;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF7A00, #FF9500);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    font-weight: 500;
    color: #5C5F62;
    white-space: nowrap;
}

/* Country Navigation */
.country-nav {
    margin-bottom: 48px;
}

.nav-container {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #EAEAEA;
    padding-bottom: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5C5F62;
    position: relative;
    transition: all 0.25s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    color: #1A1D21;
    border-bottom-color: #EAEAEA;
}

.nav-tab.active {
    color: #1A1D21;
    border-bottom-color: #FF7A00;
}

.country-flag {
    font-size: 20px;
}

.country-name {
    font-weight: 600;
}

.country-duration {
    font-size: 12px;
    color: #5C5F62;
    background: #EAEAEA;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Main Content */
.main-content {
    margin-bottom: 96px;
}

/* Timeline Section */
.timeline-section {
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.timeline-container {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 4px 12px rgba(26, 29, 33, 0.06);
    overflow-x: auto;
}

.timeline-scroll {
    display: flex;
    gap: 16px;
    min-width: max-content;
}

.timeline-week {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
}

.timeline-country {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.peru-bg { background-color: #008489; }
.bolivia-bg { background-color: #D93B95; }
.uruguay-bg { background-color: #B86B11; }
.fiji-bg { background-color: #1070CA; }
.vanuatu-bg { background-color: #2B9264; }

.timeline-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.timeline-day {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #EAEAEA;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    position: relative;
}

.timeline-day:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-day.completed {
    background-color: #22A55B;
    border-color: #22A55B;
    color: white;
}

.timeline-day.current {
    border: 2px solid #FF7A00;
    background-color: #FFF2E6;
}

/* Country Sections */
.country-section {
    display: none;
}

.country-section.active {
    display: block;
}

.country-header {
    background: linear-gradient(135deg, #FFF2E6, #FFFFFF);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0px 4px 12px rgba(26, 29, 33, 0.06);
}

.country-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.country-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.country-description {
    font-size: 16px;
    color: #5C5F62;
    line-height: 1.6;
    max-width: 600px;
}

.country-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #EAEAEA;
}

.stat-label {
    font-size: 14px;
    color: #5C5F62;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1A1D21;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

/* Itinerary Section */
.itinerary-section {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0px 4px 12px rgba(26, 29, 33, 0.06);
    height: fit-content;
}

.subsection-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 24px;
}

.day-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.day-card {
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 24px;
    background: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 24px rgba(26, 29, 33, 0.1);
}

.day-card.completed {
    opacity: 0.7;
    background: #F9F9F9;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.day-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1D21;
    margin-bottom: 8px;
}

.day-date {
    font-size: 14px;
    color: #5C5F62;
}

.day-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #EAEAEA;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.day-checkbox:hover {
    border-color: #FF7A00;
}

.day-checkbox.checked {
    background: #22A55B;
    border-color: #22A55B;
}

.day-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.day-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.activity-period {
    padding: 16px;
    border-radius: 8px;
    background: #F9F8F6;
    border-left: 4px solid #FF7A00;
}

.activity-title {
    font-size: 12px;
    font-weight: 600;
    color: #5C5F62;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.activity-description {
    font-size: 14px;
    color: #1A1D21;
    line-height: 1.4;
}

.activity-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.activity-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-nature { background: #E6F7F5; color: #008489; }
.tag-culture { background: #F0E6F7; color: #7B3FF2; }
.tag-food { background: #F7F0E6; color: #B86B11; }
.tag-adventure { background: #E6F0F7; color: #1070CA; }
.tag-relaxation { background: #E6F9F0; color: #2B9264; }

/* Information Panel */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0px 4px 12px rgba(26, 29, 33, 0.06);
}

.info-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.activity-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.activity-category h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1A1D21;
}

.activity-category ul {
    list-style: none;
}

.activity-category li {
    padding: 4px 0;
    font-size: 13px;
    color: #5C5F62;
    position: relative;
    padding-left: 16px;
}

.activity-category li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #FF7A00;
    font-weight: bold;
}

.practical-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    font-size: 14px;
    padding: 12px;
    background: #F9F8F6;
    border-radius: 8px;
    border-left: 4px solid #FF7A00;
}

.packing-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.packing-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.packing-item:hover {
    background: #F9F8F6;
}

.packing-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #EAEAEA;
    border-radius: 4px;
    cursor: pointer;
}

.packing-item input[type="checkbox"]:checked {
    background: #22A55B;
    border-color: #22A55B;
}

.packing-item span {
    font-size: 14px;
    color: #1A1D21;
}

.packing-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: #5C5F62;
}

/* Budget Section */
.budget-section {
    padding: 48px 0;
    border-top: 1px solid #EAEAEA;
}

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

.budget-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0px 4px 12px rgba(26, 29, 33, 0.06);
    border: 1px solid #EAEAEA;
}

.budget-card.total {
    background: linear-gradient(135deg, #FF7A00, #FF9500);
    color: white;
}

.budget-card.total .budget-title,
.budget-card.total .budget-amount,
.budget-card.total .budget-subtitle {
    color: white;
}

.budget-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1A1D21;
}

.budget-amount {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1A1D21;
}

.budget-subtitle {
    font-size: 14px;
    color: #5C5F62;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .country-info {
        flex-direction: column;
        gap: 24px;
    }
    
    .country-stats {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .app {
        padding: 0 16px;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .nav-container {
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .nav-tab {
        flex-shrink: 0;
    }
    
    .timeline-container {
        padding: 16px;
    }
    
    .timeline-week {
        min-width: 200px;
    }
    
    .activity-categories {
        grid-template-columns: 1fr;
    }
    
    .day-activities {
        grid-template-columns: 1fr;
    }
    
    .budget-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .country-title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .day-card {
        padding: 16px;
    }
    
    .info-card {
        padding: 16px;
    }
}