/**
 * Torch route styles for Yandex Centers Map
 */

/* Torch icon */
.ycm-torch-icon {
    width: 30px;
    height: 30px;
    background-image: url('../images/torch-icon-gray.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.ycm-torch-icon.visited {
    background-image: url('../images/torch-icon.svg');
    transform: scale(1.1);
}

/* Torch balloon */
.ycm-torch-balloon {
    padding: 10px;
    min-width: 200px;
}

.ycm-torch-content {
    font-size: 14px;
    line-height: 1.5;
}

.ycm-torch-status {
    font-weight: bold;
    margin-bottom: 5px;
    padding: 3px 8px;
    display: inline-block;
    border-radius: 3px;
}

.ycm-torch-status.visited {
    background-color: #4CAF50;
    color: white;
}

.ycm-torch-status.planned {
    background-color: #FFA000;
    color: white;
}

.ycm-torch-date {
    margin-bottom: 8px;
}

.ycm-torch-description {
    margin: 8px 0;
    border-left: 3px solid #EEE;
    padding-left: 10px;
    font-style: italic;
}

.ycm-torch-link {
    text-align: right;
    margin-top: 8px;
}

.ycm-torch-link a {
    color: #1E88E5;
    text-decoration: none;
}

.ycm-torch-link a:hover {
    text-decoration: underline;
}

/* Torch filter controls */
.ycm-torch-filter {
    margin-bottom: 15px;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.ycm-torch-filter-btn {
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ycm-torch-filter-btn:hover {
    background: #e9e9e9;
}

.ycm-torch-filter-btn.active {
    background: #1E88E5;
    color: white;
    border-color: #1976D2;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
    .ycm-torch-filter {
        justify-content: center;
    }
    
    .ycm-torch-filter-btn {
        padding: 8px 16px;
        font-size: 16px;
    }
    
    .ycm-torch-icon {
        width: 24px;
        height: 24px;
    }
    
    .ycm-torch-balloon {
        max-width: 250px;
    }
}
