.time-filter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    padding: 15px 25px;
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 1000;
    max-width: 95%;
}

.time-filter-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
}

.time-control-group {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.time-control-group label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.time-control-group select {
    padding: 8px 12px;
    border: 2px solid #000000;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.time-control-group select:focus {
    outline: none;
    background: #f5f5f5;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.time-control-group input[type="range"] {
    width: 250px;
    height: 8px;
    background: #e0e0e0;
    border: 2px solid #000000;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.time-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #000000;
    cursor: pointer;
    border: 2px solid #000000;
}

.time-control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #000000;
    cursor: pointer;
    border: 2px solid #000000;
}

#hourValue {
    font-weight: 700;
    color: #000000;
}

.show-open-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #000000;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.show-open-btn:hover {
    background: #f5f5f5;
}

.show-open-btn.active {
    background: #000000;
    color: white;
}

/* Responsive design for tablets */
@media (max-width: 1024px) {
    .time-filter {
        max-width: calc(100% - 40px);
        padding: 12px 20px;
        gap: 15px;
    }
    
    .time-filter-controls {
        gap: 15px;
    }
    
    .time-control-group input[type="range"] {
        width: 200px;
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .time-filter {
        top: 15px;
        padding: 12px 15px;
        gap: 10px;
        max-width: calc(100% - 30px);
    }
    
    .time-filter-controls {
        width: 100%;
        gap: 10px;
    }
    
    .time-control-group {
        gap: 6px;
    }
    
    .time-control-group label {
        font-size: 11px;
    }
    
    .time-control-group select {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .time-control-group input[type="range"] {
        width: 140px;
    }
    
    .show-open-btn {
        font-size: 10px;
        padding: 6px 12px;
    }
}

@media (max-width: 600px) {
    .time-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }
    
    .time-filter-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-control-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .time-control-group select {
        flex: 1;
        min-width: 0;
    }
    
    .time-control-group input[type="range"] {
        width: 100%;
        max-width: none;
        flex: 1;
    }
    
    .show-open-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .time-filter {
        top: 10px;
        max-width: calc(100% - 20px);
        padding: 8px 10px;
    }
    
    .time-control-group label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    .time-control-group select {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    #hourValue {
        font-size: 11px;
    }
    
    .show-open-btn {
        font-size: 9px;
        padding: 6px 10px;
        letter-spacing: 0.3px;
    }
}