/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ecf0f1;
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

/* Container principale */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 20px 0 20px; /* Remove bottom padding to prevent extra scrolling */
}

/* Header */
.header {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Removed h1 title styling since title was removed */

/* Header info grid */
.header-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.header-info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 3px solid #3498db;
}

.header-info-item h4 {
    color: #2c3e50;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 8px;
}

.header-info-item p {
    color: #5a6c7d;
    font-size: 0.8em;
    margin: 4px 0;
    line-height: 1.4;
}

/* Clock styling */
.clock-info {
    border-left-color: #3498db;
}

.clock-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2c3e50;
}

/* Weather styling */
.weather-info {
    border-left-color: #27ae60;
}

.weather-display {
    font-size: 0.85em;
    color: #2c3e50;
}

.weather-temp {
    font-size: 1.1em;
    font-weight: bold;
    color: #e67e22;
}

/* Emergency styling */
.emergency-info-header {
    border-left-color: #e74c3c;
}

.emergency-info-header h4 {
    color: #e74c3c;
}

/* Hotel info styling in header */
.hotel-info-header {
    border-left-color: #9b59b6;
}

.hotel-info-header h4 {
    color: #9b59b6;
}

.hotel-info-header .map-link {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    font-size: 0.7em;
}

/* Content layout - side by side */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 0;
}

.day-header-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: calc(100vh - 280px); /* viewport height minus header and day-selector approx heights */
}

.city-map-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: calc(100vh - 280px); /* viewport height minus header and day-selector approx heights */
}

.city-map-section .city-map {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.city-map-section .map-title {
    margin: 0;
    border-radius: 12px 12px 0 0;
}

/* Budget summary */
.budget-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.budget-item {
    background: #ffffff;
    color: #2c3e50;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f2f6;
}

.budget-item strong {
    color: #7f8c8d;
    font-size: 0.85em;
    font-weight: 600;
}

.budget-item.total {
    background: #3498db;
    color: white;
    grid-column: 1 / -1;
    font-weight: 600;
}

.budget-item.total strong {
    color: rgba(255, 255, 255, 0.9);
}

/* Time display */
.current-time {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 0.9em;
}

/* Day selector */
.day-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.day-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    color: #7f8c8d;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.85em;
    text-decoration: none;
}

.day-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.day-btn:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.day-btn.active:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: white;
}

/* Day content */
.day-content {
    display: none;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    overflow-y: auto;
}

.day-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.day-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.day-header h2 {
    font-weight: 600;
    font-size: 1.4em;
}

.day-header p {
    margin-top: 5px;
    opacity: 0.9;
    font-size: 0.95em;
}

/* Route items */
.route-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.route-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left-color: #2980b9;
}

.route-item.completed {
    background: #f8f9fa;
    border-left-color: #27ae60;
    opacity: 0.75;
}

.route-item.completed::after {
    content: "✓";
    position: absolute;
    right: 20px;
    top: 20px;
    background: #27ae60;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
}

/* Time badges */
.time {
    background: #2c3e50;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

/* Transport info */
.transport-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Unified transport badges */
.transport-mode {
    background: #e9ecef;
    color: #495057;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.cost {
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
}

.duration {
    background: #f1f3f4;
    color: #5f6368;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 500;
}

/* Map links */
.map-link {
    background: #3498db;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8em;
    margin: 8px 8px 8px 0;
    display: inline-block;
    transition: all 0.2s ease;
    font-weight: 500;
}

.map-link:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Destinations */
.destination {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.05em;
}

/* Simplified notes system */
.notes {
    background: #f8f9fa;
    border-left: 3px solid #f39c12;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9em;
    color: #2c3e50;
}

.notes.confirmed,
.notes.booked,
.notes.expensive {
    background: #f8f9fa;
    border-left: 3px solid #27ae60;
    color: #2c3e50;
}

/* Special info boxes */
.emergency-info {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 3px solid #e53e3e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.emergency-info h3 {
    color: #e53e3e;
    margin-bottom: 10px;
    font-weight: 600;
}

.weather-widget {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

.location-info {
    background: #f0f9ff;
    border-left: 3px solid #3498db;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    font-size: 0.9em;
    color: #2c3e50;
}

.ticket-info {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.daily-hotel-info {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.daily-hotel-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.daily-hotel-info p {
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 0.9em;
}

.daily-hotel-info .map-link {
    margin-top: 10px;
}

/* Map iframe styling */
.city-map {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.city-map iframe {
    width: 100%;
    height: calc(100vh - 340px); /* viewport height minus header, day-selector, and map title */
    border: none;
    display: block;
}

.map-title {
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    margin: 15px 0 0 0;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 15px;
    }
    
    /* Removed h1 mobile styling since title was removed */
    
    .header-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .header-info-item {
        padding: 12px;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .day-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .transport-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .budget-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .route-item {
        padding: 15px;
    }
    
    .day-header {
        padding: 15px;
    }
    
    .day-content {
        padding: 20px;
        height: auto;
        overflow-y: visible;
    }
    
    .day-header-section {
        height: auto;
    }
    
    .city-map-section {
        height: auto;
    }
    
    .city-map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .header-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .header-info-item {
        padding: 10px;
    }
    
    .day-btn {
        font-size: 0.75em;
        padding: 6px 10px;
    }
}