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

body {
    font-family: 'Cardo', 'Georgia', 'Times New Roman', serif;
    background-color: #f5f0e8;
    color: #1a1a1a;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f0e8;
}

/* Day Navigation */
.day-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: #faf8f4;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-arrow,
.nav-arrow-double {
    background: #1a1a1a;
    color: #f5f0e8;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-arrow-double {
    font-size: 18px;
    font-weight: bold;
}

.nav-arrow:hover,
.nav-arrow-double:hover {
    background: #3a3a3a;
}

.nav-arrow:disabled,
.nav-arrow-double:disabled {
    background: #d0c8b8;
    cursor: not-allowed;
}

.day-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 600px;
    padding: 4px 0;
}

.ellipsis {
    color: #5a5a5a;
    font-size: 18px;
    font-weight: bold;
    padding: 0 8px;
    user-select: none;
}

.day-button {
    padding: 8px 16px;
    background: #e8e0d5;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'Cardo', 'Georgia', serif;
}

.day-button:hover {
    background: #d8d0c5;
}

.day-button.active {
    background: #1a1a1a;
    color: #f5f0e8;
    border-color: #1a1a1a;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 20px;
}

/* Section Styling */
section {
    background: #faf8f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-family: 'Cardo', 'Georgia', serif;
}

section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-family: 'Cardo', 'Georgia', serif;
}

section p {
    font-size: 14px;
    color: #3a3a3a;
    font-family: 'Cardo', 'Georgia', serif;
}

/* Grid Positioning - Desktop */
.route-section {
    grid-column: 1 / 11;
    grid-row: 1;
}

.mood-section {
    grid-column: 11 / 13;
    grid-row: 1;
}

.map-section {
    grid-column: 1 / 6;
    grid-row: 2;
}

.topo-section {
    grid-column: 6 / 11;
    grid-row: 2;
}

.stats-section {
    grid-column: 11 / 13;
    grid-row: 2;
}

.highlight-section {
    grid-column: 1 / 7;
    grid-row: 3;
}

.food-section {
    grid-column: 7 / 13;
    grid-row: 3;
}

/* Image Containers */
.image-container {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    min-height: 150px;
    background: #e8e0d5;
    color: #5a5a5a;
    font-size: 16px;
    font-family: 'Cardo', 'Georgia', serif;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d0c8b8;
    border-radius: 6px;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: scale-down;
}

.mood-section .image-container img {
    min-height: 200px;
    max-height: 400px;
}

/* Map section - landscape aspect ratio (16:9) */
.map-section .image-container {
    aspect-ratio: 16 / 9;
}

.map-section .image-container img {
    width: 100%;
    height: 100%;
}

/* Topo section - landscape aspect ratio (16:9) */
.topo-section .image-container {
    aspect-ratio: 16 / 9;
}

.topo-section .image-container img {
    width: 100%;
    height: 100%;
}

.highlight-section .image-container img,
.food-section .image-container img {
    max-height: 300px;
}

/* Stats Styling */
.stats-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-content p {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.stats-content p:last-child {
    border-bottom: none;
}

.stats-content strong {
    color: #1a1a1a;
}

.stats-content span {
    color: #3a3a3a;
    font-weight: 500;
}

/* Tablet Layout (768px - 1024px) */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .route-section {
        grid-column: 1 / 4;
        grid-row: 1;
    }

    .mood-section {
        grid-column: 4 / 5;
        grid-row: 1;
    }

    .map-section {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .topo-section {
        grid-column: 3 / 5;
        grid-row: 2;
    }

    .stats-section {
        grid-column: 1 / 5;
        grid-row: 3;
    }

    .highlight-section {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .food-section {
        grid-column: 3 / 5;
        grid-row: 4;
    }
}

/* Mobile Layout (Portrait) */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .day-navigation {
        padding: 10px;
        margin-bottom: 20px;
    }

    .day-selector {
        gap: 6px;
    }

    .day-button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Stack all sections in single column */
    .route-section,
    .mood-section,
    .map-section,
    .topo-section,
    .stats-section,
    .highlight-section,
    .food-section {
        grid-column: 1;
        grid-row: auto;
    }
    
    /* Reorder sections on mobile */
    .route-section {
        order: 1;
    }
    
    .map-section {
        order: 2;
    }
    
    .topo-section {
        order: 3;
    }
    
    .stats-section {
        order: 4;
    }
    
    .mood-section {
        order: 5;
    }
    
    .highlight-section {
        order: 6;
    }
    
    .food-section {
        order: 7;
    }

    section {
        padding: 15px;
    }

    section h2 {
        font-size: 16px;
    }

    section p {
        font-size: 13px;
    }

    .stats-content {
        gap: 6px;
    }

    .stats-content p {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .day-button {
        padding: 5px 10px;
        font-size: 12px;
    }

    .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
