/* tour-styles.css */
body { font-family: system-ui, sans-serif; line-height: 1.6; margin: 0; padding: 0; color: #333; background: #fff; }
.container { padding: 20px; max-width: 800px; margin: auto; }

.tour-hero-container { position: relative; width: 100%; height: 350px; margin-bottom: 40px; }
.tour-hero-img { width: 100%; height: 100%; background: #ddd; object-fit: cover; }
.tour-hero-badge { position: absolute; top: 20px; left: 20px; background: #e65100; color: #fff; padding: 8px 16px; border-radius: 4px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.tour-grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 768px) { .tour-grid { grid-template-columns: 2fr 1fr; } }

.tour-sidebar { background: #fafafa; padding: 25px; position: sticky; top: 90px; border-radius: 8px; border: 1px solid #eaeaea; }

.cta-btn { display: block; width: 100%; background: #164E36; color: white; text-align: center; padding: 15px; text-decoration: none; border-radius: 8px; font-weight: bold; margin: 20px 0; transition: background 0.2s; border: none; font-size: 1.1rem; }
.cta-btn:hover { background: #0E3323; cursor: pointer; }
.cta-btn:disabled { background: #ccc !important; cursor: not-allowed !important; }

.highlight-box { background: #f8f9fa; border-left: 4px solid #1a252f; padding: 15px 20px; margin: 25px 0; font-size: 0.95rem; }

/* Timeline für Routen */
.timeline { border-left: 2px solid #eaeaea; padding-left: 20px; margin-left: 10px; margin-top: 20px; }
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item::before { content: ''; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #164E36; }
.timeline-item h3 { margin: 0 0 5px 0; font-size: 1.1rem; color: #1a252f; }
.timeline-item p { margin: 0; color: #555; font-size: 0.95rem; }

/* Galerie & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.gallery-grid figure { margin: 0; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eaeaea; }
.gallery-grid figure a { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-grid figure a:hover img { transform: scale(1.05); }
.gallery-grid figcaption { font-size: 0.85em; color: #555; padding: 12px; margin: 0; text-align: center; border-top: 1px solid #eaeaea; }

/* Galerie & Lightbox (Refactored) */
#lightbox { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; }
#lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); object-fit: contain; user-select: none; }

/* Zusammengefasste Button-Logik */
.lightbox-btn { position: absolute; color: rgba(255, 255, 255, 0.6); cursor: pointer; user-select: none; transition: all 0.2s ease; z-index: 10000; line-height: 1; }
.lightbox-btn:hover { color: #fff; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3.5rem; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.1); }
.lb-prev { left: 30px; }
.lb-next { right: 30px; }
.lb-close { right: 30px; top: 30px; font-size: 3rem; }
.lb-close:hover { transform: scale(1.1); }

@media (max-width: 768px) { 
    .lb-prev { left: 10px; font-size: 2.5rem; } 
    .lb-next { right: 10px; font-size: 2.5rem; } 
    .lb-close { right: 20px; top: 20px; font-size: 2.5rem; } 
}
/* --- HIKE SPECS GRID (ICONS) --- */
.hike-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 25px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}
.hike-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.hike-spec-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #1a252f;
}
.hike-spec-text {
    display: flex;
    flex-direction: column;
}
.hike-spec-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    margin-bottom: 2px;
}
.hike-spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a252f;
    line-height: 1.3;
}
.hike-spec-sub {
    font-size: 0.8rem;
    color: #777;
    margin-top: 2px;
}

/* --- TOUR CARDS (Global) --- */
.tour-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.tour-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: #333; display: flex; flex-direction: column; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.tour-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.card-img-wrapper { position: relative; height: 220px; width: 100%; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s; }

.out-of-season-badge { display: none; position: absolute; top: 15px; right: 15px; background: rgba(0, 0, 0, 0.75); color: white; padding: 6px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(4px); z-index: 10; }
.tour-card.is-off-season .out-of-season-badge { display: block; }
.tour-card.is-off-season .card-img-wrapper img { filter: grayscale(40%); }

.tour-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-tags { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.diff-green { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.diff-blue { background: #e8f0fe; color: #1967d2; border: 1px solid #d2e3fc; }
.diff-yellow { background: #fef7e0; color: #b06000; border: 1px solid #fce8b2; }
.diff-red { background: #fce8e6; color: #c5221f; border: 1px solid #fad2cf; }
.diff-black { background: #202124; color: #ffffff; border: 1px solid #000000; }
.diff-custom { background: #f1f3f4; color: #5f6368; border: 1px solid #dadce0; }
.badge-duration { background: #fff3e0; color: #e65100; border: 1px solid #ffe0b2; }

.tour-card-content h3 { margin: 0 0 10px 0; font-size: 1.25rem; color: #1a252f; line-height: 1.3; }
.tour-card-content p { margin: 0 0 20px 0; color: #555; font-size: 0.95rem; flex-grow: 1; }
.card-footer { border-top: 1px solid #eaeaea; padding-top: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #164E36; font-size: 0.9rem; }
