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

:root {
    --primary-color: #2c7a7b;
    --secondary-color: #38b2ac;
    --accent-color: #f56565;
    --text-dark: #2d3748;
    --text-light: #718096;
    --background-light: #f7fafc;
    --white: #ffffff;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    text-align: center;
    margin-bottom: 1rem;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
}

.header-title:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.header-title i {
    font-size: 1.6rem;
    color: #ffd700;
}

.header-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Navigation Styles */
.nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    align-items: center;
    gap: 0.4rem;
    margin: 0 auto;
}

.mobile-menu-toggle:hover {
    background: var(--white);
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.35rem 0.8rem;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Trip Overview - Compact Design */
.trip-overview {
    margin-bottom: 2rem;
}

.overview-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-light);
    border: 1px solid #e2e8f0;
}

.overview-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
}

.overview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.overview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.overview-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.overview-item i {
    font-size: 1rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.overview-item .label {
    display: none;
}

.overview-item .value {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    opacity: 1;
    transition: all 0.5s ease;
}

.timeline-item.hidden {
    opacity: 0;
    transform: translateY(20px);
    display: none;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-light);
}

.day-number {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.timeline-content {
    width: calc(50% - 30px);
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

/* Day Card Styles */
.day-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-left: 5px solid var(--secondary-color);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.day-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.25rem;
    text-align: center;
}

.day-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.date {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.day-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-image img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.day-card:hover .day-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 1rem;
    font-weight: 500;
}

.day-activities {
    padding: 1.5rem;
}

.day-activities h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.6rem;
    background: var(--background-light);
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.activity-list li:hover {
    background: #e6f7f7;
    transform: translateX(5px);
}

.activity-list i {
    color: var(--secondary-color);
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.day-budget {
    background: var(--background-light);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.budget-label {
    font-weight: 600;
    color: var(--text-light);
}

.budget-amount {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Packing List */
.packing-list {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

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

.packing-category {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.packing-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.packing-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
}

.packing-category h3 i {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

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

.packing-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
    position: relative;
    padding-left: 2rem;
    transition: var(--transition);
}

.packing-category li:hover {
    color: var(--primary-color);
    padding-left: 2.5rem;
}

.packing-category li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.packing-category li:last-child {
    border-bottom: none;
}

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

/* Responsive Design */
/* Desktop navigation improvements */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
    }
    
    .filter-btn {
        white-space: nowrap;
        min-width: auto;
    }
}

/* Larger timeline for bigger screens */
@media (min-width: 1200px) {
    .timeline {
        max-width: 1000px;
    }
    
    .timeline-content {
        width: calc(50% - 25px);
    }
}

@media (min-width: 1440px) {
    .timeline {
        max-width: 1100px;
    }
    
    .timeline-content {
        width: calc(50% - 20px);
    }
}

/* Ultra compact for smaller laptops (1366px and below) */
@media (max-width: 1366px) and (min-width: 1024px) {
    .filter-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .nav-menu {
        gap: 0.35rem;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .header-title i {
        font-size: 1.3rem;
    }
    
    .header-content {
        margin-bottom: 0.8rem;
    }
}

/* Extra compact for 15" laptops (1367px-1440px) */
@media (max-width: 1440px) and (min-width: 1367px) {
    .filter-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .nav-menu {
        gap: 0.4rem;
    }
    
    .header {
        padding: 1.2rem 0;
    }
    
    .header-title {
        font-size: 1.6rem;
    }
    
    .header-title i {
        font-size: 1.4rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    .filter-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.78rem;
    }
    
    .nav-menu {
        gap: 0.45rem;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.8rem;
    }
    
    .header-title i {
        font-size: 1.6rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
        width: 50px;
        height: 50px;
        transform: none;
    }
    
    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 90px !important;
        margin-right: 0 !important;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .overview-grid {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .overview-item {
        padding: 0.75rem 1rem;
        justify-content: flex-start;
        white-space: normal;
        flex-shrink: 1;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .overview-item .label {
        display: inline;
        font-weight: 500;
        color: var(--text-light);
        margin-right: 0.5rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .overview-item .value {
        font-size: 0.85rem;
        flex: 1;
        word-break: break-word;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 122, 123, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        margin-top: 0.75rem;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        z-index: 1000;
        flex-direction: column;
        gap: 0.5rem;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .packing-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .day-activities {
        padding: 1.5rem;
    }
    
    .overview-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-content {
        margin-bottom: 1rem;
    }
    
    .mobile-menu-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        margin-top: 0.5rem;
        padding: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .day-image {
        height: 200px;
    }
    
    .activity-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .day-budget {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .search-container {
        margin: 0.5rem 0;
    }
    
    #search-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .overview-grid {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .overview-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .overview-item {
        padding: 0.6rem 0.8rem;
        border-radius: 15px;
        white-space: normal;
        width: 100%;
    }
    
    .overview-item i {
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .overview-item .value {
        font-size: 0.8rem;
        word-break: break-word;
        hyphens: auto;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* Scroll animations */
.timeline-item.animate {
    animation: slideInUp 0.6s ease-out;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Print styles */
@media print {
    .header, .nav, .filter-btn {
        display: none;
    }
    
    .timeline-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .day-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}