/* Allgemeine Styling-Verbesserungen */
.tour-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.tour-description {
    max-width: 600px;
    color: rgba(255,255,255,0.9);
}

.tour-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
}

/* Zurück-Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f0f5ff;
    margin-bottom: 1rem;
}

.btn-back:hover {
    background: #e0e7ff;
    transform: translateX(-3px);
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* Leg Cards - Updated with darker background for better spacing visibility */
.leg-card {
    position: relative;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.85); /* Light gray background instead of pure white */
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px); /* Subtle blur effect for depth */
}

.leg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.leg-number {
    position: absolute;
    left: -15px;
    top: -15px;
    width: 40px;
    height: 40px;
    background: #1e3c72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.leg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.leg-distance {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.leg-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.detail-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
}

.detail-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 500;
    color: #333;
}

.scenery-rating .fas {
    color: #f39c12;
}

.scenery-rating .fa-star-o {
    color: #ddd;
}

/* Leg Actions */
.leg-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.leg-actions .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modern Button Styles - Updated to match dashboard styling */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-outline-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    margin: 0.25rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #1a3a5f 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    color: white;
}

.btn-outline-info {
    background: linear-gradient(135deg, #5bc0de 0%, #31b0d5 100%);
    color: white;
    border: none;
}

.btn-primary:hover, .btn-secondary:hover, .btn-success:hover, .btn-danger:hover, .btn-warning:hover, .btn-info:hover, .btn-outline-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
}

.btn-outline-info:hover {
    background: linear-gradient(135deg, #31b0d5 0%, #5bc0de 100%);
    color: white;
}

.btn-primary i, .btn-secondary i, .btn-success i, .btn-danger i, .btn-warning i, .btn-info i, .btn-outline-info i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i, .btn-secondary:hover i, .btn-success:hover i, .btn-danger:hover i, .btn-warning:hover i, .btn-info:hover i, .btn-outline-info:hover i {
    transform: translateX(3px);
}

/* Kartencontainer - NUR EINMAL! */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 0 auto;
    background-color: #0080ff; /* Hintergrund falls Karte nicht lädt */
}

/* Responsive für mobile Geräte */
@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    .leg-details {
        grid-template-columns: 1fr;
    }
    
    .leg-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .leg-actions {
        flex-direction: column;
    }
    
    .leg-actions .btn {
        width: 100%;
    }
}

/* Popup-Styling für Leaflet */
.leaflet-popup-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 12px;
    font-size: 14px;
    min-width: 150px;
}

.leaflet-popup-content b {
    color: #1e3c72;
}

.leaflet-popup-content i {
    margin-right: 5px;
    color: #3498db;
}

/* Schwierigkeitsstufen */
.difficulty-easy .detail-icon {
    background: #e8f5e9;
    color: #4caf50;
}

.difficulty-medium .detail-icon {
    background: #fff3e0;
    color: #ff9800;
}

.difficulty-hard .detail-icon {
    background: #ffebee;
    color: #f44336;
}

/* Hover-Effekt für Karten-Button */
.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Leg sights and route sections - Updated with darker background for better spacing visibility */
.leg-sights, .leg-route {
    border-left: 4px solid #3498db;
    margin-bottom: 15px;
    background: rgba(240, 245, 255, 0.85); /* Light gray background instead of bg-light class */
    backdrop-filter: blur(5px); /* Subtle blur effect for depth */
    border-radius: 5px;
}

.leg-sights h5, .leg-route h5 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.leg-sights p, .leg-route p {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
}
/* Ensure flight routes are perfectly centered */
.leg-list-container {
    width: 100%;
    max-width: 800px; /* Limit width similar to hero section */
    margin: 0 auto;
    padding: 0 1rem; /* Add some padding for smaller screens */
}

.leg-list-container .leg-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure proper centering on all screen sizes */
@media (max-width: 991px) {
    .leg-list-container {
        width: 100%;
        margin: 0 auto;
        padding: 0 0.5rem; /* Reduce padding on smaller screens */
    }
    
    .leg-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ===== REJECTION STATUS COMPONENT ===== */
.rejection-status-card {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(252, 231, 231, 0.9));
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.rejection-status-card:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
}

.rejection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rejection-header .rejection-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.rejection-title {
    flex-grow: 1;
}

.rejection-title h6 {
    margin: 0;
    color: #991b1b;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.rejection-timestamp {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.rejection-content {
    margin-bottom: 1rem;
}

.rejection-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid #dc2626;
}

.rejection-reason i {
    color: #dc2626;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.reason-text {
    color: #374151;
    line-height: 1.5;
    font-size: 0.9rem;
}

.reason-text strong {
    color: #991b1b;
    font-weight: 600;
}

.rejection-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.btn-retry {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: white;
}

.btn-retry:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .rejection-status-card {
        padding: 1rem;
        margin: 0.75rem 0;
    }
    
    .rejection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rejection-header .rejection-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .rejection-reason {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rejection-reason i {
        margin-top: 0;
    }
    
    .rejection-actions {
        justify-content: center;
    }
    
    .btn-retry {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for new rejection status */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rejection-status-card {
    animation: slideInFromTop 0.4s ease-out;
}

/* Dark mode support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .rejection-status-card {
        background: linear-gradient(135deg, rgba(127, 29, 29, 0.2), rgba(153, 27, 27, 0.15));
        border-color: rgba(220, 38, 38, 0.3);
    }
    
    .rejection-reason {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .reason-text {
        color: #d1d5db;
    }
}
