/* assets/css/route-detail.css - Estilos para detalles de ruta */

/* Breadcrumb */
.route-breadcrumb {
    margin-bottom: 2rem;
}

.route-breadcrumb .breadcrumb {
    background: rgba(0, 255, 221, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.route-breadcrumb .breadcrumb-item a {
    color: var(--accent-cyan-dark);
    text-decoration: none;
    transition: var(--transition);
}

.route-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-cyan);
}

.route-breadcrumb .breadcrumb-item.active {
    color: var(--primary-black);
}

/* Route Hero */
.route-hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 50%, var(--primary-black) 100%);
    color: var(--white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.route-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0.1;
    transform: skewX(-15deg);
}

/* Route Header */
.route-header {
    position: relative;
    z-index: 2;
}

.route-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--accent-cyan);
    width: 18px;
    text-align: center;
}

.difficulty-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-easy {
    background: rgba(40, 167, 69, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.difficulty-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.difficulty-hard {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.route-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.route-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

.route-actions .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
}

.route-actions .btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.route-actions .btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-black);
    border: none;
}

.route-actions .btn-primary:hover {
    background: var(--accent-cyan-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-cyan);
}

.route-actions .btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: var(--primary-black);
    border: none;
}

.route-actions .btn-warning:hover {
    background: linear-gradient(135deg, #ff8f00, #e65100);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Content Section */
.route-content {
    padding: 3rem 0;
    background: var(--light-gray);
}

/* Description */
.route-description {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-cyan);
}

.route-description h3 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.route-description p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Map Section */
.route-map-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--success);
}

.route-map-section h3 {
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.map-container {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#map {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--medium-gray);
    box-shadow: var(--shadow);
}

.map-control-btn:hover {
    background: var(--accent-cyan);
    color: var(--primary-black);
    border-color: var(--accent-cyan);
    transform: scale(1.05);
}

/* Murals Section */
.route-murals-section {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--warning);
}

.route-murals-section h3 {
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.no-murals {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--medium-gray);
}

.no-murals h5 {
    color: var(--primary-black);
    margin-bottom: 1rem;
}

/* Murals Timeline */
.murals-timeline {
    position: relative;
}

.murals-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-cyan-light));
    z-index: 1;
}

.mural-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-left: 60px;
}

.mural-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    color: var(--primary-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 255, 221, 0.3);
}

.step-content {
    flex: 1;
}

.mural-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-gray);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.mural-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.mural-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border-gray);
}

.mural-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mural-card:hover .mural-image img {
    transform: scale(1.05);
}

.mural-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    font-size: 2rem;
    background: var(--border-gray);
}

.mural-info {
    flex: 1;
}

.mural-info h5 {
    color: var(--primary-black);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.mural-artist {
    color: var(--accent-cyan-dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.mural-address {
    color: var(--medium-gray);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.mural-description {
    color: var(--medium-gray);
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.mural-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: center;
}

/* Sidebar Cards */
.creator-card,
.route-stats-card,
.quick-actions-card,
.related-routes-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-cyan);
}

.creator-card h4,
.route-stats-card h4,
.quick-actions-card h4,
.related-routes-card h4 {
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Creator Info */
.creator-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.creator-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-details h5 {
    margin-bottom: 0.25rem;
    color: var(--primary-black);
}

.creator-details p {
    margin-bottom: 0.25rem;
    color: var(--accent-cyan-dark);
}

.creator-details small {
    color: var(--medium-gray);
}

/* Route Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(0, 255, 221, 0.05);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan-dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Marker Info Window */
.marker-info {
    min-width: 200px;
    text-align: center;
}

.marker-info h6 {
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.marker-info p {
    margin-bottom: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.marker-info small {
    color: var(--medium-gray);
    display: block;
    margin-bottom: 0.75rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .route-title {
        font-size: 2rem;
    }
    
    .route-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .creator-card,
    .route-stats-card,
    .quick-actions-card,
    .related-routes-card {
        margin-bottom: 2rem;
    }
    
    .mural-card {
        flex-direction: column;
        text-align: center;
    }
    
    .mural-image {
        width: 100%;
        height: 200px;
        align-self: center;
    }
    
    .mural-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .route-hero {
        padding: 2rem 0;
    }
    
    .route-title {
        font-size: 1.75rem;
    }
    
    .route-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .route-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .route-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .map-container {
        height: 300px;
    }
    
    .mural-step {
        padding-left: 50px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .mural-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .mural-image {
        width: 100px;
        height: 100px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .creator-info {
        flex-direction: column;
        text-align: center;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
    }
    
    .map-control-btn {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    .route-content {
        padding: 2rem 0;
    }
    
    .route-description,
    .route-map-section,
    .route-murals-section,
    .creator-card,
    .route-stats-card,
    .quick-actions-card,
    .related-routes-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .route-title {
        font-size: 1.5rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .mural-step {
        padding-left: 40px;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .murals-timeline::before {
        left: 12px;
    }
    
    .mural-card {
        padding: 0.75rem;
    }
    
    .mural-image {
        width: 80px;
        height: 80px;
    }
    
    .mural-info h5 {
        font-size: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.route-description,
.route-map-section,
.route-murals-section {
    animation: fadeInUp 0.6s ease-out;
}

.mural-step {
    animation: slideInLeft 0.5s ease-out;
}

.creator-card,
.route-stats-card,
.quick-actions-card,
.related-routes-card {
    animation: fadeInUp 0.4s ease-out;
}

/* Estados de fullscreen */
.map-container:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-black);
}

.map-container:fullscreen #map {
    width: 95vw;
    height: 95vh;
    border-radius: 0;
}

/* Mejoras visuales */
.route-hero {
    position: relative;
}

.route-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
}

.mural-step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 45px;
    width: 10px;
    height: 2px;
    background: var(--accent-cyan);
    z-index: 2;
}

/* Estados de hover mejorados */
.mural-card:hover .step-number {
    background: var(--accent-cyan-dark);
    transform: scale(1.1);
}

.stat-item:hover .stat-value {
    color: var(--accent-cyan);
}

.creator-avatar:hover {
    transform: scale(1.05);
}

/* Efectos especiales */
.step-number {
    position: relative;
    overflow: hidden;
}

.step-number::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.step-number:hover::after {
    left: 100%;
}