/* Reiseblog Map Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #fff;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header h1 {
    font-size: 22px;
    display: inline;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    display: inline;
    margin-left: 15px;
}

.map-section {
    display: flex;
    flex: 1;
    overflow: hidden;
}

#map {
    flex: 1;
    min-height: 400px;
}

.timeline {
    width: 350px;
    background: #2a2a2a;
    overflow-y: auto;
    padding: 20px;
}

.timeline h2 {
    font-size: 20px;
    margin-bottom: 15px;
}

.timeline-item {
    background: #3a3a3a;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.timeline-item:hover {
    background: #4a4a4a;
    transform: translateX(5px);
}

.timeline-item.active {
    background: #4a4a4a;
}

.timeline-time {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-location {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

.timeline-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.day-selector {
    background: #2a2a2a;
    padding: 15px 20px;
}

.day-selector h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.day-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.day-btn {
    padding: 8px 16px;
    background: #3a3a3a;
    border: none;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.day-btn:hover {
    background: #4a4a4a;
}

.day-btn.active {
    background: #4a4a4a;
}

.day-btn .count {
    opacity: 0.7;
    font-size: 12px;
    margin-left: 4px;
}

.stats {
    background: #2a2a2a;
    padding: 8px 20px;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #3a3a3a;
}

.stat {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
}

.stat-label {
    font-size: 11px;
    color: #888;
}

.numbered-marker {
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
}

.no-data {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    font-size: 18px;
    color: #888;
    font-style: italic;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    z-index: 2001;
    user-select: none;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.lightbox-info {
    margin-top: 15px;
    text-align: center;
    color: white;
}

.lightbox-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.lightbox-info p {
    font-size: 14px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .map-section {
        flex-direction: column;
    }
    
    .timeline {
        width: 100%;
        max-height: 30vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 36px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}